:root {
  --primary-color: #2bb573;
  --primary-bg-color: #f9f9f9;
}

.header {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background: url(./assets/images/islamic1.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

  .overly {
    filter: brightness(0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.nav-contain {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container .header-title {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  margin: 0 !important;
}

.container .link {
  list-style: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin:10px 0 0 0 !important;
  padding: 0 !important;

}

.container .link a {
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  transition: all 0.3s ease-in-out;

  &:hover {
    color: var(--primary-color);
  }
}

.container .link a::before {
  content: "";
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
}


/* Main Content */
main {
  width: 100%;
  background: var(--primary-bg-color);
}

.news-section {
  width: 100%;
  padding: 3rem 0;
}

.news-section .news-contain {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;

}

.news-section .news-contain .news-titles-card {
  width: 30%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 50px;
  text-align: center;
  position: relative;
  z-index: 0;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;


  p {
    line-height: 1.6;
    text-align: justify;
    padding-top: 20px;
  }

  .news-date {
    background: #2bb573;
    color: #fff;
    padding: 0.5rem 1rem;
    width: fit-content;
    border-radius: 0 20px 20px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
  }

  a {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    text-wrap-mode: wrap;

    &:hover {
      color: var(--primary-color);
      transition: all 0.3s ease-in-out;
    }
  }

}

.news-titles-card::before {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease-in-out;
  z-index: -1;
  border-top: 1px solid var(--primary-color);
  border-left: 1px solid var(--primary-color);
}

.news-titles-card::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  bottom: 0;
  right: 0;
  transition: all 0.3s ease-in-out;
  z-index: -1;
  border-bottom: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
}

.news-titles-card:hover::before,
.news-titles-card:hover::after {
  width: 100%;
  height: 100%;
}



/* Respansives */
@media (max-width: 1210px) {
  .news-titles-card {
    min-width: 45%;
  }
}

@media (max-width: 768px) {
  .news-contain {
    padding: 0 1rem;
  }
  .news-titles-card {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .nav-contain {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;

    .link  {
      padding: 0 !important;
    }
  }
}