/* ================================================================
   HEC — Happy English Club  ·  Premium Design System
   ================================================================
   A conversion-optimized, glassmorphic design system for the HEC
   bilingual educational website. Uses CSS custom properties for
   consistency and easy theming.
   ================================================================ */

/* ── Google Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand palette */
  --hec-navy:        #0a1628;
  --hec-navy-90:     rgba(10, 22, 40, 0.9);
  --hec-blue:        #2563eb;
  --hec-blue-soft:   rgba(37, 99, 235, 0.12);
  --hec-blue-glow:   rgba(37, 99, 235, 0.3);
  --hec-gold:        #f59e0b;
  --hec-gold-soft:   rgba(245, 158, 11, 0.15);
  --hec-emerald:     #10b981;
  --hec-emerald-soft:rgba(16, 185, 129, 0.15);
  --hec-rose:        #f43f5e;
  --hec-rose-soft:   rgba(244, 63, 94, 0.12);
  --hec-slate:       #64748b;
  --hec-slate-light: #94a3b8;
  --hec-bg:          #f8fafc;
  --hec-white:       #ffffff;
  --hec-border:      rgba(226, 232, 240, 0.6);

  /* Glass */
  --glass-bg:        rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-blur:      blur(20px);
  --glass-border:    rgba(255, 255, 255, 0.5);
  --glass-shadow:    0 8px 32px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:    'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-py:      5rem;
  --section-py-sm:   3rem;

  /* Radius */
  --radius-sm:       0.5rem;
  --radius-md:       1rem;
  --radius-lg:       1.5rem;
  --radius-xl:       2rem;

  /* Transitions */
  --ease-out:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--hec-navy);
  background: var(--hec-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle animated gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, var(--hec-blue-soft) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, var(--hec-gold-soft) 0%, transparent 60%),
    var(--hec-bg);
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--hec-navy);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--hec-slate);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Glass Panels ──────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  background: var(--glass-bg-strong) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hec-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 0.6rem 0;
  transition: all 0.3s var(--ease-out);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hec-blue), #3b82f6);
  color: var(--hec-white);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px var(--hec-blue-glow);
}

.nav-link {
  font-weight: 500;
  color: var(--hec-navy) !important;
  position: relative;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--hec-blue);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: var(--hec-blue) !important;
}

/* Language toggle */
.lang-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--hec-blue);
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--hec-blue);
  background: transparent;
  transition: all 0.2s var(--ease-out);
  text-decoration: none !important;
}

.lang-toggle:hover {
  background: var(--hec-blue);
  color: var(--hec-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--hec-blue-glow);
}

/* Login button */
.btn.login-btn {
  border: 1.5px solid var(--hec-border);
  color: var(--hec-slate);
  background: transparent;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn.login-btn:hover {
  color: var(--hec-blue);
  border-color: var(--hec-blue);
  background: var(--hec-blue-soft);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--hec-blue), #3b82f6);
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  box-shadow: 0 4px 14px var(--hec-blue-glow);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--hec-blue);
  border: 1.5px solid var(--hec-blue);
  background: transparent;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  transition: all 0.25s var(--ease-out);
}

.btn-outline-primary:hover {
  background: var(--hec-blue);
  color: var(--hec-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--hec-blue-glow);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Gold CTA variant */
.btn-gold {
  background: linear-gradient(135deg, var(--hec-gold), #fbbf24);
  color: var(--hec-navy);
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.25s var(--ease-out);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: var(--hec-navy);
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--hec-blue-soft), transparent 70%);
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--hec-gold-soft), transparent 70%);
  border-radius: 50%;
  animation: heroFloat 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero .display-4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hec-navy);
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--hec-slate);
  line-height: 1.7;
}

/* Hero stat cards */
.hero-stat {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s var(--ease-spring);
}

.hero-stat:hover {
  transform: translateY(-4px);
}

.hero-stat .stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--hec-blue);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--hec-slate);
  margin-top: 0.3rem;
}

/* ── Authority Section ─────────────────────────────────────────── */
.authority-section {
  padding: var(--section-py) 0;
  position: relative;
}

.authority-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.35s var(--ease-out);
  height: 100%;
}

.authority-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: var(--hec-blue);
}

.authority-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.authority-icon.blue  { background: var(--hec-blue-soft); color: var(--hec-blue); }
.authority-icon.gold  { background: var(--hec-gold-soft); color: var(--hec-gold); }
.authority-icon.green { background: var(--hec-emerald-soft); color: var(--hec-emerald); }
.authority-icon.rose  { background: var(--hec-rose-soft); color: var(--hec-rose); }

.authority-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.authority-card p {
  font-size: 0.92rem;
  color: var(--hec-slate);
  margin: 0;
  line-height: 1.6;
}

/* ── Program Cards ─────────────────────────────────────────────── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hec-blue), var(--hec-gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: transparent;
}

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

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.program-card .curriculum {
  color: var(--hec-slate);
  font-size: 0.875rem;
}

.program-card .meta {
  font-size: 0.85rem;
  color: var(--hec-slate);
}

.program-card .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--hec-navy);
}

/* Seat progress bar */
.seat-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 0.5rem 0;
}

.seat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--ease-out);
}

.seat-bar-fill.hot      { background: linear-gradient(90deg, var(--hec-rose), #ef4444); }
.seat-bar-fill.limited   { background: linear-gradient(90deg, var(--hec-gold), #fbbf24); }
.seat-bar-fill.open      { background: linear-gradient(90deg, var(--hec-emerald), #34d399); }

/* ── Badges ────────────────────────────────────────────────────── */
.badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.badge-hot {
  background: var(--hec-rose-soft);
  color: var(--hec-rose);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-hot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hec-rose);
  animation: badgePulse 1.5s infinite;
}

.badge-limited {
  background: var(--hec-gold-soft);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-open {
  background: var(--hec-emerald-soft);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-free {
  background: linear-gradient(135deg, var(--hec-emerald-soft), rgba(16, 185, 129, 0.25));
  color: #047857;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

/* ── Reading Club ──────────────────────────────────────────────── */
.reading-club-section {
  padding: var(--section-py) 0;
  position: relative;
}

.rc-feature {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.rc-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--hec-blue-soft);
  color: var(--hec-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.rc-feature h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.rc-feature p {
  font-size: 0.88rem;
  color: var(--hec-slate);
  margin: 0;
}

/* ── Testimonials ──────────────────────────────────────────────── */
.testimonial-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-card .stars {
  color: var(--hec-gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.94rem;
  color: var(--hec-navy);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hec-blue-soft);
}

.testimonial-card .author-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-card .author-grade {
  font-size: 0.8rem;
  color: var(--hec-slate);
}

/* ── Methodology ───────────────────────────────────────────────── */
.method-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-out);
  height: 100%;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.method-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: var(--hec-blue-soft);
  color: var(--hec-blue);
}

.method-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.method-card p {
  font-size: 0.88rem;
  color: var(--hec-slate);
  margin: 0;
  line-height: 1.6;
}

/* ── Admissions ────────────────────────────────────────────────── */
.admission-timeline {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.timeline-step {
  flex: 1;
  min-width: 160px;
  max-width: 250px;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.timeline-step::after {
  content: '';
  position: absolute;
  top: 2.6rem;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--hec-border);
}

.timeline-step:last-child::after {
  display: none;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hec-blue), #3b82f6);
  color: var(--hec-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px var(--hec-blue-glow);
}

.timeline-step h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-step p {
  font-size: 0.82rem;
  color: var(--hec-slate);
  margin: 0;
}

.pricing-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

.pricing-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hec-border);
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item .label {
  font-weight: 500;
  color: var(--hec-navy);
}

.pricing-item .amount {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--hec-blue);
  font-size: 1.05rem;
}

/* ── Scarcity / Urgency CTA ────────────────────────────────────── */
.scarcity-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--hec-navy), #1e293b);
  color: var(--hec-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scarcity-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.1), transparent 50%);
  pointer-events: none;
}

.scarcity-section h2 {
  color: var(--hec-white);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.scarcity-section p {
  color: var(--hec-slate-light);
  max-width: 550px;
  margin: 0 auto 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  min-width: 80px;
  text-align: center;
}

.countdown-unit .number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--hec-white);
  line-height: 1;
}

.countdown-unit .label {
  font-size: 0.75rem;
  color: var(--hec-slate-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact-section {
  padding: var(--section-py) 0;
}

.contact-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

.form-control,
.form-select {
  border: 1.5px solid var(--hec-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.9);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--hec-blue);
  box-shadow: 0 0 0 3px var(--hec-blue-soft);
  outline: none;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: var(--hec-blue-soft);
  color: var(--hec-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
}

.social-link.facebook {
  background: rgba(59, 89, 152, 0.1);
  color: #3b5998;
}

.social-link.zalo {
  background: rgba(0, 106, 255, 0.1);
  color: #006aff;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--hec-navy) !important;
  color: var(--hec-slate-light);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hec-blue), var(--hec-gold), var(--hec-emerald));
}

.footer h6 {
  color: var(--hec-white);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  color: var(--hec-slate-light);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.88rem;
}

.footer a:hover {
  color: var(--hec-white);
}

.footer-brand .brand-badge {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.82rem;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Utilities ─────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--hec-blue), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.small-muted {
  color: var(--hec-slate);
  font-size: 0.85rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--hec-blue), var(--hec-gold));
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero { padding: 3rem 0 2rem; }
  .admission-timeline { flex-direction: column; align-items: center; }
  .timeline-step::after { display: none; }
  .countdown-unit { min-width: 65px; padding: 0.75rem 1rem; }
  .countdown-unit .number { font-size: 1.5rem; }
}

@media (max-width: 767px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .hero .display-4 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero-stat .stat-value {
    font-size: 1.3rem;
  }
  .authority-card {
    padding: 1.5rem;
  }
  .scarcity-section {
    padding: 3rem 0;
  }
}

@media (max-width: 575px) {
  .btn-lg {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
  }
  .hero-stat {
    padding: 0.75rem;
  }
}

/* ── Legacy Bootstrap overrides ────────────────────────────────── */
.card-shadow {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
}

.bg-light {
  background: transparent !important;
}

.bg-white {
  background: var(--glass-bg-strong) !important;
}

/* Ensure carousel captions are legible on glass */
.carousel-caption {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  bottom: 1rem;
}

.carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   SUMMER CAMP STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Camp Hero */
.camp-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--hec-blue-soft), #ffffff);
  border-bottom: 1px solid rgba(37,99,235,0.1);
  overflow: hidden;
}

.camp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hec-blue);
  box-shadow: 0 4px 15px rgba(37,99,235,0.05);
  border: 1px solid rgba(37,99,235,0.1);
  transition: transform 0.2s ease;
}
.camp-pill:hover { transform: translateY(-2px); }
.camp-pill i { color: var(--hec-gold); }

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-hot {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220,38,38,0.2);
}
.badge-open {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.2);
}

/* Timetable */
.camp-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  background: white;
  padding: 1px; /* border offset */
}
.camp-table {
  width: 100%;
  min-width: 900px; /* force scroll on mobile */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}
.camp-table th {
  background: var(--hec-dark);
  color: white;
  padding: 1.2rem 1rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.camp-table th small {
  display: block;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
  font-size: 0.75rem;
}
.camp-table th.tt-time {
  width: 110px;
  background: #111827; 
}
.camp-table th.tt-friday {
  background: linear-gradient(135deg, var(--hec-dark), #1e1b4b);
}

.camp-table td {
  padding: 1rem;
  vertical-align: top;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.camp-table td.tt-time {
  font-weight: 700;
  color: var(--hec-text);
  background: #f8fafc;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}
.camp-table td.tt-time-sm {
  font-weight: 600;
  color: var(--hec-text);
  background: #f8fafc;
  font-size: 0.8rem;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

/* Blocks */
.tt-block {
  border-radius: 8px;
  margin: -0.2rem;
  padding: 0.8rem;
  height: calc(100% + 0.4rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}
.tt-block:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
}

.tt-emoji {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.tt-block strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #1e293b;
  line-height: 1.2;
}
.tt-block small {
  color: #475569;
  line-height: 1.4;
  display: block;
}

/* Colors */
.tt-mindful { background: #fef08a; border-left: 4px solid #eab308; } /* Yellow */
.tt-english { background: #e0e7ff; border-left: 4px solid #6366f1; } /* Indigo */
.tt-steam   { background: #dcfce7; border-left: 4px solid #22c55e; } /* Green */
.tt-lunch   { background: #fed7aa; border-left: 4px solid #f97316; } /* Orange */
.tt-rest    { background: #f1f5f9; border-left: 4px solid #94a3b8; } /* Slate */
.tt-art     { background: #fae8ff; border-left: 4px solid #d946ef; } /* Fuchsia */
.tt-dance   { background: #ffe4e6; border-left: 4px solid #f43f5e; } /* Rose */
.tt-code    { background: #ccfbf1; border-left: 4px solid #14b8a6; } /* Teal */
.tt-global  { background: #e0f2fe; border-left: 4px solid #0ea5e9; } /* Sky */
.tt-showcase{ background: #fef9c3; border-left: 4px solid #eab308; } /* Yellow */
.tt-play    { background: #f3e8ff; border-left: 4px solid #a855f7; } /* Purple */

.tt-break-row td {
  background: #f8fafc;
  padding: 0.5rem;
}
.tt-break {
  text-align: center;
  color: #64748b;
  font-weight: 600;
  font-style: italic;
  font-size: 0.9rem;
}

/* Special Star Block for Friday PM */
.tt-showcase-star {
  background: linear-gradient(135deg, #fef9c3, #fde047);
  box-shadow: inset 0 0 0 1px rgba(234,179,8,0.3);
}
.tt-showcase-star .tt-star {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.2rem;
  animation: pulseStar 2s infinite ease-in-out;
}

@keyframes pulseStar {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
