/* ==========================================================================
   VIJAYAM DANCE ACADEMY — ABOUT PAGE STYLESHEET (css/about.css)
   Editorial Legacy • Vision & Mission • 5-Stage Student Pathway
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. EDITORIAL PAGE BANNER (About Academy)
   Background Image: about.png (Assets: assets/images/banners/about.png)
   -------------------------------------------------------------------------- */

.about-hero .banner-bg-layer {
  background-image: url('../assets/images/banners/about.webp');
  background-position: center right;
}

@media (max-width: 640px) {
  .about-hero .banner-bg-layer {
    background-position: 84% center;
  }
}

/* History Section */
.history-section {
  padding: 40px 0;
  background-color: var(--color-ivory);
}

.history-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.history-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  color: #383431;
  line-height: 1.75;
}

.history-visual {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 15px 35px rgba(91, 24, 32, 0.1);
  aspect-ratio: 4/5;
}

.history-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-visual-mobile {
  display: none;
}

.history-visual-desktop {
  display: block;
}

/* ==========================================================================
   GUIDING VISION & SACRED MISSION — EDITORIAL HERITAGE SHOWCASE
   Museum-Grade Aesthetic • Natural Parchment Background • Zero Cards
   ========================================================================== */

.vision-mission-section {
  position: relative;
  padding: 40px 0;
  background-image: url('../assets/images/about/vision-mission-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-top: 1px solid rgba(184, 154, 90, 0.28);
  border-bottom: 1px solid rgba(184, 154, 90, 0.28);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* Subtle ambient ivory scrim over central parchment to protect text contrast */
.vm-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(248, 243, 233, 0.38) 0%, rgba(248, 243, 233, 0.12) 65%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.vm-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* Section Header (Centered, Deep Maroon & Antique Gold) */
.vm-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px auto;
}

.vm-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #9C722B;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.vm-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 400;
  color: #420B13;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.vm-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 16px auto;
}

.vm-divider-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A050);
}

.vm-header-divider .vm-divider-line:last-child {
  background: linear-gradient(90deg, #C9A050, transparent);
}

.vm-divider-glyph {
  color: #C9A050;
  font-size: 0.82rem;
  opacity: 0.95;
  line-height: 1;
}

.vm-subtitle {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: #52383F;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
}

/* Main 2-Column Editorial Split (Zero Cards, Floating Chapters) */
.vm-editorial-split {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: stretch;
  margin: 44px 0 10px 0;
  position: relative;
}

/* Editorial Chapter Columns */
.vm-chapter {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: default;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vm-chapter-left {
  padding-right: 36px;
  padding-left: 12px;
}

.vm-chapter-right {
  padding-left: 36px;
  padding-right: 12px;
}

/* Hover Lift Interaction */
.vm-chapter:hover {
  transform: translateY(-5px);
}

/* Decorative Numerals (01 & 02) */
.vm-num-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

.vm-chapter-num {
  font-family: var(--font-serif-display);
  font-size: clamp(3.2rem, 4.4vw, 4.4rem);
  line-height: 0.9;
  font-weight: 300;
  color: #B89047;
  opacity: 0.84;
  transition: color 0.5s ease, opacity 0.5s ease, text-shadow 0.5s ease;
}

.vm-num-underline {
  width: 32px;
  height: 1.5px;
  background: #C9A050;
  margin-top: 8px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease;
}

.vm-chapter:hover .vm-chapter-num {
  color: #8C641E;
  opacity: 1;
  text-shadow: 0 0 14px rgba(201, 160, 80, 0.32);
}

.vm-chapter:hover .vm-num-underline {
  width: 56px;
  background: #9E7326;
}

/* Uppercase Label & Chapter Heading */
.vm-chapter-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #9C722B;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.vm-chapter-heading {
  font-family: var(--font-serif-display);
  font-size: 1.75rem;
  color: #420B13;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
}

.vm-chapter-text {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: #362E2C;
  line-height: 1.78;
  font-weight: 400;
}

/* Center Ornamental Vertical Divider */
.vm-center-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.vm-divider-line-top,
.vm-divider-line-bottom {
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 160, 80, 0.45) 30%, rgba(201, 160, 80, 0.75) 100%);
}

.vm-divider-line-bottom {
  background: linear-gradient(180deg, rgba(201, 160, 80, 0.75) 0%, rgba(201, 160, 80, 0.45) 70%, transparent 100%);
}

.vm-divider-emblem {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 10px 0;
}

.vm-emblem-gem {
  color: #C9A050;
  font-size: 1.05rem;
  text-shadow: 0 0 10px rgba(201, 160, 80, 0.48);
  line-height: 1;
}

/* Bottom Philosophy Principles Strip */
.vm-philosophy-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 24px;
}

.vm-strip-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 80, 0.45) 40%, rgba(201, 160, 80, 0.85));
}

.vm-strip-line:last-child {
  background: linear-gradient(90deg, rgba(201, 160, 80, 0.85), rgba(201, 160, 80, 0.45) 60%, transparent);
}

.vm-strip-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.vm-principle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #724E16;
  text-transform: uppercase;
}

.vm-principle-star {
  color: #C9A050;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.92;
}

/* ==========================================================================
   Scroll-Triggered Reveal Animations
   ========================================================================== */

.vm-header,
.vm-chapter-left,
.vm-chapter-right,
.vm-center-divider,
.vm-philosophy-strip {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-header {
  transform: translateY(20px);
}

.vm-chapter-left {
  transform: translateX(-20px);
}

.vm-chapter-right {
  transform: translateX(20px);
}

.vm-center-divider {
  transform: scaleY(0);
  transform-origin: top center;
}

.vm-philosophy-strip {
  transform: translateY(16px);
}

/* In-View States */
.vision-mission-section.is-in-view .vm-header {
  opacity: 1;
  transform: translateY(0);
}

.vision-mission-section.is-in-view .vm-chapter-left {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.12s;
}

.vision-mission-section.is-in-view .vm-chapter-right {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.12s;
}

.vision-mission-section.is-in-view .vm-center-divider {
  opacity: 1;
  transform: scaleY(1);
  transition-delay: 0.22s;
}

.vision-mission-section.is-in-view .vm-philosophy-strip {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* Restore hover lift when in-view */
.vision-mission-section.is-in-view .vm-chapter:hover {
  transform: translateY(-5px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Responsive Adaptations for Vision & Mission
   ========================================================================== */

/* Tablet (769px - 1024px): Preserves 2-column layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .vision-mission-section {
    padding: 40px 0;
  }

  .vm-editorial-split {
    grid-template-columns: 1fr 36px 1fr;
    margin: 36px 0 44px 0;
  }

  .vm-chapter-left {
    padding-right: 20px;
    padding-left: 4px;
  }

  .vm-chapter-right {
    padding-left: 20px;
    padding-right: 4px;
  }

  .vm-chapter-text {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .vm-philosophy-strip {
    max-width: 720px;
    gap: 14px;
  }

  .vm-strip-content {
    gap: 12px;
  }

  .vm-principle {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }
}

/* Mobile (<= 768px): History Section Editorial Vertical Reflow & Vision & Mission */
@media (max-width: 768px) {
  /* History Section Editorial Vertical Reflow */
  .history-grid {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .history-visual-desktop {
    display: none !important;
  }

  .history-text {
    width: 100%;
    min-width: 0;
    gap: 14px;
  }

  .history-text h2.title-editorial {
    font-size: clamp(1.75rem, 5.8vw, 2.2rem);
    line-height: 1.22;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .history-desc-lead,
  .history-desc-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #383431;
    margin: 0;
  }

  .history-visual-mobile {
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 16px 0;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 24px rgba(91, 24, 32, 0.08);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #2a080d;
  }

  .history-visual-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .vision-mission-section {
    padding: 40px 0;
  }

  .vm-header {
    margin-bottom: 32px;
  }

  .vm-editorial-split {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 30px 0 38px 0;
  }

  .vm-chapter {
    padding: 0 8px;
    text-align: center;
    align-items: center;
  }

  .vm-num-wrapper {
    align-items: center;
  }

  .vm-chapter-text {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  /* Center divider converts to horizontal ornamental separator */
  .vm-center-divider {
    flex-direction: row;
    width: 80%;
    height: 24px;
    margin: 0 auto;
    transform-origin: center center;
  }

  .vm-divider-line-top,
  .vm-divider-line-bottom {
    height: 1px;
    width: auto;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(201, 160, 80, 0.65) 100%);
  }

  .vm-divider-line-bottom {
    background: linear-gradient(90deg, rgba(201, 160, 80, 0.65) 0%, transparent 100%);
  }

  .vm-divider-emblem {
    margin: 0 10px;
  }

  /* Philosophy strip on mobile */
  .vm-philosophy-strip {
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
  }

  .vm-strip-line {
    display: none;
  }

  .vm-strip-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
  }

  .vm-principle {
    font-size: 0.74rem;
    letter-spacing: 0.2em;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .vm-header,
  .vm-chapter-left,
  .vm-chapter-right,
  .vm-center-divider,
  .vm-philosophy-strip,
  .vm-chapter {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   SYSTEMATIC CURRICULUM — 5-STAGE MARGAM PROGRESSION
   Luxury Editorial Architecture • Dravidian Temple Arch • Dynamic Detail Panel
   ========================================================================== */

.curriculum-progression-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding: 40px 0;
  background: radial-gradient(ellipse at 65% 35%, #2A050B 0%, #150205 65%, #0B0103 100%);
  color: #FFFDF9;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(184, 154, 90, 0.2);
  border-bottom: 1px solid rgba(184, 154, 90, 0.2);
  z-index: 2;
}

/* Background Ambient Motifs (Clean, Non-Intrusive) */
.curriculum-bg-nataraja {
  position: absolute;
  top: 2%;
  left: -20px;
  width: 440px;
  height: 540px;
  background-image: radial-gradient(circle at 40% 45%, rgba(201, 160, 80, 0.07) 0%, transparent 68%),
                    radial-gradient(circle at 40% 45%, rgba(91, 24, 32, 0.16) 0%, transparent 80%);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.curriculum-bg-mandala {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 160, 80, 0.05);
  pointer-events: none;
  z-index: 0;
}

.curriculum-bg-mandala::before {
  content: '';
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 80, 0.04);
}

.mandala-left {
  bottom: -80px;
  left: -80px;
}

.mandala-right {
  top: -60px;
  right: -60px;
}

/* Inner Container */
.curriculum-inner-container {
  position: relative;
  z-index: 2;
}

/* 1. Section Header (Centrally Aligned with Generous Breathing Space) */
.curriculum-header-wrapper {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px auto;
  position: relative;
}

.curriculum-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.curriculum-top-flourish {
  display: inline-block;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(201, 160, 80, 0.5));
}

.curriculum-eyebrow-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.curriculum-eyebrow-line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 80, 0.75), transparent);
}

.curriculum-eyebrow-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.curriculum-main-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 10px;
}

.curriculum-sub-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
  opacity: 0.9;
}

/* 2. Main 2-Column Showcase (Left: ~44%, Right: ~56%) */
.curriculum-stage-split {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}

/* Left: Vertical 5-Stage Timeline */
.curriculum-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  width: 100%;
}

.curriculum-timeline-track {
  position: absolute;
  left: 36px;
  transform: translateX(-50%);
  top: 35px;
  bottom: 35px;
  width: 1.5px;
  background: rgba(184, 154, 90, 0.22);
  z-index: 1;
}

.curriculum-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #FFF2CE 0%, #C9A050 100%);
  box-shadow: 0 0 10px rgba(201, 160, 80, 0.65);
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Timeline Stage Items — Recommended Grid Structure */
.curriculum-stage-item,
.timeline-row {
  display: grid;
  grid-template-columns: 72px 90px 1fr;
  align-items: center;
  padding: 12px 0;
  min-height: 70px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.curriculum-stage-item:hover {
  background: rgba(201, 160, 80, 0.04);
  border-color: rgba(201, 160, 80, 0.12);
}

.curriculum-stage-item:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 2px;
}

/* Marker: active ring or inactive dot (Column 1, Centered at 36px) */
.stage-marker,
.timeline-marker {
  grid-column: 1;
  justify-self: center;
  align-self: center;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.stage-marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C9A050;
  border: 2px solid #140306;
  box-shadow: 0 0 4px rgba(201, 160, 80, 0.4);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.stage-marker-active-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #D4B774;
  background: radial-gradient(circle, rgba(201, 160, 80, 0.28) 0%, rgba(91, 24, 32, 0.7) 75%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 16px rgba(201, 160, 80, 0.5);
}

.stage-marker-active-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 242, 206, 0.6);
}

.marker-star {
  font-size: 0.85rem;
  color: #FFF2CE;
  text-shadow: 0 0 6px #C9A050;
  line-height: 1;
}

.curriculum-stage-item.is-active .stage-marker-dot {
  opacity: 0;
  transform: scale(0);
}

.curriculum-stage-item.is-active .stage-marker-active-ring {
  opacity: 1;
  transform: scale(1);
}

/* Stage Number (Column 2, Fixed Width & Invariable Position) */
.stage-number,
.timeline-number {
  grid-column: 2;
  width: 100%;
  text-align: center;
  font-family: var(--font-serif-display);
  font-size: 2.1rem;
  line-height: 1;
  color: rgba(212, 183, 116, 0.62);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.curriculum-stage-item:hover .stage-number {
  color: #E5C987;
}

.curriculum-stage-item.is-active .stage-number {
  color: #FFF2CE;
  font-weight: 500;
  text-shadow: 0 0 12px rgba(201, 160, 80, 0.45);
}

/* Stage Text Block (Column 3, Consistent Starting X-Axis) */
.stage-text-block,
.timeline-content {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.stage-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-title {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  color: #F8F4EC;
  font-weight: 400;
  line-height: 1.25;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.stage-arrow {
  font-size: 0.95rem;
  color: #D4B774;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.curriculum-stage-item:hover .stage-title {
  color: #FFFFFF;
}

.curriculum-stage-item.is-active .stage-title {
  color: #FFFFFF;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.curriculum-stage-item.is-active .stage-arrow {
  opacity: 1;
  transform: translateX(0);
}

.stage-summary {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #C8BFB3;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.curriculum-stage-item.is-active .stage-summary {
  color: #EDE7DA;
}

/* Right: Large Framed Dravidian Temple Arch Visual (~44-48% width) */
.curriculum-visual-column {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.temple-arch-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px; /* Significantly larger */
  height: 480px; /* Vertically balanced with timeline */
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(201, 160, 80, 0.18));
}

.temple-arch-inner {
  clip-path: url(#templeArchClip);
  -webkit-clip-path: url(#templeArchClip);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #120204;
}

.arch-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.arch-layer.is-visible {
  opacity: 1;
  z-index: 1;
  transform: scale(1.05);
}

.temple-arch-stroke-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.92;
}

/* 4. Bottom Detail Panel (Full-Width Framed Panel) */
.curriculum-detail-panel {
  background: linear-gradient(135deg, rgba(32, 4, 8, 0.94) 0%, rgba(16, 2, 4, 0.97) 100%);
  border: 1px solid rgba(201, 160, 80, 0.25);
  border-radius: 6px;
  padding: 24px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(201, 160, 80, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: 95px 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Left Column: Big Numeral */
.panel-left-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-stage-huge-num {
  font-family: var(--font-serif-display);
  font-size: clamp(3.8rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.85;
  background: linear-gradient(180deg, #FFF2CE 0%, #C9A050 55%, #8F6A27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
  font-variant-numeric: tabular-nums;
}

.panel-watermark-mandala {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 160, 80, 0.08);
  pointer-events: none;
  z-index: 1;
}

.panel-watermark-mandala::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 80, 0.05);
}

/* Middle Column: Eyebrow, Desc & Tagline */
.panel-mid-col {
  display: flex;
  flex-direction: column;
}

.panel-stage-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.panel-desc-text {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: #EDE7DA;
  line-height: 1.65;
  margin-bottom: 10px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.panel-tagline-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.panel-tagline-dash {
  color: var(--color-gold);
  font-weight: 300;
  font-size: 0.85rem;
}

.panel-tagline-italic {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 1.02rem;
  color: #E5C987;
}

/* Right Column: Controls & CTA */
.panel-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.panel-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 160, 80, 0.4);
  background: rgba(201, 160, 80, 0.05);
  color: #F5E8C2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.panel-nav-btn:hover {
  background: var(--color-gold);
  color: #160406;
  border-color: var(--color-gold);
  box-shadow: 0 0 14px rgba(201, 160, 80, 0.4);
  transform: scale(1.05);
}

.panel-nav-btn:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 2px;
}

.panel-fraction-counter {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #E5C987;
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.panel-explore-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--color-gold);
  background: rgba(201, 160, 80, 0.04);
  color: #FFF2CE;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.panel-explore-cta:hover {
  background: var(--color-gold);
  color: #160406;
  box-shadow: 0 0 16px rgba(201, 160, 80, 0.35);
}

.panel-explore-cta .cta-arrow {
  transition: transform 0.25s ease;
}

.panel-explore-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Scroll Animation Entrance System
   ========================================================================== */

.curriculum-header-wrapper,
.curriculum-stage-item,
.temple-arch-wrapper,
.curriculum-detail-panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.curriculum-progression-section.is-in-view .curriculum-header-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.curriculum-progression-section.is-in-view .curriculum-stage-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.curriculum-progression-section.is-in-view .curriculum-stage-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.curriculum-progression-section.is-in-view .curriculum-stage-item:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.curriculum-progression-section.is-in-view .curriculum-stage-item:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.curriculum-progression-section.is-in-view .curriculum-stage-item:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.40s;
}

.curriculum-progression-section.is-in-view .temple-arch-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.curriculum-progression-section.is-in-view .curriculum-detail-panel {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet (769px - 1024px): Two-column layout maintained */
@media (min-width: 769px) and (max-width: 1024px) {
  .curriculum-stage-split {
    grid-template-columns: 46% 54%;
    gap: 28px;
  }

  .curriculum-stage-item,
  .timeline-row {
    grid-template-columns: 58px 72px 1fr;
    padding: 10px 0;
    min-height: 66px;
  }

  .curriculum-timeline-track {
    left: 29px; /* 58px / 2 */
    top: 33px;
    bottom: 33px;
  }

  .stage-marker,
  .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .stage-number,
  .timeline-number {
    font-size: 1.85rem;
  }

  .stage-title {
    font-size: 1.15rem;
  }

  .stage-summary {
    font-size: 0.82rem;
  }

  .temple-arch-wrapper {
    max-width: 360px;
    height: 420px;
  }

  .curriculum-detail-panel {
    grid-template-columns: 80px 1fr auto;
    gap: 24px;
    padding: 20px 24px;
  }
}

/* Mobile (<= 768px): Stack timeline and image vertically, timeline remains visually connected */
@media (max-width: 768px) {
  .curriculum-progression-section {
    padding: 40px 0;
  }

  .curriculum-header-wrapper {
    margin-bottom: 24px;
  }

  .curriculum-stage-split {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 24px;
  }

  /* Image becomes full-width on mobile */
  .curriculum-visual-column {
    width: 100%;
  }

  .temple-arch-wrapper {
    width: 100%;
    max-width: min(320px, 100%);
    height: 360px;
    margin: 0 auto;
  }

  /* Timeline remains visually connected on mobile with consistent grid alignment */
  .curriculum-timeline {
    width: 100%;
    gap: 12px;
  }

  .curriculum-stage-item,
  .timeline-row {
    grid-template-columns: 48px 58px 1fr;
    min-height: 62px;
    padding: 8px 0;
  }

  .curriculum-timeline-track {
    display: block;
    left: 24px; /* 48px / 2 */
    top: 31px;
    bottom: 31px;
    width: 1.5px;
  }

  .stage-marker,
  .timeline-marker {
    width: 36px;
    height: 36px;
  }

  .stage-marker-active-ring {
    inset: 0;
  }

  .stage-number,
  .timeline-number {
    font-size: 1.55rem;
  }

  .stage-title {
    font-size: 1.05rem;
  }

  .stage-summary {
    font-size: 0.8rem;
  }

  /* Detail panel stacks cleanly */
  .curriculum-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
    text-align: center;
  }

  .panel-left-col {
    display: none;
  }

  .panel-mid-col {
    align-items: center;
  }

  .panel-desc-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .panel-tagline-wrapper {
    justify-content: center;
  }

  .panel-right-col {
    width: 100%;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(184, 154, 90, 0.2);
    padding-top: 16px;
  }

  .panel-nav-controls {
    justify-content: center;
  }

  .panel-explore-cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .history-section {
    padding: 36px 0;
  }
  .history-text h2.title-editorial {
    font-size: clamp(1.55rem, 5.2vw, 1.85rem);
  }
  .history-desc-lead,
  .history-desc-sub {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .history-visual-mobile {
    margin: 12px 0;
    aspect-ratio: 16 / 10;
  }
  .temple-arch-wrapper {
    max-width: min(280px, 100%);
    height: 320px;
  }
  .curriculum-stage-item,
  .timeline-row {
    grid-template-columns: 40px 48px 1fr;
    min-height: 56px;
  }
  .curriculum-timeline-track {
    left: 20px;
  }
  .stage-marker,
  .timeline-marker {
    width: 32px;
    height: 32px;
  }
  .stage-number,
  .timeline-number {
    font-size: 1.35rem;
  }
  .stage-title {
    font-size: 0.98rem;
  }
  .stage-summary {
    font-size: 0.74rem;
  }
  .curriculum-detail-panel {
    padding: 16px 12px;
  }
  .panel-desc-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .history-text h2.title-editorial {
    font-size: 1.4rem;
  }
  .history-desc-lead,
  .history-desc-sub {
    font-size: 0.84rem;
    line-height: 1.6;
  }
  .history-visual-mobile {
    margin: 8px 0;
  }
  .curriculum-stage-item,
  .timeline-row {
    grid-template-columns: 32px 38px 1fr;
    gap: 8px;
  }
  .curriculum-timeline-track {
    left: 16px;
  }
  .stage-marker,
  .timeline-marker {
    width: 28px;
    height: 28px;
  }
  .stage-number,
  .timeline-number {
    font-size: 1.15rem;
  }
  .stage-title {
    font-size: 0.9rem;
  }
  .stage-summary {
    font-size: 0.7rem;
  }
  .temple-arch-wrapper {
    max-width: min(250px, 100%);
    height: 280px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .curriculum-header-wrapper,
  .curriculum-stage-item,
  .temple-arch-wrapper,
  .curriculum-detail-panel,
  .arch-layer {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .stage-marker-active-ring {
    transition: none !important;
  }
  .curriculum-timeline-fill {
    transition: none !important;
  }
}



