/* Shared structure for every school website theme. Themes add their own look on top. */
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--p); }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.muted { color: var(--soft, #5f6b7a); }
.preview-bar { position: sticky; top: 0; z-index: 60; background: #1f2b3c; color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
.btn { display: inline-block; background: var(--p); color: #fff; text-decoration: none; padding: 13px 26px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.dd { position: relative; }
.dd > div { display: none; position: absolute; top: 100%; left: 0; z-index: 40; background: #fff; border: 1px solid #e6eaf0; border-radius: 12px; padding: 6px; min-width: 210px; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .25); }
.dd:hover > div, .dd:focus-within > div { display: block; }
.dd > div a { display: block; }
.burger { display: none; background: none; border: 1px solid currentColor; border-radius: 10px; padding: 8px 11px; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; }
section.block { padding: 64px 0; }
.hero { position: relative; overflow: hidden; }
.hero.has-img { background-size: cover; background-position: center; }
.hero .wrap { position: relative; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { display: block; text-decoration: none; color: inherit; }
.card img { margin-bottom: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card h3 { margin: 6px 0 8px; }
.card .date { font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stats b { display: block; font-size: 38px; color: var(--p); letter-spacing: -.03em; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery a { text-decoration: none; color: inherit; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-cap { display: block; margin-top: 6px; font-weight: 600; }
details { border: 1px solid #e6eaf0; padding: 14px 18px; background: #fff; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
form.enquiry { display: grid; gap: 12px; max-width: 560px; }
form.enquiry input, form.enquiry select, form.enquiry textarea { width: 100%; padding: 12px 14px; border: 1px solid #d9dee6; font: inherit; background: #fff; }
.contact-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prose { max-width: 760px; }
.prose .lead { font-size: 18px; }
.entry-img { margin-bottom: 22px; }
.page-head .back { font-size: 14px; text-decoration: none; }
.page-head h1 { margin-top: 10px; }
.foot { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.powered { margin-top: 26px; padding-top: 16px; font-size: 12px; opacity: .7; }
@media (max-width: 860px) {
  [data-menu] { display: none !important; width: 100%; }
  [data-menu].open { display: flex !important; flex-direction: column; }
  .burger { display: block; }
  .dd > div { position: static; box-shadow: none; border: 0; padding-left: 14px; display: block; }
}

/* ---- Header styles (Website → Settings → Header style). Own classes, so they look the same in every design. ---- */
.hdr { position: relative; z-index: 50; background: #fff; color: #333; font-size: 14px; }
.hdr a { text-decoration: none; }
.hdr svg { width: 15px; height: 15px; flex: none; }
.hdr .wrap.hdr-row { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.hbrand { display: flex; align-items: center; gap: 12px; color: #1f2b3c; font-weight: 800; font-size: 20px; line-height: 1.2; text-decoration: none; }
.hbrand img { max-height: 64px; max-width: 240px; width: auto; height: auto; object-fit: contain; }
.hbrand small { display: block; font-size: 12.5px; font-weight: 500; opacity: .7; }
nav.hmenu { display: flex; flex-wrap: wrap; align-items: center; }
nav.hmenu > a, nav.hmenu > .dd > a { display: flex; align-items: center; gap: 4px; padding: 10px 13px; color: #333; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; border-radius: 0; background: none; }
nav.hmenu > a:hover, nav.hmenu > a.on, nav.hmenu > .dd:hover > a { color: var(--p); background: none; }
nav.hmenu .caret { font-size: 10px; opacity: .7; }
.hdr .dd > div { background: #fff; border: 0; border-top: 3px solid var(--p); border-radius: 0 0 6px 6px; padding: 6px 0; min-width: 220px; }
.hdr .dd > div a { padding: 9px 18px; color: #555; font-size: 13px; border-bottom: 1px solid #f2f2f2; text-transform: none; font-weight: 500; }
.hdr .dd > div a:last-child { border-bottom: 0; }
.hdr .dd > div a:hover { background: #f7f7f7; color: var(--p); }
.hdr .burger { color: inherit; border-color: currentColor; font-size: 14px; }
.hsocials { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hsocials a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f1f3f6; color: #444; }
.hsocials a:hover { background: var(--p); color: #fff; }
.hsocials svg { width: 14px; height: 14px; }

.hdr-classic { box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.hdr-classic .hbrand { padding: 10px 0; }
.hdr-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hdr-contact { display: flex; gap: 22px; margin: 0; padding: 8px 0 0; list-style: none; font-size: 13px; }
.hdr-contact a { display: inline-flex; align-items: center; gap: 6px; color: #555; }
.hdr-contact svg { color: var(--p); }
.hdr-navline { display: flex; align-items: center; gap: 10px; }
.hdr-navline nav.hmenu > a, .hdr-navline nav.hmenu > .dd > a { padding: 12px 11px 14px; }

.hdr-inline { box-shadow: 0 1px 0 #eceff3; }
.hdr-inline nav.hmenu { margin-left: auto; }
.hdr-inline nav.hmenu > a.on, .hdr-inline nav.hmenu > a:hover { box-shadow: inset 0 -3px 0 var(--p); }

.hdr-strip { background: var(--p); color: #fff; font-size: 13px; }
.hdr-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.hdr-strip a { color: #fff; display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; text-decoration: none; opacity: .92; }
.hdr-strip svg { width: 14px; height: 14px; }
.hdr-strip .hsocials a { background: rgba(255, 255, 255, .16); color: #fff; margin: 0; width: 26px; height: 26px; opacity: 1; }
.hdr-topbar { box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.hdr-topbar nav.hmenu { margin-left: auto; }

.hdr-dark { background: #1d2127; color: #fff; }
.hdr-dark .hbrand { color: #fff; }
.hdr-dark nav.hmenu { margin: 0 auto; }
.hdr-dark nav.hmenu > a, .hdr-dark nav.hmenu > .dd > a { color: rgba(255, 255, 255, .85); }
.hdr-dark nav.hmenu > a:hover, .hdr-dark nav.hmenu > a.on, .hdr-dark nav.hmenu > .dd:hover > a { color: #fff; box-shadow: inset 0 -3px 0 var(--p); }

.hdr-centered { text-align: center; }
.hdr-center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 0 16px; }
.hdr-centered .hbrand { flex-direction: column; font-size: 26px; text-align: center; }
.hdr-centered .hbrand img { max-height: 90px; }
.hdr-contact-line { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.hdr-contact-line a { display: inline-flex; align-items: center; gap: 6px; color: #555; }
.hdr-contact-line svg { color: var(--p); }
.hdr-bar { background: var(--p); }
.hdr-bar .wrap { display: flex; justify-content: center; }
.hdr-bar nav.hmenu > a, .hdr-bar nav.hmenu > .dd > a { color: #fff; padding: 14px 15px; }
.hdr-bar nav.hmenu > a:hover, .hdr-bar nav.hmenu > a.on, .hdr-bar nav.hmenu > .dd:hover > a { background: rgba(0, 0, 0, .14); color: #fff; }
.hdr-bar .burger { color: #fff; margin: 8px 0; }

/* ---- Footer styles ---- */
.ftr { background: #1d2127; color: rgba(255, 255, 255, .72); font-size: 14px; margin-top: 0; }
.ftr a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.ftr svg { width: 15px; height: 15px; flex: none; }
.ftr .hbrand { color: #fff; }
.ftr .hbrand img { max-height: 56px; background: #fff; padding: 6px; border-radius: 6px; }
.ftr .hsocials a { background: rgba(255, 255, 255, .1); color: #fff; }
.ftr .hsocials a:hover { background: var(--p); }
.ftr-cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 46px 0 34px; }
.ftr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr-list li { display: flex; gap: 10px; align-items: flex-start; }
.ftr-list svg { margin-top: 4px; color: var(--p); }
.ftr-map { width: 100%; height: 200px; border: 0; border-radius: 6px; }
.ftr-ribbon { position: relative; top: -1px; }
.ftr-ribbon span { display: inline-block; background: var(--p); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 26px; }
.ftr-map-style .ftr-wide { grid-column: span 2; }
.ftr-links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr-links-list a::before { content: "› "; color: var(--p); }
.ftr-soft { margin: 12px 0; }
.ftr-columns { background: var(--p); background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), var(--p); }
.ftr-top { display: flex; justify-content: center; padding: 34px 0 0; }
.ftr-three { text-align: center; }
.ftr-three > div > svg { width: 30px; height: 30px; color: #fff; margin: 0 auto 10px; display: block; }
.ftr-three .hsocials { justify-content: center; }
.ftr-three p { margin: 4px 0; }
.ftr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 22px 0; }
.ftr-line a { display: inline-flex; align-items: center; gap: 6px; }
.ftr-line strong { color: #fff; }
.ftr-copy { background: rgba(0, 0, 0, .25); font-size: 12.5px; }
.ftr-copy .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 14px 0; }
@media (max-width: 860px) {
  .hdr .wrap.hdr-row { flex-wrap: wrap; min-height: 70px; gap: 10px; }
  .hdr .burger { margin-left: auto; }
  .hdr-right { margin-left: 0; width: 100%; align-items: stretch; }
  .hdr-contact { display: none; }
  .hdr-navline { flex-wrap: wrap; }
  .hdr-navline .burger { margin-left: auto; }
  nav.hmenu > a, nav.hmenu > .dd > a { padding: 10px 4px; border-top: 1px solid rgba(127, 127, 127, .15); }
  .hdr-bar .wrap { flex-direction: column; }
  .ftr-map-style .ftr-wide { grid-column: auto; }
  .hide-sm { display: none !important; }
}

/* ---- Page types (sites/types/*) ---- */
.t-group { margin: 34px 0 16px; font-size: 22px; }
.t-group:first-child { margin-top: 0; }
.t-date { flex: none; width: 62px; text-align: center; background: var(--p); color: #fff; border-radius: 8px; padding: 6px 4px; font-size: 11px; line-height: 1.25; text-transform: uppercase; }
.t-date b { display: block; font-size: 22px; line-height: 1.1; }
.t-notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.t-notices li { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid #e6eaf0; border-radius: 10px; background: #fff; }
.t-notices li.important { border-color: var(--p); box-shadow: inset 4px 0 0 var(--p); }
.t-title { font-weight: 700; color: inherit; text-decoration: none; }
.t-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: #b42318; background: #fde8e7; border-radius: 99px; padding: 2px 8px; vertical-align: 2px; }
.t-file { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 13px; }
.t-file svg, .btn svg { width: 15px; height: 15px; vertical-align: -2px; }
.t-events { display: grid; gap: 14px; }
.t-event { display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: start; padding: 14px; border: 1px solid #e6eaf0; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.t-event h3 { margin: 0 0 4px; font-size: 18px; }
.t-event p { margin: 8px 0 0; }
.t-event img { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.t-people { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.t-person { text-align: center; padding: 22px 16px; border: 1px solid #e6eaf0; border-radius: 14px; background: #fff; }
.t-person img, .t-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.t-avatar { display: grid; place-items: center; background: color-mix(in srgb, var(--p) 14%, white); color: var(--p); font-size: 42px; font-weight: 800; }
.t-person h3 { margin: 0 0 4px; font-size: 17px; }
.t-role { color: var(--p); font-weight: 700; font-size: 13.5px; }
.t-person p { font-size: 13.5px; margin: 10px 0 0; }
.t-contact { display: grid; gap: 4px; margin-top: 10px; font-size: 13px; }
.t-contact a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.t-contact svg, .t-branch svg { width: 15px; height: 15px; flex: none; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.t-chips span { font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--p) 10%, white); color: var(--p); border-radius: 99px; padding: 3px 10px; }
.t-videos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.t-videos figure { margin: 0; }
.t-videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.t-videos figcaption { margin-top: 8px; }
div.t-branches { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.t-branch { border: 1px solid #e6eaf0; border-radius: 14px; padding: 18px; background: #fff; }
.t-branch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.t-branch h3 { font-size: 18px; margin: 0 0 10px; }
.t-branch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.t-branch li { display: flex; gap: 8px; align-items: flex-start; }
.t-branch li svg { margin-top: 4px; color: var(--p); }
.t-map { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }
.t-downloads { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.t-downloads li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e6eaf0; border-radius: 10px; background: #fff; }
.t-downloads li > div { flex: 1; min-width: 0; }
.t-downloads .btn { padding: 9px 16px; font-size: 13px; }
.t-ext { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--p) 12%, white); color: var(--p); font-size: 11px; font-weight: 800; }
.t-reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.t-review { margin: 0; padding: 22px; border: 1px solid #e6eaf0; border-radius: 14px; background: #fff; }
.t-review blockquote { margin: 0 0 16px; font-size: 15px; }
.t-review figcaption { display: flex; align-items: center; gap: 12px; }
.t-review img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.t-stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; }
.t-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0 0 22px; padding: 16px; background: #f7f8fa; border-radius: 12px; }
.t-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.t-facts dd { margin: 2px 0 0; font-weight: 700; }
.branch-list { margin-top: 30px; }
@media (max-width: 640px) {
  .t-event { grid-template-columns: 56px 1fr; }
  .t-event img { display: none; }
  .t-downloads li { flex-wrap: wrap; }
}

/* ---- Photo viewer (sites/partials/scripts): a gallery photo opens large; ‹ › / arrow keys / swipe move through the set. ---- */
.gallery img { cursor: zoom-in; }
.gallery a:not([href$=".jpg"]):not([href$=".jpeg"]):not([href$=".png"]):not([href$=".webp"]):not([href$=".gif"]) img { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px; background: rgba(10, 12, 18, .92); }
.lightbox.open { display: flex; animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #222; cursor: default; }
.lightbox figcaption { display: flex; gap: 18px; justify-content: space-between; width: 100%; margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 14px; }
.lb-count { margin-left: auto; opacity: .7; white-space: nowrap; }
.lb-nav, .lb-close { border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12); display: grid; place-items: center; transition: background .2s; font-family: Arial, sans-serif; }
.lb-nav { flex: none; width: 52px; height: 52px; border-radius: 50%; font-size: 34px; line-height: 1; padding-bottom: 4px; }
.lb-nav:hover, .lb-close:hover { background: var(--p); }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox.single .lb-nav { visibility: hidden; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox { padding: 60px 8px; gap: 0; }
  .lb-nav { position: absolute; bottom: 18px; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lightbox img { max-height: calc(100vh - 190px); }
}

/* WhatsApp chat button + "who are you" card (sites/partials/whatsapp) */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px 10px 12px; background: #25d366; color: #fff; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(18, 140, 74, .35); transition: transform .15s ease, box-shadow .15s ease; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 140, 74, .42); }
.wa-fab:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 3px; }
.wa-card { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px; background: rgba(10, 12, 18, .35); }
.wa-card[hidden] { display: none; }
.wa-panel { position: relative; width: min(360px, 100%); background: #fff; color: #1d2939; border-radius: 18px; padding: 0 20px 18px; box-shadow: 0 20px 50px rgba(10, 12, 18, .25); overflow: hidden; animation: wa-in .2s ease; }
.wa-head { display: flex; align-items: center; gap: 10px; margin: 0 -20px 14px; padding: 16px 44px 16px 20px; background: #075e54; color: #fff; }
.wa-head strong { display: block; font-size: 15px; }
.wa-head small { display: block; font-size: 12px; opacity: .8; }
.wa-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .3); }
.wa-x { position: absolute; top: 10px; right: 12px; z-index: 1; border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.wa-lead { margin: 0 0 12px; font-size: 13.5px; color: #475467; line-height: 1.5; }
.wa-panel label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: #475467; }
.wa-panel input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; color: #1d2939; background: #fff; }
.wa-panel input:focus { outline: 0; border-color: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.wa-err { margin: -4px 0 10px; font-size: 12px; color: #b42318; }
.wa-go, .wa-skip { display: block; width: 100%; border-radius: 10px; padding: 11px; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.wa-go { border: 0; background: #25d366; color: #fff; }
.wa-go:hover { background: #1fb658; }
.wa-skip { margin-top: 8px; border: 1px solid #d0d5dd; background: #fff; color: #344054; }
.wa-note { margin: 10px 0 0; font-size: 11.5px; color: #98a2b3; text-align: center; }
html.wa-lock { overflow: hidden; }
/* Shared website: "Select the branch" step before WhatsApp / call. */
.wa-branches { display: grid; gap: 8px; max-height: min(52vh, 360px); overflow-y: auto; margin: 0 0 4px; padding: 0; list-style: none; }
.wa-branch { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #d0d5dd; border-radius: 12px; padding: 11px 14px; background: #fff; color: #1d2939; font: 600 14px/1.3 inherit; font-family: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wa-branch small { display: block; font-weight: 400; font-size: 12px; color: #667085; }
.wa-branch:hover, .wa-branch:focus-visible { border-color: #25d366; background: #f0fdf4; outline: 0; }
.wa-branch::after { content: "›"; font-size: 20px; color: #98a2b3; }
.wa-picked { margin: 0 0 10px; font-size: 12.5px; color: #475467; }
.wa-picked button { border: 0; background: none; padding: 0; color: #075e54; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .wa-fab span { display: none; } .wa-fab { padding: 12px; } .wa-card { align-items: flex-end; justify-content: center; padding: 0; } .wa-panel { width: 100%; border-radius: 18px 18px 0 0; } }

/* ---- Verify certificate block ---- */
.cv-form { grid-template-columns: 1fr 1fr auto; align-items: start; max-width: 820px; }
.cv-form .msg { grid-column: 1 / -1; }
.cv-result { max-width: 820px; margin-top: 8px; padding: 26px; border: 1px solid #e3e8f2; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -30px rgba(11, 23, 54, .35); }
.cv-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.cv-photo { width: 92px; height: 110px; object-fit: cover; border-radius: 12px; border: 1px solid #e3e8f2; }
.cv-ok { display: inline-block; font-size: 12.5px; font-weight: 700; color: #067647; background: #ecfdf3; border-radius: 99px; padding: 4px 11px; margin-bottom: 8px; }
.cv-head h3 { margin: 0 0 4px; }
.cv-head p { margin: 0; }
.cv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; margin: 0 0 18px; }
.cv-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #667085; }
.cv-facts dd { margin: 2px 0 0; font-weight: 700; color: #1d2939; }
.cv-marks { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cv-marks th, .cv-marks td { padding: 9px 12px; border-bottom: 1px solid #e3e8f2; text-align: left; }
.cv-marks th:not(:first-child), .cv-marks td:not(:first-child) { text-align: right; }
.cv-marks thead th { background: #f3f6fd; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.cv-marks tfoot th { border-bottom: 0; }
.cv-actions { margin: 18px 0 0; display: flex; gap: 14px; align-items: center; }
.cv-again { border: 0; background: none; color: var(--p); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { .cv-form { grid-template-columns: 1fr; } .cv-head { align-items: flex-start; } }
@media print {
  body * { visibility: hidden; }
  .cv-result, .cv-result * { visibility: visible; }
  .cv-result { position: absolute; inset: 0 auto auto 0; width: 100%; box-shadow: none; border: 0; }
  .cv-actions { display: none; }
}

/* ---- Student Login block ---- */
.sp-login { display: flex; justify-content: center; }
.sp-login-card { width: min(480px, 100%); padding: 30px; border: 1px solid #e3e8f2; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -34px rgba(11, 23, 54, .4); }
.sp-login-card h2 { margin-bottom: 6px !important; }
.sp-form { max-width: none; margin-top: 18px; }
.sp-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #344054; }
.sp-form .btn { width: 100%; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; border: 1px solid #e3e8f2; border-radius: 20px; background: #fff; }
.sp-who { display: flex; align-items: center; gap: 16px; }
.sp-who h2 { margin: 2px 0 4px !important; font-size: clamp(20px, 2.4vw, 26px); }
.sp-hello { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--p); }
.sp-photo, .sp-initials { width: 72px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; }
.sp-initials { display: grid; place-items: center; background: var(--p); color: #fff; font-size: 26px; font-weight: 800; }
.sp-initials[hidden], .sp-photo[hidden] { display: none; }
.sp-logout { border: 1px solid #d0d5dd; background: #fff; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.sp-tabs { display: flex; gap: 6px; margin: 20px 0 16px; border-bottom: 1px solid #e3e8f2; }
.sp-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: #667085; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.sp-tabs button.on { color: var(--p); border-bottom-color: var(--p); }
.sp-courses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sp-course { padding: 20px; border: 1px solid #e3e8f2; border-radius: 18px; background: #fff; }
.sp-course-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sp-course-head h3 { margin: 0; font-size: 19px; }
.sp-status { flex: none; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: #f2f4f7; color: #475467; }
.sp-status.completed { background: #ecfdf3; color: #067647; }
.sp-status.studying { background: #eff4ff; color: #1d4ed8; }
.sp-facts, .sp-profile { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 18px; margin: 14px 0 16px; }
.sp-profile { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 20px; border: 1px solid #e3e8f2; border-radius: 18px; background: #fff; margin: 0; }
.sp-facts dt, .sp-profile dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #667085; }
.sp-facts dd, .sp-profile dd { margin: 2px 0 0; font-weight: 700; color: #1d2939; }
.sp-viewer { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(10, 12, 18, .55); }
.sp-viewer[hidden] { display: none; }
.sp-viewer-box { display: flex; flex-direction: column; width: min(900px, 100%); height: min(92vh, 1100px); background: #fff; border-radius: 16px; overflow: hidden; }
.sp-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid #e3e8f2; }
.sp-viewer-bar span { display: flex; align-items: center; gap: 8px; }
.sp-viewer-bar .btn { padding: 9px 16px; font-size: 14px; }
.sp-close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; }
.sp-frame { flex: 1; width: 100%; border: 0; background: #f2f4f7; }
.sp-login[hidden], .sp-panel[hidden], .cv-form[hidden], .cv-result[hidden] { display: none; }
.cv-form .sp-branch { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #344054; }
.cv-form { grid-template-columns: 1fr 1fr; }
.cv-form .btn, .cv-form .msg { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) { .cv-form { grid-template-columns: 1fr; } }
.cv-sheet { max-width: 900px; }
.cv-sheet[hidden] { display: none; }
.cv-sheet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cv-sheet-bar .cv-ok { margin: 0; }
.cv-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cv-sheet-actions .btn { padding: 9px 16px; font-size: 14px; }
.cv-frame { width: 100%; height: min(1180px, 90vh); border: 1px solid #e3e8f2; border-radius: 14px; background: #f2f4f7; }
