/*
Theme Name: Sabeely V1.1
Theme URI: https://sabeely.com
Author: Sabeely Team
Author URI: https://sabeely.com
Description: A peaceful Quran and Tajweed learning platform theme for Sabeely (v1.1) with full sections, responsive phone banner, bilingual support, and complete interactive animations.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabeely-v1.1
*/

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --cream: #FAF6F0;
  --cream-light: #FDF9F3;
  --cream-dark: #F0E8DA;
  --brown-dark: #3D2B1F;
  --brown: #5C3D2E;
  --brown-medium: #6B4C3B;
  --brown-light: #8B6F5E;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dark: #A68B55;
  --olive: #6B7B4F;
  --olive-light: #8A9A6D;
  --olive-dark: #566640;
  --white: #FFFFFF;
  --text-dark: #3D2B1F;
  --text-body: #5C4A3A;
  --text-light: #8B7B6B;
  --border-light: rgba(107, 123, 79, 0.2);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  
  
  
  
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Utility Classes */
.mobile-br {
  display: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent; /* No background at top to remove gap */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(61, 43, 31, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar-links a:hover {
  color: var(--brown-dark);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links .btn-nav {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 26px;
  background: var(--brown-dark);
  color: var(--cream);
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.navbar-links .btn-nav::after {
  display: none;
}

.navbar-links .btn-nav:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.25);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--brown-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 0; /* Starts at the very top of the screen */
  position: relative;
}

.hero-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-container picture {
  display: block;
  width: 100%;
}

.hero-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay-content {
  position: absolute;
  left: 8.5%;
  top: 15%; /* Vertically centered over the new banner background */
  z-index: 10;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5vw;
  opacity: 1 !important;
  transform: none !important;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1.1vw;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8vw;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.25;
}

.hero-para {
  font-family: var(--font-body);
  font-size: 1.2vw;
  color: var(--text-body);
  line-height: 1.8;
  font-weight: 500;
}

.hero-btn {
  margin-top: 0.5vw;
}

.hero-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.btn-primary {
  font-family: var(--font-ui);
  display: inline-block;
  padding: 16px 48px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

/* ===== MEANING SECTION ===== */
.meaning-section {
  padding: var(--section-padding);
}

.meaning-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.meaning-section .section-header img {
  margin: 0 auto;
  max-width: 420px;
}

.meaning-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.meaning-image {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.meaning-image img {
  width: 300px;
  height: auto;
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.meaning-text {
  flex: 1;
}

.meaning-text h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.meaning-highlight {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.meaning-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
}

/* ===== LEARN REFLECT GROW SECTION ===== */
.lrg-section {
  padding: 60px 0 100px;
}

.lrg-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.lrg-section .section-header img {
  margin: 0 auto;
  max-width: 420px;
}

.lrg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.lrg-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.lrg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--olive), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.lrg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(61, 43, 31, 0.1);
  border-color: var(--gold-light);
}

.lrg-card:hover::before {
  transform: scaleX(1);
}

.lrg-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===== WHY SABEELY SECTION ===== */
.why-section {
  padding: var(--section-padding);
}

.why-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.why-section .section-header img {
  margin: 0 auto;
  max-width: 350px;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.why-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: all 0.4s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(61, 43, 31, 0.1);
  border-color: var(--gold-light);
}

.why-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== YOUR JOURNEY SECTION ===== */
.journey-section {
  padding: var(--section-padding);
}

.journey-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.journey-section .section-header img {
  margin: 0 auto;
  max-width: 350px;
}

.journey-steps {
  max-width: 1000px;
  margin: 0 auto;
}

.journey-steps img {
  width: 100%;
  height: auto;
}

.mobile-journey-timeline,
.mobile-journey-container {
  display: none !important;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0 100px;
}

.cta-section .container {
  max-width: 900px;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.cta-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-overlay-btn {
  position: absolute;
  left: 33.25%;
  top: 72.55%;
  width: 33.33%;
  height: 9.22%;
  cursor: pointer;
  z-index: 10;
  background: transparent;
}


/* ===== FOOTER ===== */
.footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--olive), var(--gold-light), var(--olive-light));
}

.footer-content {
  display: flex;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-about {
  flex: 2;
}

.footer-about .footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(2);
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250, 246, 240, 0.75);
  max-width: 480px;
}

.footer-links-col {
  flex: 1;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.7);
  transition: all 0.3s ease;
}

.footer-links-col a:hover {
  color: var(--gold-light);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.5);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== DECORATIVE DIVIDER ===== */
.section-divider {
  text-align: center;
  padding: 10px 0;
}

.section-divider .divider-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.section-divider .divider-line::before,
.section-divider .divider-line::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-divider .divider-line span {
  font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  :root {
    --section-padding: 70px 0;
  }

  .meaning-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .meaning-image {
    flex: none;
  }

  .why-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-br {
    display: inline !important;
  }

  .desktop-only-br {
    display: none !important;
  }

  :root {
    --section-padding: 20px 0 !important; /* Reduced to decrease gaps */
    --container-padding: 0 16px;
  }

  .lrg-section {
    padding: 20px 0 20px !important; /* Reduced mobile padding */
  }

  .cta-section {
    padding: 20px 0 20px !important;
  }

  .meaning-section .section-header { margin-bottom: 12px !important; }
  .lrg-section .section-header { margin-bottom: 12px !important; }
  .why-section .section-header { margin-bottom: 12px !important; }
  .journey-section .section-header { margin-bottom: 12px !important; }

  .section-divider {
    padding: 4px 0 !important; /* Reduced gap between dividers */
  }

  /* Mobile Nav */
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .navbar-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 0;
    margin-bottom: 0 !important;
    overflow: visible !important;
  }

  .hero-container {
    overflow: visible !important;
  }

  .hero-overlay-content {
    position: absolute !important;
    left: 6.5% !important;
    top: 23% !important;
    width: 54% !important;
    max-width: 54% !important;
    padding: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
    z-index: 10;
    opacity: 1 !important;
    transform: none !important;
  }

  [dir="rtl"] .hero-overlay-content {
    right: 6.5% !important;
    left: auto !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .hero-subtitle {
    font-size: clamp(0.7rem, 2.4vw, 0.95rem) !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    color: var(--olive) !important;
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
  }

  .hero-title {
    font-size: clamp(1.35rem, 4.8vw, 2.2rem) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: var(--brown-dark) !important;
    margin-bottom: 4px !important;
  }

  .hero-para {
    font-size: clamp(0.8rem, 2.9vw, 1.05rem) !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    font-weight: 500 !important;
    color: var(--text-body) !important;
  }

  .hero-btn {
    padding: 12px 26px !important;
    font-size: clamp(0.78rem, 2.7vw, 0.95rem) !important;
    margin-top: clamp(18px, 5vw, 32px) !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(61, 43, 31, 0.25) !important;
  }

  .btn-primary {
    padding: 12px 32px;
    font-size: 0.85rem;
  }

  /* Meaning */
  .meaning-section .section-header img {
    max-width: 300px;
  }

  .meaning-image img {
    width: 220px;
  }

  .meaning-text h3 {
    font-size: 1.3rem;
  }

  /* LRG Cards Coverflow Carousel on Mobile */
  .lrg-section {
    padding: 30px 0 40px !important;
    overflow: hidden !important;
  }

  .lrg-cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  .lrg-card {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 8px 24px rgba(61, 43, 31, 0.08) !important;
    border-radius: 12px !important;
    background: var(--cream-light) !important;
    opacity: 1 !important;
  }

  /* When JS adds .coverflow, transform into 3D Coverflow slider */
  .lrg-cards.coverflow {
    flex-direction: row !important;
    position: relative !important;
    justify-content: center !important;
    align-items: center !important;
    height: 340px !important;
    max-width: 100% !important;
    perspective: 800px !important;
    overflow: visible !important;
  }

  .lrg-cards.coverflow .lrg-card {
    position: absolute !important;
    width: 220px !important;
    max-width: 220px !important;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    cursor: pointer !important;
    transform-style: preserve-3d !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .lrg-cards.coverflow .lrg-card.active {
    transform: translate3d(0, 0, 0) scale(1.05) !important;
    z-index: 3 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 14px 32px rgba(61, 43, 31, 0.14) !important;
    filter: none !important;
  }

  .lrg-cards.coverflow .lrg-card.prev {
    transform: translate3d(-110px, 0, -100px) rotateY(25deg) scale(0.85) !important;
    z-index: 2 !important;
    opacity: 0.75 !important;
    pointer-events: auto !important;
    filter: grayscale(15%) blur(0.3px) !important;
  }

  .lrg-cards.coverflow .lrg-card.next {
    transform: translate3d(110px, 0, -100px) rotateY(-25deg) scale(0.85) !important;
    z-index: 2 !important;
    opacity: 0.75 !important;
    pointer-events: auto !important;
    filter: grayscale(15%) blur(0.3px) !important;
  }

  .lrg-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 15px !important;
  }

  .lrg-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(61, 43, 31, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }

  .lrg-dot.active {
    background: var(--gold) !important;
    transform: scale(1.2) !important;
    width: 18px !important;
    border-radius: 4px !important;
  }

  .lrg-section .section-header img {
    max-width: 300px;
  }

  /* Why Cards - Playing Card Deck Interaction */
  .why-section {
    padding: 30px 0 60px !important;
  }

  .why-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .why-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    box-shadow: 0 6px 20px rgba(61, 43, 31, 0.06) !important;
    border-radius: 16px !important;
    background: var(--cream-light) !important;
  }

  .why-cards::after {
    display: none !important;
  }

  .why-cards.expanded::after {
    content: "✦ Tap cards to collapse ✦" !important;
    position: absolute !important;
    bottom: -40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    text-align: center !important;
  }

  @keyframes cardPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }

  .why-section .section-header img {
    max-width: 280px;
  }

  /* Journey */
  /* Journey Mobile Styles & Animations */
  .journey-section .section-header img {
    max-width: 260px;
  }

  .desktop-only-journey {
    display: none !important;
  }

  /* Mobile Journey Scroll Unroll Experience */
  .mobile-journey-container {
    display: block !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 20px 14px 40px 14px !important;
    position: relative !important;
    --reveal-percent: 0%;
  }

  .journey-mobile-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
  }

  .journey-mobile-img {
    width: 100%;
    height: auto;
    display: block;
    /* Soft gradient mask that unrolls the image cleanly as user scrolls into section */
    mask-image: linear-gradient(
      to bottom, 
      rgba(0, 0, 0, 1) 0%, 
      rgba(0, 0, 0, 1) var(--reveal-percent, 0%), 
      rgba(0, 0, 0, 0) calc(var(--reveal-percent, 0%) + 12%)
    );
    -webkit-mask-image: linear-gradient(
      to bottom, 
      rgba(0, 0, 0, 1) 0%, 
      rgba(0, 0, 0, 1) var(--reveal-percent, 0%), 
      rgba(0, 0, 0, 0) calc(var(--reveal-percent, 0%) + 12%)
    );
    opacity: 1;
    transform: translateY(0);
    transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 8px 24px rgba(61, 43, 31, 0.08));
    will-change: mask-image, -webkit-mask-image;
  }

  /* Hide golden vertical line */
  .journey-beam-path {
    display: none !important;
  }

  @keyframes starPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(0.9); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.3); }
  }

  .mobile-journey-container.fully-revealed .journey-mobile-img {
    filter: drop-shadow(0 14px 38px rgba(196, 162, 101, 0.28));
  }

  /* CTA Mobile Button */
  .cta-overlay-btn {
    left: 50% !important;
    top: 68.895% !important;
    transform: translate(-50%, -50%) !important;
    width: 125px !important;
    height: 22px !important;
    background-color: var(--brown-dark) !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(61, 43, 31, 0.2) !important;
    border: 1px solid var(--gold-light) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
  }

  .cta-overlay-btn::after {
    content: "BEGIN YOUR PATH" !important;
    color: var(--cream) !important;
 
    font-family: var(--font-ui) !important;
    font-size: 0.58rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-about p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .navbar-logo img {
    height: 34px;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 0.8rem;
  }

  .meaning-text h3 {
    font-size: 1.15rem;
  }

  .meaning-text p {
    font-size: 0.95rem;
  }

  .cta-overlay-btn {
    width: 110px !important;
    height: 20px !important;
  }

  .cta-overlay-btn::after {
    font-size: 0.52rem !important;
    letter-spacing: 0.8px !important;
  }
}

/* ===== MOBILE NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(61, 43, 31, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== PROGRAMS NAVBAR DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196, 162, 101, 0.3);
  border-radius: 16px;
  padding: 10px;
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(61, 43, 31, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1050;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--brown-dark);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(196, 162, 101, 0.12);
  color: var(--brown-dark);
  transform: translateX(4px);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brown-dark);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ===== PROGRAM HERO & PAGES ===== */
.program-hero {
  padding: 140px 0 70px 0;
  background: linear-gradient(180deg, var(--cream) 0%, #F5EFE4 100%);
  position: relative;
  overflow: hidden;
}

.program-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.program-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(196, 162, 101, 0.15);
  border: 1px solid rgba(196, 162, 101, 0.4);
  border-radius: 50px;
  color: var(--brown-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.program-hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.program-hero-content p {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: rgba(61, 43, 31, 0.82);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 560px;
}

.program-hero-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(61, 43, 31, 0.15);
  border: 1px solid rgba(196, 162, 101, 0.3);
}

.program-hero-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.program-hero-img-wrap:hover img {
  transform: scale(1.04);
}

/* ===== BENTO TOPICS GRID ===== */
.topics-section {
  padding: 60px 0;
  background: var(--cream);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.topic-card {
  background: #FFFFFF;
  border: 1px solid rgba(196, 162, 101, 0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 45px rgba(61, 43, 31, 0.12);
  border-color: var(--gold);
}

.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(196, 162, 101, 0.12);
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.topic-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.topic-card p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(61, 43, 31, 0.75);
  line-height: 1.6;
}

/* ===== PROGRESSION TIMELINE ===== */
.progression-section {
  padding: 60px 0;
  background: #F4EDE0;
}

.progression-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.progression-step {
  flex: 1;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(196, 162, 101, 0.25);
  box-shadow: 0 6px 20px rgba(61, 43, 31, 0.04);
  position: relative;
  text-align: center;
}

.progression-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brown-dark);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 12px rgba(196, 162, 101, 0.4);
}

.progression-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.progression-step p {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: rgba(61, 43, 31, 0.75);
  line-height: 1.5;
}

/* ===== FAQ ACCORDION ===== */
.faq-section {
  padding: 60px 0;
  background: var(--cream);
}

.faq-list {
  max-width: 800px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(196, 162, 101, 0.25);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(61, 43, 31, 0.8);
  line-height: 1.65;
}

/* ===== PROGRAM CTA BANNER ===== */
.program-cta {
  padding: 60px 0;
  background: var(--brown-dark);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.program-cta h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 16px;
}

.program-cta p {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: rgba(250, 246, 239, 0.85);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

@media (max-width: 992px) {
  .program-hero {
    padding: 110px 0 50px 0;
  }

  .program-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* Image starts FIRST on mobile devices */
  .program-hero-img-wrap {
    order: -1;
    width: 100%;
    border-radius: 20px;
  }

  .program-hero-img-wrap img {
    height: 280px;
    width: 100%;
    object-fit: cover;
  }

  .program-hero-content {
    order: 1;
    text-align: center;
  }

  .program-hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .program-hero-content div[style*="display: flex"],
  .program-hero-content div[style*="display:flex"] {
    justify-content: center;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .progression-section {
    padding: 60px 0;
  }

  .progression-track {
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
  }

  .progression-step {
    width: 100%;
    padding: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .lang-toggle-btn {
    padding: 5px 14px;
    font-size: 0.78rem;
    margin-left: auto;
    margin-right: 12px;
    background: var(--brown-dark);
    color: #FAF6F0;
    border: 1.5px solid var(--gold);
  }

  [dir="rtl"] .lang-toggle-btn {
    margin-left: 12px;
    margin-right: auto;
  }

  .faq-section {
    padding: 60px 0;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }

  .program-cta {
    padding: 60px 20px;
  }

  .program-cta h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .topic-card h3 {
    font-size: 1.2rem;
  }

  .topic-card p {
    font-size: 0.9rem;
  }

  .program-hero-content h1 {
    font-size: 2rem;
  }

  .program-hero-img-wrap img {
    height: 230px;
  }
}