/*
Theme Name: Abbottabad College of Nursing
Author: Abbottabad College of Nursing & Allied Health Sciences
Description: Theme for Abbottabad College of Nursing & Allied Health Sciences — fourteen nursing, pharmacy and allied health programs, a three-step online application that files to Google Drive, and a mega menu driven by WordPress menus.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acn
Tags: education, custom-menu, custom-logo, translation-ready, block-styles
*/

/* ============================================================
   Abbottabad College of Nursing & Allied Health Sciences
   Design tokens first, then layout, then components. Colours and
   spacing are all driven by the custom properties below, so a
   rebrand means editing this one block.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --green:        #8fbc1f;
  --green-600:    #7ca617;
  --green-700:    #6f9a12;
  --green-800:    #567a0d;
  --green-050:    #f4f7ea;
  --green-100:    #e7efcf;

  --ink:          #24303a;
  --slate:        #4a5763;
  --slate-400:    #7a8794;
  --line:         #e4e8ec;
  --bg:           #ffffff;
  --bg-soft:      #f5f7f2;
  --bg-dark:      #223027;
  --bg-darker:    #1a241d;

  --white:        #ffffff;
  --amber:        #f4a91f;

  --maxw:         1220px;
  --gutter:       clamp(16px, 4vw, 40px);
  --radius:       14px;
  --radius-sm:    9px;
  --shadow-sm:    0 2px 6px rgba(20,30,25,.06);
  --shadow:       0 10px 30px rgba(20,30,25,.10);
  --shadow-lg:    0 24px 60px rgba(20,30,25,.16);
  --ring:         0 0 0 3px rgba(143,188,31,.35);

  --header-h:     92px;
  --ff-sans:      "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --ff-head:      "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-fast:       .18s ease;
  --t:            .28s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--green-800); }
h1, h2, h3, h4, h5 { font-family: var(--ff-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; color: var(--slate); }
ul { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--green-050), #fff); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: .6rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(28px,4vw,48px); }
.section-head.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--slate); }
.muted { color: var(--slate-400); }
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #1c2a08;
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--ff-head); font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(124,166,23,.35); color: #1c2a08; }
.btn:active { transform: translateY(0); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { box-shadow: 0 10px 22px rgba(36,48,58,.35); color:#fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color:#1c2a08; }
.btn--white { --btn-bg:#fff; --btn-fg: var(--ink); }
.btn--white-ghost { --btn-bg: transparent; --btn-fg:#fff; border-color: rgba(255,255,255,.7); }
.btn--white-ghost:hover { background:#fff; color: var(--ink); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: #1da851; color: #fff; box-shadow: 0 10px 22px rgba(37,211,102,.35); }
.btn--whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn .ico { width: 1.05em; height: 1.05em; }
.link-more { font-family: var(--ff-head); font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.link-more::after { content: "→"; transition: transform var(--t-fast); }
.link-more:hover::after { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm); }

/* utility bar */
.utility { background: var(--ink); color: #cdd6d0; font-size: .82rem; }
.utility .container { display: flex; align-items: center; justify-content: flex-end; min-height: 42px; gap: 1rem; }
.utility a { color: #cdd6d0; }
.utility a:hover { color: #fff; }
.utility-right { display: flex; align-items: center; gap: 1.25rem; }
.utility-right > * { flex-shrink: 0; }
.utility a, .util-search { white-space: nowrap; }
.util-divider { width: 1px; height: 18px; background: rgba(255,255,255,.18); }
.util-join { color: #fff !important; font-weight: 700; }
.util-join:hover { color: var(--green) !important; }
.util-join strong { color: var(--green); }

/* search toggle */
.util-search { background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: 11px 0; font: inherit; }
.util-search:hover { color: #fff; }
.util-search svg { width: 15px; height: 15px; flex-shrink: 0; }

/* main bar */
.mainbar .container { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
/* icons sit under the email, flush with the right edge of the block */
.header-social { justify-content: flex-end; margin-top: .3rem; }
.brand img { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b1 { font-family: var(--ff-head); font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }
.brand-text .b2 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); font-weight: 700; }

.header-contact { margin-left: auto; text-align: right; font-size: .82rem; color: var(--slate); display: flex; flex-direction: column; gap: 2px; }
.header-contact a { color: var(--slate); font-weight: 600; }
.header-contact .hc-phone { font-family: var(--ff-head); font-weight: 700; color: var(--ink); font-size: 1rem; }
.social { display: flex; gap: .5rem; }
.social a {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green-050); color: var(--green-800);
  display: grid; place-items: center; transition: var(--t-fast);
}
.social a:hover { background: var(--green); color:#1c2a08; transform: translateY(-2px); }
.social svg { width: 15px; height: 15px; }

/* primary nav */
.navwrap { background: var(--green); }
.navwrap .container { display: flex; align-items: stretch; }
.nav { display: flex; flex: 1; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  font-family: var(--ff-head); font-weight: 700; font-size: .93rem; color: #1c2a08;
  padding: 1rem 1.05rem; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  background: none; border: 0; height: 100%; transition: background var(--t-fast); white-space: nowrap;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button { background: rgba(0,0,0,.09); color:#1c2a08; }
.nav > li.current > a, .nav > li.current > button { background: var(--green-800); color: #fff; }
.nav .caret { width: 12px; height: 12px; transition: transform var(--t-fast); }
.nav > li.open .caret { transform: rotate(180deg); }

/* mega menu */
.mega {
  position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius); padding: 1.6rem; min-width: 560px;
  display: grid; grid-template-columns: repeat(3, minmax(150px,1fr)); gap: 1.4rem 2rem;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t); z-index: 90;
}
.nav > li.mega-lg .mega { min-width: 760px; }
.nav > li.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.mega a { display: block; padding: .38rem 0; color: var(--slate); font-weight: 600; font-size: .92rem; }
.mega a:hover { color: var(--green-800); transform: translateX(3px); }
.mega .mega-feature { background: linear-gradient(160deg, var(--green-700), var(--green-800)); color:#fff; border-radius: var(--radius-sm); padding: 1.2rem; }
.mega .mega-feature h4 { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.mega .mega-feature p { color: rgba(255,255,255,.9); font-size: .88rem; }
.mega .mega-feature a { color: #fff; }

.header-cta { display: inline-flex; align-items: center; }

/* burger */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: var(--t-fast); }
.burger span + span { margin-top: 5px; }
.nav-open .burger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2){ opacity: 0; }
.nav-open .burger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* search overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(26,36,29,.92); z-index: 200; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: var(--t); padding: var(--gutter);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(720px, 100%); }
.search-box label { color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.search-form { display: flex; gap: .6rem; margin-top: .7rem; border-bottom: 2px solid var(--green); }
.search-form input { flex: 1; background: none; border: 0; color: #fff; font-size: clamp(1.3rem, 4vw, 2.2rem); padding: .4rem 0; }
.search-form input::placeholder { color: rgba(255,255,255,.4); }
.search-form input:focus { outline: none; box-shadow: none; }
.search-form button { background: none; border: 0; color: var(--green); cursor: pointer; }
.search-form button svg { width: 32px; height: 32px; }
.search-close { position: absolute; top: 28px; right: 32px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.search-hint { color: rgba(255,255,255,.5); margin-top: 1rem; font-size: .9rem; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; }
.slider { position: relative; overflow: hidden; }
.slides { position: relative; height: clamp(440px, 62vh, 620px); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; visibility: visible; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.slide-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* readability scrim over hero photography — copy sits on the left */
.slide.has-photo::before {
  background: linear-gradient(100deg, rgba(16,26,18,.86) 0%, rgba(16,26,18,.72) 42%, rgba(16,26,18,.38) 100%);
}
.slide-1 { background: linear-gradient(115deg, #2a3b21 0%, #4a6b1d 55%, #7ca617 100%); }
.slide-2 { background: linear-gradient(115deg, #16331f 0%, #2f6a3e 60%, #6bab52 100%); }
.slide-3 { background: linear-gradient(115deg, #1f2a3b 0%, #2c4a6a 60%, #4f86c6 100%); }
.slide::after {
  content:""; position:absolute; inset:0; z-index:1; opacity:.5;
  background-image: radial-gradient(circle at 82% 30%, rgba(255,255,255,.18), transparent 42%),
                    radial-gradient(circle at 12% 88%, rgba(0,0,0,.28), transparent 45%);
}
.slide .container { position: relative; z-index: 2; }
.slide-content { max-width: 620px; color: #fff; }
.slide-content .eyebrow { color: #eaf3cf; }
.slide-content h1, .slide-content h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.slide-content p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 500px; }
.slide-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.slide-deco { position: absolute; right: -60px; bottom: -60px; width: 460px; height: 460px; z-index: 1; opacity: .16; }

.slider-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: .55rem; z-index: 5; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: var(--t-fast); }
.slider-dots button.active { background: #fff; width: 30px; border-radius: 8px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.4); color: #fff; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; transition: var(--t-fast); backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 20px; }
@media (max-width: 700px){ .slider-arrow { display: none; } }

/* quick-links strip under hero */
.quicklinks { background: var(--ink); }
.quicklinks .grid { grid-template-columns: repeat(4,1fr); gap: 0; }
.ql {
  display: flex; align-items: center; gap: .9rem; padding: 1.4rem clamp(14px,2vw,26px); color: #fff;
  border-right: 1px solid rgba(255,255,255,.09); transition: background var(--t-fast);
}
.ql:last-child { border-right: 0; }
.ql:hover { background: rgba(255,255,255,.06); color:#fff; }
.ql .ql-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--green); color:#1c2a08; display: grid; place-items: center; }
.ql .ql-ico svg { width: 22px; height: 22px; }
.ql b { display: block; font-family: var(--ff-head); font-size: 1rem; }
.ql span { font-size: .82rem; color: rgba(255,255,255,.65); }
@media (max-width: 900px){ .quicklinks .grid { grid-template-columns: repeat(2,1fr); } .ql:nth-child(2){ border-right:0;} }
@media (max-width: 620px){ .quicklinks .grid { grid-template-columns: 1fr; } .ql { border-right:0; border-bottom:1px solid rgba(255,255,255,.09);} }

/* ============================================================
   FEATURE / SPLIT SECTIONS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media { position: relative; }
.media-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3;
  display: grid; place-items: center; position: relative; color: #fff;
}
.media-card .mc-badge {
  position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--ink);
  padding: .5rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; font-family: var(--ff-head);
  display: inline-flex; align-items: center; gap: .4rem;
}
.grad-leaf   { background: linear-gradient(140deg, #4a6b1d, #8fbc1f); }
.grad-teal   { background: linear-gradient(140deg, #12463f, #2f9e8f); }
.grad-navy   { background: linear-gradient(140deg, #1f2a3b, #4f86c6); }
.grad-plum   { background: linear-gradient(140deg, #3a1f3b, #a64f86); }
.grad-amber  { background: linear-gradient(140deg, #6b4a1d, #f4a91f); }
.media-emoji { font-size: clamp(3.5rem, 9vw, 6rem); filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }

/* photo media — real imagery inside the gradient media slots.
   The gradient stays underneath as the loading/fallback colour. */
.media-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; border: 0;
}
.media-card .media-img, .card-media .media-img { z-index: 0; }
/* keep the badge/tag chips above the photo */
.media-card .mc-badge, .card-tag { z-index: 2; }
/* subtle scrim so white chips and rounded corners read against busy photos */
.media-card.has-photo::after, .card-media.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,20,14,.30) 0%, rgba(12,20,14,0) 38%, rgba(12,20,14,.28) 100%);
}
.card-media.has-photo { overflow: hidden; }
.card:hover .media-img { transform: scale(1.04); }
.media-img { transition: transform .5s ease; }
@media (prefers-reduced-motion: reduce) { .media-img { transition: none; } .card:hover .media-img { transform: none; } }
.brandbar { display: inline-flex; align-items: center; gap: .6rem; background: var(--green-050); border-radius: 999px; padding: .5rem 1rem; margin-bottom: 1rem; }
.brandbar b { font-family: var(--ff-head); color: var(--green-800); }
.feature-list { margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--slate); }
.feature-list .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-size: .7rem; margin-top: 3px; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ============================================================
   CARDS (news, courses, events)
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; color: #fff; }
.card-media .emoji { font-size: 3rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.card-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--green-800);
  font-family: var(--ff-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px;
}
.card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: .8rem; color: var(--slate-400); margin-bottom: .5rem; display: flex; gap: .6rem; align-items: center; }
.card-body h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--green-800); }
.card-body p { font-size: .92rem; flex: 1; }
.card-foot { margin-top: 1rem; }

/* course card variant */
.course-card .card-media { aspect-ratio: 3/2; }
.course-price { font-family: var(--ff-head); font-weight: 700; color: var(--ink); }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--green-050); color: var(--green-800); }
.pill--navy { background: #e8eef7; color: #2c4a6a; }
.pill--amber { background: #fdf0d8; color: #8a5a08; }
.pill--plum  { background: #f6e8f2; color: #7a3a63; }

/* program detail blocks */
.prog-lbl {
  font-family: var(--ff-head); font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-800); margin: 1.1rem 0 .5rem;
}
.prog-list { display: grid; gap: .45rem; margin-bottom: .2rem; }
.prog-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--slate); font-size: .93rem; }
.prog-list li::before { content: "•"; color: var(--green-700); font-weight: 700; flex-shrink: 0; }

/* data table (program comparison) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
.data-table caption { text-align: left; padding: 1rem 1.2rem 0; color: var(--slate-400); font-size: .84rem; }
.data-table th, .data-table td { padding: .9rem 1.2rem; text-align: left; vertical-align: top; }
.data-table thead th {
  background: var(--green-050); color: var(--green-800); font-family: var(--ff-head);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.data-table tbody tr + tr { border-top: 1px solid var(--line); }
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table td b { color: var(--ink); }

/* promotional offer band */
.offer-band {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--green-800), var(--green-600));
  color: #fff; border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-sm);
}
.offer-band b {
  font-family: var(--ff-head); font-size: 1.35rem; letter-spacing: -.01em;
  background: #fff; color: var(--green-800); border-radius: 999px; padding: .3rem 1rem; flex-shrink: 0;
}
.offer-band span { font-weight: 600; }
.offer-band .btn { margin-left: auto; --btn-bg: #fff; --btn-fg: var(--green-800); }
@media (max-width: 620px){ .offer-band .btn { margin-left: 0; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat .num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.2rem,5vw,3.2rem); color: var(--green-700); line-height: 1; letter-spacing: -.02em; }
.stat .lbl { color: var(--slate); font-weight: 600; margin-top: .4rem; font-size: .95rem; }
.stats--onDark .num { color: var(--green); }
.stats--onDark .lbl { color: rgba(255,255,255,.75); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; right:-80px; top:-80px; width: 320px; height:320px; border-radius:50%; background: rgba(255,255,255,.08); }
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 640px; }
.cta-band .actions { flex-shrink: 0; }

/* ============================================================
   PAGE HERO (interior)
   ============================================================ */
.page-hero { background: linear-gradient(120deg, #223027, #4a6b1d); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 40%); }
.page-hero .container { position: relative; z-index: 1; padding-top: clamp(40px,6vw,70px); padding-bottom: clamp(40px,6vw,70px); }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; font-size: 1.12rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color:#fff; }
.breadcrumb .sep { opacity: .5; }

/* content + sidebar */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(30px,5vw,60px); align-items: start; }
@media (max-width: 900px){ .content-layout { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul.bullets { margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.prose ul.bullets li { position: relative; padding-left: 1.6rem; color: var(--slate); }
.prose ul.bullets li::before { content:""; position:absolute; left:0; top:.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.prose blockquote { margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--green); background: var(--green-050); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem; color: var(--ink); font-style: italic; }
.sidebar-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.sidebar-card h4 { font-size: 1.05rem; margin-bottom: .8rem; }
.sidebar-links li a { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--slate); font-weight: 600; }
.sidebar-links li:last-child a { border-bottom: 0; }
.sidebar-links li a:hover { color: var(--green-800); }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--ff-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; transition: background var(--t-fast); }
.acc-head:hover { background: var(--green-050); }
.acc-head .acc-ico { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green-050); color: var(--green-800); display: grid; place-items: center; transition: var(--t-fast); font-size: 1.2rem; line-height: 1; }
.acc-item.open .acc-head .acc-ico { background: var(--green); transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc-panel-inner { padding: 0 1.3rem 1.2rem; color: var(--slate); }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-family: var(--ff-head); margin-bottom: .4rem; font-size: .92rem; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: var(--ring); }
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: #c0392b; font-size: .82rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--slate-400); }
.form-success { display: none; background: var(--green-050); border: 1px solid var(--green-100); color: var(--green-800); padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; }
.form-success.show { display: block; }
.form-error {
  display: none; background: #fdecea; border: 1px solid #f5c6c0; color: #a02b1c;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem;
}
.form-error.show { display: block; }
button[type="submit"][disabled] { opacity: .65; cursor: progress; transform: none; }

/* embedded map */
.map-embed {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg-soft);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px){ .map-embed { aspect-ratio: 1/1; } }

/* ============================================================
   APPLY ONLINE — multi-step form
   ============================================================ */
.wizard { position: relative; }
.wiz-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.wiz-pct { font-family: var(--ff-head); font-weight: 700; font-size: .84rem; color: var(--slate); min-width: 3.2rem; }
.wiz-track { flex: 1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wiz-fill {
  height: 100%; width: 33%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), var(--green));
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.wiz-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.wiz-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; font-family: var(--ff-head);
  background: var(--bg-soft); color: var(--slate-400); border: 1px solid var(--line);
}
.wiz-chip b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--slate); font-size: .72rem; }
.wiz-chip.active { background: var(--green-050); color: var(--green-800); border-color: var(--green-100); }
.wiz-chip.active b { background: var(--green); color: #1c2a08; }
.wiz-chip.done b { background: var(--green-700); color: #fff; }

.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizIn .35s ease both; }
@keyframes wizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz-step.active { animation: none; } }

.wiz-legend { font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 1.2rem; }
.wiz-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.wiz-actions .spacer { margin-left: auto; }

.form-row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px){ .form-row--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .form-row--3 { grid-template-columns: 1fr; } }

/* date of birth: three selects sharing one label */
.dob-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .6rem; }
.dob-grid .dob-part label { font-weight: 600; font-size: .78rem; color: var(--slate); margin-bottom: .25rem; }

/* file upload fields */
.file-field .file-btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  background: var(--green-700); color: #fff; font-family: var(--ff-head); font-weight: 700;
  padding: .8rem 1rem; border-radius: var(--radius-sm); transition: var(--t-fast); font-size: .93rem;
}
.file-field .file-btn:hover { background: var(--green-800); }
.file-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-field .file-name { display: block; margin-top: .45rem; font-size: .82rem; color: var(--slate-400); word-break: break-all; }
.file-field.has-file .file-name { color: var(--green-800); font-weight: 600; }
.file-field.invalid .file-btn { background: #c0392b; }
.file-field.invalid .err { display: block; }

/* live format hint — appears as soon as the field is focused or typed in */
.field-hint {
  display: none; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  margin-top: .4rem; font-size: .8rem; color: var(--slate-400); line-height: 1.35;
}
.field-hint.show { display: flex; }
.field-hint b {
  font-family: var(--ff-head); font-weight: 700; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate); background: var(--bg-soft);
  border-radius: 999px; padding: .12rem .5rem; flex-shrink: 0;
}
.field-hint.ok { color: var(--green-800); }
.field-hint.ok b { background: var(--green-050); color: var(--green-800); }
.field-hint.ok b::after { content: " \2713"; }
.field.invalid .field-hint { display: none; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; }
.check-row input { width: auto; margin-top: 4px; }

/* info tiles / contact */
.info-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
@media (max-width: 760px){ .info-tiles { grid-template-columns: 1fr; } }
.info-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.info-tile .it-ico { width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 16px; background: var(--green-050); color: var(--green-800); display: grid; place-items: center; }
.info-tile .it-ico svg { width: 26px; height: 26px; }
.tel-list { display: grid; gap: .25rem; }
.tel-list a { display: block; }
.info-tile h3 { font-size: 1.1rem; }
.info-tile a { font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-dark); color: #b9c4bc; }
.footer-top { padding: clamp(40px,6vw,72px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 1080px){ .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text .b1 { color: #fff; }
.footer-about { margin: 1rem 0 1.2rem; font-size: .92rem; color: #97a49b; max-width: 320px; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links li a { color: #b9c4bc; display: inline-block; padding: .34rem 0; font-size: .93rem; }
.footer-links li a:hover { color: var(--green); }
.footer .social a { background: rgba(255,255,255,.08); color: #fff; }
.footer .social a:hover { background: var(--green); color: #1c2a08; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .84rem; color: #8b978d; }
.footer-bottom a { color: #b9c4bc; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--green); color: #1c2a08; cursor: pointer; display: grid; place-items: center; z-index: 80;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-700); }

/* cookie banner */
.cookie {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%); z-index: 210;
  width: min(960px, calc(100% - 32px)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.3rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  transition: transform var(--t); border: 1px solid var(--line);
}
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie p { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; }
.cookie .cookie-actions { display: flex; gap: .6rem; }

/* ---------- utilities ---------- */
.mb-0{margin-bottom:0}.mt-2{margin-top:2rem}.pt-0{padding-top:0}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } .reveal{opacity:1;transform:none;} }

/* ============================================================
   RESPONSIVE NAV (mobile)
   ============================================================ */
@media (max-width: 1080px){
  :root { --header-h: 74px; }
  .header-contact { display: none; }
  .burger { display: block; }
  .navwrap { position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 86vw); background: #fff;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--t); z-index: 150;
    overflow-y: auto; padding: 80px 0 40px; }
  .nav-open .navwrap { transform: translateX(0); }
  .navwrap .container { display: block; padding: 0; }
  .nav { flex-direction: column; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; color: var(--ink); padding: 1rem 1.4rem; }
  .nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button { background: var(--green-050); }
  .nav > li.current > a, .nav > li.current > button { background: var(--green-050); color: var(--green-800); }
  .mega { position: static; box-shadow: none; border-radius: 0; min-width: 0 !important; display: none;
    grid-template-columns: 1fr; gap: .6rem; padding: .4rem 1.4rem 1.2rem; opacity: 1; visibility: visible; transform: none;
    background: var(--bg-soft); }
  .nav > li.open .mega { display: grid; }
  .mega .mega-feature { display: none; }
  .header-cta { display: none; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(26,36,29,.5); z-index: 140; opacity: 0; visibility: hidden; transition: var(--t); }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .mobile-cta { display: block; padding: 1.2rem 1.4rem; }
  .mobile-cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1081px){ .nav-backdrop, .mobile-cta { display: none; } }

/* ---------- Filter chips (news / policy) ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(20px,3vw,32px); }
.chip {
  font-family: var(--ff-head); font-weight: 700; font-size: .85rem; cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--slate);
  transition: var(--t-fast);
}
.chip:hover { border-color: var(--green); color: var(--green-800); }
.chip.active { background: var(--green); border-color: var(--green); color: #1c2a08; }
.filter-item { transition: opacity var(--t-fast); }
.filter-item.hide { display: none; }
.filter-empty { display: none; text-align: center; color: var(--slate-400); padding: 2rem; grid-column: 1 / -1; }
.filter-empty.show { display: block; }

/* list-style rows (submissions, papers) */
.doc-row { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: var(--t-fast); }
.doc-row:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.doc-row .doc-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--green-050); color: var(--green-800); display: grid; place-items: center; font-size: 1.2rem; }
.doc-row .doc-main { flex: 1; }
.doc-row .doc-main b { font-family: var(--ff-head); color: var(--ink); display: block; }
.doc-row .doc-main span { font-size: .82rem; color: var(--slate-400); }
.doc-list { display: grid; gap: .7rem; }

/* ============================================================
   WORDPRESS-SPECIFIC
   ============================================================ */

/* accessibility helper WordPress expects */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; border-radius: 3px; clip: auto !important; clip-path: none;
  color: var(--green-800); display: block; font-size: .9rem; font-weight: 700;
  height: auto; left: 6px; line-height: normal; padding: 14px 20px; text-decoration: none;
  top: 6px; width: auto; z-index: 100000;
}
.skip-link { position: absolute; }

/* admin bar must not hide the sticky header */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* the custom logo control outputs its own wrapper */
.brand .custom-logo-link { display: inline-flex; }
.brand .custom-logo { width: 52px; height: 52px; }

/* editor content inside a page or post */
.entry-content > * + * { margin-top: 1.1rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content ul li { list-style: disc; margin-bottom: .4rem; }
.entry-content ol li { list-style: decimal; margin-bottom: .4rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  border-left: 3px solid var(--green); padding: .6rem 0 .6rem 1.2rem;
  background: var(--green-050); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.entry-content a { color: var(--green-800); text-decoration: underline; }

/* alignment classes from the block editor */
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }

/* comments */
.comment-list { list-style: none; }
.comment-list li { margin-bottom: 1.4rem; }
.comment-meta { font-size: .85rem; color: var(--slate-400); }

/* pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .7rem;
  border-radius: 999px; border: 1px solid var(--line); font-weight: 700; color: var(--slate);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--green); color: #1c2a08; border-color: transparent; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.acn-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ---------- Apply Online: the upload progress bar ---------- */
.upload-progress { display: none; margin: 1rem 0 0; }
.upload-progress.show { display: block; }
.upload-progress-bar {
  height: 10px; border-radius: 999px; background: var(--green-050, #f4f7ea);
  border: 1px solid var(--line, #e4e8ec); overflow: hidden;
}
.upload-progress-bar span {
  display: block; height: 100%; width: 0;
  background: var(--green, #8fbc1f); transition: width .25s ease;
}
.upload-progress-text { margin: .5rem 0 0; font-size: .9rem; color: var(--slate, #4a5763); }
@media (prefers-reduced-motion: reduce) { .upload-progress-bar span { transition: none; } }
