:root{
  --socialmedia-color: #00009a;
  --title-color: #446679;
}
body {
  font-family: "Almarai", sans-serif;
  background-color: #f8f8f8;
}
.main-header {
  background-color: #03202f;
  height: 34px;
}
main section {
  margin: 0 auto;
}

.about-section {
  max-width: 85%;
}
.hero-section {
  height: 100vh ;
  background-color: #d9d9d9;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}
.about-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
  text-align: center;

  color: #3f6378;
}
.about-section .title {
  font-size: 88px;
  font-weight: 800;
}
.about-section .description {
  font-size: 43.7px;
  font-weight: 700;
}

/* Statistics Section */
.statistics-section {
  font-family: "Libre Franklin", sans-serif;

  background: white;
  padding: 40px 0;
  text-align: center;
}

.statistics-cards {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-bottom: 0;
  flex-wrap: nowrap;
  /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); */
  border-radius: 41px;
  background-color: #f0f1f2;
  backdrop-filter: blur(4px);

  box-shadow: 0px 4px 2px 0px #00000040;

  box-shadow: 0px 4px 4px 0px #00000040;
  border: 1px solid;

  border-image-source: radial-gradient(
    50% 50% at 50% 50%,
    #000000 0%,
    #fcf0f0 65.87%
  );
}

.stat-card {
  border-radius: 15px;
  padding: 25px 35px;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.stat-label {
  font-size: 40px;
  color: #020202;
  text-transform: lowercase;
  margin-bottom: 8px;
  font-weight: 300;
  opacity: 0.6;
}

.stat-value {
  font-size: 50px;
  font-weight: 500;
  color: #020202;
  opacity: 0.4;
  margin: 0;
  transition: all 0.3s ease;
}

.stat-value.animate {
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-pic-section {
  background-color: #ffffff;
  aspect-ratio: 223 / 128;
  max-width: 70%;
  border-radius: 19.2px;
  margin-top: 8rem;
}
.top-student-section {
  margin-top: 8rem;
  max-width: 100%;
  text-align: center;
}
.top-student-section .title {
  font-size: 86.4px;
  font-weight: 800;
  font-style: ExtraBold;
  line-height: 120%;
  letter-spacing: -2%;
  color: var(--title-color);
  margin-bottom: 3rem;
}

/* Swiper Styles */
.top-students-swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: auto;
  min-height: 400px;
}

.top-students-swiper .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;
  padding: 10px 0;
}

.top-students-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.top-students-swiper .swiper-slide-active img {
  transform: scale(1.05);
}

/* Navigation Buttons */
.top-students-swiper .swiper-button-next,
.top-students-swiper .swiper-button-prev {
  color: var(--title-color);
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-students-swiper .swiper-button-next:after,
.top-students-swiper .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

/* Pagination */
.top-students-swiper .swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.top-students-swiper .swiper-pagination-bullet {
  background: var(--title-color);
  opacity: 0.3;
  width: 20px;
  height: 4px;
  border-radius: 2px;
  margin: 0 6px;
}

.top-students-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--title-color);
}

/* Cards Section */
.cards-section {
  margin-top: 8rem;
  padding: 4rem 0;
  background-image: url("images/whatsapp-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
}
.cards-section > * {
  position: relative;
  z-index: 2;
}

.cards-title {
  font-size: 86.4px;
  font-weight: 800;
  color: var(--title-color);
  margin-bottom: 3rem;
  text-align: center;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card-wrapper {
  flex: 1;
  min-width: 200px;
  padding: 3px;
  background: linear-gradient(180deg, #B2E2BB 0%, #1B5836 100%);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: flash 2.5s ease-in-out infinite;
}

.card-wrapper:nth-child(1) {
  animation-delay: 0s;
}

.card-wrapper:nth-child(2) {
  animation-delay: 0.8s;
}

.card-wrapper:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes flash {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.card {
  background: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: -10px 10px 4px 1px #3F404240;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--image {
  padding: 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
}


.card-content {
  position: relative;
  z-index: 2;
}

.card-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
  text-align: center;
}
.top-marks-section {
    margin-top: 8rem;
    max-width: 100%;
    text-align: center;
  }
  .top-marks-section .title {
    font-size: 86.4px;
    font-weight: 800;
    font-style: ExtraBold;
    line-height: 120%;
    letter-spacing: -2%;
    color: var(--title-color);
    margin-bottom: 3rem;
  }

/* Top Marks Swiper Styles */
.top-marks-swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: auto;
  min-height: 400px;
}

.top-marks-swiper .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;
  padding: 10px 0;
}

.top-marks-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.top-marks-swiper .swiper-slide-active img {
  transform: scale(1.05);
}

/* Navigation Buttons for Top Marks */
.top-marks-swiper .swiper-button-next,
.top-marks-swiper .swiper-button-prev {
  color: var(--title-color);
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-marks-swiper .swiper-button-next:after,
.top-marks-swiper .swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

/* Pagination for Top Marks */
.top-marks-swiper .swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.top-marks-swiper .swiper-pagination-bullet {
  background: var(--title-color);
  opacity: 0.3;
  width: 20px;
  height: 4px;
  border-radius: 2px;
  margin: 0 6px;
}

.top-marks-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--title-color);
}

/* WhatsApp Call to Action Section */
.whatsapp-cta-section {
  margin-top: 4rem;
  padding: 4rem 0;
  background-image: url("images/whatsapp-bg-2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F8F8F8;
  opacity: 0.99;
  z-index: 1;
}

.whatsapp-cta-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.whatsapp-cta-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  position: relative;
  animation: buttonFlash 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.whatsapp-cta-button:hover {
  transform: scale(1.05);
}

.whatsapp-cta-button img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
}

.whatsapp-cta-text {
  color: #B3261E;
  font-size: 96px;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 0;
  text-align: center;
}

@keyframes buttonFlash {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}
.footer-section{
    text-align: center;
    padding-bottom:3rem;
    background-color: #f8f9fa;
}
.footer-text{
    font-size: 60px ;
    font-weight: 400;
    color: #B3261E;
    margin-bottom: 2rem;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
}

.social-icon {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 3px solid var(--socialmedia-color);
    color: var(--socialmedia-color);
    font-size: 80px;
    box-shadow: 0 4px 15px rgba(68, 102, 121, 0.3);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(68, 102, 121, 0.4);
    background-color: var(--socialmedia-color);
    color: white;
}

.social-icon.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-icon.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: white;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    color: white;
}
  
/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .main-header {
    height: 11px;
  }

  .about-section {
    max-width: 85%;
  }
  .hero-section {
    height: 195px;
    background-color: #d9d9d9;
    align-items: center;
  }
  .about-section {
    gap: 0.5rem;
  }
  .about-section .title {
    font-size: 23px;
  }
  .about-section .description {
    font-size: 11.7px;
  }
  .statistics-cards {
    gap: 15px;
    margin: 0 10px;
    border-radius: 12px;
  }

  .stat-card {
    padding: 10px;
    min-width: 100px;
    flex: 1;
  }

  .stat-label {
    font-size: 13px;
    margin-bottom: 2px;
    color: black;
    opacity: 0.4;
    font-weight: 300;
  }

  .stat-value {
    font-size: 14px;
    font-weight: 600;
  }
  .main-pic-section {
    border: 1.2px solid #1616161a;
    margin-top: 2rem;
    aspect-ratio: 358 / 201;
    max-width: 85%;
  }
  .top-student-section {
    margin-top: 2rem;
  }
  .top-student-section .title {
    font-size: 17.4px;
    margin-bottom: 2rem;
  }

  .top-marks-section {
    margin-top: 2rem;
  }
   .top-marks-section .title {
     font-size: 17.4px;
     margin-bottom: 2rem;
   }
   
   .top-marks-swiper {
     padding: 0 10px;
     min-height: 250px;
   }
   
   .top-marks-swiper .swiper-slide img {
     height: auto;
     max-height: 200px;
   }
   
   .top-marks-swiper .swiper-button-next,
   .top-marks-swiper .swiper-button-prev {
     width: 40px;
     height: 40px;
   }
   
   .top-marks-swiper .swiper-button-next:after,
   .top-marks-swiper .swiper-button-prev:after {
     font-size: 16px;
   }
   
   /* Hide navigation buttons on mobile */
   .top-marks-swiper .swiper-button-next,
   .top-marks-swiper .swiper-button-prev {
     display: none;
   }
   
   .top-marks-swiper .swiper-pagination {
     margin-top: 20px;
   }
   
   .top-marks-swiper .swiper-pagination-bullet {
     width: 16px;
     height: 3px;
     border-radius: 1.5px;
     margin: 0 4px;
   }
   
   /* WhatsApp CTA Mobile */
   .whatsapp-cta-section {
     margin-top: 2rem;
     padding: 2rem 0;
     min-height: 200px;
   }
   
   .whatsapp-cta-container {
     max-width: 90%;
     padding: 0 10px;
   }
   
   .whatsapp-cta-button img {
     max-width: 300px;
   }
   
   .whatsapp-cta-text {
     font-size: 27px;
     margin-top: 15px;
   }

  .top-students-swiper {
    padding: 0 10px;
    min-height: 250px;
  }

  .top-students-swiper .swiper-slide img {
    height: auto;
    max-height: 200px;
  }

  .top-students-swiper .swiper-button-next,
  .top-students-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .top-students-swiper .swiper-button-next:after,
  .top-students-swiper .swiper-button-prev:after {
    font-size: 16px;
  }

  /* Hide navigation buttons on mobile */
  .top-students-swiper .swiper-button-next,
  .top-students-swiper .swiper-button-prev {
    display: none;
  }

  .top-students-swiper .swiper-pagination {
    margin-top: 20px;
  }

  .top-students-swiper .swiper-pagination-bullet {
    width: 16px;
    height: 3px;
    border-radius: 1.5px;
    margin: 0 4px;
  }

  /* Cards Section Mobile */
  .cards-section {
    margin-top: 2rem;
    padding: 2rem 0;
  }

  .cards-title {
    font-size: 32px;
    margin-bottom: 2rem;
  }

   .cards-container {
     gap: 15px;
     padding: 0 10px;
   }

   .card-wrapper {
     min-width: 80px;
     padding: 2px;
     border-radius: 8px;
   }

   .card {
     padding: 15px 10px;
     aspect-ratio: 5/7;
     border-radius: 6px;
   }

  .card-content h3 {
    font-size: 16px;
  }
   .footer-text{
     font-size: 18px ;
   }
   
   .social-icons {
     gap: 15px;
     margin-top: 1rem;
   }
   
   .social-icon {
     width: 77px;
     height: 77px;
     font-size: 24px;
   }
}

@media (max-width: 480px) {
  .statistics-cards {
    gap: 10px;
    margin: 0 5px;
  }
}
