/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties (Variables) */
:root {
  --bg-primary: #FDFCF7;
  /* soft warm ivory-cream background */
  --bg-secondary: #FFFFFF;
  /* floating white cards background */
  --bg-tertiary: #F5F2E9;
  /* delicate warm clay/sand accent */

  --accent-gold: #C9A054;
  /* refined antique gold accent */
  --accent-gold-hover: #B58B3F;
  --accent-gold-glow: rgba(201, 160, 84, 0.12);

  --accent-red: #7E1919;
  /* regal temple maroon red */
  --accent-red-hover: #631010;
  --accent-red-glow: rgba(126, 25, 25, 0.15);

  --text-main: #1A1A1A;
  /* deep charcoal body text */
  --text-muted: #605B58;
  --text-bright: #0A0A0A;
  /* luxurious soft black */

  --border-subtle: rgba(201, 160, 84, 0.05);
  --border-gold: rgba(201, 160, 84, 0.1);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: 'Cormorant Garamond', serif;

  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(253, 252, 247, 0.85);
  --glass-blur: blur(14px);

  /* Additional variables for dynamic light/dark components */
  --bg-footer: #FDFCF7;
  --hero-overlay: linear-gradient(90deg, var(--bg-primary) 0%, var(--bg-primary) 50%, rgba(253, 252, 247, 0) 75%, rgba(253, 252, 247, 0) 100%);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography */
h1,
h2 {
  font-family: var(--font-display);
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: 0.5px;
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: 0.5px;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-main);
  line-height: 1.8;
}

/* Accent lines and titles */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4.5rem;
  position: relative;
  font-weight: 800;
  color: var(--text-bright);
}

.section-title::after {
  content: '✦';
  display: block;
  font-size: 1rem;
  color: var(--accent-gold);
  margin: 0.6rem auto 0 auto;
  width: 150px;
  text-align: center;
  border-bottom: 1.5px solid var(--accent-gold);
  padding-bottom: 0.5rem;
  text-shadow: 0 0 8px var(--accent-gold-glow);
}

.subtitle {
  color: var(--accent-gold);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.8rem;
  text-align: center;
}

/* Main Container Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Sticky Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(201, 160, 84, 0.05);
}

/* Force light text color contrast when header is not scrolled (transparent over dark hero) */
header:not(.scrolled) {
  --text-main: #3C3835;
  --text-muted: #857E7A;
  --text-bright: #1A1715;
  --accent-gold: #C9A054;
  --accent-gold-hover: #B58B3F;
  --border-gold: rgba(201, 160, 84, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  padding: 0 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}



.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-bright);
}

.logo-text span {
  color: var(--accent-gold);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  color: var(--text-main);
}

.nav-link:hover,
.nav-menu .active .nav-link {
  color: var(--accent-gold);
}

/* Underline Animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
  box-shadow: 0 0 5px var(--accent-gold);
}

.nav-link:hover::after,
.nav-menu .active .nav-link::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  list-style: none;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(201, 160, 84, 0.08);
  padding: 0.5rem 0;
  z-index: 1001;

  /* Reset scroll-dependent text color overrides on dropdown menu */
  --text-main: #3C3835;
  --text-muted: #857E7A;
  --text-bright: #1A1715;
  --accent-gold: #C9A054;
  --accent-gold-hover: #B58B3F;
  --border-gold: rgba(201, 160, 84, 0.15);
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.dropdown-link:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-gold);
  padding-left: 1.8rem;
}

/* Navigation CTA Button */
.nav-cta {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  /* rounded pill */
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--accent-gold);
  color: var(--bg-secondary) !important;
  box-shadow: 0 4px 15px rgba(201, 160, 84, 0.15);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-bright);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  background-color: var(--bg-primary);
  background-blend-mode: multiply;
  padding-top: 100px;
  overflow: hidden;
}

/* Subpage Hero Banner to avoid header overlapping */
.subpage-hero {
  min-height: 420px;
  padding-top: 150px;
  padding-bottom: 50px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 720px;
  padding: 3.5rem 2rem;
  margin-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  transition: var(--transition-smooth);
}

.hero-subtitle {
  font-family: var(--font-sans);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  display: block;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-bright);
  animation: fadeInUp 1.2s ease;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  animation: fadeInUp 1.4s ease;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  animation: fadeInUp 1.6s ease;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  /* pill shape */
  font-size: 0.8rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: none;
  /* remove heavy drop shadows */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary {
  background-color: var(--accent-red);
  color: #ffffff;
  border: 1.5px solid var(--accent-red);
}

.btn-primary::before {
  background-color: var(--accent-red-hover);
}

.btn-primary:hover {
  border-color: var(--accent-red-hover);
  box-shadow: 0 8px 24px var(--accent-red-glow);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.btn-secondary::before {
  background-color: var(--accent-gold);
}

.btn-secondary:hover {
  color: var(--bg-primary) !important;
  box-shadow: 0 8px 24px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.btn-secondary:hover::before {
  width: 100%;
}

/* Light Theme button overrides */
.light-theme .btn-primary {
  background-color: transparent;
  color: var(--accent-red);
  border: 1.5px solid var(--accent-red);
}

.light-theme .btn-primary::before {
  background-color: var(--accent-red);
}

.light-theme .btn-primary:hover {
  color: #ffffff !important;
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(178, 71, 63, 0.12);
}

.light-theme .btn-secondary {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
}

.light-theme .btn-secondary::before {
  background-color: var(--accent-gold);
}

.light-theme .btn-secondary:hover {
  color: #ffffff !important;
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(194, 157, 76, 0.12);
}

/* Sections General Styling */
section {
  padding: 2rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-primary);
}

.section-light-dark {
  background-color: var(--bg-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.align-stretch {
  align-items: stretch !important;
}

.about-img-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.about-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: var(--transition-smooth);
}

.about-img-container:hover .about-img {
  transform: scale(1.03);
}

.welcome-text p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.welcome-text strong {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Lineage / Gurus Section Cards */
.gurus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  margin-top: 2rem;
}

.guru-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 485px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2.2rem 2.5rem 2.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.guru-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px var(--accent-gold-glow);
}

.guru-card-img-wrap {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin: 0 auto 2rem auto;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}

.guru-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.guru-card:hover .guru-card-img {
  transform: scale(1.08);
}

.guru-card-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.guru-role {
  color: var(--accent-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.guru-name {
  font-size: 1.8rem;
  color: var(--text-bright);
  margin-bottom: 1.2rem;
  font-family: var(--font-serif);
}

.guru-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.65;
  flex-grow: 1;
}

/* Interactive Tabs (About Us Page) */
.tabs-container {
  margin-top: 2rem;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  letter-spacing: 0.5px;
}

.tab-btn:hover {
  color: var(--text-bright);
}

.tab-btn.active {
  color: var(--accent-gold);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-btn:active {
  transform: scale(0.98);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Accordion or Subsections for Tabs Info */
.info-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: var(--transition-smooth);
}

.info-section:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px var(--accent-gold-glow);
}

.info-section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 0.8rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.info-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
}

/* Photo & Video Slideshow on index */
.slideshow-section {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-end;
}

.slide.active {
  opacity: 1;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(360deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 60%);
  z-index: 2;
}

.slide-caption {
  position: relative;
  z-index: 3;
  padding: 3rem;
  width: 100%;
  /* Force light colors against the dark slide background overlay */
  --text-bright: #ffffff;
}

.slide-title {
  font-size: 1.8rem;
  color: var(--text-bright);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.slider-btn-prev {
  left: 1.5rem;
}

.slider-btn-next {
  right: 1.5rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.6rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: 5px;
}

/* Event List Styling */
.event-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: var(--transition-smooth);
}

.event-widget:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px var(--accent-gold-glow);
}

.event-widget-title {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

.event-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.event-item {
  display: flex;
  gap: 1.5rem;
  border-left: 2px solid var(--border-gold);
  padding-left: 1.5rem;
  position: relative;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.event-date {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  min-width: 80px;
}

.event-info h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.event-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Gallery Masonry Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item::before {
  content: '';
  display: block;
  padding-bottom: 70%;
}

.gallery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
  /* Scoping variables so they are always light on the dark overlay */
  --text-bright: #ffffff;
  --text-muted: #a0a0a0;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-hover {
  opacity: 1;
}

.gallery-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Video Grid and Custom Player Elements */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.video-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.video-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--accent-gold-glow);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.video-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Scoping variables for light text against dark background */
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --text-bright: #ffffff;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  color: var(--text-bright);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--accent-gold);
}

/* Contact Us Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px var(--accent-gold-glow);
}

.contact-card-title {
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 0.5rem;
}

.contact-item-detail {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

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

.contact-form-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Footer Section */
footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--accent-gold);
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
  font-size: 1.1rem;
}

.social-icon:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item span {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-gold);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .grid-2 {
    gap: 2.5rem;
  }

  .contact-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 75px;
    padding: 0 1.5rem;
  }

  .subpage-hero {
    min-height: 280px;
    padding-top: 115px;
    padding-bottom: 30px;
  }

  .mobile-toggle {
    display: block;
    z-index: 1002;
  }

  /* Menu transitions for mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-gold);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(42, 38, 36, 0.05);

    /* Reset scroll-dependent text color overrides on mobile menu sidebar */
    --text-main: #3C3835;
    --text-muted: #857E7A;
    --text-bright: #1A1715;
    --accent-gold: #C9A054;
    --accent-gold-hover: #B58B3F;
    --border-gold: rgba(201, 160, 84, 0.15);
  }

  .nav-menu.active {
    right: 0;
  }

  /* Dropdowns in mobile menu */
  .nav-item.dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
  }

  .nav-item.dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    transform: none;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gurus-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-container {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .subpage-hero {
    min-height: 240px;
    padding-top: 100px;
    padding-bottom: 20px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-section {
    padding: 1.5rem;
  }

  .tab-btn {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .slider-container {
    height: 350px;
  }
}

/* ==========================================================================
   Premium UI/UX Redesign & Asymmetrical Grid Styles
   ========================================================================== */

/* Asymmetrical Grids */
.grid-asymmetric-left {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
}

.grid-asymmetric-right {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 992px) {

  .grid-asymmetric-left,
  .grid-asymmetric-right {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Fluid Typography and Styling Updates */
.fluid-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.fluid-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Luxury Framed Images & Overlapping Cards */
.gold-framed-image {
  position: relative;
  display: inline-block;
  width: 100%;
}

.gold-framed-image::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 1.5px solid var(--accent-gold);
  z-index: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.gold-framed-image:hover::before {
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.gold-framed-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.gold-framed-image:hover img {
  transform: translateY(-5px);
}

/* Guru Premium Grid and Glass Cards */
.guru-glass-card {
  background: rgba(19, 15, 16, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

.guru-glass-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-gold-glow);
}

.guru-glass-card-img-wrap {
  position: relative;
  overflow: hidden;
  width: 150px;
  height: 180px;
  margin-top: 2.5rem;
  margin-bottom: -1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 10px 25px rgba(196,155,78,0.2);
  flex-shrink: 0;
}

.guru-glass-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
}

.guru-glass-card:hover .guru-glass-card-img {
  transform: scale(1.04);
}

.guru-glass-card-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.guru-glass-card-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
}

.guru-glass-card-info .guru-role {
  font-family: var(--font-sans);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}

.guru-glass-card-info p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Scroll Indicator Mouse */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--accent-gold);
  border-radius: 15px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouseWheel 1.6s infinite;
}

@keyframes scrollMouseWheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
}

/* Slide & Timeline Luxury Updates */
.luxury-container {
  border: 1px solid var(--border-gold);
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.luxury-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.luxury-timeline-item {
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.luxury-timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  transition: var(--transition-smooth);
}

.luxury-timeline-item:hover {
  border-left-color: var(--accent-red);
}

.luxury-timeline-item:hover::before {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.luxury-timeline-item h4 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Premium Light-Theme Element Styling & Overrides
   ========================================================================== */

/* Spacing & Layout Breathing Room adjustments (Editorial Whitespace) */
section {
  padding: 4rem 0;
}

@media (max-width: 1024px) {
  section {
    padding: 8rem 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 6rem 0;
  }

  .grid-2 {
    gap: 4rem;
  }
}

/* Card components redesign: clean, borderless floating white containers with soft drop shadows and micro 8px radius */
.guru-glass-card,
.guru-card,
.info-section,
.event-widget,
.video-card,
.contact-card,
.contact-form-container,
.luxury-container,
.class-grid-card {
  background-color: var(--bg-secondary) !important;
  background: var(--bg-secondary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(201, 160, 84, 0.08) !important;
  /* delicate outline */
  box-shadow: 0 15px 45px rgba(26, 26, 26, 0.02) !important;
  /* soft, almost invisible shadow */
  border-radius: 8px !important;
  /* micro border-radius */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Subtle, elegant hover state elevating the cards and expanding the shadows */
.guru-glass-card:hover,
.guru-card:hover,
.info-section:hover,
.event-widget:hover,
.video-card:hover,
.contact-card:hover,
.contact-form-container:hover,
.luxury-container:hover,
.class-grid-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(126, 25, 25, 0.2) !important;
  /* subtle temple maroon border on hover */
  box-shadow: 0 25px 50px rgba(126, 25, 25, 0.05) !important;
}

/* Specific inner adjustments for Gurus / Cards */
.guru-card-img-wrap {
  border: 1.5px solid var(--accent-gold) !important;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.02) !important;
  border-radius: 50% !important;
}

/* Lineage timeline decoration adjustments */
.luxury-timeline-item {
  border-left-color: var(--accent-gold) !important;
}

.luxury-timeline-item::before {
  background: var(--bg-primary) !important;
  border-color: var(--accent-gold) !important;
}

.luxury-timeline-item:hover {
  border-left-color: var(--accent-red) !important;
}

.luxury-timeline-item:hover::before {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
}

/* Home Page Mudra Slideshow redesign */
.slider-container {
  border: 1px solid rgba(201, 160, 84, 0.08) !important;
  box-shadow: 0 15px 45px rgba(26, 26, 26, 0.02) !important;
  border-radius: 8px !important;
}

.slide-overlay {
  background: linear-gradient(360deg, rgba(253, 252, 247, 0.96) 0%, rgba(253, 252, 247, 0.4) 60%, rgba(253, 252, 247, 0) 100%) !important;
}

.slide-caption {
  --text-bright: #1A1A1A;
  padding: 3rem 2.5rem;
}

.slide-title {
  text-shadow: none !important;
  font-family: var(--font-display) !important;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.slider-btn {
  background: #FFFFFF !important;
  color: var(--text-bright) !important;
  border: 1px solid rgba(201, 160, 84, 0.1) !important;
  box-shadow: 0 6px 15px rgba(26, 26, 26, 0.03) !important;
}

.slider-btn:hover {
  background: var(--accent-red) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 20px rgba(126, 25, 25, 0.15) !important;
  border-color: var(--accent-red) !important;
}

.slider-dots {
  bottom: 1.8rem;
}

.slider-dot {
  background: rgba(126, 25, 25, 0.15) !important;
}

.slider-dot.active {
  background: var(--accent-red) !important;
}

/* Gold Frame decorative image adjustments */
.gold-framed-image::before {
  border-color: rgba(201, 160, 84, 0.2) !important;
}

.gold-framed-image:hover::before {
  box-shadow: 0 10px 25px rgba(201, 160, 84, 0.05) !important;
  border-color: var(--accent-gold) !important;
}

/* Footer structure adjustments */
footer {
  background-color: #FFFFFF !important;
  /* floating feel footer */
  border-top: 1px solid rgba(201, 160, 84, 0.08) !important;
  padding: 8rem 0 4rem 0 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(201, 160, 84, 0.08) !important;
  padding-top: 3rem !important;
}

.social-icon {
  background: var(--bg-primary) !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(201, 160, 84, 0.08) !important;
  box-shadow: 0 4px 10px rgba(26, 26, 26, 0.01) !important;
}

.social-icon:hover {
  background: var(--accent-red) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 16px rgba(126, 25, 25, 0.15) !important;
  border-color: var(--accent-red) !important;
}

/* Form input elements */
.form-input {
  background-color: var(--bg-primary) !important;
  border: 1px solid rgba(201, 160, 84, 0.08) !important;
  color: var(--text-bright) !important;
  border-radius: 6px !important;
}

.form-input:focus {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 0 3px rgba(126, 25, 25, 0.08) !important;
}

/* Buttons - Sleek, Rounded Pill Shapes with Maroon / Gold Accent styling */
.btn {
  border-radius: 50px !important;
  /* fully rounded pill shapes */
  padding: 1rem 2.6rem !important;
  letter-spacing: 2px !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  border-width: 1.5px !important;
}

.btn-primary {
  background-color: transparent !important;
  color: var(--accent-red) !important;
  border: 1.5px solid var(--accent-red) !important;
}

.btn-primary::before {
  background-color: var(--accent-red) !important;
}

.btn-primary:hover {
  color: #FFFFFF !important;
  border-color: var(--accent-red) !important;
  box-shadow: 0 8px 24px rgba(126, 25, 25, 0.15) !important;
}

.btn-secondary {
  background-color: transparent !important;
  color: var(--accent-gold) !important;
  border: 1.5px solid var(--accent-gold) !important;
}

.btn-secondary::before {
  background-color: var(--accent-gold) !important;
}

.btn-secondary:hover {
  color: #FFFFFF !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 8px 24px rgba(201, 160, 84, 0.15) !important;
}

/* Educational Portal Classes Multi-Column Grid Layout */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  margin-top: 3.5rem;
}

.classes-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-top: 3.5rem;
}

@media (max-width: 1024px) {
  .classes-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .classes-grid-3 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.class-grid-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.class-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.class-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-grid-card:hover .class-img {
  transform: scale(1.05);
}

.class-level-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background-color: var(--accent-red);
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(126, 25, 25, 0.15);
}

.class-content-wrap {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.class-content-wrap h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-bright);
  font-family: var(--font-serif);
}

.class-content-wrap p {
  color: var(--text-main);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.class-meta-list {
  list-style: none;
  border-top: 1px solid rgba(201, 160, 84, 0.12);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.class-meta-list li {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.class-meta-list li strong {
  color: var(--accent-gold);
}

/* ── Enroll CTA Section ─────────────────────────────────── */
.enroll-cta-section {
  padding-top: 0 !important;
}

.enroll-cta-banner {
  background: linear-gradient(135deg, #1a0e05 0%, #2d1a0a 40%, #1c1108 100%);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 1px solid rgba(196,155,78,0.2);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.enroll-cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(196,155,78,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.enroll-cta-banner-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.enroll-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,155,78,0.12);
  border: 1px solid rgba(196,155,78,0.35);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.enroll-cta-heading {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.enroll-cta-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Cards row */
.enroll-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 2rem;
}

.enroll-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enroll-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light, #e8c87a));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enroll-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 32px rgba(196,155,78,0.15);
  transform: translateY(-4px);
}

.enroll-card:hover::before {
  opacity: 1;
}

.enroll-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(196,155,78,0.1);
  border: 1px solid rgba(196,155,78,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
  transition: background 0.3s;
}

.enroll-card:hover .enroll-card-icon {
  background: rgba(196,155,78,0.18);
}

.enroll-card-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.enroll-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.enroll-card-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.enroll-card-list a {
  font-size: 0.9rem;
  color: var(--text-main);
  transition: color 0.2s;
}

.enroll-card-list a:hover {
  color: var(--accent-gold);
}

.enroll-tag {
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(196,155,78,0.12);
  border: 1px solid rgba(196,155,78,0.25);
  color: var(--accent-gold);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.enroll-tag-green {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.3);
  color: #25d366;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.enroll-card-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Buttons */
.enroll-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.enroll-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.enroll-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.enroll-btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  color: #fff;
}

@media (max-width: 768px) {
  .enroll-cards-row {
    grid-template-columns: 1fr;
  }
  .enroll-cta-heading {
    font-size: 1.8rem;
  }
}

/* ── Modern Contact Cards ─────────────────────────────────── */
.contact-info-block .subtitle {
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-card-modern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card-modern:hover {
  border-color: rgba(196,155,78,0.4);
  box-shadow: 0 4px 20px rgba(196,155,78,0.08);
}

.contact-card-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: rgba(196,155,78,0.1);
  border: 1px solid rgba(196,155,78,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.contact-card-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-address {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-phone-row a {
  font-size: 0.88rem;
  color: var(--text-main);
  transition: color 0.2s;
}

.contact-phone-row a:hover { color: var(--accent-gold); }

.contact-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(196,155,78,0.1);
  border: 1px solid rgba(196,155,78,0.25);
  color: var(--accent-gold);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.contact-badge-green {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.3);
  color: #25d366;
}

.contact-email-link {
  display: block;
  font-size: 0.88rem;
  color: #000;
  margin-bottom: 0.3rem;
  transition: opacity 0.2s;
}

.contact-email-link:hover { opacity: 0.75; }

/* ── Modern Contact Form ─────────────────────────────────── */
.contact-form-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.cfm-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #1a0e05 0%, #2a1508 100%);
  border-bottom: 1px solid rgba(196,155,78,0.2);
}

.cfm-header-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  background: rgba(196,155,78,0.15);
  border: 1px solid rgba(196,155,78,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.cfm-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0 0 0.15rem;
}

.cfm-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cfm-body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cfm-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cfm-label {
  font-size: 0.78rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.cfm-required { color: var(--accent-gold); }

.cfm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cfm-input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.2s;
}

.cfm-textarea-icon { align-self: flex-start; top: 0.85rem; }

.cfm-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.cfm-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(196,155,78,0.12);
}

.cfm-input:focus + .cfm-input-icon,
.cfm-input-wrap:focus-within .cfm-input-icon {
  color: var(--accent-gold);
}

.cfm-select { appearance: none; cursor: pointer; }

.cfm-textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 0.75rem;
  line-height: 1.6;
}

.cfm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 2rem;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 0.4rem;
}

.cfm-submit:hover {
  background: #d4a843;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,155,78,0.3);
}

/* ── Modern Data Layouts (About Page) ─────────────────────── */
.data-list-modern {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.data-row {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  width: 40%;
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.data-value {
  width: 60%;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info-list li svg {
  color: var(--accent-gold);
  min-width: 18px;
  margin-top: 3px;
}

.pill-list-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 1rem 1rem 1rem 0;
  margin-top: 1rem;
}

.pill-list-scroll::-webkit-scrollbar {
  width: 6px;
}
.pill-list-scroll::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}
.pill-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(196, 155, 78, 0.4);
  border-radius: 4px;
}

.modern-pill {
  background: var(--bg-primary);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.modern-pill:hover {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.custom-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.custom-icon-list li svg {
  min-width: 16px;
  margin-top: 4px;
}