/* ANOH2027 — styled to the NZOHS Brand Guide (July 2021)
   Colours: Primary #3f049e · Secondary #1804b5 · Accent #034bca
            Complementary #bc82da / #d9cdec · Contrast #ffffff
   Type:    Headings Work Sans Light · Sub-headings Roboto Slab · Body Work Sans Regular */

:root {
  --primary: #3f049e;
  --secondary: #1804b5;
  --accent: #034bca;
  --lilac: #bc82da;
  --lavender: #d9cdec;
  --white: #ffffff;

  --primary-deep: #2c0373;      /* primary darkened, for depth on footer/overlays */
  --ink: #1d1537;               /* body text */
  --muted: #5b5474;
  --line: #e4ddf1;
  --page: #f8f6fc;              /* soft lavender-white page tint */

  --font-head: "Work Sans", system-ui, sans-serif;
  --font-sub: "Roboto Slab", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(44, 3, 115, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
h3, h4 { font-family: var(--font-sub); font-weight: 500; line-height: 1.3; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--white); color: var(--primary); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
[id] { scroll-margin-top: 150px; }
.form-success:focus { outline: none; }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 15px/1 var(--font-body);
  padding: 15px 22px; border-radius: 4px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-cta { background: var(--lilac); color: var(--primary-deep); }
.btn-cta:hover { background: var(--lavender); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: var(--white); background: rgba(44,3,115,.25); }
.btn-ghost:hover { background: var(--white); color: var(--primary); }
.btn-solid { background: var(--primary); color: var(--white); }
.btn-solid:hover { background: var(--secondary); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--secondary); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 11px 16px; font-size: 13px; }

.eyebrow { font: 600 13px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--lilac); }
.text-accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { background: var(--primary); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 20px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 124px; padding-top: 10px; padding-bottom: 10px; }
.brand-logo { display: block; color: var(--white); flex-shrink: 0; }
.brand-logo svg { width: 190px; height: auto; display: block; }
.header-right { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.header-top { display: flex; align-items: center; gap: 22px; }
.partner { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.partner img, .partner svg { height: 42px; width: auto; }
.partner strong { display: block; font: 500 21px/1 var(--font-body); letter-spacing: .02em; }
.partner small { display: block; font-size: 10.5px; line-height: 1.25; opacity: .85; max-width: 150px; margin-top: 3px; }
.partner-divider { width: 1px; height: 44px; background: rgba(255,255,255,.3); }
.icon-btn { background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; border-radius: 50%; display: inline-flex; }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(255,255,255,.12); }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav .nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 9px; color: var(--white);
  text-decoration: none; font: 500 14px/1 var(--font-body); background: none; border: 0; cursor: pointer; position: relative;
}
.main-nav .nav-link .icon { width: 14px; height: 14px; transition: transform .2s; }
.main-nav .nav-link::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; background: var(--lilac); transform: scaleX(0); transition: transform .2s; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.active { color: var(--lilac); }
.main-nav .has-menu:hover > .nav-link .icon, .main-nav .has-menu.open > .nav-link .icon { transform: rotate(180deg); }
.dropdown {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--white); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s ease; border-top: 3px solid var(--lilac);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu:hover > .dropdown, .has-menu.open > .dropdown, .has-menu:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; font-size: 14.5px; border-radius: 5px; }
.dropdown a:hover { background: var(--lavender); color: var(--primary); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn, .btn { white-space: nowrap; }
.menu-toggle { display: none; }
.header-partners { display: flex; align-items: center; gap: 18px; }
.header-partners img { width: auto; max-width: 140px; }
.nav-orgs { display: none; }
/* IOHA affiliation (home page footer) */
.footer-affiliation { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 28px; }
.footer-affiliation img { height: 54px; width: auto; }
.footer-affiliation p { margin: 0; font-size: 13.5px; line-height: 1.55; opacity: .85; max-width: 760px; }
.footer-affiliation a { color: var(--lilac); }

/* Mobile nav */
@media (max-width: 1260px) {
  .header-inner { min-height: 84px; }
  .brand-logo svg { width: 140px; }
  .header-top .partner, .header-top .partner-divider, .header-partners { display: none; }
  .nav-orgs { display: block; border: 0 !important; padding: 28px 0 10px; }
  .nav-orgs-row { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-bottom: 22px; }
  .nav-orgs .partner { display: flex; }
  .nav-orgs .partner img { height: 36px; }
  .nav-orgs p { font: 600 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); margin: 0 0 14px; }
  .nav-orgs .partner-logos { gap: 26px; }
  .header-right { flex-direction: row; justify-content: flex-end; align-items: center; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 84px 0 0 0; background: var(--primary); overflow-y: auto; padding: 12px 24px 40px;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.14); }
  .main-nav .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 17px; }
  .main-nav .nav-link::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 12px 8px; display: none; min-width: 0; }
  .has-menu.open > .dropdown { display: block; }
  .has-menu:hover > .dropdown { display: none; }
  .has-menu.open:hover > .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,.88); }
  .dropdown a:hover { background: rgba(255,255,255,.1); color: var(--white); }
  .nav-cta { margin: 20px 0 0; border: 0 !important; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); min-height: 620px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 18s ease-out forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(44,3,115,.8) 0%, rgba(44,3,115,.5) 36%, rgba(44,3,115,0) 68%), linear-gradient(0deg, rgba(44,3,115,.3), transparent 35%); }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-content { padding: 70px 24px 130px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); font-weight: 300; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 strong { font-weight: 500; display: block; }
.hero .tagline { font: 400 clamp(19px, 2.2vw, 27px)/1.3 var(--font-sub); margin: 18px 0 30px; max-width: 560px; }
.hero-meta { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; }
.hero-meta li { display: flex; gap: 16px; align-items: flex-start; }
.hero-meta .icon { width: 26px; height: 26px; margin-top: 1px; stroke-width: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

/* Inner page hero */
.page-hero { position: relative; color: var(--white); padding: 90px 0 80px; overflow: hidden; isolation: isolate; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(44,3,115,.9), rgba(63,4,158,.6) 60%, rgba(63,4,158,.35)); }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.page-hero p { max-width: 640px; font-size: 18px; margin: 16px 0 0; opacity: .92; }
.crumbs { font-size: 13px; margin-bottom: 18px; opacity: .85; }
.crumbs a { color: var(--white); }

/* ---------- Key dates ---------- */
.key-dates { position: relative; z-index: 2; margin-top: -80px; }
.key-dates-card {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 150px repeat(4, 1fr) auto; align-items: center; padding: 28px 30px; gap: 0;
}
.key-dates-card h2 { font: 500 19px/1.2 var(--font-sub); color: var(--primary); letter-spacing: .04em; text-transform: uppercase; }
.kd { text-align: center; padding: 4px 14px; border-left: 1px solid var(--line); }
.kd:nth-child(2) { border-left: 0; }
.kd .icon { width: 30px; height: 30px; color: var(--primary); stroke-width: 1.5; margin: 0 auto 10px; display: block; }
.kd span { display: block; font-size: 13.5px; color: var(--muted); }
.kd strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-top: 4px; }
.key-dates-card .btn { margin-left: 16px; }

/* ---------- Welcome ---------- */
.section { padding: 90px 0; }
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.welcome-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 368 / 282; }
.welcome-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.welcome-img:hover img { transform: scale(1.03); }
.welcome h2 { font-size: clamp(32px, 3.4vw, 42px); color: var(--primary); margin-bottom: 26px; font-weight: 300; }
.welcome h2 .text-accent { font-weight: 400; }
.welcome p { color: #3a3355; font-size: 16.5px; line-height: 1.75; }

/* ---------- Quick links ---------- */
.quick-links { border-top: 1px solid var(--line); padding: 40px 0 70px; display: grid; grid-template-columns: repeat(5, 1fr); }
.ql { text-align: center; padding: 10px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.ql:first-child { border-left: 0; }
.ql .icon { width: 46px; height: 46px; color: var(--primary); stroke-width: 1.2; margin-bottom: 16px; transition: transform .25s, color .25s; }
.ql:hover .icon { transform: translateY(-4px); color: var(--accent); }
.ql h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.ql p { font-size: 14px; color: var(--muted); max-width: 170px; margin-bottom: 16px; }
.ql a { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ql a .icon { width: 15px; height: 15px; margin: 0; stroke-width: 2; }
.ql a:hover { color: var(--accent); }

/* ---------- Banner ---------- */
.banner { position: relative; background: var(--primary); color: var(--white); overflow: hidden; isolation: isolate; }
.banner-img { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--primary) 36%, rgba(63,4,158,.55) 58%, rgba(63,4,158,.05) 85%); }
.banner-content { padding: 70px 24px; max-width: var(--wrap); margin: 0 auto; }
.banner-content > div { max-width: 470px; }
.banner h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 14px; }
.banner p { font-size: 17px; line-height: 1.65; opacity: .95; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-deep); color: var(--white); }
.footer-main { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: 36px; padding: 44px 24px 36px; align-items: start; }
.footer-main .brand-logo svg { width: 180px; }
.footer-col h4 { font: 600 12.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); margin: 8px 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-col li { display: flex; gap: 12px; align-items: flex-start; }
.footer-col li .icon { width: 18px; height: 18px; margin-top: 2px; opacity: .9; }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-partners { border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; padding-bottom: 30px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-partners h4 { font: 600 12.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); margin: 0; }
.partner-logos { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.partner-logo { display: block; opacity: .92; transition: opacity .2s, transform .2s; }
.partner-logo:hover { opacity: 1; transform: translateY(-2px); }
.partner-logo img { width: auto; max-width: 220px; }
/* Partner band (About page) */
.partner-band { background: var(--primary); color: var(--white); }
.partner-band .section-head h2 { color: var(--white); }
.partner-band .section-head p { color: rgba(255,255,255,.85); }
.partner-band .content-grid .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); box-shadow: none; color: var(--white); }
.partner-band .card h3 { color: var(--white); }
.partner-band .card p { color: rgba(255,255,255,.85); }
.partner-band .card a { color: var(--lilac); }
.partner-band .card .logo-box { height: 80px; display: flex; align-items: center; margin-bottom: 18px; }
.partner-band .card .logo-box img { max-height: 80px; width: auto; }
.org-pair { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.org-pair img { height: 64px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 22px; font-size: 13px; opacity: .85; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: var(--white); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(44,3,115,.92); display: none; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 680px; }
.search-box label { color: var(--lilac); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.search-field { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--white); margin-top: 10px; }
.search-field .icon { color: var(--white); width: 26px; height: 26px; }
.search-field input { flex: 1; background: none; border: 0; color: var(--white); font: 300 32px/1.3 var(--font-head); padding: 12px 0; outline: none; }
.search-field input::placeholder { color: rgba(255,255,255,.5); }
.search-results { list-style: none; margin: 22px 0 0; padding: 0; max-height: 55vh; overflow: auto; }
.search-results a { display: block; padding: 14px 16px; border-radius: 8px; color: var(--white); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: rgba(255,255,255,.1); }
.search-results small { display: block; opacity: .7; font-size: 13px; }
.search-close { position: absolute; top: 22px; right: 22px; }

/* ---------- Generic content ---------- */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: 0 6px 24px rgba(44,3,115,.07); border: 1px solid var(--line); }
.card h3 { color: var(--primary); font-size: 20px; margin-bottom: 10px; }
.card .icon.lg { width: 38px; height: 38px; color: var(--accent); stroke-width: 1.4; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.3vw, 42px); color: var(--primary); }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.alt { background: var(--white); }
.lead { font-size: 18px; line-height: 1.75; color: #3a3355; }
.prose { max-width: 780px; }
.prose h2 { font-size: 32px; color: var(--primary); margin: 40px 0 16px; }
.prose h3 { color: var(--primary); margin: 28px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--lavender); color: var(--primary); letter-spacing: .03em; }
.note { background: var(--lavender); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 6px; color: var(--primary-deep); font-size: 15px; }

/* Timeline (key dates page) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--lavender); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); }
.timeline strong { display: block; font: 500 17px/1.3 var(--font-sub); color: var(--primary); }
.timeline span { color: var(--muted); }

/* Tabs (programme) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { font: 500 14px/1 var(--font-body); padding: 12px 18px; border-radius: 99px; border: 1.5px solid var(--lavender); background: var(--white); color: var(--primary); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--primary); color: var(--white); border-color: var(--primary); }
.session { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 20px 24px; background: var(--white); border-bottom: 1px solid var(--line); align-items: start; }
.session:first-child { border-radius: 10px 10px 0 0; }
.session:last-child { border-radius: 0 0 10px 10px; border-bottom: 0; }
.session time { font: 500 16px/1.4 var(--font-sub); color: var(--primary); }
.session h3 { font-size: 17px; margin-bottom: 4px; }
.session p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 10px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
th { background: var(--primary); color: var(--white); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbf9fe; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink); padding: 13px 14px;
  border: 1.5px solid #cfc5e4; border-radius: 6px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3,75,202,.15); }
.field .err { color: #b3261e; font-size: 13px; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 17px; height: 17px; }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success .icon { width: 54px; height: 54px; color: var(--white); background: var(--primary); border-radius: 50%; padding: 12px; margin: 0 auto 16px; }
.form-success h3 { color: var(--primary); font-size: 24px; }
.sent .form { display: none; }
.sent .form-success { display: block; }

/* News */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card time { font-size: 13px; color: var(--muted); }
.news-card h3 { color: var(--primary); font-size: 19px; margin: 8px 0 10px; }
.news-card a.more { margin-top: auto; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

/* Sponsorship tiers */
.tier { text-align: center; }
.tier .badge { margin-bottom: 14px; }
.tier ul { text-align: left; padding-left: 18px; color: var(--muted); font-size: 15px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .key-dates-card { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .key-dates-card h2 { grid-column: 1 / -1; text-align: center; }
  .kd { border-left: 0; }
  .kd:nth-child(odd) { border-left: 1px solid var(--line); }
  .key-dates-card .btn { grid-column: 1 / -1; justify-self: center; margin: 4px 0 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .ql:nth-child(4) { border-left: 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .footer-partners, .partner-logos { gap: 26px; }
  .footer-affiliation { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero { min-height: 560px; }
  .hero::before { background: linear-gradient(90deg, rgba(44,3,115,.85), rgba(44,3,115,.55)); }
  .hero-content { padding: 56px 16px 120px; }
  .section { padding: 64px 0; }
  .welcome { grid-template-columns: 1fr; gap: 32px; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .ql { border-left: 0 !important; }
  .ql:last-child { grid-column: 1 / -1; }
  .banner-img { width: 100%; opacity: .45; }
  .banner::before { background: linear-gradient(90deg, var(--primary) 20%, rgba(63,4,158,.7)); }
  .banner-content { padding: 56px 16px; }
  .footer-main { grid-template-columns: 1fr; padding: 40px 16px 28px; }
  .footer-bottom .wrap { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .session { grid-template-columns: 1fr; gap: 6px; }
  .search-field input { font-size: 24px; }
}
@media (max-width: 440px) {
  .key-dates-card { padding: 24px 12px; }
  .kd { padding: 4px 8px; }
  .quick-links { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
}
