/* ==================================================================
   BAEC Website — public theme (HEC-inspired: navy / green / gold)
   ================================================================== */
/* Palette mirrors hec.gov.pk: teal #349C7D, gold #E5B24C, navy #111747 */
:root {
  --navy: #111747;
  --navy-2: #1b2560;
  --navy-3: #2b3a86;
  --green: #349c7d;
  --green-2: #24705a;
  --gold: #e5b24c;
  --ink: #212529;
  --muted: #595959;
  --line: #e5e5e5;
  --bg: #f8f8f8;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(17, 23, 71, .08);
  --font-body: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Roboto', 'Segoe UI', sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
body.rtl { font-family: var(--font-ur); line-height: 2.1; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--green); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 0; }

/* ---------------- Page preloader ---------------- */
#preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: #ffffff; transition: opacity .5s ease, visibility .5s ease; }
#preloader .pl-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
#preloader .pl-logo { border-radius: 14px; animation: pl-pulse 1.6s ease-in-out infinite; }
#preloader .pl-ring { position: absolute; top: -14px; width: 138px; height: 138px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--green); border-right-color: var(--gold);
  animation: pl-spin 1s linear infinite; }
#preloader .pl-text { font-family: var(--font-head); color: var(--navy); font-weight: 700; font-size: 15px;
  letter-spacing: .5px; text-align: center; max-width: 340px; }
body.rtl #preloader .pl-text { font-family: var(--font-ur); }
/* once the page has loaded, main.js adds .loaded to fade the splash out */
body.loaded #preloader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  #preloader .pl-ring { animation: none; border-top-color: var(--green); }
  #preloader .pl-logo { animation: none; }
}

/* ---------------- Top bar ---------------- */
.topbar { background: var(--navy); color: #cfe0f0; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar-contact span { margin-inline-end: 18px; }
.topbar-links a { color: #cfe0f0; margin-inline-start: 16px; }
.topbar-links a:hover { color: var(--gold); }
.lang-toggle { background: var(--green); color: #fff !important; padding: 3px 12px; border-radius: 4px; font-weight: 600; }
.lang-toggle:hover { background: var(--gold); color: #000 !important; }

/* ---------------- Header ---------------- */
.site-head { background: var(--white); border-bottom: 4px solid var(--gold); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 72px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-govt { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--green); font-weight: 700; }
.brand-name { font-family: var(--font-head); font-size: 21px; font-weight: 900; color: var(--navy); line-height: 1.25; }
.brand-sub { font-size: 14px; color: var(--muted); font-family: var(--font-ur); }
body.rtl .brand-name { font-family: var(--font-ur); }
body.rtl .brand-sub { font-family: var(--font-body); }
.head-search { display: flex; border: 2px solid var(--navy); border-radius: 30px; overflow: hidden; min-width: 260px; }
.head-search input { border: 0; outline: 0; padding: 9px 16px; flex: 1; font-family: inherit; font-size: 14px; }
.head-search button { border: 0; background: var(--navy); color: #fff; padding: 0 16px; cursor: pointer; }
.head-search button:hover { background: var(--green); }

/* ---------------- Navigation ---------------- */
.mainnav { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); border-bottom: 3px solid var(--green); }
.nav-in { padding: 0 6px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 17px; padding: 12px 14px; cursor: pointer; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
/* HEC uses uppercase, letter-spaced nav labels */
.nav-list > li > a { display: block; color: #fff; padding: 14px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; text-transform: uppercase; letter-spacing: .6px; position: relative; }
.nav-list > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .22s; }
.nav-list > li > a:hover::after, .nav-list > li.active > a::after { transform: scaleX(1); }
.nav-list > li > a:hover, .nav-list > li.active > a { background: var(--green); color: #fff; }
body.rtl .nav-list > li > a { text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.ext-ic { font-size: 11px; opacity: .85; margin-inline-start: 2px; }
.dd { display: none; position: absolute; top: 100%; inset-inline-start: 0; background: #fff; min-width: 270px; list-style: none; box-shadow: 0 10px 25px rgba(0,0,0,.18); border-top: 3px solid var(--gold); z-index: 60; }
.has-dd:hover .dd, .has-dd:focus-within .dd { display: block; }
.dd a { display: block; padding: 10px 16px; color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--line); }
.dd a:hover { background: var(--bg); color: var(--green); padding-inline-start: 22px; }

/* ---------------- News ticker ---------------- */
.ticker { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-label { background: var(--gold); color: #1c1400; font-weight: 700; padding: 9px 18px; white-space: nowrap; display: flex; align-items: center; font-size: 14px; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move { display: inline-block; white-space: nowrap; padding-inline-start: 100%; animation: tick 40s linear infinite; }
.ticker-move:hover { animation-play-state: paused; }
.ticker-move a { margin-inline-end: 60px; color: var(--navy); font-size: 14.5px; font-weight: 500; }
.ticker-move a::before { content: '●'; color: var(--green); margin-inline-end: 8px; font-size: 10px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
body.rtl .ticker-move { padding-inline-start: 100%; animation-name: tick-rtl; }
@keyframes tick-rtl { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* ---------------- Hero slider ---------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.slide { display: none; position: relative; }
.slide.on { display: block; animation: fade .8s; }
/* Show the FULL image (contain) at a fixed 8:3 banner ratio; correctly
   sized 1600×600 images fill it exactly, others letterbox on the dark
   backdrop instead of being cropped. */
.slide img { width: 100%; aspect-ratio: 8 / 3; height: auto; object-fit: contain; display: block; background: #0b1e33; }
.slide-cap { position: absolute; inset-inline-start: 0; bottom: 0; right: 0; left: 0; background: linear-gradient(transparent, rgba(4, 18, 33, .92)); color: #fff; padding: 90px 40px 38px; }
.slide-cap h2 { font-family: var(--font-head); font-size: 34px; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); position: relative; padding-inline-start: 16px; }
.slide-cap h2::before { content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 5px; background: var(--gold); border-radius: 3px; }
.slide-cap p { color: #dbe7f3; font-size: 17px; padding-inline-start: 16px; }
.hero-dots { position: absolute; bottom: 12px; inset-inline-end: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--gold); border-color: var(--gold); }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }

/* ---------------- Sections / cards ---------------- */
.section { padding: 44px 0; }
.section.alt { background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; border-bottom: 3px solid var(--line); padding-bottom: 10px; }
.sec-head h2 { font-family: var(--font-head); color: var(--navy); font-size: 24px; position: relative; }
.sec-head h2::after { content: ''; position: absolute; bottom: -13px; inset-inline-start: 0; width: 70px; height: 3px; background: var(--gold); }
.sec-head a { font-weight: 600; font-size: 14px; }
body.rtl .sec-head h2 { font-family: var(--font-ur); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(11,46,79,.14); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 16.5px; color: var(--navy); line-height: 1.4; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--green); }
.card .meta { font-size: 12.5px; color: var(--muted); }
.card p { font-size: 14px; color: #475569; }
.card .more { margin-top: auto; font-weight: 600; font-size: 13.5px; color: var(--green); }
.card img.thumb { height: 170px; width: 100%; object-fit: cover; }

.badge { display: inline-block; background: var(--navy); color: #fff; font-size: 11.5px; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.badge.green { background: var(--green); }
.badge.gold { background: var(--gold); color: #221a00; }
.badge.red { background: #b91c1c; }

/* Quick links */
.ql-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ql { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); text-align: center; padding: 24px 10px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); transition: .25s; position: relative; overflow: hidden; }
.ql::after { content: '→'; display: block; margin-top: 6px; color: var(--gold); font-weight: 900; transition: .25s; }
.ql:hover { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 24px rgba(11,46,79,.22); }
.ql:hover::after { transform: translateX(5px); }
body.rtl .ql::after { content: '←'; }
body.rtl .ql:hover::after { transform: translateX(-5px); }

/* Announcements list */
.ann-list { list-style: none; }
.ann-list li { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: 8px; padding: 13px 16px; margin-bottom: 10px; display: flex; gap: 14px; align-items: center; }
.ann-date { background: var(--navy); color: #fff; border-radius: 8px; text-align: center; padding: 6px 10px; min-width: 62px; }
.ann-date b { display: block; font-size: 19px; line-height: 1.1; }
.ann-date span { font-size: 11px; text-transform: uppercase; }
.ann-list a { font-weight: 600; color: var(--ink); }
.ann-list a:hover { color: var(--green); }

/* Stats band */
.stats-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 60%, var(--green-2) 100%); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(216,164,22,.15), transparent 45%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; }
.stat { padding: 14px 8px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.stat b { display: block; font-size: 38px; font-family: var(--font-head); color: var(--gold); line-height: 1.2; }
.stat span { font-size: 13.5px; color: #dbe7f3; }

/* ---------------- HEC-style welcome band ---------------- */
.welcome { background: var(--navy); color: #fff; text-align: center; padding: 46px 18px; position: relative; overflow: hidden; }
.welcome::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(52,156,125,.35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(229,178,76,.22), transparent 55%); }
.welcome-in { position: relative; }
.welcome h2 { font-size: 15px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.welcome p { font-size: 30px; font-weight: 300; max-width: 900px; margin: 0 auto; line-height: 1.4; }
body.rtl .welcome h2 { letter-spacing: 0; text-transform: none; }

/* ---------------- HEC-style coloured service tiles ---------------- */
.tile-row { position: relative; padding: 0 46px; }
.tile-track { overflow: hidden; }
.tile-slides { display: flex; gap: 16px; transition: transform .45s ease; }
.tile { flex: 0 0 calc((100% - 64px) / 5); display: flex; flex-direction: column; border-radius: var(--radius);
        color: #fff; overflow: hidden; transition: transform .25s, box-shadow .25s; min-height: 148px; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.28); color: #fff; }
.tile-body { padding: 14px 16px 12px; flex: 1; }
.tile-ic { display: block; margin-bottom: 10px; }
.tile-ic svg { width: 30px; height: 30px; fill: #fff; opacity: .95; }
.tile h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.25; color: #fff; }
.tile p { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.9); }
.tile-more { border-top: 1px solid rgba(255,255,255,.28); padding: 8px 16px; font-size: 12.5px; color: #fff; }
.tile:hover .tile-more { background: rgba(0,0,0,.14); }
.tile-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0;
              background: rgba(17,23,71,.55); color: #fff; font-size: 22px; line-height: 1; border-radius: 50%; cursor: pointer; z-index: 2; }
.tile-arrow:hover { background: var(--green); }
.tile-prev { inset-inline-start: 2px; }
.tile-next { inset-inline-end: 2px; }

/* Announcements bar (navy strip with gold label) */
.annbar { display: flex; align-items: stretch; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.annbar-label { background: var(--gold); color: #23180a; font-weight: 700; padding: 12px 20px; display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 14.5px; }
.annbar-label svg { width: 19px; height: 19px; fill: #23180a; }
.annbar-body { background: var(--navy); flex: 1; display: flex; align-items: center; gap: 14px; padding: 10px 18px; min-width: 0; }
.annbar-items { flex: 1; min-width: 0; position: relative; height: 22px; }
.annbar-items a { position: absolute; inset: 0; color: #fff; font-size: 14.5px; font-weight: 500; opacity: 0; transition: opacity .4s;
                  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.annbar-items a.on { opacity: 1; }
.annbar-items a:hover { color: var(--gold); }
.annbar-ctl { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.annbar-ctl button { background: none; border: 0; color: #fff; font-size: 19px; cursor: pointer; padding: 0 3px; line-height: 1; }
.annbar-ctl button:hover { color: var(--gold); }
.annbar-ctl a { color: #fff; font-weight: 700; font-size: 13.5px; }
.annbar-ctl a:hover { color: var(--gold); }

/* Spotlight row (thumbnail + title + Read More) */
.spotlight { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 14px; }
.spotlight img { width: 118px; height: 74px; object-fit: cover; flex-shrink: 0; }
.spotlight .sp-title { flex: 1; padding: 12px 20px; color: var(--navy); font-size: 15px; font-weight: 500; }
.spotlight .sp-more { border-inline-start: 1px solid var(--line); padding: 12px 22px; color: var(--green); font-weight: 700; font-size: 14px; white-space: nowrap; }
.spotlight .sp-more:hover { background: var(--green); color: #fff; }

@media (max-width: 1100px) { .tile { flex: 0 0 calc((100% - 32px) / 3); } }
@media (max-width: 760px) {
  .tile { flex: 0 0 calc((100% - 16px) / 2); }
  .tile-row { padding: 0 34px; }
  .annbar { flex-direction: column; }
  .spotlight img { display: none; }
}

/* ---------------- Carousel (announcements / spotlight) ---------------- */
.carousel { position: relative; }
.carousel-track { overflow: hidden; }
.carousel-slides { display: flex; transition: transform .45s ease; }
.carousel-slide { min-width: 100%; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.carousel-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 16px; cursor: pointer; transition: .2s; }
.carousel-nav button:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------------- Analytics charts ---------------- */
.chart-card .card-body { gap: 4px; }
.chart-card h3 { font-size: 16px; }
.chart-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.ch-val { font-size: 11.5px; font-weight: 700; fill: #1f2937; font-family: var(--font-body); }
.ch-lbl { font-size: 11.5px; fill: #475569; font-weight: 600; font-family: var(--font-body); }
.ch-lbl2 { font-size: 10px; fill: #94a3b8; font-family: var(--font-body); }
.ch-bar rect { transition: filter .15s, opacity .15s; cursor: default; }
.ch-bar:hover rect { filter: brightness(1.15); }
.charts-row:hover .ch-bar:not(:hover) rect { opacity: .75; }
.ch-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12.5px; color: #475569; font-weight: 600; }
.ch-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

/* Partners / important links strip */
.partners { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.partners-in { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: center; }
.partners-label { font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; font-size: 12.5px; margin-inline-end: 8px; }
.partners-in a { border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--navy-2); transition: .2s; background: var(--bg); }
.partners-in a:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }

/* Scroll-reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .slide img { animation: none; } }

/* Back to top */
.to-top { position: fixed; bottom: 26px; inset-inline-end: 26px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 2px solid var(--gold); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; z-index: 90; box-shadow: 0 6px 18px rgba(11,46,79,.35); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--green); transform: translateY(-3px); }

/* ---------------- Inner pages ---------------- */
.page-title { background: linear-gradient(100deg, var(--navy) 55%, var(--green-2)); color: #fff; padding: 36px 0 28px; position: relative; overflow: hidden; border-bottom: 4px solid var(--gold); }
.page-title::after { content: ''; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-title h1 { font-family: var(--font-head); font-size: 28px; }
body.rtl .page-title h1 { font-family: var(--font-ur); }
.crumbs { font-size: 13px; color: #b7c9db; margin-top: 6px; }
.crumbs a { color: #d9e6f2; }
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 36px 0; align-items: start; }
.layout.rev { grid-template-columns: 1fr; }
.sidenav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 64px; }
.sidenav h3 { background: var(--navy); color: #fff; font-size: 15px; padding: 12px 16px; }
.sidenav a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.sidenav a.on, .sidenav a:hover { background: var(--bg); color: var(--green); border-inline-start: 3px solid var(--green); }
.content-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.content-box h2, .content-box h3 { color: var(--navy); margin: 18px 0 10px; font-family: var(--font-head); }
.content-box h3 { font-size: 19px; }
.content-box p, .content-box li { margin-bottom: 10px; color: #334155; }
.content-box ul, .content-box ol { padding-inline-start: 24px; }
.content-box blockquote { border-inline-start: 4px solid var(--gold); background: var(--bg); padding: 14px 18px; border-radius: 6px; font-style: italic; margin: 12px 0; }
body.rtl .content-box h2, body.rtl .content-box h3 { font-family: var(--font-ur); }

/* Org chart */
.org-chart { text-align: center; margin: 20px 0; }
.org-lvl { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; position: relative; }
.org-box { background: #fff; border: 2px solid var(--navy-3); color: var(--navy); border-radius: 8px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.org-top { background: var(--navy); color: #fff; font-size: 16px; padding: 13px 30px; }

/* ---------------- Tables ---------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
.tbl th { background: var(--navy); color: #fff; text-align: start; padding: 11px 13px; font-weight: 600; }
.tbl td { padding: 10px 13px; border-bottom: 1px solid var(--line); }
.tbl tr:nth-child(even) td { background: #f8fafc; }
.tbl tr:hover td { background: #eef4fa; }

/* ---------------- Forms ---------------- */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 14px; color: var(--navy); display: block; margin-bottom: 4px; }
.form input, .form select, .form textarea { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 15px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy-3); border-color: var(--navy-3); }
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; padding: 11px 26px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--navy); color: #fff; }
.btn.outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
/* CAPTCHA */
.captcha-field { background: var(--bg); border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: 8px; padding: 12px 14px; }
.captcha-field label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.captcha-field input { max-width: 160px; letter-spacing: 2px; font-weight: 600; text-align: center; }

.alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14.5px; }
.alert.ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }

/* Result card */
.result-card { border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; margin-top: 20px; background: #fff; }
.result-card .rc-head { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.result-card .rc-body { padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 30px; }
.result-card .rc-item span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.result-card .rc-item b { font-size: 17px; color: var(--navy); }
.rc-status { font-size: 22px; font-weight: 900; }
.rc-status.pass { color: #15803d; } .rc-status.fail { color: #b91c1c; }

/* Documents */
.doc-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; margin-bottom: 10px; }
.doc-ic { font-size: 26px; }
.doc-row .doc-info { flex: 1; }
.doc-row .doc-info a { font-weight: 600; color: var(--navy); }
.doc-row .doc-info a:hover { color: var(--green); }
.doc-row .meta { font-size: 12.5px; color: var(--muted); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; background: #fff; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.filter-bar input, .filter-bar select { padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; }
.filter-bar input[type=search] { flex: 1; min-width: 200px; }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.album-card img { width: 100%; height: 220px; object-fit: cover; display: block; transition: .3s; }
.album-card:hover img { transform: scale(1.05); }
.album-cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(4,18,33,.9)); color: #fff; padding: 30px 16px 12px; font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.video-frame { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 8px; }

/* FAQ accordion */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 15px 18px; font-weight: 600; cursor: pointer; color: var(--navy); list-style: none; position: relative; padding-inline-end: 40px; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 18px; top: 12px; font-size: 22px; color: var(--green); }
.faq[open] summary::after { content: '–'; }
.faq .faq-a { padding: 0 18px 15px; color: #475569; }

/* Pagination */
.pager { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 14px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 14px; }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- Footer ---------------- */
.site-foot { background: #081f36; color: #b7c9db; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 18px 30px; }
.site-foot h4 { color: #fff; margin-bottom: 14px; font-size: 16px; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 5px; }
.foot-links { list-style: none; }
.foot-links a { color: #b7c9db; display: block; padding: 4px 0; font-size: 14px; }
.foot-links a:hover { color: var(--gold); padding-inline-start: 6px; }
.foot-about, .foot-contact { font-size: 14px; margin-bottom: 10px; }
.foot-social { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-social a { border: 1px solid #2c4a68; color: #cfe0f0; padding: 6px 13px; border-radius: 20px; font-size: 13px; }
.foot-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.foot-visits, .foot-hours { font-size: 13.5px; }
.foot-bottom { border-top: 1px solid #16324e; padding: 14px 0; font-size: 13px; }
.foot-bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.foot-dev a { color: var(--gold); font-weight: 600; }
.foot-dev a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
  .grid-4, .ql-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidenav { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-2, .album-grid { grid-template-columns: 1fr; }
  .grid-4, .ql-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .head-in { justify-content: center; text-align: center; }
  .brand { flex-direction: column; text-align: center; }
  .head-search { width: 100%; }
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .dd { position: static; display: block; border-top: 0; box-shadow: none; background: #0e3a61; }
  .dd a { color: #cfe0f0; border-color: #1b4c77; }
  .slide-cap h2 { font-size: 20px; }
  .result-card .rc-body { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .mainnav, .site-foot, .head-search, .ticker, .hero { display: none !important; }
}
