/* ==========================================================
   Tarini Institute of Allied Health Sciences - main stylesheet
   Colours follow the official logo: navy, gold and white.
   To change a colour everywhere, edit the values in :root below.
   ========================================================== */
:root {
  --navy: #0b2545;           /* deep navy - main brand colour */
  --navy-dark: #071a33;
  --teal: #0b4f5c;           /* dark teal - secondary colour */
  --gold: #d6a437;           /* gold - accents and main buttons */
  --gold-dark: #b8892a;
  --gold-text: #8a6414;      /* darker gold, readable on white */
  --white: #ffffff;
  --bg-soft: #f2f7f8;        /* pale blue-grey sections */
  --text: #263746;
  --muted: #536575;
  --border: #dde6ea;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 6px rgba(11, 37, 69, .05);
  --shadow: 0 2px 4px rgba(11, 37, 69, .04), 0 10px 28px rgba(11, 37, 69, .08);
  --max: 1180px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .55em; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.section-title h2 { margin-bottom: .4em; }
.section-title p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-title .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.75; }
p { text-wrap: pretty; }
.small { font-size: .9rem; color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #c2cfdd; font-size: .86rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--gold); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 64px; height: auto; flex-shrink: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.22; max-width: 340px; }
.brand-pre { display: block; font-family: var(--font-body); font-weight: 600; color: var(--gold-text); font-size: .8125rem; line-height: 1.3; letter-spacing: .01em; margin-bottom: 2px; }
.brand-main { display: block; text-wrap: balance; }

.nav-toggle { display: none; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; cursor: pointer; font: 600 .95rem var(--font-body); color: var(--navy); }
.nav-toggle-bars { position: relative; width: 18px; height: 2px; background: currentColor; transition: background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.main-nav a { position: relative; display: block; white-space: nowrap; padding: 10px 12px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .93rem; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav .nav-cta { margin-left: 10px; background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; transition: background .2s; }
.main-nav .nav-cta:hover { background: var(--teal); color: #fff; }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--gold); box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 0; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--gold-text); }
  .main-nav .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 560px) {
  .site-header .container { min-height: 72px; }
  .brand img { width: 50px; }
  .brand-name { font-size: .95rem; }
  .nav-toggle-label { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; min-height: 48px; border-radius: 999px;
  font: 600 .97rem var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(214,164,55,.28); }
.btn-gold:hover { background: #e2b552; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(11,37,69,.18); }
.btn-navy:hover { background: var(--teal); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-ghost { border-color: var(--border); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-whatsapp { background: #157a3e; color: #fff; }
.btn-whatsapp:hover { background: #0f6332; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--teal); }
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(520px 420px at 78% 45%, rgba(214,164,55,.10), transparent 70%), var(--navy); color: #fff; padding: clamp(52px, 7vw, 92px) 0 clamp(84px, 10vw, 120px); border-bottom: 1px solid rgba(255,255,255,.08); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .trust { display: block; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero h1 .place { display: block; font-size: .62em; color: #dfe7f0; font-weight: 600; margin-top: 6px; }
.hero .lead { color: #cdd8e4; max-width: 600px; }
.hero .btn-row { margin-top: 28px; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- Quick facts strip ---------- */
.facts-strip { position: relative; z-index: 2; margin-top: -52px; }
.facts-strip .inner { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 3px solid var(--gold); display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 22px 24px; display: flex; gap: 14px; align-items: center; transition: background .25s; }
.fact:hover { background: #fafcfd; }
.fact:hover .ic { background: var(--navy); color: var(--gold); }
.fact + .fact { border-left: 1px solid var(--border); }
.fact .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; transition: background .25s, color .25s; }
.fact .ic svg { width: 22px; height: 22px; fill: currentColor; }
.fact strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.fact span { color: var(--muted); font-size: .87rem; }
@media (max-width: 900px) {
  .facts-strip .inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .facts-strip .inner { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--border); }
  .fact { padding: 16px 20px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(46px, 6vw, 76px) 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.page-hero h1 { color: #fff; margin-bottom: .35em; max-width: 880px; }
.page-hero p { color: #cdd8e4; margin: 0; max-width: 700px; font-size: 1.08rem; }
.page-hero .btn-row { margin-top: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .87rem; margin-bottom: 14px; color: #a9b9cb; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e6d3a6; }
.card-hover:hover .ic { background: var(--navy); color: var(--gold); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; transition: background .3s, color .3s; }
.card .ic svg { width: 25px; height: 25px; fill: currentColor; }

.course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course-card .media { aspect-ratio: 800 / 520; background: var(--bg-soft); overflow: hidden; border-bottom: 3px solid var(--gold); }
.course-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .media img { transform: scale(1.03); }
.course-card .body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.course-card .btn-row { margin-top: auto; padding-top: 16px; }
.tag { display: inline-block; background: var(--bg-soft); color: var(--navy); border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 600; padding: 3px 12px; margin: 0 6px 12px 0; }

.facts { list-style: none; margin: 0 0 1em; padding: 0; }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--border); display: flex; gap: 16px; }
.facts li:last-child { border-bottom: 0; }
.facts li strong { min-width: 110px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.facts li span { font-weight: 600; color: var(--navy); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 11px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b2545' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 13px no-repeat; border: 1px solid var(--border); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -3px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 700 1.05rem var(--font-head); display: grid; place-items: center; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 42px; bottom: 0; width: 2px; background: var(--border); }
.steps li strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.steps li span { color: var(--muted); }

.notice { display: flex; gap: 14px; background: #fdf8ec; border: 1px solid #efdcae; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 20px; margin: 26px 0 0; }
.notice svg { width: 22px; height: 22px; fill: var(--gold-text); flex-shrink: 0; margin-top: 3px; }
.notice p { margin: 0; }

.draft-label { display: inline-block; background: #fdf8ec; border: 1px dashed var(--gold-dark); color: var(--gold-text); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 68px); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.emblem-card { text-align: center; padding: 36px 28px; }
.emblem-card img { width: min(260px, 70%); margin: 0 auto 18px; }
.motto { font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; }
.motto .dot { color: var(--gold); margin: 0 8px; }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.leader { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 22px; border-top: 3px solid var(--gold); }
.leader-photo { border-radius: 12px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); box-shadow: 0 0 0 4px #fff, 0 0 0 5px #e6d3a6, var(--shadow-sm); }
.leader-photo img { width: 100%; height: auto; }
.leader .leader-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 0 0 2px; line-height: 1.25; }
.leader .role { font-size: 1rem; color: var(--teal); font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.leader .org { color: var(--gold-text); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.leader p { color: var(--muted); font-size: .95rem; }
.leader-note { border-top: 1px solid var(--border); padding-top: 14px; }
.leader-note h3 { font-size: 1.05rem; margin-bottom: 6px; }
.leader .leader-note p { color: var(--text); font-size: .98rem; }
.leader .leader-note p.leader-sign { margin-top: 12px; color: var(--navy); font-size: .95rem; line-height: 1.5; }
.leaders-full { grid-template-columns: 1fr; max-width: 980px; }
.leaders-full .leader { grid-template-columns: 260px 1fr; gap: 32px; align-items: start; padding: 28px; }
.vm-card .vision { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); line-height: 1.55; }
.section-title .draft-label { margin-top: 4px; }
@media (max-width: 1000px) { .leaders { grid-template-columns: 1fr; max-width: 640px; } }
@media (max-width: 700px) { .leaders-full .leader { grid-template-columns: 1fr; } .leaders-full .leader-photo { max-width: 260px; } }
@media (max-width: 520px) { .leader { grid-template-columns: 1fr; text-align: center; } .leader-note { text-align: left; } .leader-photo { max-width: 240px; margin: 0 auto; } }


/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 54px 17px 20px; position: relative; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; font-size: 1.15rem; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--teal); color: #fff; padding: clamp(48px, 7vw, 76px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e6ea; max-width: 580px; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact and form ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .ic svg { width: 21px; height: 21px; fill: currentColor; }
.contact-list strong { display: block; color: var(--navy); margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.form-card { padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.form-card h2 { font-size: 1.55rem; margin-bottom: .3em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .93rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfdbe1; border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11,37,69,.12); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: #b3261e; }
.field-error { display: block; color: #b3261e; font-size: .85rem; margin-top: 5px; }
.field-error:empty { display: none; }
.form-help { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .9rem; color: var(--muted); margin: 4px 0 18px; }
.form-note { font-size: .87rem; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; color: var(--teal); padding: 12px 14px; border-radius: var(--radius-sm); border-left: 4px solid var(--teal); background: var(--bg-soft); }
.form-status.success { color: #1e5b33; background: #e9f5ec; border-left-color: #2e7d46; }
.form-status.error { color: #8c1d18; background: #fdecea; border-left-color: #b3261e; }
.form-status:empty { display: none; }
.form-summary { color: #8c1d18; background: #fdecea; border-left: 4px solid #b3261e; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-weight: 600; font-size: .93rem; }
.form-summary[hidden] { display: none; }
.field-hint { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; }
.field-note { display: block; color: var(--teal); font-size: .84rem; font-weight: 600; margin-top: 5px; }
.field-note[hidden] { display: none; }
.form-field select { text-overflow: ellipsis; }
.form-field input[aria-invalid="true"]:focus, .form-field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179,38,30,.15); }
.form-alt { margin: 12px 0 0; color: var(--muted); }
@media (max-width: 560px) { .form-card .btn-row .btn { width: 100%; justify-content: center; } .form-field input, .form-field select, .form-field textarea { font-size: 16px; } }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--bg-soft); }
.map-frame { width: 100%; height: 400px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aebdcd; padding: 64px 0 26px; font-size: .94rem; border-top: 4px solid var(--gold); }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #dce5ee; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand .logo-badge { width: 80px; flex-shrink: 0; }
.footer-brand img { width: 100%; height: auto; }
.footer-brand span { font-family: var(--font-head); color: #fff; font-weight: 600; line-height: 1.3; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp / call and back-to-top ---------- */
.float-actions { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-actions a, .float-actions button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.22); color: #fff; border: 0; cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.float-actions svg { width: 26px; height: 26px; fill: currentColor; }
.float-whatsapp { background: #157a3e; }
.float-call { background: var(--navy); }
.back-to-top { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--border) !important; opacity: 0; pointer-events: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.float-actions a:hover, .float-actions button:hover { transform: scale(1.06); }

/* ---------- Gentle fade-in (only when JavaScript is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .grid > .reveal:nth-child(2), .js .leaders > .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid > .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid > .reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Let grid columns shrink on small screens (prevents sideways scrolling) */
.split > *, .grid > *, .contact-grid > *, .leaders > *, .hero .container > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section-title { margin-bottom: 36px; }
  .card { padding: 24px; }
  .course-card { padding: 0; }
  .course-card .body { padding: 22px 22px 24px; }
  .topbar .container { justify-content: center; text-align: center; }
  .float-actions svg { width: 22px; height: 22px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Photographs ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 1200 / 780; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }
.course-card .media .photo img { border-radius: 0; height: 100%; }

/* ---------- Homepage hero visual ---------- */
.hero h1 .hl { color: var(--gold); }
.btn-lg { padding: 14px 28px; min-height: 52px; font-size: 1.02rem; }
.hero-contact { margin: 18px 0 0; font-size: .93rem; color: #b9c7d6; }
.hero-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.hero-contact a:hover { color: var(--gold); }
.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: 20px; padding: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(214,164,55,.35); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.hero-frame .photo img { border-radius: 14px; }
.hero-badge-logo { position: absolute; left: -26px; bottom: -26px; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.hero-badge-logo img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-badge-logo { width: 80px; height: 80px; left: -8px; bottom: -18px; }
}

/* ---------- Horizontal admission steps ---------- */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.steps-row li { position: relative; padding-top: 34px; }
.steps-row .step-num { position: absolute; top: -20px; left: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 700 1.1rem var(--font-head); display: grid; place-items: center; box-shadow: 0 0 0 5px #fff; }
.steps-row h3 { font-size: 1.08rem; }
.steps-row p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1020px) { .steps-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- Enquiry call-to-action band ---------- */
.enquiry-band { background: var(--navy); padding: clamp(40px, 6vw, 64px) 0; border-top: 4px solid var(--gold); }
.enquiry-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.enquiry-band h2 { color: #fff; margin-bottom: .25em; }
.enquiry-band p { color: #c9d5e2; margin: 0; }
@media (max-width: 560px) { .enquiry-band-inner { text-align: center; justify-content: center; } }

/* ---------- Programme pages ---------- */
.page-nav { background: #fff; border-bottom: 1px solid var(--border); }
.page-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: thin; }
.page-nav a { flex-shrink: 0; padding: 8px 15px; border-radius: 999px; background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.page-nav a:hover, .page-nav a:focus-visible { background: var(--navy); color: #fff; }
h3.mt { margin-top: 1.4em; }
.glance { margin-top: 22px; padding: 24px; border-top: 3px solid var(--gold); }
.glance .btn-row { margin-top: 6px; }
.learn-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.learn-card h3 { font-size: 1.12rem; }
.career { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.career h3 { font-size: 1.05rem; margin-bottom: .3em; }
.career p { margin: 0; color: var(--muted); font-size: .94rem; }
.cta-links { margin: 22px auto 0 !important; font-size: .95rem; }
.cta-links a { color: #fff; font-weight: 600; }
@media (max-width: 480px) { .glance .btn { width: 100%; justify-content: center; } }
section[id], .form-card[id] { scroll-margin-top: 96px; }
/* Facilities */
.section-sub { font-family: "Lora", Georgia, serif; font-size: 1.15rem !important; color: var(--teal) !important; font-style: italic; margin-bottom: .6em; }
.facility-card h3 { margin-bottom: .2em; }
.facility-card .facility-sub { font-weight: 600; color: var(--gold-text); font-size: .92rem; margin-bottom: .6em; }
.facility-card p:last-child { color: var(--muted); }
.commitment { max-width: 860px; margin: 34px auto 0; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); border-top: 3px solid var(--gold); }
.commitment h3 { color: #fff; }
.commitment p { color: #d5dfea; margin: 0; }
.narrow { max-width: 860px; }
/* Affiliation line */
.affil { display: block; font-size: .9rem; font-weight: 600; line-height: 1.5; color: var(--teal); margin-top: 6px; }
.hero .affil, .page-hero .affil { color: var(--gold); margin: 4px 0 14px; }
.page-hero .affil { margin: 8px 0 0; font-size: .95rem; }
.footer-affil { font-size: .85rem; color: var(--gold); margin: 10px 0 8px; line-height: 1.5; }
.hero .trust + .affil { margin-top: -8px; color: #e9cf8a; font-size: .88rem; }

/* ---------- Responsive audit fixes (360-1440px) ---------- */
/* Readable minimum text sizes (13px+) */
.eyebrow { font-size: .8125rem; }
.tag, .draft-label { font-size: .8125rem; }

/* Menu button: at least 44 x 44 px */
.nav-toggle { min-height: 44px; min-width: 44px; justify-content: center; }

/* Comfortable tap targets on phones and tablets */
@media (max-width: 1023px), (pointer: coarse) {
  .topbar a, .breadcrumb a, .link-arrow, .contact-list a, .cta-links a, .form-alt a,
  .site-footer li a, .footer-bottom a, .leader a { display: inline-flex; align-items: center; min-height: 44px; }
  .topbar .container { padding-top: 0; padding-bottom: 0; }
  .site-footer li { margin-bottom: 0; }
  .faq summary { min-height: 52px; display: flex; align-items: center; }
}

/* Floating WhatsApp / call buttons: never cover forms, CTA buttons or the footer */
.float-actions .float-whatsapp, .float-actions .float-call { transition: opacity .25s, transform .25s var(--ease); }
.fa-label { display: none; }
@media (min-width: 1024px) {
  body.floats-off .float-actions .float-whatsapp, body.floats-off .float-actions .float-call { opacity: 0; pointer-events: none; transform: translateY(12px); }
}
/* Phones and tablets: a slim action bar along the bottom edge instead of floating
   circles. The page gets matching bottom padding, so the bar never covers content. */
@media (max-width: 1023px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .float-actions { left: 0; right: 0; bottom: 0; flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(7,26,51,.10); }
  .float-actions a, .float-actions button { box-shadow: none; }
  .float-actions .float-whatsapp, .float-actions .float-call { flex: 1; width: auto; height: 48px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; order: 1; }
  .float-actions .back-to-top { order: 2; width: 48px; height: 48px; flex-shrink: 0; }
  .fa-label { display: inline; }
  .float-actions a:hover, .float-actions button:hover { transform: none; }
}
.motto { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
@media (max-width: 1023px), (pointer: coarse) {
  .breadcrumb a { padding: 0 4px; margin-left: -4px; }
  .checklist li > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 1023px), (pointer: coarse) { .checklist li:has(> a:only-child)::before { top: 11px; } }
@media (min-width: 768px) and (max-width: 1023px) { .float-actions .float-whatsapp, .float-actions .float-call { max-width: 260px; } .float-actions { justify-content: center; } }
@media (max-width: 560px) { .topbar-links { display: none; } }
