/* ==========================================================================
   PGI WINTER THEME TOKENS & SYSTEM STYLES
   Design Tokens:
   - Midnight Navy: #101D35
   - Winter Blue:   #B9DDF5
   - Ice White:     #F5FAFF
   - Frost Blue:    #DCEEFF
   - Plant Green:   #296934
   - Soft Silver:   #D8E2EC
   ========================================================================== */

:root {
  --midnight-navy: #101D35;
  --midnight-navy-dark: #0A1324;
  --midnight-navy-light: #182C4E;
  --winter-blue: #B9DDF5;
  --winter-blue-soft: #D4ECFB;
  --ice-white: #F5FAFF;
  --frost-blue: #DCEEFF;
  --plant-green: #296934;
  --plant-green-light: #296934;
  --plant-green-dark: #296934;
  --soft-silver: #D8E2EC;
  --soft-silver-light: #EBF2F8;
  --slate-text: #33475B;
  --slate-muted: #627D98;

  /* Frosted Glass & Surface Tokens */
  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-bg-hover: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(216, 226, 236, 0.85);
  --glass-border-hover: rgba(185, 221, 245, 0.9);
  --glass-blur: blur(16px);
  --glass-shadow: 0 12px 36px rgba(16, 29, 53, 0.07), 0 2px 6px rgba(16, 29, 53, 0.04);
  --glass-shadow-hover: 0 20px 48px rgba(16, 29, 53, 0.12), 0 0 24px rgba(185, 221, 245, 0.35);

  /* Glow Tokens */
  --glow-winter: 0 0 28px rgba(185, 221, 245, 0.45);
  --glow-plant: 0 0 24px rgba(41, 105, 52, 0.3);
  --glow-navy: 0 8px 30px rgba(16, 29, 53, 0.28);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ice-white);
  color: var(--midnight-navy);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--winter-blue);
  outline-offset: 3px;
}

/* Subtle Snowfall Background Canvas */
#snowCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Wrapper allowing section backgrounds to paint beneath #snowCanvas while foreground sits above */
.site-content {
  position: static;
}

/* ==========================================================================
   Navigation Bar (Stitch Crisp White Header)
   ========================================================================== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.5rem clamp(1.25rem, 3.5vw, 2.75rem);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E8EEF5;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--midnight-navy);
}

.brand-logo {
  width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: #0F172A;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plant-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.nav-link {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.78rem;
  border-radius: 7px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: #0F172A;
  background: #F1F5F9;
}

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

.nav-actions .btn {
  padding: 0.56rem 1.15rem;
  font-size: 0.92rem;
  border-radius: 8px;
}

.burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--midnight-navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.55rem;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: #0F172A;
  color: #ffffff;
  border-color: #0F172A;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  color: #ffffff;
}

.btn-accent {
  background: var(--plant-green);
  color: #ffffff;
  border-color: var(--plant-green);
  box-shadow: 0 4px 14px rgba(41, 105, 52, 0.22);
}

.btn-accent:hover {
  background: #21572a;
  border-color: #21572a;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(41, 105, 52, 0.3);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--plant-green);
  color: var(--plant-green);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  color: #0F172A;
  border: 1px solid #CBD5E1;
}

.btn-outline:hover {
  background: #ffffff;
  border-color: #94A3B8;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2.15rem;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  border-radius: 10px;
}

.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1.05rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #DCE8F2;
  border-radius: 999px;
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.badge-eyebrow span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plant-green);
}

/* ==========================================================================
   Hero Section (Preserves winter-bg.jpg + #snowCanvas cleanly)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.25rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 5.5rem);
  background: var(--ice-white);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/winter-bg.jpg');
  background-size: cover;
  background-position: center 78%;
  background-repeat: no-repeat;
  opacity: 0.94;
  filter: contrast(1.04) saturate(1.08);
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 52% at 50% 44%, rgba(255, 255, 255, 0.86) 0%, rgba(248, 252, 255, 0.56) 52%, rgba(242, 248, 255, 0.06) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.85) 95%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-1 {
  position: absolute;
  top: -15%;
  right: 5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 221, 245, 0.35) 0%, rgba(220, 238, 255, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 1;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: 2%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 226, 236, 0.45) 0%, rgba(245, 250, 255, 0) 70%);
  pointer-events: none;
  filter: blur(35px);
  z-index: 1;
}

.hero-container {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  text-align: center;
}

.hero-container h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.85);
}

.hero-subheading {
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  font-weight: 700;
  color: var(--plant-green);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-description {
  max-width: 740px;
  margin: 0 auto 2rem;
  color: #33475B;
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.65;
}

/* 4 Highlight Chips */
.highlight-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.38rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--midnight-navy);
  box-shadow: 0 4px 14px rgba(16, 29, 53, 0.05);
  transition: all 0.25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--winter-blue);
  box-shadow: var(--glass-shadow);
  background: #ffffff;
}

.chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--frost-blue);
  color: var(--plant-green);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}

/* ==========================================================================
   Section Layouts & Full-Bleed Alternating Stitch Bands
   ========================================================================== */
.section-pad {
  width: 100%;
  max-width: none;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem);
}

.section-pad > * {
  position: relative;
  z-index: 5;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

.cert-grid-layout {
  position: relative;
  z-index: 5;
}

section[id] {
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.4rem;
}

.section-eyebrow {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--plant-green);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.95rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: #64748B;
  font-size: 1.08rem;
  line-height: 1.55;
}

/* Frosted Glass Card Primitive */
.frosted-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.frosted-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

/* ==========================================================================
   Scholarship Section
   ========================================================================== */
.scholarship-section {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid #EDF2F7;
  border-bottom: 1px solid #EDF2F7;
}

.scholarship-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.8rem;
}

.metric-pill {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
}

.metric-pill .metric-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.metric-pill .metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--midnight-navy);
}

.metric-pill .metric-val.green {
  color: var(--plant-green);
}

#scholarship .section-header,
#benefits .section-header {
  margin-bottom: 2.25rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto 2.25rem;
  gap: 1.85rem;
  padding-top: 0.65rem;
}

.tier-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 2rem 2rem 1.65rem;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.tier-card.featured {
  border: 1.5px solid var(--plant-green);
  box-shadow: 0 10px 28px rgba(41, 105, 52, 0.09);
}

.tier-card.top {
  border: 1px solid #E2E8F0;
  background: #ffffff;
}

.tier-badge {
  position: absolute;
  top: -13px;
  right: 16px;
  padding: 0.32rem 0.9rem;
  background: var(--plant-green);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.tier-card.featured .tier-badge {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.tier-header {
  margin-bottom: 0.8rem;
}

.tier-name {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.3rem;
}

.tier-score {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--plant-green);
}

.tier-discount {
  font-size: clamp(2.15rem, 3.2vw, 2.65rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  margin: 0.65rem 0 0.4rem;
  letter-spacing: -0.02em;
}

.tier-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tier-orig {
  text-decoration: line-through;
  color: #94A3B8;
  font-size: 1.08rem;
  font-weight: 600;
}

.tier-final {
  font-size: 1.62rem;
  font-weight: 800;
  color: var(--plant-green);
}

.tier-card .benefit-desc {
  font-size: 0.98rem;
  line-height: 1.58;
  color: #475569;
  margin-bottom: 1.15rem;
}

.tier-validity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748B;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed #E2E8F0;
}

/* ==========================================================================
   Winter Internship Official Guidelines & Structure (#guidelines)
   ========================================================================== */
#guidelines {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid #EDF2F7;
  border-bottom: 1px solid #EDF2F7;
}

.guidelines-welcome-box {
  max-width: 1120px;
  margin: 0 auto 2.25rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--plant-green);
  border-radius: 14px;
  padding: 1.4rem 1.8rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.guidelines-welcome-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guidelines-welcome-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  max-width: 1120px;
  margin: 0 auto 2.25rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem 1.6rem;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.guide-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9999px;
}

.guide-card-title {
  font-size: 1.14rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.guide-card-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.guide-item-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-item-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.guide-item-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.guide-note-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #92400E;
  line-height: 1.45;
  margin-top: auto;
}

.guide-note-box strong {
  color: #78350F;
}

.guide-banner-footer {
  max-width: 1120px;
  margin: 0 auto;
  background: #0B1528;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.guide-footer-text h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.guide-footer-text p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
  max-width: 580px;
}

.guide-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.guide-apply-btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guide-sign-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.timing-days {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #296934;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
#benefits {
  background: rgba(246, 249, 252, 0.88);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  padding: 1.75rem 1.7rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.benefit-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.benefits-grid .benefit-card:nth-child(2) .benefit-icon-box {
  background: #ECFDF5;
  color: #296934;
}
.benefits-grid .benefit-card:nth-child(3) .benefit-icon-box {
  background: #EEF2FF;
  color: #4F46E5;
}
.benefits-grid .benefit-card:nth-child(4) .benefit-icon-box {
  background: #F1F5F9;
  color: #334155;
}
.benefits-grid .benefit-card:nth-child(5) .benefit-icon-box {
  background: #FEF3C7;
  color: #B45309;
}
.benefits-grid .benefit-card:nth-child(6) .benefit-icon-box {
  background: #FFE4E6;
  color: #BE123C;
}

.benefit-title {
  font-size: 1.14rem;
  font-weight: 800;
  color: #0F172A;
}

.benefit-desc {
  color: #64748B;
  font-size: 0.96rem;
  line-height: 1.58;
}

/* ==========================================================================
   Program & Syllabus (Database-Backed + Tracks)
   ========================================================================== */
#program {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid #EDF2F7;
  border-bottom: 1px solid #EDF2F7;
}

#program .section-header {
  margin-bottom: 1.65rem;
}

.track-switcher {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.track-btn {
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid #CBD5E1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-btn:hover {
  border-color: #94A3B8;
  color: #0F172A;
}

.track-btn.active {
  background: #0F172A;
  color: #ffffff;
  border-color: #0F172A;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}

#program > .syllabus-carousel-wrap,
#program > .syllabus-carousel-meta {
  max-width: 1340px;
}

.syllabus-carousel-wrap {
  position: relative;
  padding: 0 3.35rem;
  margin-bottom: 1.1rem;
}

.syllabus-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.35rem 0.1rem 0.65rem;
  border-radius: 14px;
}

.syllabus-viewport::-webkit-scrollbar {
  display: none;
}

.syllabus-viewport:focus-visible {
  outline: 2px solid var(--plant-green);
  outline-offset: 4px;
}

.syllabus-track {
  display: flex;
  align-items: stretch;
  gap: 1.35rem;
}

.syllabus-track .syllabus-card {
  flex: 0 0 calc((100% - 2 * 1.35rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.syllabus-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #ffffff;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.syllabus-arrow-btn:hover:not(:disabled) {
  background: var(--plant-green);
  color: #ffffff;
  border-color: var(--plant-green);
  box-shadow: 0 8px 20px rgba(41, 105, 52, 0.25);
  transform: translateY(-50%) scale(1.04);
}

.syllabus-arrow-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  box-shadow: none;
}

.syllabus-arrow-prev {
  left: 0;
}

.syllabus-arrow-next {
  right: 0;
}

.syllabus-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.syllabus-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
}

.syllabus-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.syllabus-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #CBD5E1;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.syllabus-dot.active {
  width: 22px;
  background: var(--plant-green);
}

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.syllabus-grid:empty {
  display: none;
}

.syllabus-card {
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.65rem 1.65rem;
  border-radius: 14px;
}

.syllabus-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.syllabus-track-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.68rem;
  border-radius: 6px;
}

.badge-tech {
  background: #EFF6FF;
  color: #0369A1;
  border: 1px solid #DBEAFE;
}

.badge-nontech {
  background: rgba(41, 105, 52, 0.08);
  color: var(--plant-green);
  border: 1px solid rgba(41, 105, 52, 0.22);
}

.syllabus-card h3 {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0F172A;
  margin-bottom: 0.55rem;
}

.syllabus-duration {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--plant-green);
  white-space: nowrap;
}

.syllabus-desc {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.syllabus-skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  list-style: none;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}

.syllabus-skill {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1E293B;
}

.syllabus-skill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plant-green);
}

.syllabus-card[data-track="technical"] .syllabus-skill::before {
  background: #0284C7;
}

/* ==========================================================================
   Timings & Batch Dates Section
   ========================================================================== */
#timings {
  background: rgba(246, 249, 252, 0.88);
}

.timings-container {
  max-width: 1120px !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.5rem;
}

.timing-card {
  padding: 1.85rem 1.95rem;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.timing-card.offline {
  border: 1.5px solid var(--plant-green);
  box-shadow: 0 8px 24px rgba(41, 105, 52, 0.08);
}

.timing-mode {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0284C7;
  margin-bottom: 0.45rem;
  display: block;
}

.timing-card.offline .timing-mode {
  color: var(--plant-green);
}

.timing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.55rem;
}

.timing-hours {
  font-size: 1.48rem;
  font-weight: 800;
  color: #0F172A;
  background: #F1F5F9;
  padding: 0.48rem 1.05rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.timing-desc {
  color: #64748B;
  font-size: 0.98rem;
  line-height: 1.58;
}

.dates-banner {
  max-width: 1120px !important;
  background: #0B1528;
  color: #ffffff;
  border-radius: 14px;
  padding: 1.35rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}

.dates-banner h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.dates-banner p {
  color: #94A3B8;
  font-size: 0.94rem;
}

.dates-tag {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(185, 221, 245, 0.32);
  padding: 0.58rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Certificate Sample Band & Final CTA
   ========================================================================== */
.cert-section {
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid #EDF2F7;
  border-bottom: 1px solid #EDF2F7;
}

.cert-grid-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: clamp(2rem, 4vw, 3.8rem);
  align-items: center;
}

.cta-final-section {
  text-align: center;
  background: linear-gradient(180deg, rgba(240, 246, 252, 0.9) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.cert-prev {
  display: flex;
  justify-content: center;
  width: 100%;
}

.cert-prev .cert {
  width: 100%;
  max-width: 440px;
}

.cert {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1 / 1.414;
  background: #ffffff;
  color: #101D35;
  box-shadow: 0 18px 46px rgba(16, 29, 53, 0.16), 0 6px 20px rgba(184, 134, 11, 0.14);
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.cert::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 8.6cqw solid;
  border-image: linear-gradient(135deg, #e0bf55, #b8860b 50%, #d9b44a) 1;
  z-index: 0;
  pointer-events: none;
}

.cert-b1 {
  position: absolute;
  inset: 8.6cqw;
  border: 0.5cqw solid var(--plant-green);
  pointer-events: none;
}

.cert-b2 {
  position: absolute;
  inset: 9.8cqw;
  border: 0.3cqw solid #d4a82a;
  pointer-events: none;
}

.cc {
  position: absolute;
  width: 7.6cqw;
  height: 7.6cqw;
  pointer-events: none;
}
.cc.tl { left: 10.5cqw; top: 10.5cqw; }
.cc.tr { right: 10.5cqw; top: 10.5cqw; transform: scaleX(-1); }
.cc.bl { left: 10.5cqw; bottom: 10.5cqw; transform: scaleY(-1); }
.cc.br { right: 10.5cqw; bottom: 10.5cqw; transform: scale(-1); }

.cert-wm {
  position: absolute;
  inset: 8.6cqw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-38deg);
  font: 900 10.5cqw / 1 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: rgba(184, 134, 11, 0.14);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}

.cert-in {
  position: absolute;
  top: 12cqw;
  bottom: 12cqw;
  left: 14cqw;
  right: 14cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.cert-stars {
  display: flex;
  align-items: center;
  gap: 3.6cqw;
  color: #b8860b;
  font-size: 2.2cqw;
  line-height: 1;
}
.cert-stars b {
  font-size: 4.6cqw;
}

.cert-logo {
  width: 9cqw;
  height: 9cqw;
  object-fit: contain;
  margin-top: 3cqw;
}

.cert-h {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 7.4cqw;
  line-height: 1.08;
  color: #101D35;
  margin: 3cqw 0 0;
}

.cert-t {
  font-size: 1.85cqw;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b8860b;
  margin-top: 3cqw;
}

.cert-dv {
  position: relative;
  width: 34cqw;
  height: 0.3cqw;
  background: linear-gradient(90deg, transparent, #b8860b 20%, #b8860b 80%, transparent);
  margin: 2.2cqw 0 0;
}
.cert-dv i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.4cqw;
  height: 1.4cqw;
  background: #b8860b;
  transform: translate(-50%, -50%) rotate(45deg);
}

.cert-name {
  font-family: 'Caveat Brush', 'Playfair Display', cursive;
  font-size: 7cqw;
  line-height: 1.05;
  color: var(--plant-green);
  margin-top: 2.6cqw;
}

.cert-d {
  font-size: 2.2cqw;
  line-height: 1.5;
  color: #334155;
  max-width: 54cqw;
  margin-top: 2.4cqw;
}

.cert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5cqw;
  width: 100%;
  border-top: 0.2cqw solid #e2e8f0;
  padding-top: 1.8cqw;
  margin-top: auto;
  font-size: 1.75cqw;
  font-weight: 700;
  color: #101D35;
  white-space: nowrap;
}

.cert-foot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  margin-top: 2cqw;
  min-height: 14cqw;
}

.cert-seal {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 13.5cqw;
  height: 13.5cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #c8962a, #b8860b);
  border: 0.9cqw solid #e0bf55;
  box-shadow: inset 0 0 0 0.45cqw #fff3c4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.65cqw;
  line-height: 1.2;
}

.cert-sig {
  width: 25cqw;
  text-align: center;
}
.cert-sig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7cqw;
  object-fit: contain;
  border-bottom: 0.2cqw solid #e0bf55;
  padding-bottom: 0.5cqw;
}
.cert-sig b {
  display: block;
  font-size: 2cqw;
  color: #101D35;
  margin-top: 1cqw;
}
.cert-sig small {
  display: block;
  font-size: 1.6cqw;
  font-weight: 700;
  color: var(--plant-green);
}

/* Modal Dialog */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(16, 29, 53, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
}

.cert-modal[hidden] {
  display: none;
}

.cert-modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: auto;
}

.cert-modal-box #certBig {
  width: min(500px, 90vw, calc((100dvh - 7.5rem) / 1.414));
}

.cert-close-pill {
  padding: 0.72rem 2rem;
  border-radius: 999px;
  background: rgba(16, 29, 53, 0.75);
  color: #F8FAFC;
  border: 1.5px solid #e0bf55;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cert-close-pill:hover {
  background: #e0bf55;
  color: #101D35;
  transform: translateY(-1px);
}

/* ==========================================================================
   Footer (Light Stitch Specification)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 5;
  background: #ffffff;
  color: #475569;
  padding: 3.25rem clamp(1.25rem, 3vw, 2.5rem) 1.75rem;
  border-top: 1px solid #E2E8F0;
}

.footer-top {
  max-width: 1220px;
  margin: 0 auto 2.25rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.14rem;
  color: #0F172A;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  color: #64748B;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0284C7;
  margin-bottom: 0.95rem;
}

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

.footer-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #296934;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  font-size: 0.94rem;
  color: #475569;
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 1.45rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #64748B;
}

/* ==========================================================================
   Shared Portal Header & Minimal Footer (Apply, Login, Portal, Dashboard)
   ========================================================================== */
.app-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #0F172A;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-header .brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-sq {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.brand-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #0F172A;
}

.brand-badge {
  background: #E8F3FF;
  border: 1px solid #BAE6FD;
  color: #0284C7;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-header .header-actions .btn-outline {
  background: #ffffff;
  color: #0F172A;
  border: 1.5px solid #D8E2EC;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.84rem;
}

.app-header .header-actions .btn-outline:hover {
  border-color: #101D35;
  background: #F5FAFF;
}

.app-header .header-actions .btn-primary {
  background: #296934;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.84rem;
  box-shadow: 0 3px 10px rgba(41, 105, 52, 0.22);
}

.app-header .header-actions .btn-primary:hover {
  background: #296934;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.user-email {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
}

.btn-logout {
  background: #296934;
  border: none;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.12s;
}

.btn-logout:hover {
  background: #296934;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.btn-nav-payment {
  background: #ffffff;
  color: #0284C7;
  border: 1.5px solid #BAE6FD;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.12s;
  white-space: nowrap;
}

.btn-nav-payment:hover:not(:disabled) {
  background: #F0F9FF;
  border-color: #0284C7;
  transform: translateY(-1px);
}

.btn-nav-payment:disabled {
  opacity: 0.65;
  cursor: wait;
}

.portal-footer {
  background: #ffffff;
  color: #64748b;
  padding: 28px 24px 22px;
  font-size: 0.84rem;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
}

.portal-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.portal-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.portal-footer-brand strong {
  display: block;
  color: #0f172a;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.portal-footer-brand span {
  font-size: 0.8rem;
  color: #64748b;
}

.portal-footer .footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-footer .footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
}

.portal-footer .footer-links a:hover {
  color: #296934;
}

.portal-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  font-size: 0.78rem;
}

.portal-footer .footer-copy {
  color: #94a3b8;
  margin: 0;
}

.footer-cohort-tag {
  color: #0284c7;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1120px) {
  .syllabus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .syllabus-track .syllabus-card {
    flex: 0 0 calc((100% - 1.35rem) / 2);
  }
}

@media (max-width: 960px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }

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

  .guide-banner-footer {
    padding: 1.4rem 1.6rem;
    gap: 1.25rem;
  }

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

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

@media (max-width: 640px) {
  .benefits-grid,
  .guidelines-grid,
  .syllabus-grid,
  .timings-container,
  .footer-top {
    grid-template-columns: 1fr;
  }

  /* Guidelines Mobile Alignment */
  .guidelines-welcome-box {
    padding: 1.2rem 1.15rem;
    margin-bottom: 1.35rem;
  }

  .guidelines-welcome-title {
    font-size: 1.02rem;
    align-items: flex-start;
  }

  .guidelines-welcome-text {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .guidelines-grid {
    gap: 1rem;
    margin-bottom: 1.35rem;
  }

  .guide-card {
    padding: 1.25rem 1.15rem;
  }

  .guide-banner-footer {
    padding: 1.25rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 1.1rem;
  }

  .guide-footer-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
  }

  .guide-footer-text p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .guide-banner-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
    align-items: stretch;
  }

  .guide-banner-actions .guide-apply-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    box-sizing: border-box;
  }

  .guide-banner-actions .guide-sign-pill {
    width: 100%;
    text-align: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
  }

  .syllabus-carousel-wrap {
    padding: 0 2.65rem;
  }

  .syllabus-arrow-btn {
    width: 34px;
    height: 34px;
  }

  .syllabus-track .syllabus-card {
    flex: 0 0 100%;
  }

  .hero-section {
    min-height: calc(100dvh - 58px);
    padding: 2.5rem 1rem 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-large {
    width: 100%;
    max-width: 340px;
    padding: 0.85rem 1.25rem;
  }

  .cert-prev .cert {
    max-width: 100%;
  }

  .section-pad,
  .cert-section {
    padding: 2.4rem 1rem;
  }

  .dates-banner {
    padding: 1rem 1.15rem;
  }

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Shared portal header & footer responsive compact mode */
  .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .brand-logo-sq {
    width: 34px;
    height: 34px;
    padding: 2px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .header-actions {
    gap: 6px;
  }

  .app-header .header-actions .btn-outline,
  .app-header .header-actions .btn-primary,
  .btn-logout,
  .btn-nav-payment {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .portal-footer {
    padding: 22px 14px 18px;
  }

  .portal-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .portal-footer .footer-links {
    gap: 10px 14px;
  }
}

@media (max-width: 440px) {
  .brand-badge {
    display: none;
  }

  .user-email {
    display: none;
  }

  .nav-header {
    padding: 0.45rem 1rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    padding: 2px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-tag {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245, 250, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 5%;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(16, 29, 53, 0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-actions .btn {
    width: 100%;
  }

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

  .dates-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-info-panel {
    text-align: center;
  }

  .cert-info-panel .section-title {
    text-align: center !important;
  }

  .cert-prev .cert {
    max-width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #snowCanvas {
    display: none !important;
  }
}


/* ==========================================================================
   Enquiry Form & Application Flow Styles
   ========================================================================== */
.apply-hero {
  padding: 3rem 5% 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--ice-white) 0%, var(--frost-blue) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.apply-container {
  max-width: 820px;
  margin: -2rem auto 4rem;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.apply-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.8rem 2.5rem;
  box-shadow: var(--glass-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--midnight-navy);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .req {
  color: #c62828;
  margin-left: 2px;
}

.form-label .hint {
  font-size: 0.76rem;
  color: var(--slate-muted);
  font-weight: 500;
}

.form-control {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--soft-silver);
  background: #ffffff;
  color: var(--midnight-navy);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-control:focus {
  border-color: var(--winter-blue);
  box-shadow: 0 0 0 3px rgba(185, 221, 245, 0.4);
}

.form-control.is-valid {
  border-color: var(--plant-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A6636'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

.form-control.is-invalid {
  border-color: #c62828;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c62828'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

.form-feedback {
  font-size: 0.78rem;
  color: #c62828;
  margin-top: 0.35rem;
  font-weight: 600;
  min-height: 1rem;
}

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

/* Radio Selection Cards */
.radio-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.radio-card {
  border: 1.5px solid var(--soft-silver);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-card:hover {
  border-color: var(--winter-blue);
  background: var(--ice-white);
}

.radio-card.selected {
  border-color: var(--plant-green);
  background: #f0f7f2;
  box-shadow: 0 4px 14px rgba(41, 105, 52, 0.12);
}

.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--soft-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.radio-card.selected .radio-circle {
  border-color: var(--plant-green);
  background: var(--plant-green);
}

.radio-card.selected .radio-circle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.radio-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--midnight-navy);
}

.radio-card-desc {
  font-size: 0.78rem;
  color: var(--slate-muted);
}

/* Dynamic Mode Timing Alert */
.mode-timing-alert {
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  background: #eef6fc;
  border: 1px solid var(--winter-blue);
  border-left: 5px solid var(--plant-green);
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--midnight-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(16, 29, 53, 0.04);
}

.mode-timing-alert strong {
  color: var(--plant-green-dark);
}

/* Fixed duration badge */
.fixed-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--frost-blue);
  border: 1px solid var(--winter-blue);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--midnight-navy);
  width: 100%;
}

/* Referral banner */
.referral-banner {
  background: rgba(41, 105, 52, 0.09);
  border: 1px solid rgba(41, 105, 52, 0.28);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--plant-green-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* Live error alert banner */
.form-alert-banner {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
}

.form-alert-banner.error {
  display: block;
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
}

.form-alert-banner.duplicate {
  display: block;
  background: #eef6fc;
  border: 1px solid var(--winter-blue);
  color: var(--midnight-navy);
}

/* ==========================================================================
   Full-Screen Promise Slides
   ========================================================================== */
.slides-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(ellipse at 50% 25%, #182C4E 0%, #101D35 65%, #0A1324 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
  color: #ffffff;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slides-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.slides-wrapper {
  max-width: 760px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Slide Progress Indicator */
.slides-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.slide-step-bar {
  width: 50px;
  height: 5px;
  border-radius: 999px;
  background: rgba(216, 226, 236, 0.25);
  transition: all 0.35s ease;
}

.slide-step-bar.active {
  background: var(--winter-blue);
  width: 65px;
  box-shadow: 0 0 12px var(--winter-blue);
}

.slide-step-bar.completed {
  background: var(--plant-green);
}

.slide-counter {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--winter-blue);
  margin-bottom: 0.5rem;
}

/* Slide Card Element */
.slide-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(185, 221, 245, 0.35);
  border-radius: 24px;
  padding: 3.2rem 2.8rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(185, 221, 245, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.slide-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(185, 221, 245, 0.2), rgba(41, 105, 52, 0.35));
  border: 1.5px solid rgba(185, 221, 245, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.slide-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.slide-sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--winter-blue);
  margin-bottom: 1.4rem;
}

.slide-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--soft-silver);
  max-width: 620px;
  margin-bottom: 2rem;
}

.slide-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.slide-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(185, 221, 245, 0.15);
  border: 1px solid rgba(185, 221, 245, 0.3);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.slide-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
}

/* Mobile Responsiveness for Form and Slides */
@media (max-width: 768px) {

  .form-row,
  .radio-cards-row {
    grid-template-columns: 1fr;
  }

  .apply-card {
    padding: 2rem 1.5rem;
  }

  .slide-card {
    padding: 2.2rem 1.6rem;
  }

  .slide-nav-row {
    flex-direction: column-reverse;
    width: 100%;
  }

  .slide-nav-row .btn {
    width: 100%;
  }
}