/* =========================================================
   Misale Group of Civil Engineers — main stylesheet
   ========================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --gold: #fbbf24;
  --gold-dark: #f59e0b;
  --navy: #0b1b34;
  --navy-2: #0f2748;
  --navy-3: #163a6b;
  --ink: #152033;
  --muted: #5b6678;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 52, .07);
  --shadow-lg: 0 24px 60px rgba(11, 27, 52, .14);
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --header-h: 76px;
  --grid: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 44px 44px,
          linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 44px 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
button { font: inherit; cursor: pointer; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.section { padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #3b82f6, var(--primary-dark)); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary), #1e40af); box-shadow: 0 14px 30px rgba(37, 99, 235, .45); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-light:hover { box-shadow: var(--shadow-lg); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { background: rgba(11, 27, 52, .92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: flex; align-items: center; gap: .65rem; color: #fff; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 1px; }
.logo-text small { font-size: .7rem; opacity: .75; letter-spacing: .5px; }
.logo-text small.logo-tag { color: #f97316; opacity: 1; font-weight: 600; margin-top: 1px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.menu-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s, top .3s;
}
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 940px); min-height: min(100svh, 940px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(37,99,235,.45), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(251,191,36,.12), transparent 45%),
    var(--grid),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: auto 0 0 0; color: rgba(255,255,255,.06); pointer-events: none; }
.hero-skyline { width: 100%; height: 420px; }
.crane { color: rgba(251,191,36,.3); }
.hero-content { position: relative; max-width: 820px; margin-left: max(1rem, (100% - 1200px) / 2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35);
  color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.accent { background: linear-gradient(90deg, var(--gold), #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 620px; margin-bottom: 2.25rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-badges li { display: flex; align-items: baseline; gap: .25rem; }
.hero-badges strong { font-family: var(--font-head); font-size: 2rem; color: #fff; }
.hero-badges span { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ---------- Section heading ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; color: var(--primary); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: .9rem;
  padding: .35rem .85rem; border-radius: 999px; background: var(--primary-soft);
}
.section-head h2, .about-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .75rem; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.about-visual { position: relative; min-height: 380px; }
.about-card { border-radius: 20px; }
.about-card-main {
  position: absolute; inset: 0 60px 40px 0; padding: 2.5rem;
  background:
    var(--grid),
    linear-gradient(150deg, var(--navy), var(--navy-3));
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
}
.big-num { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.about-card-main p { color: rgba(255,255,255,.8); max-width: 240px; margin-top: .5rem; }
.about-card-float {
  position: absolute; right: 0; bottom: 0; background: #fff; padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg); display: flex; gap: 1rem; align-items: center;
}
.about-card-float strong { display: block; font-family: var(--font-head); color: var(--navy); }
.about-card-float small { color: var(--muted); }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.icon-circle svg { width: 24px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.check-list li { position: relative; padding-left: 1.75rem; font-weight: 500; font-size: .95rem; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .7rem; display: grid; place-items: center; font-weight: 700;
}

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.service-card {
  background: #fff; padding: 2.25rem 2rem; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--primary); transition: width .35s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 60px; height: 60px; border-radius: 14px; background: var(--primary-soft);
  display: grid; place-items: center; margin-bottom: 1.25rem; transition: background .3s;
}
.service-icon svg { width: 30px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.service-card:hover .service-icon { background: var(--primary); }
.service-card:hover .service-icon svg { stroke: #fff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.stat-item p { opacity: .9; font-weight: 500; }

/* ---------- Process ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process { background: var(--bg-alt); }
.process-steps li { position: relative; padding: 2rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.process-steps.five { grid-template-columns: repeat(5, 1fr); }
.process-steps li span {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px var(--primary); display: block; margin-bottom: .5rem;
}
.process-steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.process-steps p { color: var(--muted); font-size: .92rem; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-image { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image svg { width: 75%; fill: rgba(255,255,255,.9); stroke: rgba(255,255,255,.9); transition: transform .5s; }
.project-image .win { fill: var(--primary); }
.project-card:hover .project-image svg { transform: scale(1.06); }
.p1 { background: linear-gradient(135deg, #16213e, #0f3460); }
.p2 { background: linear-gradient(135deg, #2b2d42, #4a4e69); }
.p3 { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.project-tag {
  position: absolute; top: 1rem; left: 1rem; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--navy); font-size: .75rem; font-weight: 700;
}
.project-info { padding: 1.5rem; }
.project-info h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.project-info p { color: var(--muted); font-size: .95rem; }

/* ---------- Training ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.feature-item { padding: 1.75rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s, box-shadow .3s; }
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 1rem; }
.feature-icon svg { width: 24px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-item h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-item p { color: var(--muted); font-size: .9rem; }

.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.program-card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card.featured { background: var(--grid), linear-gradient(160deg, var(--navy), var(--navy-3)); border-color: var(--navy); box-shadow: var(--shadow-lg); }
.program-card.featured .duration { color: var(--gold); }
.program-card.featured li::before { color: var(--gold); }
.program-card.featured h3, .program-card.featured li { color: #fff; }
.ribbon {
  position: absolute; top: 1rem; right: 1rem; background: var(--gold); color: var(--navy);
  font-size: .7rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px;
}
.duration { display: inline-block; color: var(--primary); font-weight: 700; font-size: .85rem; margin-bottom: .5rem; }
.program-card h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.program-card ul { flex: 1; margin-bottom: 1.5rem; }
.program-card li { position: relative; padding: .45rem 0 .45rem 1.5rem; font-size: .92rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.program-card.featured li { border-color: rgba(255,255,255,.15); }
.program-card li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.placement-stats {
  padding: 3.5rem 2rem; border-radius: 24px; color: #fff; text-align: center;
  background: radial-gradient(ellipse at 90% 0%, rgba(37,99,235,.5), transparent 55%), var(--grid), linear-gradient(150deg, var(--navy), var(--navy-3));
}
.placement-stats h3 { color: #fff; font-size: 1.6rem; margin-bottom: 2rem; }
.placement-stats .stat-item strong { color: var(--gold); }
.placement-stats .section-tag { color: var(--gold); background: rgba(251,191,36,.12); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grid), linear-gradient(120deg, var(--primary-dark), #3b82f6); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { opacity: .9; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.info-item {
  display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: var(--radius);
  background: var(--bg-alt); transition: background .2s, transform .2s;
}
.info-item:hover { background: var(--primary-soft); transform: translateX(4px); }
.info-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; }
.info-icon svg { width: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-item.whatsapp .info-icon { background: #25d366; }
.info-item strong { display: block; font-family: var(--font-head); color: var(--navy); }
.info-item small { color: var(--muted); font-size: .9rem; }

.contact-form { padding: 2.5rem; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group .invalid { border-color: #e03131; background: #fff5f5; }
.form-group textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: .9rem; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form-note.ok { color: #2b8a3e; font-weight: 600; }
.form-note.err { color: #e03131; }

/* ---------- Footer ---------- */
.footer { background: var(--grid), var(--navy); color: rgba(255,255,255,.7); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 48px; }
.footer-about { margin-top: 1rem; font-size: .92rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer li { margin-bottom: .55rem; font-size: .92rem; }
.footer a:hover { color: var(--gold); }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 1rem; text-align: center; font-size: .88rem; }

/* ---------- Floating buttons ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float svg { width: 30px; }
.wa-float:hover { transform: scale(1.08); }
.to-top {
  position: fixed; right: 26px; bottom: 88px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--navy); color: #fff; font-size: 1.2rem; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Student-focused additions ---------- */
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 3.5rem; align-items: center; }
.hero-grid .hero-content { margin-left: 0; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border-radius: 20px; padding: 2rem;
}
.hero-card h2 { color: #fff; font-size: 1.2rem; margin-bottom: 1.25rem; }
.hero-card ul { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.hero-card li { display: flex; gap: .85rem; align-items: center; }
.hc-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25); display: grid; place-items: center; font-size: 1.2rem; }
.hero-card strong { display: block; color: #fff; font-size: .95rem; }
.hero-card small { color: rgba(255,255,255,.65); font-size: .82rem; }
.hero-badges li { flex-direction: column; gap: 0; }
.hero-badges strong span { color: inherit; font-size: inherit; }

.audience { border-bottom: 1px solid var(--line); background: #fff; }
.audience-grid { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 1.5rem; align-items: center; padding: 1.75rem 0; }
.audience-title { font-family: var(--font-head); font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: .8rem; letter-spacing: 1.5px; }
.audience-item { border-left: 3px solid var(--gold); padding-left: .9rem; }
.audience-item strong { display: block; font-family: var(--font-head); color: var(--navy); }
.audience-item span { color: var(--muted); font-size: .88rem; }

.courses { background: var(--bg-alt); }
.courses .program-grid { margin-bottom: 0; }
.program-for { font-size: .82rem; color: var(--muted); margin: -.9rem 0 1rem; }
.program-card.featured .program-for { color: rgba(255,255,255,.65); }

.placement .placement-stats { margin-bottom: 2.5rem; }
.placement-stats .section-tag { margin-bottom: .25rem; }
.placement-stats h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2rem; }
.placement .feature-grid { margin-bottom: 0; }

#sites { background: var(--bg-alt); }
.sub-head { font-size: 1.5rem; text-align: center; margin: 4.5rem 0 2rem; }

.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: .85rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.35rem; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 1.1rem; transition: transform .25s;
}
.faq details[open] summary::after { content: '−'; background: var(--primary); color: #fff; }
.faq details p { padding: 0 1.35rem 1.25rem; color: var(--muted); }

.contact { background: var(--bg-alt); }
.form-privacy { font-size: .8rem; color: var(--muted); text-align: center; }
.form-group label small { color: var(--muted); font-weight: 400; }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .program-grid, .process-steps, .process-steps.five { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { max-width: 560px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-title { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h));
    flex-direction: column; gap: 0; padding: 1.5rem; background: var(--navy);
    transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: block; border: 0 !important; margin-top: 1.5rem; }
  .nav-cta-mobile .btn { width: 100%; padding: .95rem; }
  .header { background: rgba(11, 27, 52, .96); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { min-height: 300px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .service-grid, .project-grid, .feature-grid, .program-grid, .process-steps, .process-steps.five { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; gap: 1rem; }
  body { padding-bottom: 60px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  }
  .mobile-bar a { padding: 1rem; text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
  .mobile-bar .mb-primary { background: var(--primary); color: #fff; }
  .wa-float { bottom: 76px; right: 14px; width: 50px; height: 50px; }
  .to-top { display: none; }
  .hero-badges { justify-content: space-between; }
  .hero-badges strong { font-size: 1.6rem; }
  .check-list, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .contact-form { padding: 1.75rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 1.5rem; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .about-card-main { inset: 0 20px 50px 0; padding: 1.75rem; }
  .big-num { font-size: 3.8rem; }
  .logo-text small { display: none; }
}

/* ---------- Overflow guards ---------- */
.nowrap { white-space: nowrap; }
.hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .hero h1 { font-size: 2.3rem; }
  .hero-card { padding: 1.5rem; }
}
@media (max-width: 640px) {
  .hero-badges { flex-wrap: nowrap; gap: .75rem; }
  .hero-badges strong { font-size: 1.45rem; }
  .hero-badges li > span { font-size: .8rem; }
}

/* =========================================================
   Device tuning: large desktop / laptop / tablet / phone
   ========================================================= */

/* Large desktops (1600px+) */
@media (min-width: 1600px) {
  .container { width: min(1320px, 100% - 4rem); }
  .hero-content { max-width: 760px; }
}

/* Laptops & tablet landscape (901–1180px): keep the 2-column hero */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; gap: 2rem; }
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); }
  .hero-card { padding: 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: .9rem; }
  .logo-text small { display: none; }
}

/* Tablets (641–1180px): balanced grids, no lonely last card */
@media (min-width: 641px) and (max-width: 1180px) {
  .process-steps.five { grid-template-columns: repeat(6, 1fr); }
  .process-steps.five li { grid-column: span 2; }
  .process-steps.five li:nth-child(4), .process-steps.five li:nth-child(5) { grid-column: span 3; }
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .project-image { height: 170px; }
  .project-info { padding: 1.1rem; }
  .project-info h3 { font-size: 1.05rem; }
  .project-info p { font-size: .88rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* Tablet portrait (641–900px): hero info card spread in 2 columns */
@media (min-width: 641px) and (max-width: 900px) {
  .hero-card { max-width: none; }
  .hero-card ul { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .hero-content { max-width: 640px; }
  .section { padding: 80px 0; }
}

/* Phones (≤640px): compact, less scrolling, thumb-friendly */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 2.25rem; }
  .section-head h2, .about-text h2 { font-size: 1.7rem; }
  .section-head p { font-size: .98rem; }

  .hero { padding: calc(var(--header-h) + 24px) 0 48px; }
  .eyebrow { font-size: .72rem; padding: .4rem .8rem; }
  .hero-lead { font-size: .98rem; margin-bottom: 1.75rem; }
  .hero-buttons { margin-bottom: 2rem; gap: .75rem; }

  /* Hero card: compact 2-column checklist */
  .hero-card { padding: 1.25rem; }
  .hero-card h2 { font-size: 1.05rem; margin-bottom: 1rem; }
  .hero-card ul { grid-template-columns: 1fr 1fr; gap: .85rem .75rem; margin-bottom: 1.25rem; }
  .hero-card li { gap: .55rem; align-items: flex-start; }
  .hero-card small { display: none; }
  .hero-card strong { font-size: .85rem; line-height: 1.3; }
  .hc-icon { width: 34px; height: 34px; font-size: 1rem; border-radius: 8px; }

  .audience-grid { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; padding: 1.5rem 0; }
  .audience-item span { font-size: .8rem; }

  /* Course cards */
  .program-card { padding: 1.5rem 1.25rem; }

  /* Skills: icon beside title, compact */
  .service-card { padding: 1.35rem 1.25rem; display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; }
  .service-icon { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .service-icon svg { width: 24px; }
  .service-card h3 { font-size: 1.05rem; margin-bottom: .3rem; align-self: center; }
  .service-card p { font-size: .9rem; }
  .service-grid { gap: 1rem; }

  /* Journey: timeline rows */
  .process-steps.five { gap: .75rem; }
  .process-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: .75rem; padding: 1.1rem 1.1rem; }
  .process-steps li span { font-size: 2rem; margin: 0; grid-row: span 2; align-self: center; }
  .process-steps h3 { font-size: 1rem; margin-bottom: .15rem; }
  .process-steps p { font-size: .88rem; }

  /* Placement */
  .placement-stats { padding: 2.25rem 1.25rem; }
  .placement-stats h2 { margin-bottom: 1.5rem; }
  .placement .placement-stats { margin-bottom: 1.5rem; }
  .stat-item strong { font-size: 2rem; }
  .stat-item p { font-size: .88rem; }
  .feature-grid { gap: .85rem; }
  .feature-item { padding: 1.2rem; display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; }
  .feature-icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .feature-item h4 { align-self: center; margin-bottom: .2rem; }

  /* Training sites: horizontal swipe */
  .project-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .75rem;
    margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none;
  }
  .project-grid::-webkit-scrollbar { display: none; }
  .project-card { scroll-snap-align: start; }
  .project-image { height: 170px; }
  .sub-head { margin: 3rem 0 1.25rem; font-size: 1.3rem; }

  .about-visual { min-height: 250px; }
  .check-list li { font-size: .9rem; }

  .faq summary { padding: 1rem 3rem 1rem 1.1rem; font-size: .95rem; }
  .faq details p { padding: 0 1.1rem 1.1rem; font-size: .92rem; }

  .cta-band { padding: 48px 0; }
  .info-item { padding: 1rem; }
  .contact-grid { gap: 1.5rem; }
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
}

/* Small phones (≤380px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 2rem; }
  .hero-badges strong { font-size: 1.25rem; }
  .hero-card ul { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .logo-text strong { font-size: 1.15rem; }
}

/* Phone landscape: don't force a tall hero */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .nav-links { height: calc(100vh - var(--header-h)); }
}

/* Inputs: 16px stops iOS zooming into form fields */
@media (max-width: 900px) {
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}

/* About visual: stack cards on phones so they never overlap text */
@media (max-width: 640px) {
  .about-visual { min-height: 0; }
  .about-card-main { position: relative; inset: auto; padding: 1.75rem 1.5rem 3rem; }
  .about-card-float { position: relative; right: auto; bottom: auto; margin: -1.75rem 1rem 0 auto; width: max-content; max-width: calc(100% - 2rem); }
}
@media (min-width: 641px) { .about-card-main { padding-bottom: 4.5rem; } }

/* =========================================================
   Research-driven additions (Sep 2026)
   ========================================================= */
.course-note {
  display: inline-block; margin-top: 1rem; padding: .5rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem !important; color: var(--navy) !important; font-weight: 500;
}
.program-sub { font-size: .85rem; font-weight: 600; color: var(--primary); margin: -1rem 0 1rem; }
.program-sub + .program-for { margin-top: -.75rem; }

.placement-lead { color: rgba(255,255,255,.85); max-width: 640px; margin: -1rem auto 0; font-size: 1.02rem; line-height: 1.7; }
.batch-label { color: rgba(255,255,255,.7); margin: -1.25rem 0 1.75rem; font-size: .95rem; }
.disclaimer { margin-top: 1.75rem; font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.85); }

.areas { margin-top: 1.25rem; padding: .9rem 1.1rem; background: #fff; border-radius: 12px; border: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.areas strong { color: var(--navy); }

/* Marathi section */
.marathi { padding: 64px 0; background: #fff; }
.marathi-box {
  max-width: 900px; text-align: center; padding: 2.5rem 2rem; border-radius: 24px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a;
}
.marathi-box .section-tag { background: #fff; color: #b45309; }
.marathi-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.marathi-box p { color: #57534e; max-width: 720px; margin: 0 auto 1.5rem; font-size: 1.02rem; line-height: 1.8; }
.marathi-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.marathi [lang="mr"], .marathi { font-family: 'Noto Sans Devanagari', var(--font-body); }

/* Enquiry form */
.form-wrap { position: relative; }
.form-head { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.form-head strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); }
.form-head span { font-size: .85rem; color: var(--muted); }

.chips { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .5rem; padding: 0; }
.chips label { position: relative; margin: 0 !important; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg-alt); font-size: .85rem; font-weight: 500; color: var(--ink); transition: all .15s;
}
.chips input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.more-details { margin-bottom: 1rem; }
.more-details summary {
  cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9rem; padding: .25rem 0; list-style: none;
}
.more-details summary::-webkit-details-marker { display: none; }
.more-details summary::before { content: '+ '; }
.more-details[open] summary::before { content: '− '; }
.more-details[open] summary { margin-bottom: .75rem; }

.consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; font-size: .82rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.consent a { color: var(--primary); text-decoration: underline; }
.consent.invalid span { color: #e03131; }

.form-success {
  padding: 3rem 2rem; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); text-align: center;
}
.fs-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: #d3f9d8; color: #2b8a3e; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.form-success h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.form-success p { color: var(--muted); margin-bottom: 1.5rem; }
.link-btn { display: block; margin: 1rem auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .88rem; }

.footer-bottom a { text-decoration: underline; }
.footer-areas { margin-top: .4rem; font-size: .8rem; opacity: .6; }

/* Skills grid now has 9 cards: 3 columns from tablet up */
@media (min-width: 760px) and (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 1.5rem 1.25rem; }
}
@media (max-width: 640px) {
  .marathi-box { padding: 2rem 1.25rem; }
  .marathi-actions .btn { flex: 1 1 100%; }
  .form-success { padding: 2.25rem 1.25rem; }
}
.marathi .section-tag { letter-spacing: 0; text-transform: none; font-size: .85rem; }
@media (max-width: 900px) { .contact-grid .form-wrap { order: -1; } }

/* =========================================================
   THEME v3 — "Bright & Trusted" (light, student-friendly)
   Overrides everything above.
   ========================================================= */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff4ec;
  --gold: #fdba74;
  --gold-dark: #fb923c;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #1e3a8a;
  --ink: #0f172a;
  --muted: #526077;
  --line: #e5eaf2;
  --bg-alt: #f6f9fe;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(29, 78, 216, .12);
  --grid: linear-gradient(transparent, transparent);
}

/* Buttons: orange = action, blue = secondary */
.btn-primary { background: linear-gradient(135deg, #fb923c, var(--accent-dark)); color: #fff; box-shadow: 0 10px 24px rgba(249, 115, 22, .32); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent), #c2410c); box-shadow: 0 14px 30px rgba(249, 115, 22, .42); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { border-color: #c7d2fe; color: var(--primary); background: #fff; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-dark); }

/* Header: always white */
.header, .header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.scrolled { box-shadow: 0 6px 20px rgba(15,23,42,.08); }
.logo { color: var(--navy); }
.logo-mark { background: linear-gradient(135deg, #fb923c, var(--accent-dark)); color: #fff; box-shadow: 0 6px 14px rgba(249,115,22,.3); }
.logo-text small { opacity: .6; }
.nav-links a { color: var(--navy-2); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { background: var(--accent); }
.menu-toggle span { background: var(--navy); }

/* Hero: light */
.hero {
  min-height: auto; color: var(--ink); overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 72px;
  background:
    radial-gradient(#dbe6ff 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 70%, #fff 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero-blob.b1 { width: 420px; height: 420px; background: #bfd4ff; top: -120px; right: -80px; }
.hero-blob.b2 { width: 320px; height: 320px; background: #ffd9bf; bottom: -140px; left: -100px; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important; gap: 3.5rem; align-items: center; }
.hero .eyebrow {
  background: #fff; border: 1px solid var(--line); color: var(--navy-2); box-shadow: var(--shadow);
  font-size: .82rem; padding: .5rem 1rem;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.18); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { position: relative; z-index: 0; color: var(--navy); font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.12; }
.hl { position: relative; color: var(--accent-dark); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .3em; z-index: -1;
  background: #ffe1c9; border-radius: 6px;
}
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 560px; }
.hero-lead strong { color: var(--navy); }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero-points li { position: relative; padding-left: 1.6rem; color: var(--navy-2); font-weight: 500; font-size: .95rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: #dcfce7; color: #15803d; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}

/* Hero visual: live class window + floating chips */
.hero-visual { position: relative; padding: 1.5rem 1.5rem 2rem; }
.hv-window { position: relative; z-index: 1; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(29,78,216,.18); border: 1px solid #e0e8ff; overflow: hidden; }
.hv-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.hv-live { display: inline-flex; align-items: center; gap: .35rem; background: #fee2e2; color: #b91c1c; font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: 6px; letter-spacing: .5px; }
.hv-live i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1.4s infinite; }
.hv-title { flex: 1; font-size: .85rem; font-weight: 600; color: var(--navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-dots { display: flex; gap: 4px; }
.hv-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.hv-screen { background: #0f2c6b; padding: .75rem; }
.hv-screen svg { width: 100%; height: auto; }
.bp-grid path { stroke: rgba(255,255,255,.07); stroke-width: 1; fill: none; }
.bp-line { fill: none; stroke: #e0ecff; stroke-width: 2; }
.bp-col { fill: rgba(255,255,255,.08); stroke: #e0ecff; stroke-width: 1.5; }
.bp-bar { stroke: #fb923c; stroke-width: 3; fill: none; stroke-linecap: round; }
.bp-stirrup { stroke: #93c5fd; stroke-width: 1.5; fill: none; }
.bp-dot { fill: #fb923c; }
.bp-dim { stroke: #93c5fd; stroke-width: 1; stroke-dasharray: 4 3; }
.bp-text { fill: #cfe0ff; font: 600 10px Inter, sans-serif; letter-spacing: .5px; }
.hv-foot { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; }
.hv-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, var(--primary-dark)); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.hv-who { flex: 1; line-height: 1.2; }
.hv-who strong { display: block; font-size: .88rem; color: var(--navy); }
.hv-who small { font-size: .75rem; color: var(--muted); }
.hv-ask { font-size: .78rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: .35rem .7rem; border-radius: 999px; }
.hv-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; background: #fff;
  padding: .6rem .9rem .6rem .6rem; border-radius: 14px; box-shadow: 0 14px 34px rgba(15,23,42,.14); border: 1px solid var(--line);
  animation: float 5s ease-in-out infinite;
}
.hv-chip > span { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.1rem; }
.hv-chip strong { display: block; font-size: .85rem; color: var(--navy); line-height: 1.2; }
.hv-chip small { font-size: .72rem; color: var(--muted); }
.hv-chip.c1 { top: 0; left: -8px; }
.hv-chip.c2 { top: 42%; right: -14px; animation-delay: -1.7s; }
.hv-chip.c2 > span { background: var(--primary-soft); }
.hv-chip.c3 { bottom: 0; left: 12%; animation-delay: -3.3s; }
.hv-chip.c3 > span { background: #dcfce7; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hv-chip, .live-dot, .hv-live i { animation: none; } }

/* Trust strip */
.trust-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; padding: 1.5rem 0; }
.trust-item { display: flex; align-items: center; gap: .7rem; }
.trust-item > span { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.25rem; }
.trust-item p { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--navy); }

/* Sections & cards: friendlier */
.audience { background: var(--bg-alt); border-bottom: 0; }
.audience-item { border-left-color: var(--accent); }
.audience-title { color: var(--accent-dark); }
.section-tag { background: var(--primary-soft); color: var(--primary); }
.service-card, .program-card, .feature-item, .process-steps li, .project-card, .faq details, .online-item { border-radius: 18px; }
.service-icon { background: var(--primary-soft); }
.service-card:hover .service-icon { background: var(--primary); }
.service-card::before { background: var(--accent); }
.feature-icon { background: var(--accent-soft); }
.feature-icon svg { stroke: var(--accent-dark); }
.program-card.featured { background: linear-gradient(160deg, #2563eb, #1e3a8a); border-color: transparent; }
.program-card.featured .duration, .program-card.featured li::before { color: #fed7aa; }
.ribbon { background: var(--accent); color: #fff; }
.duration { color: var(--accent-dark); }
.program-card li::before { color: var(--primary); }
.check-list li::before { background: #16a34a; }
.about-card-main { background: linear-gradient(150deg, #2563eb, #1e3a8a); }
.big-num { color: #fed7aa; }
.placement-stats { background: radial-gradient(ellipse at 90% 0%, rgba(96,165,250,.45), transparent 55%), linear-gradient(150deg, #1d4ed8, #1e3a8a); }
.placement-stats .stat-item strong { color: #fed7aa; }
.placement-stats .section-tag { background: rgba(255,255,255,.15); color: #fff; }
.cta-band { background: radial-gradient(ellipse at 10% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(120deg, var(--accent-dark), #fb923c); }
.cta-band .btn-light { color: var(--accent-dark); }
.faq details[open] { border-color: var(--primary); }
.faq summary::after { background: var(--primary-soft); color: var(--primary); }
.faq details[open] summary::after { background: var(--primary); }
.p1 { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.p2 { background: linear-gradient(135deg, #334155, #64748b); }
.p3 { background: linear-gradient(135deg, #ea580c, #fb923c); }
.project-image .win { fill: #fed7aa; }
.info-icon { background: var(--primary); }
.chips input:checked + span { background: var(--primary); border-color: var(--primary); }
.footer { background: var(--navy); }
.footer a:hover { color: var(--gold); }
.to-top { background: var(--primary); }
.mobile-bar .mb-primary { background: var(--accent); }

/* How-it-works section */
.online { background: #fff; }
.online-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.online-item { position: relative; padding: 1.75rem 1.5rem; background: var(--bg-alt); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.online-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: #fff; }
.oi-num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #dbe6ff; }
.oi-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.online-item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.online-item p { color: var(--muted); font-size: .92rem; }
.online-note { text-align: center; margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.process { background: var(--bg-alt); }

/* Responsive for new parts */
@media (max-width: 1180px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .online-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 2.5rem; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .nav-links { background: #fff; box-shadow: 0 20px 40px rgba(15,23,42,.1); }
  .nav-links li { border-bottom-color: var(--line); }
  .nav-links a { color: var(--navy); }
  .header { background: #fff; }
}
@media (max-width: 640px) {
  .hero { padding: calc(var(--header-h) + 28px) 0 48px; }
  .hero h1 { font-size: 2.15rem; }
  .hero .eyebrow { font-size: .72rem; }
  .hero-points { flex-direction: column; gap: .45rem; }
  .hero-visual { padding: .5rem 0 1.25rem; }
  .hv-chip { padding: .45rem .7rem .45rem .45rem; }
  .hv-chip > span { width: 30px; height: 30px; font-size: .95rem; }
  .hv-chip small { display: none; }
  .hv-chip.c1 { top: -14px; left: -4px; }
  .hv-chip.c2 { top: auto; bottom: 64px; right: -4px; }
  .hv-chip.c3 { display: none; }
  .hv-title { font-size: .78rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1rem .75rem; padding: 1.25rem 0; }
  .trust-item > span { width: 38px; height: 38px; font-size: 1.05rem; }
  .online-grid { grid-template-columns: 1fr; gap: .85rem; }
  .online-item { padding: 1.25rem; display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; }
  .oi-icon { margin: 0; grid-row: span 2; }
  .online-item h3 { align-self: center; margin-bottom: .2rem; }
}

/* backdrop-filter makes the fixed mobile menu overflow the page, so disable it on small screens */
@media (max-width: 900px) { .header, .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Floating chips: keep clear of the LIVE bar and trainer row */
.hero-visual { padding: 1.75rem 1.5rem 3.25rem; }
.hv-chip.c1 { top: 40%; left: -34px; }
.hv-chip.c2 { top: 0; right: -18px; }
.hv-chip.c3 { bottom: 0; left: auto; right: 22%; }
@media (max-width: 640px) {
  .hero-visual { padding: 1.4rem 0 1.25rem; }
  .hv-chip.c1 { top: auto; bottom: 84px; left: -4px; }
  .hv-chip.c2 { top: 0; bottom: auto; right: -4px; }
}

/* =========================================================
   Features from online-competitor research
   ========================================================= */

/* Course card actions + syllabus link */
.card-actions { display: grid; gap: .5rem; }
.card-actions .btn { width: 100%; }
.syl-link { background: none; border: 0; color: var(--primary); font-weight: 600; font-size: .88rem; padding: .35rem; cursor: pointer; }
.syl-link:hover { text-decoration: underline; }
.program-card.featured .syl-link { color: #fff; }

/* Syllabus dialog */
.syl-dialog { border: 0; padding: 0; border-radius: 22px; width: min(640px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 40px 90px rgba(15,23,42,.35); color: var(--ink); }
.syl-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.syl-dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.syl-inner { position: relative; padding: 2rem 2rem 1.75rem; }
.syl-close { position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-alt); font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
.syl-close:hover { background: var(--primary-soft); }
.syl-inner h3 { font-size: 1.5rem; margin: .25rem 0 .2rem; padding-right: 2.5rem; }
.syl-for { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.syl-inner h4 { font-size: 1rem; margin: 1.25rem 0 .75rem; }
.syl-mods { display: grid; gap: .6rem; }
.syl-mods li { display: flex; gap: .85rem; padding: .8rem .9rem; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.mod-no { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.syl-mods strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.syl-mods p { color: var(--muted); font-size: .86rem; margin-top: .1rem; }
.syl-inc { display: flex; flex-wrap: wrap; gap: .4rem; }
.syl-inc li { padding: .35rem .75rem; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .8rem; font-weight: 600; }
.syl-roles { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.syl-roles strong { color: var(--navy); }
.syl-note { font-size: .82rem; color: var(--muted); margin-top: .5rem; font-style: italic; }
.syl-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.syl-actions .btn { flex: 1 1 200px; }
body.dialog-open { overflow: hidden; }

/* Career ladder */
.career { background: #fff; }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.ladder li { position: relative; padding: 1.4rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-alt); }
.ladder li:nth-child(1) { margin-top: 4rem; }
.ladder li:nth-child(2) { margin-top: 3rem; }
.ladder li:nth-child(3) { margin-top: 2rem; }
.ladder li:nth-child(4) { margin-top: 1rem; }
.ladder li:last-child { background: linear-gradient(160deg, #2563eb, #1e3a8a); border-color: transparent; }
.ladder li:last-child h3, .ladder li:last-child p { color: #fff; }
.ladder li:last-child .lad-step { background: rgba(255,255,255,.18); color: #fff; }
.lad-step { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.ladder h3 { font-size: 1rem; margin-bottom: .35rem; }
.ladder p { color: var(--muted); font-size: .86rem; }
.ladder-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.compare thead th { font-family: var(--font-head); font-size: .95rem; color: var(--navy); background: var(--bg-alt); }
.compare tbody th { font-weight: 600; color: var(--navy); width: 34%; }
.compare td { color: var(--muted); }
.compare .us { background: #f0f6ff; color: var(--primary-dark); font-weight: 600; }
.compare thead .us { background: var(--primary); color: #fff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* Honest promise + parents */
.honest { background: var(--bg-alt); }
.honest-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.promise, .parents { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); }
.promise h2, .parents h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 1.25rem; }
.promise-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.promise-cols > div { border-radius: 14px; padding: 1.1rem 1.2rem; }
.promise-cols .do { background: #f0fdf4; border: 1px solid #bbf7d0; }
.promise-cols .dont { background: #fff7ed; border: 1px solid #fed7aa; }
.promise-cols h3 { font-size: 1rem; margin-bottom: .6rem; }
.promise-cols .do h3 { color: #166534; }
.promise-cols .dont h3 { color: #9a3412; }
.promise-cols li { position: relative; padding-left: 1rem; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; }
.promise-cols li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }
.parents details { border-bottom: 1px solid var(--line); }
.parents details:last-child { border-bottom: 0; }
.parents summary { cursor: pointer; list-style: none; padding: .85rem 2rem .85rem 0; position: relative; font-weight: 600; color: var(--navy); }
.parents summary::-webkit-details-marker { display: none; }
.parents summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; color: var(--primary); font-size: 1.2rem; font-weight: 700; }
.parents details[open] summary::after { content: "−"; }
.parents details p { color: var(--muted); font-size: .92rem; padding-bottom: .9rem; }
.parents a { color: var(--primary); font-weight: 600; }

/* Free tools */
.tools { background: #fff; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tool-card { border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; background: var(--bg-alt); display: flex; flex-direction: column; gap: 1.25rem; }
.tool-head { display: flex; gap: .9rem; align-items: center; }
.tool-head > span { width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.tool-head h3 { font-size: 1.15rem; }
.tool-head p { font-size: .85rem; color: var(--muted); }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; }
.tool-fields label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem .4rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.tool-fields label > :is(input, select) { grid-column: 1; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; font-weight: 500; background: #fff; color: var(--ink); min-width: 0; }
.tool-fields label > :is(input, select):focus { outline: none; border-color: var(--primary); }
.tool-fields small { grid-column: 2; grid-row: 2; color: var(--muted); font-weight: 500; }
.tool-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-top: auto; }
.tool-result div { background: #fff; border-radius: 12px; padding: .75rem .9rem; border: 1px solid var(--line); }
.tool-result span { display: block; font-size: .75rem; color: var(--muted); }
.tool-result strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--primary-dark); }
.tools-note { text-align: center; margin-top: 1.5rem; font-size: .85rem; color: var(--muted); }
.tools-note a { color: var(--accent-dark); font-weight: 600; }

/* Joining steps */
.join-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: -1rem 0 2.5rem; counter-reset: none; }
.join-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.join-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -.7rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; z-index: 1; }
.join-steps span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: .45rem; }
.join-steps strong { font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.join-steps small { color: var(--muted); font-size: .8rem; }
.req-type span { font-size: .9rem; padding: .55rem 1rem; }

/* Responsive */
@media (max-width: 1080px) {
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .ladder li { margin-top: 0 !important; }
  .honest-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tools-grid { grid-template-columns: 1fr; }
  .join-steps { grid-template-columns: 1fr 1fr; }
  .join-steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .ladder { grid-template-columns: 1fr; gap: .6rem; }
  .ladder li { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; padding: 1rem; }
  .lad-step { grid-row: span 2; align-self: start; margin: 0; }
  .promise, .parents { padding: 1.4rem 1.2rem; }
  .promise-cols { grid-template-columns: 1fr; }
  .syl-inner { padding: 1.5rem 1.2rem 1.25rem; }
  .syl-inner h3 { font-size: 1.25rem; }
  .tool-card { padding: 1.25rem; }
  .compare th, .compare td { padding: .75rem .8rem; font-size: .85rem; }
}

/* dialog centring (global * { margin:0 } reset removes the default auto margin) */
.syl-dialog { margin: auto; background: #fff; inset: 0; }
.syl-dialog[open] { animation: none; }

/* Comparison table -> stacked cards on phones */
@media (max-width: 640px) {
  .compare-wrap { overflow: visible; border: 0; box-shadow: none; background: none; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .6rem; overflow: hidden; box-shadow: var(--shadow); }
  .compare tbody th { width: 100%; padding: .75rem .9rem .35rem; border: 0; font-family: var(--font-head); }
  .compare td { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .9rem; border: 0; text-align: right; }
  .compare td::before { content: attr(data-label); color: var(--muted); font-weight: 500; text-align: left; flex-shrink: 0; }
  .compare td.us { padding-bottom: .7rem; }
  .compare td.us::before { color: var(--primary-dark); font-weight: 700; }
}

/* ---------- Brand logo image ---------- */
.logo-img { height: 46px; width: auto; display: block; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: .6rem .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.footer-logo img { display: block; width: 170px; height: auto; }
@media (max-width: 600px) { .logo-img { height: 38px; } }

/* Hero site photo (replaced the live-class mock-up) */
.hero-visual { min-width: 0; }
.hv-photo { position: relative; }
.hv-photo img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hv-caption { position: absolute; left: .75rem; top: .75rem; max-width: calc(100% - 1.5rem); display: flex; align-items: center; gap: .65rem; background: rgba(255,255,255,.94); border-radius: 12px; padding: .55rem .8rem; box-shadow: 0 8px 20px rgba(15,23,42,.15); }
.hv-caption > span { font-size: 1.2rem; }
.hv-caption strong { display: block; font-size: .85rem; color: var(--navy); line-height: 1.2; }
.hv-caption small { font-size: .72rem; color: var(--muted); }
.footer-credits { font-size: .7rem; opacity: .6; margin-top: .5rem; }
.footer-credits a { color: inherit; text-decoration: underline; }

/* Footing / column / beam / slab checklist inside the site engineer syllabus */
.syl-check { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.syl-mods .syl-check li { display: block; position: relative; padding: .55rem .7rem .55rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.syl-mods .syl-check li::before { content: "✓"; position: absolute; left: .7rem; top: .55rem; color: #16a34a; font-weight: 800; }
.syl-mods .syl-check b { display: block; color: var(--navy); font-size: .88rem; }
