/*
Theme Name: Quantum Classes
Theme URI: https://quantumclassesbettiah.com
Author: Quantum Classes Design Studio
Author URI: https://quantumclassesbettiah.com
Description: Premium, distinctive academic theme for Quantum Classes - Bettiah's leading CBSE & ICSE coaching institute (Classes 4th to 10th). Engineered with clean typography, disciplined layout, and high-conversion admissions desk workflows.
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: quantum-classes
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Color Palette - Disciplined Academic Identity */
  --color-navy-dark: #0b192c;
  --color-navy: #13243c;
  --color-navy-light: #1e3a5f;
  
  --color-blue-primary: #1d4ed8;
  --color-blue-hover: #1e40af;
  --color-blue-subtle: #eff6ff;
  --color-blue-border: #bfdbfe;
  
  --color-gold: #d97706;
  --color-gold-light: #fef3c7;
  --color-gold-border: #fde68a;
  
  --color-bg-page: #f8fafc;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f1f5f9;
  
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --color-text-white: #ffffff;
  
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  
  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 16px 36px -6px rgba(29, 78, 216, 0.15);
  
  --max-width: 1240px;
  --header-height: 80px;
  --topbar-height: 42px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--color-blue-hover);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--color-navy-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.22;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  font-size: 1.025rem;
  line-height: 1.68;
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-navy-light);
  font-weight: 400;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Top Announcement Bar */
.topbar {
  background-color: var(--color-navy-dark);
  color: #94a3b8;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
}

.topbar-item a {
  color: #f1f5f9;
  font-weight: 600;
}

.topbar-item a:hover {
  color: #93c5fd;
}

.topbar-badge {
  background-color: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

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

/* Main Site Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1600;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 25, 44, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy-dark);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-primary);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-blue-primary);
  transition: width 0.25s ease;
}

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

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-blue-primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-blue-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.32);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-navy-dark);
  border-color: var(--color-border-dark);
}

.btn-secondary:hover {
  background-color: var(--color-bg-page);
  border-color: var(--color-navy-light);
  color: var(--color-navy-dark);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-gold {
  background-color: var(--color-gold);
  color: #ffffff;
}

.btn-gold:hover {
  background-color: #b45309;
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-navy-dark);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-toggle svg line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle[aria-expanded="true"] svg line:first-child {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] svg line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] svg line:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Section Common Styling */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: #ffffff;
}

.section-dark {
  background-color: var(--color-navy-dark);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #cbd5e1;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 760px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-primary);
  margin-bottom: 0.6rem;
}

.section-dark .section-eyebrow {
  color: #93c5fd;
}

.section-title {
  margin-bottom: 1rem;
}

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

/* Hero Section */
.hero {
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-page) 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero .hero-title {
  max-width: 18ch;
  font-size: clamp(2rem, 3.1vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background-color: var(--color-blue-subtle);
  border: 1px solid var(--color-blue-border);
  color: var(--color-blue-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-title span.highlight {
  color: var(--color-blue-primary);
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-pillars-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-pillar {
  display: flex;
  flex-direction: column;
}

.hero-pillar-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  line-height: 1;
}

.hero-pillar-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 0.3rem;
}

.hero-media {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 290px;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-blue-subtle);
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-text {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--color-navy-dark);
  font-weight: 600;
}

.hero-card-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Academic Method / Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-md);
}

.pillar-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--color-blue-subtle);
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-card-title {
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
}

.pillar-card p {
  font-size: 0.98rem;
}

/* Standards / Numbers Strip */
.stats-strip {
  background-color: var(--color-navy-dark);
  color: #ffffff;
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
  font-weight: 600;
}

.stat-detail {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Advantages / Why Choose Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.advantages-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advantage-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.advantage-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.advantage-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: #eff6ff;
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.advantage-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.advantage-card p {
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Classroom Cycle / Weekly Rhythm (About Page) */
.cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cycle-step-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.cycle-step-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-blue-primary);
  background-color: var(--color-blue-subtle);
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.cycle-step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.cycle-step-card p {
  font-size: 0.92rem;
}

/* Facility & Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-caption {
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy-dark);
}

.gallery-grid--bento {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(145px, 13vw);
  gap: 1rem;
}

.gallery-grid--bento .gallery-item {
  position: relative;
  min-height: 145px;
  isolation: isolate;
}

.gallery-grid--bento .gallery-item:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
}

.gallery-grid--bento .gallery-item:nth-child(2) {
  grid-column: 7 / 10;
  grid-row: 1 / 3;
}

.gallery-grid--bento .gallery-item:nth-child(3) {
  grid-column: 10 / 13;
  grid-row: 1;
}

.gallery-grid--bento .gallery-item:nth-child(4) {
  grid-column: 10 / 13;
  grid-row: 2;
}

.gallery-grid--bento .gallery-item:nth-child(5) {
  grid-column: 1 / 4;
  grid-row: 3;
}

.gallery-grid--bento .gallery-item:nth-child(6) {
  grid-column: 4 / 13;
  grid-row: 3;
}

.gallery-grid--bento .gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid--bento .gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-grid--bento .gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(11, 25, 44, 0.88));
  color: #ffffff;
}

/* Curriculum / Courses Division */
.course-division-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.course-division-card.reverse {
  direction: rtl;
}

.course-division-card.reverse > * {
  direction: ltr;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.course-card-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--color-blue-subtle);
  color: var(--color-blue-primary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.course-card-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.course-card-content p {
  margin-bottom: 1.5rem;
}

.course-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.course-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.96rem;
  color: var(--color-navy);
  font-weight: 500;
}

.course-features-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Reviews / Testimonials Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.review-stars {
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.review-author-meta {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy-dark);
}

.review-author-class {
  font-size: 0.82rem;
  color: var(--color-blue-primary);
  font-weight: 600;
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-channel-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-blue-subtle);
  color: var(--color-blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.channel-content p {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.channel-link {
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Forms */
.form-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy-dark);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--color-text-main);
  background-color: #ffffff;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

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

/* Call to Action Section */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.75rem 3rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Site Footer */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: #94a3b8;
  margin: 1.25rem 0 1.5rem;
  line-height: 1.65;
  font-size: 0.92rem;
}

.footer-social h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #ffffff;
  border-color: rgba(147, 197, 253, 0.7);
  background-color: rgba(255, 255, 255, 0.06);
}

.social-link-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
  color: #bfdbfe;
}

.social-link-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #93c5fd;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #64748b;
}

.footer-motto {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Floating Actions: Call & WhatsApp */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #ffffff;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

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

.floating-phone {
  background-color: var(--color-blue-primary);
  display: none; /* Show on mobile */
}

/* Modal Enquiry Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--color-bg-page);
  color: var(--color-navy-dark);
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-navy-dark);
  color: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  z-index: 3000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-grid--bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, 20vw);
  }

  .gallery-grid--bento .gallery-item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }

  .gallery-grid--bento .gallery-item:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1;
  }

  .gallery-grid--bento .gallery-item:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 2;
  }

  .gallery-grid--bento .gallery-item:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .gallery-grid--bento .gallery-item:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 3;
  }

  .gallery-grid--bento .gallery-item:nth-child(6) {
    grid-column: 5 / 7;
    grid-row: 3;
  }
  
  .hero-media {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .pillars-grid,
  .advantages-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
  
  .course-division-card {
    grid-template-columns: 1fr;
  }
  
  .cycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-card-image img {
    height: 300px;
  }
  
  .course-card-content {
    padding: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
  }

  .mobile-toggle[aria-expanded="true"] {
    position: relative;
    z-index: 1601;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    transition: right 0.3s ease;
    z-index: 1500;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .nav-link {
    display: inline-block;
    font-size: 1.15rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .header-cta {
    margin-top: 1.5rem;
    width: 100%;
  }

  .header-cta .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --topbar-height: auto;
  }
  
  .topbar {
    padding: 0.35rem 0;
  }
  
  .topbar .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "badge phone"
      "location hours";
    align-items: center;
    gap: 0.3rem 0.5rem;
    text-align: left;
  }
  
  .topbar-info {
    display: contents;
  }

  .topbar-actions {
    display: contents;
  }

  .topbar-badge {
    grid-area: badge;
    justify-self: start;
    padding: 0.12rem 0.45rem;
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .topbar-info .topbar-item:nth-child(2) {
    grid-area: location;
    justify-self: start;
  }

  .topbar-info .topbar-item:nth-child(3) {
    grid-area: phone;
    justify-self: end;
    white-space: nowrap;
  }

  .topbar-actions .topbar-item {
    grid-area: hours;
    justify-self: end;
    text-align: right;
  }

  .topbar-item {
    min-width: 0;
    gap: 0.3rem;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .topbar-item svg {
    flex: 0 0 14px;
  }
  
  .section {
    padding: 3.75rem 0;
  }

  .hero {
    padding: 3.25rem 0 4rem;
  }

  .hero-image-card img {
    height: 350px;
  }

  .hero-floating-card {
    bottom: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    padding: 1rem;
  }
  
  .hero-pillars-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero .hero-title {
    max-width: 18ch;
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }
  
  .pillars-grid,
  .advantages-grid,
  .cycle-grid,
  .gallery-grid,
  .reviews-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-card {
    padding: 1.75rem;
  }

  .course-card-content {
    padding: 2rem;
  }

  .cta-banner {
    padding: 2.75rem 1.75rem;
  }

  .page-article,
  .single-article {
    padding: 1.5rem !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .floating-phone {
    display: flex;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .gallery-grid.gallery-grid--bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar-info {
    gap: 0;
  }

  .brand-wrapper {
    gap: 0.55rem;
    min-width: 0;
  }

  .brand-logo-img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .brand-title {
    font-size: clamp(0.9rem, 4.2vw, 1.15rem);
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .hero-image-card img {
    height: 280px;
  }

  .hero-quick-links {
    gap: 0.65rem;
  }

  .hero-quick-links .btn {
    flex: 1 1 auto;
  }

  .course-card-content {
    padding: 1.5rem;
  }

  .course-card-content h3 {
    font-size: 1.35rem;
  }

  .form-card {
    padding: 1.25rem;
  }

  .contact-channel-card {
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .channel-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-container {
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 1.5rem 1.1rem;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .floating-actions {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .gallery-grid--bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, 42vw);
  }

  .gallery-grid--bento .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid--bento .gallery-item:nth-child(1),
  .gallery-grid--bento .gallery-item:nth-child(6) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
