/* ==========================================================================
   STUDY HOME FOUNDATION - KALABURAGI
   Design System & Styling Rules - Clean Blue & White Theme
   ========================================================================== */

:root {
  /* Clean Blue & White Theme Settings */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --primary-blue: #1d4ed8;
  --blue-glow: rgba(29, 78, 216, 0.12);
  --primary-indigo: #2563eb;
  --indigo-glow: rgba(37, 99, 235, 0.12);
  --accent-teal: #0d9488;
  --accent-emerald: #059669;
  --accent-red: #dc2626;
  --red-glow: rgba(220, 38, 38, 0.12);
  
  --border-color: #e2e8f0;
  --border-glow: rgba(29, 78, 216, 0.35);
  
  --shadow-sm: 0 4px 12px rgba(29, 78, 216, 0.05);
  --shadow-lg: 0 20px 40px rgba(29, 78, 216, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Alternate Theme (Navy Blue & White accents) */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #131b2e;
  --bg-card: rgba(22, 32, 54, 0.85);
  --bg-card-hover: rgba(30, 44, 75, 0.95);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --primary-blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.25);
  --primary-indigo: #60a5fa;
  --indigo-glow: rgba(96, 165, 250, 0.25);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(59, 130, 246, 0.4);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 🟡 Saffron & Ivory Theme */
[data-theme="saffron"] {
  --bg-main: #fffbf0;
  --bg-surface: #fff8e6;
  --bg-card: #ffffff;
  --bg-card-hover: #fef3c7;

  --text-main: #1c1410;
  --text-muted: #78533a;
  --text-inverse: #ffffff;

  --primary-blue: #d97706;
  --blue-glow: rgba(217, 119, 6, 0.15);
  --primary-indigo: #f59e0b;
  --indigo-glow: rgba(245, 158, 11, 0.18);
  --accent-teal: #b45309;
  --accent-emerald: #92400e;
  --accent-red: #dc2626;
  --red-glow: rgba(220, 38, 38, 0.12);

  --border-color: #fde68a;
  --border-glow: rgba(217, 119, 6, 0.4);

  --shadow-sm: 0 4px 12px rgba(217, 119, 6, 0.08);
  --shadow-lg: 0 20px 40px rgba(217, 119, 6, 0.12);
}

/* 🚀 Futuristic Holographic Glassmorphism Theme (Mockup 2 Concept) */
[data-theme="futuristic"] {
  --bg-main: #070b15;
  --bg-surface: rgba(13, 20, 36, 0.85);
  --bg-card: rgba(21, 32, 56, 0.7);
  --bg-card-hover: rgba(33, 50, 86, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #030712;

  --primary-blue: #00f0ff;
  --blue-glow: rgba(0, 240, 255, 0.25);
  --primary-indigo: #6366f1;
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.2);

  --border-color: rgba(0, 240, 255, 0.2);
  --border-glow: rgba(0, 240, 255, 0.5);

  --shadow-sm: 0 4px 20px rgba(0, 240, 255, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 240, 255, 0.25);
}

[data-theme="futuristic"] .card-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.12);
}

[data-theme="futuristic"] .card-glass:hover {
  border-color: #00f0ff;
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.3);
}

[data-theme="futuristic"] .btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #2563eb 100%);
  color: #030712;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

[data-theme="futuristic"] .site-header {
  backdrop-filter: blur(20px);
  background: rgba(7, 11, 21, 0.85);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

/* Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 1.8rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background-color: var(--bg-surface);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--primary-blue) !important; }
.text-indigo { color: var(--primary-indigo) !important; }
.text-red { color: var(--accent-red) !important; }
.font-red { color: var(--accent-red) !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Cards & Glassmorphism */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card-glass:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.glow-border {
  border: 1.5px solid var(--primary-blue);
  box-shadow: 0 0 25px var(--blue-glow);
}

.glow-red {
  border: 1.5px solid var(--accent-red);
  box-shadow: 0 0 25px var(--red-glow);
}

.icon-red {
  background: rgba(220, 38, 38, 0.08) !important;
  color: var(--accent-red) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-lg {
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), #1e40af);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(29, 78, 216, 0.05);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1da851;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* Announcement & Header */
.announcement-bar {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.announcement-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.announcement-items {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.announcement-items i {
  color: #60a5fa;
}

.badge-wa {
  background: #25d366;
  color: #fff;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 58px;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-image {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--primary-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
  border-color: var(--primary-blue);
}

.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 1.2rem 0 0;
  background-color: var(--bg-main);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 1.2rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.55;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Classroom Slideshow */
.hero-image-col {
  position: relative;
}

.hero-slideshow-container {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-classroom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
}

.hero-slideshow-dots {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 5;
}

.hero-slideshow-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-slideshow-dots .dot.active {
  background: var(--primary-blue);
  width: 16px;
  border-radius: 8px;
}

/* Stats bar below hero */
.hero-stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-glow);
  border: 1.5px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Hero Founder Feature Card (kept for potential reuse) */
.hero-founder-card {
  text-align: center;
  position: relative;
  background-color: var(--bg-surface);
}

.founder-photo-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: -4rem auto 1.5rem;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-blue);
  box-shadow: 0 10px 30px var(--blue-glow);
}

.photo-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-blue);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.founder-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.founder-title {
  font-size: 0.88rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.founder-credentials-list {
  text-align: left;
  margin-bottom: 1.2rem;
}

.founder-credentials-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.founder-credentials-list i {
  color: var(--primary-blue);
  margin-top: 0.2rem;
}

.founder-quote {
  font-style: italic;
  font-size: 0.88rem;
  background: rgba(29, 78, 216, 0.05);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-blue);
  color: var(--text-main);
}

/* Section Headers */
.section-header {
  margin-bottom: 0.75rem;
}

/* Inline section time/price badge */
.section-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: rgba(29,78,216,0.08);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  margin-left: 0.5rem;
}

.sub-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Detailed Founder Section */
.founder-full-grid {
  max-width: 960px;
  margin: 0 auto;
}

.founder-bio-card {
  padding: 2.5rem;
  background-color: var(--bg-surface);
}

.bio-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.bio-avatar-box img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary-blue);
  object-fit: cover;
  object-position: center 20%;
}

.bio-intro h3 {
  font-size: 1.8rem;
}

.bio-intro .qualification {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tags-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-gold, .tag-indigo {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag-gold { background: rgba(29, 78, 216, 0.08); color: var(--primary-blue); }
.tag-indigo { background: rgba(37, 99, 235, 0.08); color: var(--primary-indigo); }

.bio-details-body h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.bio-details-body p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.achievements-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.achievement-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-main);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.ach-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.achievement-item h5 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.achievement-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Compact Founder Card */
.founder-compact-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.1rem 1.4rem;
  background-color: var(--bg-surface);
  width: 100%;
  margin: 0;
}

.founder-compact-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 180px;
  flex-shrink: 0;
}

.founder-compact-left .bio-avatar-box img {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 2.5px solid var(--primary-blue);
  margin-bottom: 0.6rem;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.founder-compact-name h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.founder-compact-name .qualification {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.founder-compact-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  flex: 1;
}

.founder-compact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--bg-main);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.founder-compact-item .ach-icon {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.founder-compact-item strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 0.15rem;
}

@media (max-width: 768px) {
  .founder-compact-card {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }
  .founder-compact-right {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* Courses & Subjects */
.subjects-bar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface);
  margin-bottom: 1rem;
}

.subjects-tags-flex {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subject-tag {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.subject-tag.phy { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
.subject-tag.chem { background: rgba(13, 148, 136, 0.08); color: #0d9488; }
.subject-tag.bio { background: rgba(5, 150, 105, 0.08); color: #059669; }
.subject-tag.math { background: rgba(29, 78, 216, 0.08); color: #1d4ed8; }
.subject-tag.kan { background: rgba(219, 39, 119, 0.08); color: #db2777; }

.courses-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-surface);
  padding-top: 2.8rem; /* space for absolute badge */
}

.featured-card {
  border-color: var(--primary-blue);
  box-shadow: 0 0 25px var(--blue-glow);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.gold-badge {
  background: var(--primary-blue);
  color: #ffffff;
}

.course-icon {
  font-size: 1.4rem;
  color: var(--primary-blue);
  margin-bottom: 0.4rem;
}

.course-title {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.course-subtitle {
  color: var(--primary-blue);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.course-features {
  margin-bottom: 0.7rem;
  flex-grow: 1;
}

.course-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.course-features i {
  color: var(--accent-emerald);
  margin-top: 0.2rem;
}

/* Video + Fee Side-by-Side Panel */
.video-fee-section {
  background-color: var(--bg-surface);
}

.video-fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

/* Prevent grid children from overflowing their column */
.video-fee-grid > * {
  min-width: 0;
  overflow-x: hidden;
}

.vf-panel {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  background-color: var(--bg-card);
  width: 100%;
  overflow-x: hidden;
}

.vf-panel-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.vf-panel-header .section-title {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
  flex-shrink: 0;
}

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

.vf-panel-footer {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vf-panel-footer strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.15rem;
  font-size: 0.88rem;
}

.fee-panel {
  justify-content: flex-start;
}

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.gtab {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.gtab:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.gtab.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.gallery-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gtab-content {
  display: none;
  flex-direction: column;
  flex: 1;
}

.gtab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-photo {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  display: block;
}

/* YouTube thumbnail click-to-watch */
.yt-thumb-link {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.yt-thumb-link .gallery-photo {
  transition: filter 0.2s ease;
}

.yt-thumb-link:hover .gallery-photo {
  filter: brightness(0.75);
}

.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0,0,0,0.35);
}

.yt-thumb-link:hover .yt-play-overlay {
  opacity: 1;
}

.yt-play-btn {
  width: 56px;
  height: 56px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.watch-link {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.82rem;
}

.watch-link:hover {
  text-decoration: underline;
}

/* Instagram Reel embed */
.ig-reel-wrapper {
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
  width: 100%;
}

.ig-reel-iframe {
  width: 100%;
  max-width: 100%;
  height: 560px;
  border: none;
  display: block;
}


/* Fees & Installments */
.fees-calculator-grid {
  display: grid;
  grid-template-columns: minmax(300px, 680px);
  gap: 2.5rem;
  align-items: start;
  justify-content: center;
}



.fee-badge {
  display: inline-block;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-blue);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.fee-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.fee-amount .currency { font-size: 2rem; }
.fee-amount .per-year { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }

.fee-installment-tag {
  font-size: 0.88rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.installments-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

.inst-box { flex: 1; text-align: center; }
.inst-step { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; }
.inst-val { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); }
.inst-desc { font-size: 0.78rem; color: var(--text-muted); }
.inst-divider { color: var(--border-color); font-size: 1.2rem; }

.fee-inclusions-list h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.fee-inclusions-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.fee-inclusions-list i {
  color: var(--accent-emerald);
}

.fee-estimator-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

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

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.subject-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.chk-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.time-slot-badge {
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-blue);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.calc-result-box {
  background: var(--bg-main);
  border: 1.5px dashed var(--primary-blue);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.res-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.res-row:last-child { margin-bottom: 0; }

/* Rules Accordion */
.rules-accordion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.rule-card {
  padding: 2rem;
  background-color: var(--bg-surface);
}

.rule-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Route Map Badges & Step Styling */
.map-directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.map-embed-card,
.directions-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.route-img-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-height: 240px;
  background: #ffffff;
}

.route-img-container img {
  width: 100%;
  height: 100%;
  max-height: 235px;
  object-fit: contain;
  display: block;
}

.map-card-footer-btn {
  margin-top: auto;
  padding-top: 0.6rem;
}

.badge-route-tag {
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dir-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}

.rule-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.rule-title-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.rule-title-box p {
  font-size: 0.82rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.rule-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Section & Direct Enquiry Card */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.contact-info-card h3 {
  font-size: 1.5rem;
}

.contact-info-card {
  background-color: var(--bg-surface);
}

.contact-detail-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.c-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-main);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.contact-detail-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.phone-link {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.quick-contact-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

/* Direct Admission Summary Card */
.contact-form-card {
  background-color: var(--bg-surface);
}

.direct-enquiry-box {
  background: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.enquiry-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.enquiry-info-row i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.enquiry-info-row strong {
  display: block;
  font-size: 0.95rem;
}

.enquiry-info-row p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Footer & Clean Modal */
.site-footer {
  background: #0f172a;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.5rem;
  color: #94a3b8;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.88rem;
}

.footer-logo {
  height: 65px;
  max-width: 100%;
  object-fit: contain;
}

.footer-links h5, .footer-contact h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

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

.footer-links a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  position: relative;
  margin: 1rem;
  padding: 1.8rem 1.5rem;
  background-color: var(--bg-surface);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.modal-logo-img {
  height: 62px;
  max-width: 100%;
  object-fit: contain;
}

.modal-sub {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.modal-details-body {
  margin-top: 1.5rem;
  background: var(--bg-main);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.detail-row i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.detail-row strong {
  display: block;
  font-size: 0.9rem;
}

.detail-row p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--primary-blue);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   MOBILE FLOATING CTA BAR
   ============================================================ */
.mobile-float-cta {
  display: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
.mobile-only-btn {
  display: none;
}

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-slideshow-container {
    height: 260px;
  }

  .fees-calculator-grid,
  .contact-grid,
  .video-fee-grid,
  .map-directions-grid {
    grid-template-columns: 1fr !important;
  }

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

  .courses-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
  /* Nav */
  .hamburger-menu {
    display: block;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-only-btn {
    display: inline-flex;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-container {
    height: 60px;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.2rem 2rem;
    gap: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  /* Announcement bar — hide location on very small */
  .announcement-items span:first-child {
    display: none;
  }

  /* Hero */
  .hero-section {
    padding: 0.8rem 0 0;
  }

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

  .hero-slideshow-container {
    height: 220px;
    margin-top: 1rem;
  }

  /* Stats bar — 2x2 grid on mobile */
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item {
    gap: 0.6rem;
  }

  .stat-num {
    font-size: 1.1rem;
  }

  /* Courses — single column */
  .courses-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Fix badge overlap — switch to inline flow on mobile */
  .course-card {
    padding-top: 1.1rem; /* reset — badge will be relative */
  }

  .card-badge {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-bottom: 0.75rem;
  }

  /* Gallery tabs — horizontal scroll on mobile */
  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 0.35rem;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gtab {
    flex-shrink: 0;
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
  }

  /* Gallery + Fee panels — force full width, no overflow */
  .video-fee-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .vf-panel {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .gallery-photo {
    max-height: 220px;
  }

  .gallery-view {
    width: 100%;
    overflow: hidden;
  }

  /* Instagram reel — shorter on mobile */
  .ig-reel-iframe {
    height: 380px;
    width: 100%;
    max-width: 100%;
  }

  .ig-reel-wrapper {
    min-height: 200px;
    width: 100%;
  }

  /* Facebook video wrapper — responsive height */
  .video-wrapper {
    padding-bottom: 56.25%;
  }

  /* Founder compact card */
  .founder-compact-left {
    min-width: unset;
    width: 100%;
  }

  /* Fee section */
  .installments-timeline {
    flex-direction: column;
    gap: 0.75rem;
  }

  .inst-divider {
    transform: rotate(90deg);
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Map directions */
  .map-directions-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Modal — full width on mobile */
  .modal-card {
    margin: 0.5rem;
    padding: 1.2rem 1rem;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-details-body {
    padding: 0.9rem;
  }

  /* Toast — left side on mobile */
  .toast-container {
    bottom: 5rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }

  /* Sections spacing */
  .section {
    padding: 1.4rem 0;
  }

  /* Floating CTA bar for mobile */
  .mobile-float-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .mobile-float-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-float-cta .mfc-call {
    background: var(--primary-blue);
    color: #fff;
  }

  .mobile-float-cta .mfc-wa {
    background: #25d366;
    color: #fff;
  }

  /* Add padding to body so floating bar doesn't overlap content */
  body {
    padding-bottom: 68px;
  }
}

/* ---------- Small Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
  .logo-image {
    height: 40px;
  }

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

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

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

  .btn-lg {
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .announcement-items {
    gap: 0.6rem;
    font-size: 0.78rem;
  }

  .fee-amount {
    font-size: 1.8rem;
  }

  .subject-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-slideshow-container {
    height: 185px;
  }

  .founder-compact-card {
    padding: 1rem;
  }

  .card-glass {
    padding: 0.9rem;
  }

  .contact-action-flex {
    flex-direction: column;
  }

  .contact-action-flex .btn {
    min-width: unset !important;
    width: 100%;
  }
}

