/* =========================================================
   Fazain Quran Academy - Main Stylesheet (Corrected & Enhanced)
   ========================================================= */

/* =========================================================
   1. Root Variables & Global Styles
   ========================================================= */
:root {
  /* Enhanced Color Palette: Deep Emerald & Luminous Gold */
  --bg-dark: #011808; /* Richer, deeper green */
  --bg-surface: #022a1c; /* Slightly lighter surface color */
  --text-primary: #f0f5f3; /* Soft off-white for readability */
  --text-secondary: #a8c0b6; /* Muted green-gray for secondary text */
  --accent-grad-start: #08a06d; /* Vibrant emerald */
  --accent-grad-end: #d4af37; /* Luminous gold */

  /* Fonts & Animation */
  --font-logo: 'Poppins', sans-serif;
  --font-ui: 'Inter', sans-serif;
  --header-height: 85px;
  --trans-speed: 0.4s;
  --trans-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg-dark);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  padding-top: var(--header-height); /* Offset for fixed header */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; }














/* =========================================================
   2. HEADER STYLING (REFINED & ENHANCED)
   ========================================================= */

/* --- Top Announcement Bar --- */
.top-bar {
  text-align: center;
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  color: #fff;
  font-size: 1.1rem;
  padding: 6px 0;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* --- Main Header Container --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all var(--trans-speed) var(--trans-ease);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height, 90px);
  transition: height var(--trans-speed) var(--trans-ease);
}

/* --- Scrolled State --- */
.site-header.is-scrolled {
  background-color: rgba(1, 28, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(212, 175, 55, 0.2);
}

.site-header.is-scrolled .container {
  height: var(--header-height-scrolled, 70px);
}

/* --- Logo --- */
.logo img {
  display: block;
  max-height: 145px;
  width: auto;
  transition: max-height var(--trans-speed) var(--trans-ease), filter 0.3s ease;
  margin:10px 0px 0px 0px;
}

.logo:hover img {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.site-header.is-scrolled .logo img {
  max-height: 45px;
}

/* --- Main Navigation --- */
.main-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav li a {
  position: relative;
  padding: 10px 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.main-nav li a:hover {
  color: var(--text-primary);
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.main-nav li a:hover::after {
  transform: scaleX(1);
}

/* --- Call-to-Action Button --- */
.cta-button {
  padding: 12px 28px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  background-size: 200% auto;
  color: #fff;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 15px rgba(8, 160, 109, 0.2);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  background-position: right center;
  box-shadow: 0 12px 25px rgba(8, 160, 109, 0.4);
  color: #fff;
}

/* =========================================================
   DROPDOWN MENU - NEW VERTICAL PANEL STYLE
   ========================================================= */

/* --- Parent Item Arrow --- */
.main-nav .menu-item-has-children > a i {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s ease-in-out;
}

.menu-item-has-children.is-open > a i,
.menu-item-has-children:hover > a i {
  transform: rotate(180deg);
}

/* --- DESKTOP: FULL-WIDTH VERTICAL PANEL --- */
@media (min-width: 993px) {
  /* Parent needs to be static for the full-width dropdown to work correctly */
  .menu-item-has-children {
    position: static;
  }
  
  .sub-menu {
    /* Positioning */
    position: absolute;
    top: 100%; /* Attach to the bottom of the header */
    left: 0;
    width: 100%;
    
    /* Style */
    background-color: var(--bg-dark); /* Solid background for the panel */
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    padding: 30px 0; /* Vertical padding */

    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* Start slightly above its final position */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 999; /* Below the header but above content */
  }

  /* When hovering the parent, show the dropdown */
  .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Centering and styling the links inside the panel */
  .sub-menu ul {
    max-width: 1200px; /* Or your container width */
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: center; /* Center the links */
  }
  
  .sub-menu li a {
    display: inline-block; /* Allow padding and centering */
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
  }
  
  .sub-menu li a:hover {
    color: var(--text-primary);
    letter-spacing: 1px; /* Add a subtle effect on hover */
  }
}

/* --- MOBILE DROPDOWN (Accordion - Unchanged) --- */
@media (max-width: 992px) {
  .sub-menu {
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    margin: 10px 0 0 15px;
    padding: 0;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
  }

  .menu-item-has-children.is-open > .sub-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0 8px 8px;
  }
  
  .sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
  }

  .sub-menu li a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--text-primary);
    padding-left: 22px;
  }
}

/* =========================================================
   3. Main Content Sections Styliing
   ========================================================= */



/* =========================================================
   2. About Us 
   ========================================================= */


/* =========================================================
   3. ABOUT US SECTION (NEW ARCHWAY DESIGN)
   ========================================================= */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Image column is slightly narrower */
  gap: 60px;
  align-items: center;
}

/* --- Image Column with Arch Effect --- */
.about-image-col {
  position: relative;
  height: 450px;
  background-color: var(--bg-dark); /* Dark background for the archway */
  border-radius: 150px 150px 12px 12px; /* This creates the arch shape */
  overflow: hidden; /* This clips the image into the arch shape */
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin: 0px 0px 5px 0px;
}

.about-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8; /* Slightly muted image for an elegant look */
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.about-image-col:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* --- Content Column (Right) --- */
.about-content-col .section-title {
  text-align: left;
}
.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Grid for the value proposition blocks */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns for features */
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature-icon i {
  font-size: 1.5rem;
  color: var(--accent-grad-end);
}
.feature-text h4 {
  font-family: var(--font-logo);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Responsive About Us Section --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr; /* Stack into a single column */
    gap: 40px;
  }
  .about-image-col {
    height: 350px; /* Adjust height for mobile */
    max-width: 90%;
    margin: 0 auto;
    border-radius: 80px 80px 12px 12px; /* Adjust arch radius for mobile */
  }
  .about-content-col {
    text-align: center;
  }
  .about-content-col .section-title {
    text-align: center;
  }
  .about-features-grid {
    grid-template-columns: 1fr; /* Stack features on mobile */
  }
  .feature-item {
    text-align: left; /* Keep feature text left-aligned */
  }
}



   
/* =========================================================
   Mission & Vision Section
   ========================================================= */





.section-title {
  font-family: var(--font-logo);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-grad-end);
  margin-bottom: 15px;
  margin-top: 40px;
  position: relative;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Add decorative golden line under heading */
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}



.mission-vision-section {
  position: relative;
  padding: 100px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

/* Subtle Islamic geometric pattern (SVG background overlay) */
.mission-vision-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.mv-card {
  background: linear-gradient(180deg, rgba(2,42,28,0.9), var(--bg-surface));
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: transform 0.4s var(--trans-ease), border-color 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
}

.mv-icon {
  font-size: 2.8rem;
  color: var(--accent-grad-start);
  margin-bottom: 15px;
}

.mv-title {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  color: var(--accent-grad-end);
  margin-bottom: 12px;
}

.mv-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* Divider */
.mv-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.mv-divider .ornament {
  display: block;
  width: 4px;
  height: 120px;
  background: linear-gradient(to bottom, #d4af37, #ffd700, #d4af37);
  border-radius: 2px;
  animation: shimmer 3s infinite linear;
}

/* Shimmer effect on divider */
@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 900px) {
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mv-divider {
    display: none;
  }
}

   






/* =========================================================
   3. Course Section Stylling Code
   ========================================================= */

/* =========================================================
   3. COURSES SECTION (ONE CARD AT A TIME - 6 CARDS)
   ========================================================= */

/* --- CSS Variables --- */


/* --- Base Styles for the Section --- */
.courses-section {
  padding: 100px 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-logo);
  color: var(--accent-grad-end);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* --- Mobile First: ONE CARD with Horizontal Scroll --- */
.courses-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 10px 20px 30px 20px;
  margin: 0 -20px;
  
  /* Smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.courses-grid::-webkit-scrollbar {
  height: 8px;
}
.courses-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 0 20px;
}
.courses-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  border-radius: 4px;
}

/* --- Course Card Styles --- */
.course-card {
  /* MOBILE: ONE CARD TAKES FULL WIDTH */
  flex: 0 0 calc(100vw - 60px);
  max-width: 400px;
  scroll-snap-align: center;
  
  /* Card styling */
  background: linear-gradient(135deg, rgba(2,42,28,0.95), var(--bg-surface));
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Course Icon Overlay */
.course-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--accent-grad-end);
  opacity: 0.8;
  background: rgba(0,0,0,0.5);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.course-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.course-title {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.course-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  font-size: 0.95rem;
}

.enroll-btn {
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  color: #000;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.enroll-btn:active {
  transform: scale(0.98);
}

/* --- Tablet: Show 2 cards --- */
@media (min-width: 768px) {
  .courses-grid {
    gap: 24px;
    padding: 10px 30px 30px 30px;
  }
  
  .course-card {
    flex: 0 0 calc(50vw - 60px);
    max-width: 380px;
  }
  
  .enroll-btn {
    width: auto;
    padding: 12px 32px;
  }
  
  .enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  }
}

/* --- Desktop: Grid layout with 3 columns --- */
@media (min-width: 1024px) {
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 30px;
    padding: 0;
    margin: 0;
  }
  
  .course-card {
    flex: none;
    max-width: none;
  }
  
  .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    border-color: var(--accent-grad-end);
  }
  
  .course-card:hover .course-icon {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
  }
}

/* --- Large Desktop: Adjust spacing --- */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  .courses-grid {
    gap: 36px;
  }
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Individual card animations */
@media (min-width: 1024px) {
  .course-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .course-card:nth-child(1) { animation-delay: 0.1s; }
  .course-card:nth-child(2) { animation-delay: 0.2s; }
  .course-card:nth-child(3) { animation-delay: 0.3s; }
  .course-card:nth-child(4) { animation-delay: 0.4s; }
  .course-card:nth-child(5) { animation-delay: 0.5s; }
  .course-card:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Optional: Scroll Indicators for Mobile --- */
.scroll-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .scroll-indicators {
    display: none;
  }
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-grad-end);
}


   
/* =========================================================
   4. Enrollment Popup (MODERNIZED & RESPONSIVE)
   ========================================================= */
.enroll-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(1, 28, 18, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.enroll-popup.open {
  opacity: 1;
  visibility: visible;
}

.enroll-content {
  width: 92%;
  max-width: 550px;
  background: linear-gradient(160deg, var(--bg-surface), #012a1f);
  padding: 30px 35px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s var(--trans-ease);
}
.enroll-popup.open .enroll-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.close-btn:hover {
  color: var(--accent-grad-end);
  transform: rotate(90deg);
}

#enrollTitle {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 25px;
  font-family: var(--font-logo);
  font-size: 1.8rem;
}

#enrollForm { display: grid; gap: 16px; }

#enrollForm input, #enrollForm textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#enrollForm input:focus, #enrollForm textarea:focus {
  outline: none;
  border-color: var(--accent-grad-end);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
#enrollForm input#courseField {
  background-color: rgba(0,0,0,0.4);
  font-weight: 600;
  color: var(--accent-grad-end);
}

#enrollForm .submit-btn {
  margin-top: 10px;
  font-size: 1.1rem;
}

.form-status { margin-top: 10px; text-align: center; font-weight: 600; min-height: 1.2em; }





/* =========================================================
   TEAM SECTION - CLEAN PREMIUM STYLE
   ========================================================= */
/* =========================================================
   4. TEAM SECTION (NEW 3D COVERFLOW STYLE)
   ========================================================= */
.team-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden; /* Hide overflowing elements */
}

.urdu-name {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 1rem;
  color: #d4af37;
  display: block;
  margin-top: 4px;
}


/* The main Swiper container */
.team-swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* This is the individual slide that contains the card */
.team-swiper .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px; /* Define a fixed width for the slides */
  height: auto;
  opacity: 0.4; /* Inactive slides are faded */
  transform: scale(0.8); /* Inactive slides are smaller */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* The active (center) slide */
.team-swiper .swiper-slide-active {
  opacity: 1; /* Fully visible */
  transform: scale(1); /* Full size */
}

/* The card itself, using the floating profile design */
.team-card {
  position: relative;
  text-align: center;
}
.card-content {
  background: linear-gradient(160deg, var(--bg-surface), #012a1f);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 80px 25px 25px 25px;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}
.card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent-grad-end);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* All other card content styles (name, title, details, etc.) remain the same */
.card-name { font-family: var(--font-logo); font-size: 1.5rem; color: var(--text-primary); }
.card-title { color: var(--accent-grad-end); font-weight: 600; margin: 5px 0 20px; }
.card-socials { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.card-socials a { display: flex; justify-content: center; align-items: center; width: 35px; height: 35px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-secondary); transition: all 0.3s ease; }
.card-socials a:hover { background-color: var(--accent-grad-end); color: var(--bg-dark); border-color: var(--accent-grad-end); }
.card-details { color: var(--text-secondary); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out; }
.team-card.is-open .card-details { max-height: 500px; margin-top: 15px; }
.card-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); margin-top: 20px; font-weight: 600; transition: color 0.3s ease; }
.card-toggle:hover { color: var(--accent-grad-end); }
.card-toggle i { transition: transform 0.5s ease; }
.team-card.is-open .card-toggle i { transform: rotate(180deg); }

/* --- Styling for Swiper Controls --- */
.team-swiper .swiper-pagination-bullet {
  background-color: var(--text-secondary);
  opacity: 0.6;
}
.team-swiper .swiper-pagination-bullet-active {
  background-color: var(--accent-grad-end);
  opacity: 1;
  transform: scale(1.2);
}
.team-swiper .swiper-button-prev,
.team-swiper .swiper-button-next {
  color: var(--accent-grad-end);
  transition: transform 0.3s ease;
}
.team-swiper .swiper-button-prev:hover,
.team-swiper .swiper-button-next:hover {
  transform: scale(1.1);
}


/* Hide arrows completely */
.team-swiper .swiper-button-prev,
.team-swiper .swiper-button-next {
  display: none !important;
}

/* Enhanced pagination dots */
.team-swiper .swiper-pagination {
  bottom: 0;
}

.team-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(212, 175, 55, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.team-swiper .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 5px;
  background: var(--accent-grad-end);
}







//* =========================================================
   3.8. WHY CHOOSE US SECTION (ADVANCED STYLING)
   ========================================================= */
.choose-us-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
}

.choose-us-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px 60px;
  align-items: center;
  margin-top: 40px;
}

/* --- The Central Image --- */
.center-image {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.center-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  position: relative;
  z-index: 2;
}

/* Animated border */
.center-image::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg, 
    var(--accent-grad-end), 
    rgba(212, 175, 55, 0.3), 
    var(--accent-grad-end)
  );
  animation: rotateGradient 6s linear infinite;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.center-image:hover::before { opacity: 1; }

@keyframes rotateGradient {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Feature Cards --- */
.feature-card {
  background: linear-gradient(160deg, var(--bg-surface), #012a1f);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.feature-card i {
  font-size: 2rem;
  color: var(--accent-grad-end);
  margin-bottom: 15px;
  display: inline-block;
}
.feature-card h4 {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Text alignment (desktop) */
.choose-us-grid .feature-card:nth-child(1),
.choose-us-grid .feature-card:nth-child(3) {
  text-align: right;
}
.choose-us-grid .feature-card:nth-child(2),
.choose-us-grid .feature-card:nth-child(4) {
  text-align: left;
}

/* =======================
   Responsive Adjustments
   ======================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .choose-us-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns */
    grid-template-rows: auto;
    gap: 25px;
  }
  .center-image {
    grid-column: 1 / -1; /* full width */
    grid-row: auto;
    margin: 0 auto 30px;
    width: 200px;
    height: 200px;
  }
  .choose-us-grid .feature-card {
    text-align: center; /* cleaner look */
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .choose-us-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  .center-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
  }
  .choose-us-grid .feature-card {
    text-align: center;
  }
}









/* =========================================================
   5. CONTACT SECTION (FINAL UNIFIED PANEL STYLE)
   ========================================================= */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* KEY FIX: This creates the single panel look */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Form is slightly wider */
  gap: 0; /* NO gap between columns */
  
  background: linear-gradient(160deg, #012a1f, var(--bg-surface));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden; /* This is essential for the single-panel effect */
}

/* --- Form Column (Left) --- */
.contact-form-col {
  padding: 40px;
}

.contact-form-col h3,
.contact-info-col h3 {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  color: var(--text-primary);
  
  margin-bottom: 25px;
}

#contactForm {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--accent-grad-end);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
#contactForm .cta-button {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

/* --- Information Panel (Right) --- */
.contact-info-col {
  padding: 40px;
  /* This creates the vertical separator line */
  border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-details {
  list-style: none;
  display: grid;
  gap: 25px;
  margin-bottom: 40px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.contact-details i {
  font-size: 1.5rem;
  width: 25px;
  text-align: center;
  color: var(--accent-grad-end);
}
.contact-info-col h4 {
  font-family: var(--font-logo);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.contact-socials {
  display: flex;
  gap: 15px;
}
.contact-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.3s ease;
}
.contact-socials a:hover {
  background-color: var(--accent-grad-end);
  color: var(--bg-dark);
  transform: scale(1.1);
}


/* Default: side by side */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Form is wider */
  gap: 0;
  background: linear-gradient(160deg, #012a1f, var(--bg-surface));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack columns */
  }
  .contact-info-col {
    border-left: none; /* remove vertical line */
    border-top: 1px solid rgba(212, 175, 55, 0.2); /* add horizontal line */
  }
  .form-row {
    grid-template-columns: 1fr; /* stack inputs */
  }
  .contact-form-col, 
  .contact-info-col {
    padding: 30px 25px;
  }
}





/* =========================================================
   6. TESTIMONIALS SECTION (ADVANCED STYLE)
   ========================================================= */
/* Quran Academy Testimonial Section */
.quran-testimonials-section {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  text-align: center;
  padding: 100px 20px;
  transition: background var(--trans-speed) var(--trans-ease);
}

.quran-testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Matching Heading Style from "Our Dedicated Tutors" */
.glow-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color:#d4af37; /* gold tone */
  text-transform: capitalize;
  font-size: 2.2rem;
  text-shadow: 0 0 15px rgba(246, 201, 74, 0.3);
  margin-bottom: 15px;
}

.glow-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  margin-bottom: 50px;
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  min-height: 200px;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-text {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  font-family: var(--font-ui);
  color: #f6c94a;
  font-weight: 500;
  font-size: 1rem;
}

/* Dots Navigation */
.testimonial-dots {
  margin-top: 40px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #f6c94a;
  transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .glow-heading {
    font-size: 1.8rem;
  }

  .glow-subtitle {
    font-size: 0.95rem;
  }

  .testimonial-text {
    font-size: 1rem;
    padding: 0 10px;
  }
}



/* ===== Glowing Divider Line Under Heading ===== */
.glow-divider {
  width: 80px; /* Line length */
  height: 4px; /* Line thickness */
  margin: 18px auto 30px; /* Centered with spacing */
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15),
              0 0 8px rgba(212, 175, 55, 0.08);
  transition: all var(--trans-speed) var(--trans-ease);
}

/* Subtle hover glow effect (optional) */
.glow-divider:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.25),
              0 0 12px rgba(212, 175, 55, 0.12);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .glow-divider {
    width: 60px;
    height: 3px;
    margin: 14px auto 24px;
  }
}





/* HERO SECTION STYLING */


.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  height: 90vh; /* Full height look for desktop */
  object-fit: cover; /* Maintains aspect ratio */
  display: block;
}

/* Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 5;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Dots */
.slider-dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
}

.slider-dots .dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots .dot.active {
  background-color: #d4af37;
  transform: scale(1.3);
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
  .slides img {
    height: 55vh; /* smaller height for phones */
    object-fit: cover;
  }

  .slider-btn {
    font-size: 20px;
    padding: 8px 12px;
  }
}




/* === COUNTING SECTION === */
.counting-section {
  /* background: linear-gradient(135deg, #0e0e1f, #1b1b38); */
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.counting-section .section-title {
  font-size: 2.2rem;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212,175,55,0.4);
  margin-bottom: 10px;
}

.counting-section .section-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 50px;
}

.counting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  justify-items: center;
}

.count-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.count-card:hover {
  transform: translateY(-10px) rotateX(8deg);
  box-shadow: 0 10px 30px rgba(212,175,55,0.25);
}

.count-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f6c94a;
  text-shadow: 0 0 20px rgba(246,201,74,0.5);
  margin-bottom: 10px;
}

.count-label {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

/* Responsive */
@media (max-width: 768px) {
  .counting-section {
    padding: 70px 10px;
  }
  .count-number {
    font-size: 2rem;
  }
}









/* =========================================================
   5. Footer
   ========================================================= */
.site-footer {
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    padding: 80px 0 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}
.footer-logo { display: inline-block; margin-bottom: 20px; font-size: 1.8rem; color: #f0f5f3; font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; }
.footer-description { line-height: 1.7; margin-bottom: 25px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem; transition: all 0.3s ease;
}
.social-icons a:hover {
    background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
    color: #fff; border-color: transparent; transform: translateY(-3px);
}
.footer-heading {
    font-family: var(--font-logo); font-size: 1.2rem; color: var(--text-primary);
    margin-bottom: 25px; position: relative; padding-bottom: 10px;
}
.footer-heading::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
}
.footer-column.links ul { display: flex; flex-direction: column; gap: 15px; }
.footer-column.links a, .footer-legal-links a {
    position: relative; padding-bottom: 4px; transition: color 0.3s ease;
}
.footer-column.links a::after, .footer-legal-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1.5px;
    background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--trans-ease);
}
.footer-column.links a:hover, .footer-legal-links a:hover { color: var(--text-primary); }
.footer-column.links a:hover::after, .footer-legal-links a:hover::after { transform: scaleX(1); }
.newsletter-form {
    display: flex; margin-top: 15px; background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden;
}
.newsletter-form input {
    flex-grow: 1; background: none; border: none; outline: none;
    padding: 12px 20px; color: var(--text-primary); font-family: var(--font-ui);
}
.newsletter-form button {
    padding: 0 18px; background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
    color: #fff; font-size: 1.1rem;
}
.footer-bottom {
    padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.footer-legal-links { display: flex; gap: 25px; }








/* =========================================================
   6. Floating Action Buttons
   ========================================================= */
.back-to-top, .whatsapp-chat-button {
    position: fixed; z-index: 500; width: 45px; height: 45px; border-radius: 50%;
    display: flex; justify-content:center; align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s ease;
}
.back-to-top {
    bottom: 25px; right: 25px;
    background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
    color: #fff; font-size: 1.2rem;
}
.whatsapp-chat-button {
    bottom: 25px; left: 25px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #fff; font-size: 1.8rem;
}
.back-to-top.is-visible, .whatsapp-chat-button.is-visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover, .whatsapp-chat-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(8, 160, 109, 0.4);
}

/* =========================================================
   7. Utility Classes (e.g. Animations)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   8. Preloader (Gold Glow Quran Theme)
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #012b1f 0%, #023e2b 100%);
  z-index: 2147483647;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  opacity: 1;
  visibility: visible;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ✅ vertical + horizontal centering */
  gap: 15px;
  text-align: center;
}

/* Glowing Book Logo */
.preloader-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  transform-origin: center;
  animation: logo-pulse 1.4s ease-in-out infinite, glow 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
}

/* Golden glowing pulse animation */
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6)); }
  50% { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.9)); }
}

/* Text under logo */
.preloader-text {
  color: #d4af37;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
  animation: text-fade-in 1.2s ease 0.3s both;
}

@keyframes text-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .preloader-logo {
    width: 70px;
    height: 70px;
  }

  .preloader-text {
    font-size: 0.9rem;
  }
}



/* Prevent scrolling during load */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* =========================================================
   9. Responsive Design & Mobile Menu
   ========================================================= */
@media (max-width: 900px) {
  /* --- Mobile Header --- */
  .header-actions .cta-button { display: none; }
  .menu-toggle { display: block; width: 32px; height: 24px; position: relative; z-index: 1002; }
  .menu-toggle span {
    position: absolute; display: block; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
    border-radius: 4px; left: 0; transition: all 0.4s ease;
  }
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 10px; }
  .menu-toggle span:nth-child(3) { top: 20px; }
  .menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

  .main-nav {
    position: fixed; top: var(--header-height); right: 0;
    background: rgba(2, 42, 28, 0.98); backdrop-filter: blur(8px);
    width: 100%; max-height: 0; overflow: hidden;
    opacity: 0; transform: translateY(-10px);
    transition: all 0.5s var(--trans-ease);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav.is-open { max-height: 500px; opacity: 1; transform: translateY(0); }
  .main-nav ul { flex-direction: column; text-align: center; padding: 20px 0; gap: 0; }
  .main-nav li a { display: block; padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .main-nav li:last-child a { border-bottom: none; }

  /* --- Mobile Dropdown Menu --- */
  .mega-menu {
    position: static; width: 100%; background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none; border: none; border-radius: 0; padding: 0; margin-top: 5px;
    backdrop-filter: none; -webkit-backdrop-filter: none; display: block;
    max-height: 0; overflow: hidden; opacity: 1; visibility: visible;
    transform: none; transition: max-height 0.5s ease-in-out;
  }
  .mega-menu-links { padding: 5px 0; }
  .mega-menu-links a { padding-left: 40px; }
  .mega-menu-cta { display: none; }
  .menu-item-has-children.is-open > .mega-menu { max-height: 500px; }

  /* --- Mobile Course Cards --- */
  .courses-grid {
    display: flex; gap: 14px; overflow-x: auto; padding: 0 14px;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
  }
  .course-card {
    flex: 0 0 48%; max-width: 48%; min-width: 48%; scroll-snap-align: center;
  }
  .course-img { height: 140px; }
  .courses-grid::-webkit-scrollbar { height: 8px; }
  .courses-grid::-webkit-scrollbar-track { background: transparent; }
  .courses-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end));
    border-radius: 999px;
  }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  /* Tweak for very small screens */
  .course-card { flex: 0 0 80%; max-width: 80%; min-width: 80%; }
}



/* =========================================================
   7. SCROLL ANIMATION SYSTEM (ENHANCED)
   ========================================================= */

/* The base state for all animated elements (hidden by default) */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Different animation types */
.reveal.fade-up {
  transform: translateY(40px);
}
.reveal.fade-in-left {
  transform: translateX(-40px);
}
.reveal.fade-in-right {
  transform: translateX(40px);
}
.reveal.zoom-in {
  transform: scale(0.95);
}

/* The final state when the element is visible */
.reveal.visible {
  opacity: 1;
  transform: none; /* Resets transform to its default (translateY(0), scale(1), etc.) */
}

/* --- Staggered Animation for Grid Items --- */
/* This makes items in a grid appear one after another */
.course-card.reveal:nth-child(2),
.team-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.course-card.reveal:nth-child(3),
.team-card.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.course-card.reveal:nth-child(4),
.team-card.reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.course-card.reveal:nth-child(5),
.team-card.reveal:nth-child(5) {
  transition-delay: 0.4s;
}
.course-card.reveal:nth-child(6),
.team-card.reveal:nth-child(6) {
  transition-delay: 0.5s;
}





/* =========================================================
   8. NEW PAGE STYLES (TRIAL, FAQ, BLOG)
   ========================================================= */
.page-content-section { 
  padding: 80px 0; 
}

.page-title { 
  font-family: var(--font-logo); 
  color: var(--accent-grad-end); 
  font-size: 2.8rem; 
  text-align: center; 
}

.trial-page-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  align-items: flex-start; 
  margin-top: 40px; 
}

.trial-info-col h3 { 
  font-family: var(--font-logo); 
  font-size: 1.8rem; 
  color: var(--text-primary); 
  margin-bottom: 20px; 
}

.trial-info-col ul { 
  list-style: none; 
  margin-bottom: 30px; 
  display: grid; 
  gap: 15px; 
}

.trial-info-col li { 
  display: flex; 
  align-items: flex-start; 
  gap: 15px; 
  color: var(--text-secondary); 
  line-height: 1.6; 
}

.trial-info-col i { 
  color: var(--accent-grad-end); 
  margin-top: 5px; 
}

.trial-cta-box { 
  background: var(--bg-surface); 
  border: 1px solid rgba(212, 175, 55, 0.2); 
  border-radius: 12px; 
  padding: 25px; 
}

#trialForm { 
  display: grid; 
  gap: 20px; 
}

#trialForm input, 
#trialForm select, 
#trialForm textarea { 
  width: 100%; 
  padding: 14px 18px; 
  border-radius: 8px; 
  background: rgba(0,0,0,0.25); 
  border: 1px solid rgba(255,255,255,0.1); 
  color: var(--text-primary); 
  font-family: var(--font-ui); 
  font-size: 1rem; 
}

#trialForm .cta-button { 
  width: 100%; 
  padding: 14px; 
  font-size: 1.1rem; 
}

.faq-accordion { 
  max-width: 800px; 
  margin: 40px auto 0; 
  display: grid; 
  gap: 15px; 
}

.faq-item { 
  background: var(--bg-surface); 
  border: 1px solid rgba(212, 175, 55, 0.2); 
  border-radius: 12px; 
  overflow: hidden; 
}

.faq-question { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%; 
  padding: 20px; 
  text-align: left; 
  font-size: 1.1rem; 
  font-weight: 600; 
}

.faq-question i { 
  transition: transform 0.3s ease; 
}

.faq-item.active .faq-question i { 
  transform: rotate(45deg); 
}

.faq-answer { 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.4s ease; 
}

.faq-answer p { 
  padding: 0 20px 20px; 
  color: var(--text-secondary); 
  line-height: 1.7; 
}

.blog-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px; 
  margin-top: 40px; 
}

.blog-post-card { 
  background: var(--bg-surface); 
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid rgba(212, 175, 55, 0.1); 
  transition: transform 0.3s ease; 
}

.blog-post-card:hover { 
  transform: translateY(-5px); 
}

.post-image-link img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
}

.post-content { 
  padding: 25px; 
}

.post-category { 
  background: var(--accent-grad-end); 
  color: var(--bg-dark); 
  padding: 4px 10px; 
  border-radius: 5px; 
  font-size: 0.8rem; 
  font-weight: 600; 
}

.post-title { 
  font-family: var(--font-logo); 
  margin: 15px 0; 
  font-size: 1.3rem; 
}

.post-excerpt { 
  color: var(--text-secondary); 
  margin-bottom: 20px; 
}

.post-read-more { 
  color: var(--accent-grad-end); 
  font-weight: 600; 
}




/* =========================================================
   9. ADVANCED ENROLLMENT PAGE STYLES
   ========================================================= */
/* =========================================================
   9. ADVANCED ENROLLMENT PAGE STYLES (REFINED)
   ========================================================= */

.input-error {
  border: 2px solid #ff4d4d !important;
  background-color: rgba(255, 77, 77, 0.05);
}


   .enrollment-container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--bg-surface);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* --- Progress Bar --- */
.progress-bar {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin-bottom: 40px;
  position: relative;
}
/* The background line */
.progress-bar::before {
  content: '';
  position: absolute;
  top: 15px; /* Aligns with the center of the circle */
  left: 0;
  height: 2px;
  width: 100%;
  background-color: rgba(212, 175, 55, 0.2);
  z-index: 0;
}
.progress-step {
  position: relative;
  text-align: center;
  color: var(--text-secondary);
  flex: 1;
}
/* The circle */
.progress-step::before {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s ease;
  z-index: 1;
  position: relative;
}
.progress-step.active {
  color: var(--accent-grad-end);
  font-weight: 600;
}
.progress-step.active::before {
  background-color: var(--accent-grad-end);
  border-color: var(--accent-grad-end);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- Form Steps & Inputs --- */
#enrollmentForm .form-step { display: none; }
#enrollmentForm .form-step.active { display: grid; gap: 20px; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-step h3 {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-align: center;
}
/* General input styling */
#enrollmentForm input,
#enrollmentForm select,
#enrollmentForm textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#enrollmentForm input:focus,
#enrollmentForm select:focus,
#enrollmentForm textarea:focus {
  outline: none;
  border-color: var(--accent-grad-end);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* --- Visual Course Selection --- */
.course-selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.course-selection-grid input[type="radio"] { display: none; }
.course-card-option { padding: 20px; border-radius: 12px; border: 2px solid rgba(212, 175, 55, 0.2); text-align: center; cursor: pointer; transition: all 0.3s ease; }
.course-card-option i { font-size: 2rem; color: var(--accent-grad-end); margin-bottom: 10px; }
.course-card-option span { display: block; font-weight: 600; color: var(--text-secondary); }
.course-selection-grid input[type="radio"]:checked + .course-card-option {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-grad-end);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.course-selection-grid input[type="radio"]:checked + .course-card-option span {
  color: var(--text-primary);
}


/* --- Form Buttons --- */
.form-buttons { display: flex; justify-content: space-between; margin-top: 20px; }
.btn-secondary { background-color: transparent; border: 2px solid var(--text-secondary); color: var(--text-secondary); padding: 12px 30px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; }
.btn-secondary:hover { background-color: var(--text-secondary); color: var(--bg-dark); }
.btn-primary { background: linear-gradient(90deg, var(--accent-grad-start), var(--accent-grad-end)); color: #fff; padding: 14px 30px; border-radius: 50px; font-weight: 600; border: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
.btn-submit { display: none; }

/* --- "What Happens Next" Section --- */
.what-happens-next { max-width: 800px; margin: 80px auto 0; text-align: center; }
.what-happens-next h3 { font-family: var(--font-logo); font-size: 1.8rem; margin-bottom: 40px; }
.timeline { display: flex; justify-content: space-between; text-align: center; position: relative; }
.timeline::before { content: ''; position: absolute; top: 25px; left: 15%; width: 70%; height: 2px; background: rgba(212, 175, 55, 0.2); }
.timeline-item { flex: 1; padding: 0 20px; position: relative; }
.timeline-icon { width: 50px; height: 50px; line-height: 50px; border-radius: 50%; background-color: var(--accent-grad-end); color: var(--bg-dark); font-weight: 700; display: inline-block; z-index: 1; position: relative; font-size: 1.2rem; }
.timeline-item p { color: var(--text-secondary); margin-top: 15px; }

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .enrollment-container { padding: 25px; }
  .progress-bar { font-size: 0.8rem; }
  .course-selection-grid { grid-template-columns: 1fr 1fr; }
  .timeline { flex-direction: column; gap: 30px; }
  .timeline::before { display: none; }
}





/* =========================================================
   10. RTL (RIGHT-TO-LEFT) STYLES
   ========================================================= */
html.rtl {
  direction: rtl;
}

/* Fixes for specific elements in RTL mode */
html.rtl .main-nav .menu-item-has-children > a i {
  margin-left: 0;
  margin-right: 6px; /* Move the arrow to the other side */
}
html.rtl .language-switcher {
  margin-left: 0;
  margin-right: 20px;
}
html.rtl .feature-item {
  text-align: right;
}
/* You may need to add more specific RTL fixes here as you find them */


/* footer Accordian  */

/* Footer Accordion */
.footer-heading.accordion-toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-heading.accordion-toggle i {
  transition: transform 0.3s ease;
}

.footer-heading.accordion-toggle.active i {
  transform: rotate(180deg);
}

/* Hide content by default on mobile */
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

/* Always show on desktop */
@media (min-width: 769px) {
  .accordion-content {
    max-height: none !important;
  }
}
