*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-col: #2BB573;
  --secondry-col: #63b48d;
  --btn-hover-col: #7df76d;
  --card-bg-col: #ecfff6;
  --accent-color: #f8f9fa;
  --text-color: #333;
  --light-text: #666;
  --white: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
/* 
body {
  overflow-x: hidden
} */

/* .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: start;
}

/* .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: "";
  background: var(--primary-col);
  font-size: 1.2rem;
  font-weight: 700;
}

/*---------------------- Story Section ----------------------*/

/* .container {
  padding: 0 1rem;
} */
.story-section {
  background: var(--white);
}

.story-image {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.story-image:hover img {
  transform: scale(1.05);
}

.story-content {
  padding: 2rem;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* ------------- About Section --------------------*/

.title-section {
  width: 100%;
  background: #f9f9f9;
  padding: 3rem 0;
}

.section-001 {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
  padding: 3rem 0;
}

.section-001 .img-sec-01 {
  width: 600px;

  img {
    width: 100%;
    animation-name: translate;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    animation-fill-mode: both;
    animation-duration: 2s;
  }
}

@keyframes translate {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }

}

.titl-sec-01 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;

  .h5-tit-sec-01 {
    color: var(--primary-col);
  }

  .h3-tit-sec-01 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
  }

  .p-tit-sec-01 {
    font-size: 1rem;
    line-height: 1.8;
  }

  .check-tit-sec-01 {
    width: 100%;
    display: flex;
    justify-content: start;
    /* gap: 0.7rem; */
    list-style: none;
    flex-wrap: wrap;
    padding-left: 0 !important;

    li {
      flex-basis: 50%;
      display: flex;
      align-items: start;
      gap: 0.5rem;
      text-wrap-mode: nowrap;
      margin-bottom: 1rem;

      span {
        border: 1px solid var(--primary-col);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary-col);
        width: 20px;
        height: 20px;
      }
    }
  }

  #tit-btn-sec-01 {
    width: fit-content;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    text-decoration: none !important;
    background: var(--primary-col) !important;
    color: #fff;
    cursor: pointer;
  }
}

/* Services Section */
.service-section {
  width: 100%;
  padding: 3rem 0;
}

.service-section .service-sec-001 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.service-section .service-sec-001 .service-humanity {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.service-section .service-sec-001 .public-service .serv-title {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;

  h5 {
    color: var(--primary-col);
    animation: fadIn1;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
    animation-fill-mode: both;
  }

  h3 {
    font-weight: 700;
    animation: fadIn1;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
    animation-fill-mode: both;
    animation-delay: 0.2s;
  }
}

@keyframes fadIn1 {
  from {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

}

.service-section .service-sec-001 .service-humanity .serv-cards-gall {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1.2rem;
}

main .service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card {
  width: 23%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  background: var(--card-bg-col);
  padding: 30px 30px 20px 30px;
  margin: 0 0 30px 0;

  svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-col);
    margin: 0 0 20px 0;
  }

  h4 {
    font-weight: 700;
    margin-bottom: 20px;

    a {
      color: #000;
      text-decoration: none !important;
    }
  }

  p {
    line-height: 1.8;
  }

  animation: scaleCard;
  animation-timeline: view();
  animation-range: entry 05% cover 40%;
  animation-fill-mode: both;
}

.service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card:nth-child(1) {
  animation-delay: -0.2s;
}

.service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card:nth-child(2) {
  animation-delay: 0s;
}

.service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card:nth-child(3) {
  animation-delay: 0.2s;
}

.service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card:nth-child(4) {
  animation-delay: 0.4s;
}

.service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes scaleCard {
  0% {
    transform: translateY(100px) scale(0);
    opacity: 0;
    filter: brightness(0.1);
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: brightness(1);
  }
}

.view-more-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  background: #183153;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
  border: none;
  animation: scale2;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
  animation-fill-mode: both;
  animation-delay: 0.2s;
}

@keyframes scale2 {
  from {
    scale: 0;
  }

  to {
    scale: 1;
  }
}

.view-more-btn:after {
  content: " ";
  width: 0%;
  height: 100%;
  background: var(--primary-col);
  position: absolute;
  transition: all 0.4s ease-in-out;
  right: 0;
}

.view-more-btn:hover::after {
  right: auto;
  left: 0;
  width: 100%;
}

.view-more-btn span {
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 16px 25px;
  color: #fff;
  font-size: 1.125em;
  font-weight: 700;
  letter-spacing: 0.3em;
  z-index: 20;
  transition: all 0.3s ease-in-out;
}

.view-more-btn:hover span {
  color: #183153;
  animation: scaleUp 0.3s ease-in-out;
}

/* Community Programs Section */
.community-section {
  background: var(--accent-color);
}

.community-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

@keyframes fadein-scale {
  0% {
    transform: translateY(100px) scale(0);
    opacity: 0;
    filter: brightness(0.1);
  }
  100%{
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: brightness(1);
  }

}

.community-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.community-image:hover img {
  transform: scale(1.05);
}

.community-content {
  padding: 2rem;
}

.community-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* Facilities Section */
.facilities-section {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.facility-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.facility-image {
  position: relative;
  overflow: hidden;

}

.facility-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.facility-card:hover .facility-image img {
  transform: scale(1.05);
}

.facility-content {
  padding: 1.5rem;
}

.facility-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.facility-text {
  color: var(--light-text);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Achievements Section */
.achievements-section {
  background: var(--accent-color);
}

.achievements-content {
  padding: 2rem;
}

.achievements-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.achievement-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--light-text);
  font-weight: 500;
  margin: 0;
}

.achievements-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

.achievements-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.achievements-image:hover img {
  transform: scale(1.05);
}

/* Youth Programs Section */
.youth-section {
  background: var(--white);
}

.youth-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

.youth-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.youth-image:hover img {
  transform: scale(1.05);
}

.youth-content {
  padding: 2rem;
}

.youth-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* Interfaith Dialogue Section */
.interfaith-section {
  background: var(--accent-color);
}

.interfaith-content {
  padding: 2rem;
}

.interfaith-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.interfaith-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

.interfaith-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.interfaith-image:hover img {
  transform: scale(1.05);
}

/* Women's Programs Section */
.women-section {
  background: var(--white);
}

/* Social Services Section */
.social-services-section {
  background: var(--accent-color);
}

.social-services-content {
  padding: 2rem;
}

.social-services-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.social-services-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

.social-services-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.social-services-image:hover img {
  transform: scale(1.05);
}

/* Cultural Events Section */
.cultural-section {
  background: var(--white);
}

.cultural-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation-name: fadein-scale;
  animation-fill-mode: both;
  animation-range: entry 10% cover 30%;
  animation-timeline: view();
}

.cultural-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
  
}

.cultural-image:hover img {
  transform: scale(1.05);
}

.cultural-content {
  padding: 2rem;
}

.cultural-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}


/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .story-content {
    padding: 1rem;
    margin-top: 2rem;
  }

  .value-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .story-image img {
    height: 300px;
  }

  .team-image img {
    height: 200px;
  }

  .service-image img,
  .community-image img,
  .achievements-image img,
  .youth-image img,
  .interfaith-image img,
  .women-image img,
  .social-services-image img,
  .cultural-image img {
    height: 250px;
  }

  .facility-image img {
    height: 150px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.social-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Respansive setup */

@media (max-width: 1200px) {
  .serv-card {
    min-width: 30%;
  }
}

@media (max-width: 1080px) {

  .service-section .service-sec-001 .service-humanity .serv-cards-gall {
    flex-wrap: wrap;
  }

  .service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card {
    width: 47%;
    display: flex;
    flex-direction: column;
  }

}

@media (max-width: 990px) {

  .section-001 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .section-001 .img-sec-01 {
    width: 400px;
  }

  .service-section .service-sec-001 .service-humanity .serv-cards-gall {
    flex-wrap: wrap;

  }

  .service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card {
    min-width: 48%;
    display: flex;
    flex-direction: column;
  }

}

@media (max-width: 768px) {

  .section-001 {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .section-001 .img-sec-01 {
    width: 100%;

  }

  .service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card {
    min-width: 100%;

  }
}

@media (max-width: 680px) {

  .service-section .service-sec-001 .service-humanity .serv-cards-gall {
    width: 100% !important;
    padding: 0 1rem;
    flex-wrap: wrap;

  }

  .service-section .service-sec-001 .service-humanity .serv-cards-gall .serv-card {
    width: 100% !important;

  }

  .service-pillars .serv-pill-card-gall {
    flex-wrap: wrap;
  }

  .service-pillars .serv-pill-card {
    width: 100%;
  }

  .news-section .news-container .news-card-gall .serv-news-card {
    width: 100%;
    margin-bottom: 4rem;
  }

}