/* ===== PROGRAM PAGE SHARED STYLES ===== */
:root {
  --saffron: #D4782A;
  --saffron-light: #F09040;
  --gold: #B8832A;
  --gold-light: #E8B860;
  --maroon: #6B1020;
  --cream: #F5EED8;
  --cream-dark: #EDE0C0;
  --charcoal: #0D0C0A;
  --dark-bg: #111008;
  --dark-mid: #1A1812;
  --dark-card: #201E16;
  --brown: #3A2208;
  --white: #FFFFFF;
  --text: #1A1208;
  --text-light: #5A4020;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', sans-serif;
  --font-display: 'Cinzel', serif;
  --font-quote: 'IM Fell English', Georgia, serif;
  --transition: all 0.4s ease;
  --shadow: 0 8px 40px rgba(0,0,0,0.4);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; width: 100%; position: relative; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }

/* ===== TYPOGRAPHY ===== */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  padding: 0;
  transition: background 0.5s ease, box-shadow 0.5s ease,
              border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.nav-container {
  max-width: 100%;
  margin: 0;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  /* Dark glass bar from the start (matches index.html scrolled state) */
  background: rgba(14,9,4,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  border-radius: 0;
  transition: background 0.5s ease, box-shadow 0.5s ease,
              border-color 0.5s ease, backdrop-filter 0.5s ease,
              padding 0.5s ease;
}
/* Keep .navbar.scrolled for any legacy JS but it does nothing extra */
.navbar.scrolled .nav-container {
  padding: 12px 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-symbol {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: brightness(1.2);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-custom-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: invert(1) sepia(1) saturate(0.5) brightness(2.4)
          drop-shadow(0 2px 12px rgba(0,0,0,0.7))
          drop-shadow(0 0 28px rgba(212,160,60,0.5));
  transition: filter 0.5s ease, opacity 0.3s ease, transform 0.3s ease;
}
.nav-custom-logo:hover { opacity: 0.9; transform: scale(1.03); }
.custom-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: invert(1) sepia(1) saturate(0.4) brightness(2.2)
          drop-shadow(0 1px 8px rgba(0,0,0,0.6))
          drop-shadow(0 0 20px rgba(212,160,60,0.3));
  transition: filter 0.5s ease, opacity 0.3s ease;
}

/* ---- Nav links: desktop dropdown (hidden by default, shown on open) ---- */
.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(14,9,4,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 0;
  z-index: 9999;
  animation: dropIn 0.18s ease;
  margin: 0;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-links.open { display: flex; }
.nav-links li { list-style: none; }
.nav-links a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--saffron-light);
  background: rgba(255,255,255,0.05);
}
.nav-links li:first-child a { border-radius: 8px 8px 0 0; }
.nav-links li:last-child { padding: 6px 10px 8px; }
.nav-links li:last-child a {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--white) !important;
  border-radius: 50px;
  text-align: center;
  font-weight: 500;
  padding: 10px 20px;
}
.nav-links li:last-child a:hover { opacity: 0.88; }

/* ---- Hamburger button ---- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  z-index: 10002;
  position: relative;
}
.hamburger:hover {
  opacity: 0.8;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== PROGRAM HERO ===== */
.program-hero {
  position: relative;
  aspect-ratio: 3/1;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 120px;         /* Space for fixed navbar */
  overflow: hidden;
  background: var(--dark-bg);
}
.program-hero-bg {
  position: absolute;
  inset: 0;
  background: none;
}
.program-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.program-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,16,8,0.3) 0%, rgba(17,16,8,0.1) 50%, rgba(17,16,8,0) 100%);
}
.program-hero-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--saffron), var(--gold), var(--saffron), var(--maroon));
  z-index: 10;
}
.program-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--saffron-light); }
.program-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--saffron-light);
  margin-bottom: 14px;
}
.program-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--gold-light) 70%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.program-hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 32px;
}
.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,120,42,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,114,42,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,114,42,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ===== OVERVIEW SECTION ===== */
.program-overview {
  background: var(--cream);
  padding: 80px 0 60px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.overview-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--charcoal);
  margin-bottom: 20px;
  line-height: 1.3;
}
.overview-text p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.overview-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: var(--dark-mid);
  align-self: start;
}
.overview-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.overview-image:hover img { transform: scale(1.03); }

/* ===== BENEFITS ===== */
.benefits-section {
  background: linear-gradient(170deg, #140800 0%, #1e0d03 50%, #120600 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Subtle mandala glow behind the grid - reduced opacity & size */
.benefits-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(212,120,42,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.benefits-section .section-eyebrow { color: var(--saffron-light); }
.benefits-section .section-title   { color: #f5ece0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0;
  transition: transform 0.3s;
}
.benefit-card:hover {
  transform: translateY(-3px);
}
.benefit-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8a44a; /* Warm gold for the SVG stroke */
  flex-shrink: 0;
}
.benefit-card h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff; /* Bright white for high readability */
  margin: 0;
  line-height: 1.4;
}
.benefit-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7); /* Slightly muted for description text if present */
  line-height: 1.6;
  margin: 0;
}


/* ===== WHAT IT INCLUDES ===== */
.includes-section {
  background: var(--cream-dark);
  padding: 80px 0;
}
.includes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.include-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid rgba(201,150,58,0.15);
  box-shadow: 0 2px 12px rgba(74,44,10,0.06);
}
.include-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.include-text h5 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.include-text p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== WHO IT'S FOR ===== */
/* ===== HOW WE OFFER SECTION ===== */
.forwhom-section {
  background: #faf6f0;
  padding: 80px 0 72px;
}
.forwhom-section .section-eyebrow { color: var(--saffron); }
.forwhom-section .section-title   { color: var(--charcoal); }

/* ---- Grid ---- */
.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
@media (max-width: 900px) {
  .forwhom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .forwhom-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---- Individual card ---- */
.forwhom-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 16px 20px;
  background: #fff;
  border: 1px solid rgba(184,130,42,0.18);
  border-radius: 12px;
  text-align: center;
  cursor: default;
  transition: border-color 0.25s;
}
.forwhom-tag:hover {
  border-color: rgba(184,130,42,0.45);
}

/* ---- Icon ---- */
.tag-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #B8832A;
}
.tag-icon svg { width: 22px; height: 22px; display: block; }

/* ---- Label ---- */
.tag-label {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #3a2010;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

/* ===== SADHGURU QUOTE ===== */
.program-quote-section {
  background: linear-gradient(135deg, var(--maroon), var(--dark-bg) 60%);
  padding: 80px 24px;
  text-align: center;
}
.program-quote-text {
  font-family: var(--font-quote);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--cream);
  max-width: 780px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.program-quote-attr {
  font-size: 0.85rem;
  color: var(--saffron-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ===== CTA SECTION ===== */
.program-cta {
  background: var(--cream-dark);
  padding: 80px 0;
  text-align: center;
}
.program-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--charcoal);
  margin-bottom: 16px;
}
.program-cta p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}
.footer-mandala {
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  opacity: 0.04;
}
.footer-mandala img { width: 100%; animation: rotateSlow 60s linear infinite; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Footer logo image - warm glow on dark footer */
.footer-custom-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: invert(1) sepia(1) saturate(0.3) brightness(2.0)
          drop-shadow(0 1px 8px rgba(0,0,0,0.4));
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--saffron-light); }
.footer-bottom-bar {
  padding: 20px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom-bar p { color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* ===== ANIMATIONS ===== */
@keyframes rotateSlow { from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
@keyframes marquee { from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@keyframes fadeUp { from{ opacity:0; transform:translateY(30px); } to{ opacity:1; transform:translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,120,42,0.4);
  opacity: 0;
  transition: opacity 0.4s, transform 0.3s;
  z-index: 999;
  }
  .navbar.scrolled {
    backdrop-filter: none;
  }
  transform: translateY(10px);
}
#scrollTop.visible { opacity: 1; transform: translateY(0); }

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #1A1208 0%, #0D0C0A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
/* Logo image in loader */
.loader-logo-img {
  width: clamp(180px, 50vw, 360px);
  height: auto;
  margin-bottom: 36px;
  filter: invert(1) sepia(1) saturate(0.5) brightness(1.8)
          drop-shadow(0 0 30px rgba(212,120,42,0.6))
          drop-shadow(0 0 60px rgba(184,130,42,0.3));
  animation: logoFadeIn 0.8s ease both;
}
@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.loader-text {
  font-family: var(--font-display);
  color: var(--saffron-light);
  letter-spacing: 0.2em;
  animation: fadeUp 0.8s ease forwards;
}
.loader-bar {
  width: 140px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  animation: loadBar 1.4s ease forwards;
}
@keyframes loadBar { from{ width:0; } to{ width:100%; } }

/* ===== RESPONSIVE ===== */

/* Tablet & Landscape Optimizations */
@media (max-width: 1024px) {
  .overview-grid { gap: 40px; }
  .program-hero { aspect-ratio: 2/1; min-height: 200px; padding-top: 100px; padding-bottom: 40px; }
  .section-pad { padding: 60px 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .program-hero { min-height: auto; padding-top: 80px; padding-bottom: 20px; }
  .program-hero-title { font-size: 2rem; margin-bottom: 10px; }
  .program-hero-subtitle { font-size: 1rem; margin-bottom: 15px; }
  .section-pad { padding: 40px 0; }
  .hero-tags { margin-bottom: 15px; }
}

@media (max-width: 768px) {
  .program-hero { margin-top: 44px; padding-top: 60px; }
  .program-hero-content { transform: scale(0.65) !important; transform-origin: left bottom !important; margin-bottom: -10px !important; margin-left: -5px !important; }
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .includes-list { grid-template-columns: 1fr; }

  .navbar.scrolled { backdrop-filter: none; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; z-index: 1000; }
}
@media (max-width: 480px) {
  .program-hero { margin-top: 44px; aspect-ratio: 4/3; min-height: 160px; padding-top: 40px; padding-bottom: 30px; }
  .benefits-section { padding: 32px 0; }
  .benefits-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .benefit-icon { width: 24px; height: 24px; }
  .benefit-card h4 { font-size: 0.9rem; margin-bottom: 0px; }
  .benefit-card p { font-size: 0.8rem; line-height: 1.4; }
  .program-hero-title { font-size: 2.2rem; }
}

/* ===== YOUTUBE FACADE (replaces embeds blocked by Error 153) ===== */
.video-container {
  position: relative;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  margin-top: 30px;
  margin-bottom: 30px;
  background: #000;
}
.yt-facade {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  text-decoration: none;
  overflow: hidden;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
}
.yt-facade:hover img {
  transform: scale(1.03);
  filter: brightness(0.7);
}
.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}
.yt-facade:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}
.yt-watch-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.78rem;
  font-family: var(--font-sans, sans-serif);
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.yt-facade:hover .yt-watch-label {
  opacity: 1;
}

/* Desktop: show facade, hide iframe */
.yt-mobile-only { display: none; }
.yt-desktop-only { display: block; }

/* Mobile: show iframe, hide facade */
@media (max-width: 768px) {
  .yt-desktop-only { display: none; }
  .yt-mobile-only {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
  }
}



/* ===== WISDOM ARTICLE SECTION ===== */
.wisdom-article-section {
  background: linear-gradient(160deg, #f9f5ee 0%, #f0e8d8 100%);
  padding: 80px 0;
}
.wisdom-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.wisdom-section-sub {
  color: var(--text-muted, #7a6b56);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 12px;
}
/* Card � horizontal on desktop, stacked on mobile */
.wisdom-article-card {
  display: flex;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(74,44,10,0.13);
  text-decoration: none;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  max-width: 960px;
  margin: 0 auto;
}
.wisdom-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(74,44,10,0.18);
}

/* --- IMAGE PANEL --- */
.wisdom-card-image {
  position: relative;
  flex: 0 0 42%;
  min-height: 340px;
  overflow: hidden;
}
.wisdom-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.wisdom-article-card:hover .wisdom-card-image img {
  transform: scale(1.06);
}
.wisdom-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20,12,4,0.28) 0%, transparent 70%);
}
.wisdom-card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: #7a4a10;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- BODY PANEL --- */
.wisdom-card-body {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.wisdom-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a08060;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.wisdom-card-title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #2c1a08;
  line-height: 1.3;
  margin: 0;
}
.wisdom-card-excerpt {
  color: #5c4a36;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}
/* Five Elements Tags */
.wisdom-card-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.element-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212,120,42,0.09);
  color: #9a5c1a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 50px;
  border: 1px solid rgba(212,120,42,0.18);
}
/* CTA row */
.wisdom-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.wisdom-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--saffron, #c47a28), var(--gold, #e0a830));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border-radius: 50px;
  transition: opacity 0.25s, transform 0.25s;
}
.wisdom-article-card:hover .wisdom-read-btn {
  opacity: 0.9;
  transform: translateX(3px);
}
.wisdom-source-logo {
  font-size: 0.78rem;
  color: #b09070;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* ---- TABLET (portrait = 900px) ---- */
@media (max-width: 900px) {
  .wisdom-article-card {
    flex-direction: column;
  }
  .wisdom-card-image {
    flex: 0 0 auto;
    min-height: 240px;
    max-height: 300px;
  }
  .wisdom-card-body {
    padding: 30px 28px;
  }
}

/* ---- PHONE (portrait = 600px) ---- */
@media (max-width: 600px) {
  .wisdom-article-section { padding: 52px 0; }
  .wisdom-section-header { margin-bottom: 32px; }
  .wisdom-card-image { min-height: 200px; max-height: 220px; }
  .wisdom-card-body { padding: 24px 20px; gap: 12px; }
  .wisdom-card-title { font-size: 1.15rem; }
  .wisdom-card-excerpt { font-size: 0.9rem; }
  .wisdom-card-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- LANDSCAPE PHONE (max-height: 500px) ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .wisdom-article-section { padding: 36px 0; }
  .wisdom-article-card { flex-direction: row; max-width: 100%; }
  .wisdom-card-image { flex: 0 0 38%; min-height: 200px; }
  .wisdom-card-body { padding: 20px 24px; gap: 10px; }
  .wisdom-card-excerpt { display: none; }
}

/* ===== GALLERY SECTION (shared with home page) ===== */
.gallery-section { background: #f5f0e8; overflow: hidden; padding: 60px 0; }
.gallery-masonry {
  width: 100%; overflow-x: auto; overflow-y: hidden;
  white-space: nowrap; padding: 20px 0; position: relative; cursor: grab;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-masonry::-webkit-scrollbar { display: none; }
.gallery-masonry.dragging { cursor: grabbing; user-select: none; }
.gallery-track { display: inline-flex; gap: 16px; padding-left: 16px; }
.gallery-masonry-item {
  position: relative; flex: 0 0 auto;
  height: 280px; border-radius: 12px; overflow: hidden; cursor: pointer;
}
.gallery-masonry-item img {
  height: 100%; width: auto; min-width: 200px;
  object-fit: cover; display: block; transition: transform 0.5s ease;
}
.gallery-masonry-item:hover img { transform: scale(1.04); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .section-eyebrow {
  font-family: 'Jost', sans-serif; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: #D4782A;
  margin-bottom: 10px;
}
.section-header .section-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300; color: #1a0a00; margin-bottom: 10px;
}
.section-header .section-sub {
  font-family: 'Jost', sans-serif; color: #7a5c3a; font-size: 1rem;
}
@media (max-width: 768px) {
  .gallery-masonry-item { height: 220px; }
}









/* ===== REGISTRATION FORM BUTTON (injected by Firebase) ===== */
.prog-reg-form-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.prog-reg-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(184, 131, 42, 0.5);
  color: #B8832A;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.prog-reg-form-btn:hover {
  background: linear-gradient(135deg, #D4782A, #B8832A);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}
.prog-reg-form-btn svg {
  transition: transform 0.2s;
}
.prog-reg-form-btn:hover svg {
  transform: scale(1.15);
}
