/* =========================================================
   GRAM PANCHAYAT — Sample website
   Government-portal styled design system (Maharashtra)
   ========================================================= */

:root {
  --navy: #0f2c59;
  --navy-2: #173f7a;
  --navy-3: #234f94;
  --saffron: #f37021;
  --saffron-d: #c9560f;
  --saffron-l: #fff1e7;
  --green: #138808;
  --green-d: #0d6b06;
  --green-l: #e9f6e7;
  --maroon: #8a1c1c;
  --gold: #c99a06;
  --gold-l: #fff8de;
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #1b2232;
  --muted: #5a6478;
  --border: #dbe1eb;
  --link: #0b57b7;
  --danger: #c62828;
  --danger-l: #fdecec;
  --info-l: #e8f1fd;
  --shadow: 0 2px 10px rgba(15, 44, 89, .08);
  --shadow-lg: 0 10px 30px rgba(15, 44, 89, .14);
  --radius: 6px;
  --font: "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", system-ui, sans-serif;
}

/* ---------- High contrast mode (accessibility) ---------- */
html.hc {
  --navy: #000; --navy-2: #000; --navy-3: #111;
  --saffron: #ffd400; --saffron-d: #ffd400; --saffron-l: #111;
  --green: #00ff6a; --green-d: #00ff6a; --green-l: #111;
  --bg: #000; --surface: #000; --surface-2: #0a0a0a;
  --text: #fff; --muted: #e6e6e6; --border: #ffd400;
  --link: #ffd400; --gold-l: #111; --info-l: #111; --danger-l: #111;
}
html.hc img, html.hc .ph-img { filter: grayscale(1) contrast(1.2); }
html.hc a { text-decoration: underline; }

/* ---------- Font size steps ---------- */
html { font-size: 16px; }
html.fs-sm { font-size: 14px; }
html.fs-lg { font-size: 18px; }
html.fs-xl { font-size: 20px; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--navy); }
html.hc h1, html.hc h2, html.hc h3, html.hc h4 { color: var(--saffron); }
p { margin: 0 0 1em; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--saffron); color: #000; padding: 8px 14px; font-weight: 700; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* ---------- Top accessibility strip ---------- */
.topbar { background: var(--navy); color: #dfe8f7; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar a, .topbar button { color: #dfe8f7; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar-left i { color: var(--saffron); margin-right: 4px; }
.topbar .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .25); }
.a11y-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #fff; cursor: pointer;
  min-width: 28px; height: 24px; border-radius: 3px; font-size: .78rem; font-weight: 700; padding: 0 6px;
}
.a11y-btn:hover, .a11y-btn.active { background: var(--saffron); border-color: var(--saffron); color: #000; }
.lang-btn {
  background: var(--saffron); color: #000 !important; border: 0; border-radius: 3px; padding: 2px 12px;
  font-weight: 700; cursor: pointer; font-size: .82rem;
}
.sample-badge {
  background: var(--gold); color: #000; font-weight: 700; padding: 1px 8px; border-radius: 3px; font-size: .74rem; letter-spacing: .2px;
}

/* ---------- Masthead ---------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 78px; height: 78px; flex: 0 0 auto; }
.brand-text .gp-mr { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.05; letter-spacing: .3px; }
.brand-text .gp-en { font-size: 1.05rem; font-weight: 700; color: var(--saffron-d); letter-spacing: 3px; }
.brand-text .gp-loc { font-size: .86rem; color: var(--muted); }
html.hc .brand-text .gp-mr { color: #fff; }
.masthead-right { display: flex; align-items: center; gap: 14px; }
.weather-box {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 12px; background: var(--surface-2); font-size: .85rem; min-width: 170px;
}
.weather-box i { font-size: 1.6rem; color: var(--saffron); }
.weather-box b { font-size: 1.15rem; color: var(--navy); }
.emergency-box {
  display: flex; align-items: center; gap: 10px; background: var(--danger-l); border: 1px solid #f3c2c2;
  border-radius: var(--radius); padding: 6px 12px; font-size: .85rem; color: var(--danger);
}
.emergency-box b { font-size: 1.3rem; }
.slogan-box { text-align: right; font-size: .9rem; color: var(--green-d); font-weight: 600; max-width: 230px; }

.tricolor { height: 5px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }
html.hc .tricolor { background: var(--saffron); }

/* ---------- Main navigation ---------- */
.mainnav { background: var(--navy-2); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
html.hc .mainnav { border-bottom: 2px solid var(--saffron); }
.mainnav .container { display: flex; align-items: center; }
.nav-toggle {
  display: none; background: transparent; border: 0; color: #fff; font-size: 1.4rem; padding: 10px 4px; cursor: pointer;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: 6px; color: #fff; padding: 12px 13px; font-weight: 600; font-size: .95rem;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li:focus-within > button, .nav-list > li.active > a, .nav-list > li.active > button {
  background: var(--saffron); color: #000; text-decoration: none;
}
.nav-list .caret { font-size: .7rem; opacity: .85; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--surface); list-style: none; margin: 0; padding: 6px 0;
  border-top: 3px solid var(--saffron); box-shadow: var(--shadow-lg); display: none; z-index: 60;
}
.dropdown.cols-2 { min-width: 520px; columns: 2; column-gap: 0; }
.nav-list > li:hover > .dropdown, .nav-list > li:focus-within > .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 16px; color: var(--text); font-size: .92rem; break-inside: avoid; }
.dropdown a i { width: 20px; color: var(--saffron-d); }
.dropdown a:hover { background: var(--saffron-l); color: var(--navy); text-decoration: none; }
.nav-search { margin-left: auto; display: flex; }
.nav-search a { color: #fff; padding: 12px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: stretch; overflow: hidden; }
.ticker-label {
  background: var(--maroon); color: #fff; font-weight: 700; padding: 6px 16px; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; position: relative; z-index: 2; font-size: .9rem;
}
html.hc .ticker-label { background: var(--saffron); color: #000; }
.ticker-track { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker-inner { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 60s linear infinite; padding-left: 100%; font-size: .92rem; }
.ticker:hover .ticker-inner, .ticker.paused .ticker-inner { animation-play-state: paused; }
.ticker-inner span i { color: var(--saffron); margin-right: 6px; }
.ticker-pause { background: var(--surface-2); border: 0; border-left: 1px solid var(--border); padding: 0 12px; cursor: pointer; color: var(--muted); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-inner { animation-duration: 240s; } }

.price-strip { background: var(--green-l); border-bottom: 1px solid var(--border); font-size: .85rem; }
.price-strip .container { display: flex; gap: 18px; align-items: center; overflow-x: auto; padding-top: 4px; padding-bottom: 4px; white-space: nowrap; scrollbar-width: thin; }
.price-strip b { color: var(--green-d); }
.price-strip .ps-label { font-weight: 700; color: var(--green-d); }
.price-strip .up { color: var(--green-d); } .price-strip .down { color: var(--danger); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-3) 60%, #2c5ba8 100%); color: #fff; padding: 28px 0 24px; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .05);
}
.page-banner h1 { color: #fff; font-size: 1.9rem; margin: 0; }
.page-banner p { margin: 4px 0 0; opacity: .85; }
.breadcrumb { font-size: .85rem; margin-bottom: 6px; opacity: .9; }
.breadcrumb a { color: #ffd9bf; }
.breadcrumb i { font-size: .65rem; margin: 0 6px; }

/* ---------- Sections ---------- */
main { min-height: 50vh; }
.section { padding: 44px 0; }
.section.alt { background: var(--surface); }
.section.tight { padding: 28px 0; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: 1.75rem; margin-bottom: 6px; }
.sec-head p { color: var(--muted); max-width: 720px; margin: 0 auto; }
.sec-head .bar { display: flex; justify-content: center; gap: 4px; margin: 6px 0 10px; }
.sec-head .bar span { height: 4px; width: 34px; border-radius: 2px; }
.sec-head .bar span:nth-child(1) { background: var(--saffron); }
.sec-head .bar span:nth-child(2) { background: var(--navy-3); width: 14px; }
.sec-head .bar span:nth-child(3) { background: var(--green); }
.sec-head.left { text-align: left; }
.sec-head.left .bar { justify-content: flex-start; }
.title-line { font-size: 1.25rem; color: var(--navy); border-left: 5px solid var(--saffron); padding-left: 10px; margin: 0 0 16px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.g-6 { grid-template-columns: repeat(6, 1fr); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.split-r { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 18px 20px; }
.card-head {
  background: var(--navy-2); color: #fff; padding: 10px 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-head.saffron { background: var(--saffron); color: #000; }
.card-head.green { background: var(--green-d); }
.card-head.maroon { background: var(--maroon); }
.card-head a { color: inherit; font-size: .85rem; font-weight: 600; }
.card h3 { font-size: 1.12rem; }
.card.hover { transition: transform .15s, box-shadow .15s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 4px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important; line-height: 1.3; transition: background .15s, color .15s;
}
.btn-primary { background: var(--navy-2); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-saffron { background: var(--saffron); color: #000; }
.btn-saffron:hover { background: var(--saffron-d); color: #fff; }
.btn-green { background: var(--green-d); color: #fff; }
.btn-green:hover { background: #0a5604; }
.btn-outline { background: transparent; border-color: var(--navy-2); color: var(--navy-2); }
.btn-outline:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-light:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: .84rem; }
.btn-lg { padding: 12px 24px; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
html.hc .btn { border: 2px solid var(--saffron); background: #000; color: var(--saffron); }

.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .74rem; font-weight: 700; line-height: 1.6; }
.b-new { background: var(--danger); color: #fff; animation: blink 1.4s infinite; }
.b-green { background: var(--green-l); color: var(--green-d); }
.b-saffron { background: var(--saffron-l); color: var(--saffron-d); }
.b-navy { background: var(--info-l); color: var(--navy-2); }
.b-red { background: var(--danger-l); color: var(--danger); }
.b-gold { background: var(--gold-l); color: #8a6a00; }
.b-grey { background: #eceff4; color: #4a5263; }
@keyframes blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .b-new { animation: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.slides { position: relative; height: 430px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide .art { position: absolute; inset: 0; }
.slide .art svg { width: 100%; height: 100%; }
.slide .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 25, 55, .88) 0%, rgba(10, 25, 55, .55) 45%, rgba(10, 25, 55, 0) 75%); }
.slide .content { position: relative; z-index: 2; color: #fff; max-width: 620px; }
.slide .kicker { display: inline-block; background: var(--saffron); color: #000; font-weight: 700; padding: 2px 10px; border-radius: 3px; font-size: .85rem; margin-bottom: 10px; }
.slide h2 { color: #fff; font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; }
.slide p { font-size: 1.08rem; opacity: .92; }
.slide .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.slide-dots { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.slide-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slide-dots button.active { background: var(--saffron); border-color: var(--saffron); }
.slide-nav { position: absolute; top: 45%; z-index: 3; background: rgba(0, 0, 0, .35); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.slide-nav:hover { background: var(--saffron); color: #000; }
.slide-nav.prev { left: 14px; } .slide-nav.next { right: 14px; }

.quick-wrap { position: relative; z-index: 5; margin-top: -54px; }
.quick-tiles { display: grid; grid-template-columns: repeat(8, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.quick-tiles a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; text-align: center; color: var(--navy);
  font-weight: 600; font-size: .9rem; border-right: 1px solid var(--border); transition: background .15s;
}
.quick-tiles a:last-child { border-right: 0; }
.quick-tiles a:hover { background: var(--saffron-l); text-decoration: none; }
.quick-tiles a i {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; color: #fff; background: var(--navy-2);
}
.quick-tiles a:nth-child(3n+2) i { background: var(--saffron-d); }
.quick-tiles a:nth-child(3n) i { background: var(--green-d); }

/* ---------- Notice board ---------- */
.notice-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.notice-list li { padding: 10px 16px; border-bottom: 1px dashed var(--border); display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.notice-list li i { color: var(--maroon); margin-top: 4px; }
.notice-list .date { font-size: .78rem; color: var(--muted); display: block; }
.notice-list li:hover { background: var(--surface-2); }

/* ---------- Officials ---------- */
.official {
  text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; box-shadow: var(--shadow);
  border-top: 4px solid var(--saffron);
}
.official:nth-child(even) { border-top-color: var(--green); }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(160deg, #e4e9f2, #c9d3e3);
  display: grid; place-items: center; color: #8a97ad; font-size: 2.6rem; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border);
}
.avatar.lg { width: 130px; height: 130px; font-size: 3.6rem; }
.official h4 { margin: 0; font-size: 1.02rem; }
.official .desig { font-size: .84rem; color: var(--muted); }
.official .ph-note { font-size: .7rem; color: var(--gold); font-weight: 700; }

.leader-card { display: flex; gap: 18px; align-items: center; }
.leader-card .avatar { margin: 0; flex: 0 0 auto; }
.leader-card .role { color: var(--saffron-d); font-weight: 700; font-size: .9rem; }
.leader-card h3 { margin: 0 0 4px; }

/* ---------- Award banner ---------- */
.award-banner {
  background: linear-gradient(110deg, #5c1212 0%, var(--maroon) 50%, #a3401a 100%); color: #fff; border-radius: var(--radius);
  padding: 26px 30px; display: flex; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.award-banner::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 215, 0, .12); }
.award-banner .trophy { font-size: 3.6rem; color: #ffd54a; flex: 0 0 auto; }
.award-banner h3 { color: #ffd54a; font-size: 1.4rem; margin: 0 0 6px; }
.award-banner p { margin: 0; opacity: .95; }

/* ---------- Feature cards ---------- */
.feature { padding: 20px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.feature .ic {
  width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--navy-2); margin-bottom: 6px;
}
.feature.s .ic { background: var(--saffron-d); }
.feature.g .ic { background: var(--green-d); }
.feature.m .ic { background: var(--maroon); }
.feature h3 { margin: 0; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.feature .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; }

/* ---------- Placeholder images ---------- */
.ph-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 255, 255, .92); overflow: hidden; }
.ph-img i { font-size: 2.6rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.ph-img .ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); font-size: .85rem; font-weight: 600; text-align: left; }
.ph-img .ph-tag { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .68rem; padding: 1px 7px; border-radius: 10px; }
.ph-img.wide { aspect-ratio: 16 / 9; }
.ph-img > img, .avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-img.has-img > i, .ph-img.has-img .ph-tag, .avatar.has-img > i { display: none; }
.avatar { position: relative; overflow: hidden; }
.slide .art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .art.has-img > svg { display: none; }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; }
.stats-band h2 { color: #fff; }
.stats-band .sec-head p { color: #c8d6ee; }
.stat { text-align: center; padding: 18px 8px; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
.stat i { font-size: 1.6rem; color: var(--saffron); }
.stat .num { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.stat .lbl { font-size: .9rem; opacity: .9; }
.stat.light { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow); }
.stat.light .num { color: var(--navy); }

/* ---------- Service tiles ---------- */
.svc-group { margin-bottom: 30px; }
.svc {
  display: flex; gap: 14px; padding: 16px; align-items: flex-start; color: inherit; height: 100%;
}
.svc:hover { text-decoration: none; }
.svc .ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: var(--saffron-l); color: var(--saffron-d); font-size: 1.2rem; }
.svc h3 { font-size: 1rem; margin: 0 0 2px; }
.svc p { margin: 0; font-size: .86rem; color: var(--muted); }
.svc .fee { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- News ---------- */
.news-card .ph-img { aspect-ratio: 16 / 9; }
.news-card .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.news-card h3 { font-size: 1.05rem; }
.news-card p { font-size: .92rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { background: var(--navy-2); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: var(--surface-2); }
.tbl tbody tr:hover td { background: var(--saffron-l); }
.tbl tfoot td { font-weight: 700; background: var(--gold-l); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
html.hc .tbl th { background: #000; color: var(--saffron); border-bottom: 2px solid var(--saffron); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 3px solid var(--navy-2); flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn {
  background: var(--surface); border: 1px solid var(--border); border-bottom: 0; padding: 9px 16px; font-weight: 700; color: var(--navy);
  cursor: pointer; border-radius: 4px 4px 0 0; font-size: .95rem;
}
.tab-btn.active { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Accordion ---------- */
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.acc-btn {
  width: 100%; text-align: left; background: var(--surface); border: 0; padding: 12px 16px; font-weight: 700; font-size: 1rem; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer;
}
.acc-btn:hover { background: var(--surface-2); }
.acc-btn .n { background: var(--saffron); color: #000; border-radius: 4px; padding: 0 8px; margin-right: 10px; font-size: .85rem; }
.acc-btn i.fa-chevron-down { transition: transform .2s; }
.acc-item.open .acc-btn i.fa-chevron-down { transform: rotate(180deg); }
.acc-body { display: none; padding: 4px 18px 16px; border-top: 1px solid var(--border); }
.acc-item.open .acc-body { display: block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--navy); }
html.hc .field label { color: var(--saffron); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #b9c3d3; border-radius: 4px; font: inherit; font-size: .95rem; background: var(--surface); color: var(--text);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-3); outline: 2px solid rgba(35, 79, 148, .25); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: var(--danger-l); }
.field .err { display: none; font-size: .8rem; color: var(--danger); margin-top: 2px; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 5px; width: 16px; height: 16px; }
.captcha { display: flex; gap: 10px; align-items: center; }
.captcha-code {
  font-family: "Courier New", monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 6px; padding: 4px 14px; user-select: none;
  background: repeating-linear-gradient(45deg, #e8edf5, #e8edf5 6px, #f6f8fb 6px, #f6f8fb 12px); color: var(--navy); border: 1px solid var(--border);
  font-style: italic; text-decoration: line-through rgba(0, 0, 0, .25);
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Stepper ---------- */
.stepper { display: flex; list-style: none; margin: 0 0 24px; padding: 0; counter-reset: s; }
.stepper li { flex: 1; text-align: center; position: relative; font-size: .85rem; color: var(--muted); font-weight: 600; }
.stepper li::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px;
  background: var(--surface); border: 2px solid var(--border); color: var(--muted); font-weight: 800; position: relative; z-index: 1;
}
.stepper li::after { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.stepper li:first-child::after { display: none; }
.stepper li.done::before { content: "✓"; background: var(--green-d); border-color: var(--green-d); color: #fff; }
.stepper li.done::after, .stepper li.current::after { background: var(--green-d); }
.stepper li.current { color: var(--navy); }
.stepper li.current::before { background: var(--saffron); border-color: var(--saffron); color: #000; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); border-left: 5px solid; margin-bottom: 16px; font-size: .94rem; }
.alert i { margin-right: 6px; }
.alert-info { background: var(--info-l); border-color: var(--navy-3); }
.alert-warn { background: var(--gold-l); border-color: var(--gold); }
.alert-ok { background: var(--green-l); border-color: var(--green); }
.alert-err { background: var(--danger-l); border-color: var(--danger); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--border); }
.timeline li { position: relative; padding: 0 0 18px 10px; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-d); border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--green-d);
}
.timeline li.pending::before { background: var(--surface); box-shadow: 0 0 0 2px var(--border); }
.timeline li.rejected::before { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }
.timeline .t { font-weight: 700; color: var(--navy); }
.timeline li.pending .t { color: var(--muted); }
.timeline .d { font-size: .8rem; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 18, 40, .6); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-back.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 900px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--navy-2); color: #fff; position: sticky; top: 0; z-index: 1; }
.modal-head h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.modal-close { background: transparent; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.modal-body { padding: 18px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 16px; top: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: 360px; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .92rem; border-left: 5px solid var(--saffron); animation: tin .25s; }
.toast.ok { border-left-color: #3ccf4e; }
.toast.err { border-left-color: #ff5c5c; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b1f40; color: #c5d1e6; margin-top: 0; font-size: .92rem; }
html.hc .site-footer { background: #000; border-top: 2px solid var(--saffron); }
.footer-top { padding: 40px 0 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; border-bottom: 2px solid var(--saffron); display: inline-block; padding-bottom: 4px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c5d1e6; }
.site-footer a:hover { color: var(--saffron); }
.site-footer .f-ic { color: var(--saffron); width: 20px; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.social a:hover { background: var(--saffron); color: #000; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom .links { display: flex; gap: 14px; flex-wrap: wrap; }
.visitor { background: rgba(255, 255, 255, .08); padding: 2px 10px; border-radius: 3px; font-family: "Courier New", monospace; color: #ffd54a; letter-spacing: 2px; }
.back-top {
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: #000; border: 0;
  font-size: 1.1rem; cursor: pointer; display: none; z-index: 90; box-shadow: var(--shadow-lg);
}
.back-top.show { display: grid; place-items: center; }

/* ---------- Gallery ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 20px; padding: 5px 14px; font-weight: 600; cursor: pointer; font-size: .9rem; color: var(--navy); }
.chip.active, .chip:hover { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.gal-item { cursor: pointer; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); padding: 0; text-align: left; }
.gal-item:hover .ph-img { transform: scale(1.03); }
.gal-item .ph-img { transition: transform .3s; }

/* ---------- Misc ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 10px; }
.info-list li i { color: var(--saffron-d); margin-top: 5px; width: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 4px 0 4px 28px; position: relative; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 4px; color: var(--green-d); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: .94rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav a { display: block; padding: 9px 16px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .93rem; }
.side-nav a:hover, .side-nav a.active { background: var(--saffron-l); color: var(--navy); border-left: 4px solid var(--saffron); text-decoration: none; }
.fee-box { background: var(--gold-l); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 14px; text-align: center; }
.fee-box .amt { font-size: 2rem; font-weight: 800; color: var(--maroon); }
.token-box { border: 2px dashed var(--green-d); background: var(--green-l); border-radius: var(--radius); padding: 18px; text-align: center; }
.token-box .tok { font-size: 1.8rem; font-weight: 800; letter-spacing: 2px; color: var(--green-d); font-family: "Courier New", monospace; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 14px; color: inherit; }
.link-card:hover { text-decoration: none; }
.link-card .ic { width: 42px; height: 42px; border-radius: 8px; background: var(--info-l); color: var(--navy-2); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.link-card .t { font-weight: 700; color: var(--navy); line-height: 1.25; }
.link-card .u { font-size: .78rem; color: var(--muted); word-break: break-all; }
.help-num { font-size: 1.6rem; font-weight: 800; color: var(--maroon); }
.map-box { height: 460px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 1; }
.map-box.sm { height: 300px; }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: 8px; color: var(--border); }
.partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partners a {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy); font-size: .88rem;
}
.partners a i { color: var(--saffron-d); }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 20px; }
.quote { border-left: 4px solid var(--saffron); padding: 4px 0 4px 16px; font-style: italic; color: var(--muted); }

/* ---------- Certificate / receipt print ---------- */
.cert {
  background: #fffdf6; border: 10px double var(--navy); padding: 34px 40px; max-width: 820px; margin: 0 auto; position: relative; color: #1b2232;
}
.cert::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--saffron); pointer-events: none; }
.cert-head { text-align: center; border-bottom: 2px solid var(--saffron); padding-bottom: 12px; margin-bottom: 18px; }
.cert-head .logo { width: 70px; margin: 0 auto 6px; }
.cert-head h2 { margin: 0; font-size: 1.6rem; color: var(--navy); }
.cert-head .ttl { display: inline-block; margin-top: 10px; background: var(--navy); color: #fff; padding: 4px 20px; border-radius: 3px; font-weight: 700; letter-spacing: 1px; }
.cert table { width: 100%; border-collapse: collapse; }
.cert td { padding: 7px 4px; border-bottom: 1px dotted #b8c0cc; }
.cert td:first-child { width: 42%; color: #4a5263; font-weight: 600; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; gap: 16px; flex-wrap: wrap; }
.cert td { overflow-wrap: anywhere; }
.cert { overflow: hidden; }
@media (max-width: 640px) { .cert .num { position: static; text-align: right; margin-bottom: 6px; } .cert .watermark { font-size: 2.6rem; } }
.cert-seal { width: 110px; height: 110px; border-radius: 50%; border: 3px double var(--maroon); color: var(--maroon); display: grid; place-items: center; text-align: center; font-size: .7rem; font-weight: 700; transform: rotate(-12deg); }
.watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: 5rem; font-weight: 800; color: rgba(201, 86, 15, .07); transform: rotate(-24deg); }

@media print {
  .topbar, .masthead, .tricolor, .mainnav, .ticker, .price-strip, .site-footer, .page-banner, .no-print, .back-top, .toast-wrap { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* ---------- Admin ---------- */
.admin-top { background: var(--navy); color: #fff; padding: 10px 0; }
.admin-top .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-top a, .admin-top button { color: #fff; }
.kpi { padding: 16px; display: flex; gap: 14px; align-items: center; }
.kpi .ic { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--navy-2); }
.kpi .n { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi .l { font-size: .85rem; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { padding: 7px 10px; border: 1px solid #b9c3d3; border-radius: 4px; font: inherit; font-size: .9rem; background: var(--surface); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .quick-tiles { grid-template-columns: repeat(4, 1fr); }
  .quick-tiles a:nth-child(4) { border-right: 0; }
  .quick-tiles a:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .g-6 { grid-template-columns: repeat(3, 1fr); }
  .g-5 { grid-template-columns: repeat(3, 1fr); }
  .slogan-box { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .mainnav .container { flex-wrap: wrap; }
  .nav-list { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .mainnav.open .nav-list { display: flex; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .08); }
  .dropdown, .dropdown.cols-2 { position: static; display: none !important; box-shadow: none; min-width: 0; columns: 1; border-top: 0; background: var(--navy); }
  .nav-list > li.open > .dropdown { display: block !important; }
  .dropdown a { color: #dfe8f7; padding-left: 28px; }
  .dropdown a:hover { background: var(--navy-3); color: #fff; }
  .nav-search { display: none; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-r { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .weather-box { display: none; }
  .slides { height: 400px; }
  .slide h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .topbar .hide-sm { display: none; }
  .brand-logo { width: 58px; height: 58px; }
  .brand-text .gp-mr { font-size: 1.5rem; }
  .brand-text .gp-en { font-size: .85rem; letter-spacing: 2px; }
  .emergency-box { display: none; }
  .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; }
  .g-6 { grid-template-columns: repeat(2, 1fr); }
  .g-4.keep-2, .g-3.keep-2 { grid-template-columns: repeat(2, 1fr); }
  .quick-tiles { grid-template-columns: repeat(2, 1fr); }
  .quick-tiles a { border-bottom: 1px solid var(--border); }
  .quick-tiles a:nth-child(2n) { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .slides { height: 440px; }
  .slide h2 { font-size: 1.55rem; }
  .slide-nav { display: none; }
  .sec-head h2 { font-size: 1.4rem; }
  .page-banner h1 { font-size: 1.45rem; }
  .award-banner { flex-direction: column; text-align: center; padding: 22px 18px; }
  .kv { grid-template-columns: 1fr; }
  .kv dd { margin-bottom: 6px; }
  .stepper li { font-size: 0; }
  .cert { padding: 20px 16px; border-width: 6px; }
  .leader-card { flex-direction: column; text-align: center; }
  .ticker-label span { display: none; }
}

/* =========================================================
   MODERN REFRESH — softer, rounder, more depth.
   (Overrides above; government palette unchanged.)
   ========================================================= */
:root {
  --radius: 12px;
  --bg: #f4f6fb;
  --border: #e1e6ef;
  --shadow: 0 1px 2px rgba(15, 44, 89, .05), 0 6px 18px rgba(15, 44, 89, .06);
  --shadow-lg: 0 14px 38px rgba(15, 44, 89, .16);
  --grad-navy: linear-gradient(135deg, #0f2c59 0%, #1f4f97 100%);
  --grad-saffron: linear-gradient(135deg, #ff8a3d 0%, #e85d0c 100%);
  --grad-green: linear-gradient(135deg, #1a9a12 0%, #0b6305 100%);
  --grad-maroon: linear-gradient(135deg, #a32222 0%, #6e1414 100%);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: var(--saffron); color: #000; }

/* Masthead & nav */
.masthead { box-shadow: 0 1px 0 var(--border); }
.brand-logo { filter: drop-shadow(0 4px 10px rgba(15, 44, 89, .25)); transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.04); }
.weather-box, .emergency-box { border-radius: 14px; }
.mainnav { background: rgba(23, 63, 122, .96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
@media (min-width: 961px) {
  .nav-list > li > a, .nav-list > li > button { border-radius: 8px; margin: 6px 1px; padding: 7px 12px; transition: background .15s, color .15s; }
  .dropdown { border-radius: 0 0 12px 12px; padding: 8px; top: calc(100% - 4px); animation: dd .18s ease-out; }
  .dropdown a { border-radius: 8px; }
}
@keyframes dd { from { opacity: 0; transform: translateY(6px); } }
.ticker-label { border-radius: 0 20px 20px 0; }

/* Buttons */
.btn { border-radius: 10px; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--grad-navy); box-shadow: 0 4px 12px rgba(15, 44, 89, .25); }
.btn-saffron { background: var(--grad-saffron); color: #fff; box-shadow: 0 4px 14px rgba(232, 93, 12, .3); }
.btn-saffron:hover { background: var(--saffron-d); color: #fff; }
.btn-green { background: var(--grad-green); box-shadow: 0 4px 12px rgba(13, 107, 6, .25); }
.btn-light { box-shadow: 0 2px 6px rgba(15, 44, 89, .08); }
.badge { border-radius: 999px; padding: 2px 10px; }

/* Hero */
.slide .shade { background: linear-gradient(90deg, rgba(8, 22, 50, .9) 0%, rgba(8, 22, 50, .55) 45%, rgba(8, 22, 50, 0) 78%); }
.slide h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); letter-spacing: -.2px; }
.slide .kicker { border-radius: 999px; padding: 3px 14px; background: var(--grad-saffron); color: #fff; }
.slide-dots button { transition: width .25s; }
.slide-dots button.active { width: 28px; border-radius: 6px; }

/* Quick tiles → floating cards */
.quick-tiles { background: transparent; box-shadow: none; border: 0; gap: 12px; overflow: visible; }
.quick-tiles a { background: var(--surface); border: 1px solid var(--border) !important; border-radius: 14px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.quick-tiles a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--surface); }
.quick-tiles a i { border-radius: 14px; background: var(--grad-navy); box-shadow: 0 6px 14px rgba(15, 44, 89, .25); }
.quick-tiles a:nth-child(3n+2) i { background: var(--grad-saffron); box-shadow: 0 6px 14px rgba(232, 93, 12, .3); }
.quick-tiles a:nth-child(3n) i { background: var(--grad-green); box-shadow: 0 6px 14px rgba(13, 107, 6, .25); }

/* Section heads */
.sec-head h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.2px; }
.sec-head .bar span { height: 5px; border-radius: 3px; }

/* Cards */
.card { transition: transform .2s, box-shadow .2s; }
.card.hover:hover { transform: translateY(-4px); }
.card-head { background: var(--grad-navy); padding: 12px 18px; }
.card-head.saffron { background: var(--grad-saffron); color: #fff; }
.card-head.green { background: var(--grad-green); }
.card-head.maroon { background: var(--grad-maroon); }
.feature .ic, .svc .ic, .kpi .ic, .link-card .ic { border-radius: 14px; }
.feature .ic { background: var(--grad-navy); box-shadow: 0 8px 18px rgba(15, 44, 89, .22); }
.feature.s .ic { background: var(--grad-saffron); box-shadow: 0 8px 18px rgba(232, 93, 12, .25); }
.feature.g .ic { background: var(--grad-green); box-shadow: 0 8px 18px rgba(13, 107, 6, .22); }
.feature.m .ic { background: var(--grad-maroon); }
.kpi .ic { background: var(--grad-navy); }
.official { border-radius: 16px; border-top-width: 0; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.official::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(135deg, var(--saffron-l), #e8f0fb); z-index: 0; }
.official:nth-child(even)::before { background: linear-gradient(135deg, var(--green-l), #e8f0fb); }
.official > * { position: relative; z-index: 1; }
.official:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.avatar { border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15, 44, 89, .18); }
.award-banner { border-radius: 18px; }
.gal-item { border-radius: 14px; }

/* Stats band */
.stats-band { background: radial-gradient(1200px 400px at 10% 0%, #2a5ca8 0%, transparent 60%), var(--grad-navy); }
.stat { border-radius: 14px; transition: transform .2s, background .2s; }
.stats-band .stat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }

/* Page banner pattern */
.page-banner { background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(110deg, #0f2c59 0%, #1f4f97 65%, #2c64b8 100%); background-size: 18px 18px, auto; padding: 34px 0 30px; }
.page-banner h1 { font-weight: 800; letter-spacing: -.2px; }

/* Forms, tables, tabs */
.field input, .field select, .field textarea { border-radius: 10px; border-color: #c9d2e0; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(35, 79, 148, .14); }
.filters input, .filters select { border-radius: 10px; }
.table-wrap { border-radius: 12px; }
.tbl th { background: var(--grad-navy); }
.tabs { border-bottom-width: 0; gap: 6px; background: var(--surface); padding: 6px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.tab-btn { border: 0; border-radius: 10px; background: transparent; }
.tab-btn:hover { background: var(--surface-2); }
.tab-btn.active { background: var(--grad-navy); box-shadow: 0 4px 12px rgba(15, 44, 89, .25); }
.chip { transition: background .15s, transform .15s; }
.chip:hover { transform: translateY(-1px); }
.acc-item { border-radius: 12px; }
.modal { border-radius: 16px; }
.modal-head { background: var(--grad-navy); }
.toast { border-radius: 12px; }

/* Footer + credit */
.site-footer { background: linear-gradient(180deg, #0c2247 0%, #081733 100%); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }
.social a { transition: transform .15s, background .15s; }
.social a:hover { transform: translateY(-2px); }
.credit-band { background: rgba(255, 255, 255, .04); border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 0; }
.credit-band .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; color: #e6edf9; font-weight: 600; }
.credit-band i { color: var(--saffron); margin-right: 6px; }
.credit-by { background: var(--grad-saffron); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .88rem; box-shadow: 0 4px 12px rgba(232, 93, 12, .3); }
.credit-by b { font-weight: 800; letter-spacing: .3px; }
.back-top { background: var(--grad-saffron); color: #fff; }

@media (max-width: 640px) {
  .quick-tiles { gap: 10px; }
  .credit-band .container { justify-content: center; text-align: center; }
}
/* keep high-contrast mode flat */
html.hc .quick-tiles a, html.hc .official, html.hc .card-head, html.hc .tab-btn.active, html.hc .tbl th, html.hc .btn, html.hc .feature .ic, html.hc .quick-tiles a i, html.hc .credit-by { background: #000 !important; box-shadow: none !important; }
html.hc .official::before { display: none; }
