/* ==========================================================================
   VedhamRoots — Class Details Stylesheet (class-details.css)
   Exclusively for: pages/class-details.html
   Design Philosophy: Modern Editorial Heritage (Sand, Saffron, Gold & Maroon)
   Full Multi-Device Responsive Architecture (Mobile, Tablet, Desktop)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Master 3-Way Alternating Background Theme Utilities for class-details.html
   -------------------------------------------------------------------------- */

/* Theme 1: Deep Royal Temple Burgundy Sanctum */
.theme-royal-sanctum {
  background-color: #3D0A14 !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(246, 200, 120, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(185, 87, 37, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #4A121A 0%, #360812 100%) !important;
  color: #FFF8EB !important;
  position: relative;
  overflow: hidden;
}

.theme-royal-sanctum .section-kicker {
  color: var(--gold-amber, #F6C878) !important;
}

.theme-royal-sanctum .section-title {
  color: #FFFDF7 !important;
}

.theme-royal-sanctum .section-subtitle {
  color: #E2D9CE !important;
}

/* Theme 2: Warm Illuminated Cream / Sand Parchment */
.theme-warm-cream {
  background-color: #FDF9F1 !important;
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 248, 238, 0.9) 0%, #FDF9F1 100%) !important;
  color: var(--text-dark-body, #56423A) !important;
  position: relative;
  overflow: hidden;
}

.theme-warm-cream.sand-tone {
  background-color: #FAF5EB !important;
}

.theme-warm-cream .section-kicker {
  color: var(--primary-terracotta, #99400D) !important;
}

.theme-warm-cream .section-title {
  color: var(--text-dark-primary, #3D0A14) !important;
}

.theme-warm-cream .section-subtitle {
  color: var(--text-dark-body, #56423A) !important;
}

/* Theme 3: Radiant Sunset Terracotta / Sacred Saffron Glow */
.theme-sunset-terracotta {
  background-color: #A73400 !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 215, 120, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 85% 65%, rgba(255, 170, 50, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255, 230, 160, 0.22) 0%, transparent 60%) !important;
  color: #FFFDF7 !important;
  position: relative;
  overflow: hidden;
}

.theme-sunset-terracotta .section-kicker {
  color: #360812 !important;
  background: #FFFFFF !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.42rem 1.15rem !important;
  border: 1.5px solid rgba(212, 175, 55, 0.65) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 12px rgba(246, 200, 120, 0.25) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-sunset-terracotta .section-kicker .material-symbols-outlined {
  color: var(--primary-terracotta, #99400D) !important;
}

.theme-sunset-terracotta .section-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 14px rgba(61, 10, 20, 0.45);
}

.theme-sunset-terracotta .section-subtitle {
  color: #FDEED9 !important;
  text-shadow: 0 1px 6px rgba(42, 5, 13, 0.35);
}

/* --------------------------------------------------------------------------
   1. Detail Hero Section (Section 1)
   -------------------------------------------------------------------------- */
.detail-hero {
  padding: 2.75rem 0 3rem 0;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.detail-hero .ambient-glow.glow-top-left {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 200, 120, 0.22) 0%, rgba(185, 87, 37, 0.1) 50%, transparent 70%);
  pointer-events: none;
}

.detail-hero .ambient-glow.glow-bottom-right {
  position: absolute;
  bottom: -140px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 122, 36, 0.2) 0%, rgba(212, 175, 55, 0.12) 50%, transparent 70%);
  pointer-events: none;
}

.detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  padding: 0.32rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 200, 120, 0.3);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.15rem;
  color: #EADBC8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  flex-wrap: wrap;
}

.detail-breadcrumb a {
  color: #FFF2DF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.detail-breadcrumb a:hover {
  color: var(--gold-amber, #F6C878);
  text-shadow: 0 0 10px rgba(246, 200, 120, 0.5);
}

.detail-breadcrumb .breadcrumb-sep {
  color: rgba(246, 200, 120, 0.65);
  font-size: 14px;
}

.detail-breadcrumb .breadcrumb-current {
  color: var(--gold-amber, #F6C878);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(246, 200, 120, 0.3);
}

.detail-hero-content {
  max-width: 940px;
  width: 100%;
}

.detail-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.detail-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  background: rgba(246, 200, 120, 0.16);
  border: 1.5px solid rgba(246, 200, 120, 0.5);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFF2DF;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.detail-category-badge .material-symbols-outlined {
  color: var(--gold-amber, #F6C878);
  font-size: 16px;
}

.detail-devanagari-badge {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #F6C878;
  text-shadow: 0 2px 16px rgba(246, 200, 120, 0.35), 0 0 2px rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  line-height: 1;
}

.detail-main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 700;
  color: #FFFDF8;
  line-height: 1.18;
  margin: 0.15rem 0 0.55rem 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(246, 200, 120, 0.16);
  letter-spacing: -0.01em;
}

.detail-tagline {
  font-size: clamp(0.96rem, 2vw, 1.06rem);
  font-weight: 500;
  line-height: 1.55;
  color: #FDEED9;
  margin-bottom: 1.35rem;
  max-width: 820px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.detail-meta-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

@media (min-width: 640px) {
  .detail-meta-pills {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meta-pill-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1.5px solid rgba(246, 200, 120, 0.38);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.meta-pill-item:hover {
  border-color: var(--gold-sacred);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 200, 120, 0.25);
}

.meta-pill-item .material-symbols-outlined {
  color: var(--gold-amber, #F6C878) !important;
  font-size: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.meta-pill-content {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  min-width: 0;
}

.meta-pill-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(253, 238, 217, 0.8);
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-pill-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFDF9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-hero-ctas {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  align-items: center;
}

.detail-hero-ctas .hero-cta-btn {
  padding: 0.78rem 1.65rem;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(185, 87, 37, 0.45), 0 0 15px rgba(246, 200, 120, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.detail-hero-ctas .hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(185, 87, 37, 0.6), 0 0 20px rgba(246, 200, 120, 0.4);
}

.detail-hero-ctas .hero-advisor-btn {
  padding: 0.78rem 1.5rem;
  font-size: 0.96rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--gold-sacred);
  color: #FFFDF9;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.detail-hero-ctas .hero-advisor-btn:hover {
  background: var(--gold-sacred);
  color: #3D0A14 !important;
  border-color: var(--gold-sacred);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.detail-hero-ctas .hero-advisor-btn:hover .material-symbols-outlined {
  color: #3D0A14 !important;
}

/* --------------------------------------------------------------------------
   2. Main Content: Full-Width Layout
   -------------------------------------------------------------------------- */
.detail-main-section {
  padding: 4.5rem 0 5.5rem 0;
  background-color: var(--bg-canvas);
}

.detail-layout-full,
.detail-layout-grid {
  width: 100%;
}

.detail-block {
  margin-bottom: 3.5rem;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-block-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--text-dark-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.detail-block-title .material-symbols-outlined {
  font-size: 26px;
  flex-shrink: 0;
}

.detail-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark-body);
  margin-bottom: 1rem;
}

/* Outcomes List */
.detail-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .detail-outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .detail-outcomes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-outcome-box {
  background: #FFFFFF;
  border: 1.5px solid #EDE0CF;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.detail-outcome-box:hover {
  border-color: var(--gold-sacred);
  box-shadow: var(--shadow-warm-sm);
  transform: translateY(-2px);
}

/* Curriculum Timeline Cards (Standard Fallback) */
.curriculum-modules-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.curriculum-module-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.curriculum-module-card:hover {
  border-color: var(--gold-sacred);
  box-shadow: var(--shadow-warm-sm);
}

.module-level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-terracotta);
  margin-bottom: 0.35rem;
}

.module-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark-primary);
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.92rem;
  color: var(--text-dark-body);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2.1 Comprehensive Curriculum Stages & Tables
   -------------------------------------------------------------------------- */
.curriculum-stages-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.25rem;
}

.curriculum-grand-header {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF3E5 100%);
  border: 1.5px solid var(--gold-sacred);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(185, 87, 37, 0.05);
}

.curriculum-grand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark-primary);
  margin: 0;
  line-height: 1.3;
}

.curriculum-stage-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.38);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(36, 21, 18, 0.05);
  position: relative;
  transition: var(--transition-smooth);
}

.curriculum-stage-card:hover {
  border-color: var(--gold-sacred);
  box-shadow: 0 8px 28px rgba(36, 21, 18, 0.09);
}

.stage-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #EDE0CF;
  margin-bottom: 1.25rem;
}

.stage-card-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stage-icon-badge {
  font-size: 1.85rem;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF1DE 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stage-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark-primary);
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

.stage-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-terracotta);
}

.stage-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stage-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-canvas);
  border: 1px solid #E6D8C5;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark-body);
}

.stage-meta-pill .material-symbols-outlined {
  font-size: 15px;
  color: var(--primary-terracotta);
}

.stage-goal-box {
  background: #FFFDF9;
  border-left: 4px solid var(--primary-saffron);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--text-dark-body);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.stage-formula-box {
  background: linear-gradient(90deg, #FFF5EB 0%, #FFFDF9 100%);
  border: 1px dashed var(--primary-saffron);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.5;
}

.formula-label {
  font-weight: 700;
  color: var(--primary-terracotta);
}

.formula-pipeline {
  font-weight: 600;
  color: var(--text-dark-primary);
}

.stage-subheading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark-primary);
  margin: 1.25rem 0 0.75rem 0;
}

.stage-learnings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

@media (min-width: 640px) {
  .stage-learnings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stage-learning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark-body);
  line-height: 1.45;
}

.stage-learning-item .material-symbols-outlined {
  color: #059669;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.stage-examples-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stage-example-chip {
  padding: 0.35rem 0.85rem;
  background: #FFFBF5;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark-primary);
}

.stage-example-chip.chip-gold {
  background: #FFF4DB;
  border-color: var(--gold-sacred);
  color: #7D5700;
}

/* Mobile Table Horizontal Scroll Hint */
.table-scroll-hint {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-terracotta);
  margin-bottom: 0.45rem;
}

.table-scroll-hint .material-symbols-outlined {
  font-size: 16px;
  animation: pulse-swipe 1.6s ease-in-out infinite alternate;
}

@keyframes pulse-swipe {
  0% { transform: translateX(0); }
  100% { transform: translateX(4px); }
}

/* Tables */
.stage-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0 1.25rem 0;
  border-radius: 8px;
  border: 1px solid #EDE0CF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  min-width: 520px;
}

.curriculum-table th {
  background: #F8EFE3;
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1.5px solid #E2D3BE;
  white-space: nowrap;
}

.curriculum-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F0E5D6;
  color: var(--text-dark-body);
  vertical-align: top;
  line-height: 1.5;
}

.curriculum-table tr:last-child td {
  border-bottom: none;
}

.curriculum-table tr:nth-child(even) {
  background: #FFFAF3;
}

.curriculum-table .col-month {
  color: var(--primary-terracotta);
  font-weight: 700;
  white-space: nowrap;
  width: 120px;
}

.curriculum-table .col-theme {
  font-weight: 600;
  color: var(--text-dark-primary);
}

.curriculum-table .values-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #F1F8F4;
  border: 1px solid #C4E2D2;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: #065F46;
}

/* Block Grids for Kala Sadhana */
.stage-blocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 1.25rem 0;
}

@media (min-width: 640px) {
  .stage-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stage-block-item {
  background: #FFFDF9;
  border: 1px solid #EDE0CF;
  border-radius: 8px;
  padding: 1rem;
}

.stage-block-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--text-dark-primary);
  margin: 0 0 0.35rem 0;
}

.stage-block-note {
  font-size: 0.82rem;
  color: var(--primary-terracotta);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.stage-block-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  color: var(--text-dark-body);
  line-height: 1.5;
}

/* Activity / Showcase Callout Boxes */
.stage-final-activity-box {
  background: #F4FAF7;
  border: 1px solid #A7D8C5;
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.stage-final-activity-box .material-symbols-outlined {
  color: #059669;
  font-size: 20px;
  flex-shrink: 0;
}

.stage-final-project-box {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF5EB 100%);
  border: 1.5px solid var(--gold-sacred);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.final-project-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark-primary);
  margin: 0 0 0.35rem 0;
}

.final-project-note {
  font-size: 0.88rem;
  color: var(--primary-terracotta);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.final-project-outcome {
  font-size: 0.9rem;
  color: var(--text-dark-body);
  line-height: 1.6;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

/* Gita Journey Steps */
.gita-journey-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem 0;
}

@media (min-width: 640px) {
  .gita-journey-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gita-journey-step-card {
  background: #FFFDF9;
  border: 1.5px solid #EDE0CF;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.gita-journey-step-card:hover {
  border-color: var(--gold-sacred);
}

.gita-journey-step-card .step-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-terracotta);
  margin-bottom: 0.25rem;
}

.gita-journey-step-card .step-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark-primary);
  margin: 0 0 0.35rem 0;
}

.gita-journey-step-card .step-desc {
  font-size: 0.88rem;
  color: var(--text-dark-body);
  margin: 0;
  line-height: 1.5;
}

/* Teaching Formula Ribbon */
.teaching-formula-wrap {
  background: linear-gradient(135deg, #FFF8ED 0%, #FFF1DE 100%);
  border: 1.5px solid var(--gold-sacred);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin: 1.25rem 0;
}

.formula-header-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-terracotta);
  margin-bottom: 0.65rem;
}

.formula-steps-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.formula-step-pill {
  padding: 0.35rem 0.75rem;
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark-primary);
  white-space: nowrap;
}

.formula-arrow {
  color: var(--primary-terracotta);
  font-weight: 700;
  font-size: 0.9rem;
}

.pedagogy-note-box {
  background: #FFFDF9;
  border-left: 3.5px solid var(--gold-sacred);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text-dark-body);
  line-height: 1.6;
  margin: 1rem 0;
  display: flex;
  gap: 0.65rem;
}

.pedagogy-note-box .material-symbols-outlined {
  color: #D97706;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pedagogy-note-box p {
  margin: 0;
}

.stage-approach-box {
  background: #FFFDF9;
  border: 1px solid #EFE4D4;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.approach-label {
  font-weight: 700;
  color: var(--primary-terracotta);
}

.approach-val {
  font-weight: 600;
  color: var(--text-dark-primary);
}

.stage-outcome-callout {
  background: #F6FAF7;
  border: 1.5px solid #B8E4D0;
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  color: #065F46;
  line-height: 1.5;
  margin-top: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.stage-outcome-callout .material-symbols-outlined {
  color: #059669;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Journey Flow Strip */
.curriculum-journey-flow-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF3E5 100%);
  border: 1.5px solid var(--gold-sacred);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1rem;
}

.journey-flow-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark-primary);
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.journey-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .journey-flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.journey-step-item {
  background: #FFFFFF;
  border: 1px solid #EDE0CF;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.journey-step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.journey-step-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark-primary);
  margin: 0 0 0.2rem 0;
}

.journey-step-dur {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  margin-bottom: 0.5rem;
}

.journey-step-desc {
  font-size: 0.85rem;
  color: var(--text-dark-body);
  margin: 0;
  line-height: 1.4;
}

/* Annual Event Spotlight Card */
.annual-event-highlight-card {
  background: linear-gradient(135deg, #3D0A14 0%, #581423 100%);
  border: 2px solid var(--gold-sacred);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #FFFDF7;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(61, 10, 20, 0.25);
}

.annual-event-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.annual-event-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(246, 200, 120, 0.15);
  border: 1.5px solid var(--gold-sacred);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.annual-event-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #FFFDF7;
  margin: 0;
  line-height: 1.25;
}

.annual-event-desc {
  font-size: 0.92rem;
  color: #FDEBDD;
  line-height: 1.6;
  margin: 0 0 0.85rem 0;
}

.annual-event-tag {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-amber);
  background: rgba(246, 200, 120, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(246, 200, 120, 0.3);
}

/* Block 4: Gurukulam Lineage & VedhamRoots Promise Card */
.vedhamroots-promise-card {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF1DE 100%);
  border: 1.5px solid var(--gold-sacred);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 18px rgba(36, 21, 18, 0.05);
}

.vedhamroots-promise-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-dark-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.vedhamroots-promise-desc {
  font-size: 0.95rem;
  color: var(--text-dark-body);
  line-height: 1.7;
  margin: 0;
}

/* Sidebar Batch Timings Box */
.sidebar-batches-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-warm-md);
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.sidebar-batch-item {
  background: var(--bg-canvas);
  border: 1px solid #EDE0CF;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.85rem;
}


/* ==========================================================================
   3. Multi-Device Mobile Responsive Optimization Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   3.1 Tablets & Medium Viewports (<= 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .detail-hero {
    padding: 2.5rem 0 2.75rem 0;
  }

  .detail-main-section {
    padding: 3.5rem 0 4.5rem 0;
  }

  .detail-block {
    margin-bottom: 2.75rem;
  }

  .detail-block-title {
    font-size: 1.55rem;
  }

  .curriculum-stage-card {
    padding: 1.65rem;
  }

  .curriculum-grand-header {
    padding: 1rem 1.25rem;
  }

  .curriculum-grand-title {
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   3.2 Phablets & Standard Mobile Phones (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .detail-hero {
    padding: 2rem 0 2.25rem 0;
  }

  .detail-breadcrumb {
    padding: 0.28rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
  }

  .detail-title-wrap {
    gap: 0.65rem;
    margin-bottom: 0.35rem;
  }

  .detail-category-badge {
    padding: 0.28rem 0.72rem;
    font-size: 0.74rem;
  }

  .detail-devanagari-badge {
    font-size: 1.25rem;
  }

  .detail-main-title {
    font-size: clamp(1.55rem, 5vw, 2.1rem);
    margin: 0.15rem 0 0.45rem 0;
  }

  .detail-tagline {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .detail-meta-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.35rem;
  }

  .meta-pill-item {
    padding: 0.48rem 0.65rem;
    gap: 0.45rem;
  }

  .meta-pill-item .material-symbols-outlined {
    font-size: 18px;
  }

  .meta-pill-label {
    font-size: 0.6rem;
  }

  .meta-pill-val {
    font-size: 0.78rem;
  }

  .detail-hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    gap: 0.75rem;
  }

  .detail-hero-ctas .hero-cta-btn,
  .detail-hero-ctas .hero-advisor-btn {
    width: 100%;
    padding: 0.82rem 1.25rem;
    font-size: 0.92rem;
    min-height: 48px;
  }

  .detail-main-section {
    padding: 2.75rem 0 3.75rem 0;
  }

  .detail-block {
    margin-bottom: 2.25rem;
  }

  .detail-block-title {
    font-size: 1.38rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    gap: 0.5rem;
  }

  .detail-block-title .material-symbols-outlined {
    font-size: 22px;
  }

  .detail-paragraph {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .detail-outcome-box {
    padding: 0.95rem 1rem;
    gap: 0.65rem;
  }

  .curriculum-stages-container {
    gap: 1.5rem;
  }

  .curriculum-stage-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .stage-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.95rem;
    margin-bottom: 1rem;
  }

  .stage-card-header-left {
    gap: 0.75rem;
    width: 100%;
  }

  .stage-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    border-radius: 10px;
  }

  .stage-title {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
  }

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

  .stage-badges-wrap {
    width: 100%;
    gap: 0.4rem;
  }

  .stage-meta-pill {
    padding: 0.25rem 0.65rem;
    font-size: 0.76rem;
  }

  .stage-goal-box {
    padding: 0.65rem 0.85rem;
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  .stage-formula-box {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .stage-subheading {
    font-size: 0.98rem;
    margin: 1rem 0 0.6rem 0;
  }

  .stage-learning-item {
    font-size: 0.86rem;
    gap: 0.45rem;
  }

  .stage-learning-item .material-symbols-outlined {
    font-size: 16px;
  }

  .stage-example-chip {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  .table-scroll-hint {
    display: flex;
  }

  .curriculum-table th,
  .curriculum-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .curriculum-table .col-month {
    width: 100px;
  }

  .curriculum-table .values-pill {
    padding: 0.15rem 0.5rem;
    font-size: 0.76rem;
  }

  .teaching-formula-wrap {
    padding: 0.95rem;
    margin: 1rem 0;
  }

  .formula-header-tag {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .formula-steps-ribbon {
    gap: 0.35rem;
  }

  .formula-step-pill {
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
  }

  .formula-arrow {
    font-size: 0.8rem;
  }

  .pedagogy-note-box {
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
    margin: 0.85rem 0;
  }

  .stage-approach-box {
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    margin-top: 0.85rem;
  }

  .stage-outcome-callout {
    padding: 0.75rem 0.95rem;
    font-size: 0.86rem;
    margin-top: 1rem;
  }

  .curriculum-journey-flow-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .journey-flow-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .journey-flow-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .journey-step-item {
    padding: 1rem;
  }

  .annual-event-highlight-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .annual-event-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .annual-event-icon {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .annual-event-title {
    font-size: 1.18rem;
  }

  .annual-event-desc {
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
  }

  .vedhamroots-promise-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .vedhamroots-promise-title {
    font-size: 1.22rem;
    margin-bottom: 0.5rem;
  }

  .vedhamroots-promise-desc {
    font-size: 0.9rem;
    line-height: 1.62;
  }
}

/* --------------------------------------------------------------------------
   3.3 Compact Smartphones (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .detail-hero {
    padding: 1.65rem 0 1.85rem 0;
  }

  .detail-main-title {
    font-size: clamp(1.4rem, 6.2vw, 1.75rem);
    line-height: 1.22;
  }

  .detail-tagline {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  .meta-pill-item {
    padding: 0.42rem 0.55rem;
    gap: 0.38rem;
  }

  .meta-pill-label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .meta-pill-val {
    font-size: 0.74rem;
  }

  .detail-block-title {
    font-size: 1.28rem;
  }

  .curriculum-grand-header {
    padding: 0.85rem 1rem;
  }

  .curriculum-grand-title {
    font-size: 1.15rem;
  }

  .curriculum-stage-card {
    padding: 1.05rem 0.9rem;
  }

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

  .stage-icon-badge {
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  .stage-formula-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .formula-steps-ribbon {
    gap: 0.3rem;
  }

  .formula-step-pill {
    font-size: 0.74rem;
    padding: 0.25rem 0.55rem;
  }

  .final-project-title {
    font-size: 1.05rem;
  }

  .stage-block-item {
    padding: 0.85rem;
  }

  .stage-block-title {
    font-size: 0.92rem;
  }

  .stage-block-list {
    padding-left: 1rem;
    font-size: 0.82rem;
  }

  .gita-journey-step-card {
    padding: 0.85rem;
  }

  .gita-journey-step-card .step-title {
    font-size: 0.98rem;
  }
}

/* --------------------------------------------------------------------------
   3.4 Ultra-Compact Mobile Phones (<= 360px — e.g. iPhone SE 1st gen, Fold)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .detail-breadcrumb {
    font-size: 0.72rem;
    padding: 0.22rem 0.65rem;
  }

  .detail-category-badge {
    font-size: 0.7rem;
    padding: 0.22rem 0.6rem;
  }

  .detail-devanagari-badge {
    font-size: 1.15rem;
  }

  .detail-main-title {
    font-size: 1.35rem;
  }

  .detail-meta-pills {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .meta-pill-item {
    padding: 0.45rem 0.65rem;
  }

  .curriculum-stage-card {
    padding: 0.9rem 0.75rem;
  }

  .detail-hero-ctas .hero-cta-btn,
  .detail-hero-ctas .hero-advisor-btn {
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   4. Dual Visual Media Showcase & Fire Safety Card
   -------------------------------------------------------------------------- */
.detail-gallery-dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .detail-gallery-dual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-dual-card {
  border-radius: 16px;
  overflow: hidden;
  background: #181210;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.gallery-dual-card:hover {
  border-color: var(--gold-amber);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.gallery-dual-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-dual-card:hover .gallery-dual-img {
  transform: scale(1.04);
}

.gallery-dual-caption {
  padding: 0.85rem 1rem;
  background: #1E1815;
  color: #FFFDF7;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(246, 200, 120, 0.2);
}

.gallery-dual-caption .material-symbols-outlined {
  color: var(--gold-amber);
  font-size: 18px;
  flex-shrink: 0;
}

.detail-safety-card {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1.5px solid rgba(220, 38, 38, 0.35) !important;
  border-radius: 16px;
  padding: 1.5rem !important;
  margin-top: 1.5rem;
}

.detail-safety-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-safety-icon {
  color: #DC2626;
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-safety-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #991B1B;
  margin-bottom: 0.35rem;
}

.detail-safety-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dark-secondary);
}
