/* ==========================================================================
   Sarangada Grampanchayat — public site styles
   Palette derived from the Panchayat emblem: government blue + saffron.
   ========================================================================== */

:root {
  --blue-900: #0b2f5e;
  --blue-800: #123f7b;
  --blue-700: #1a5aa8;
  --blue-600: #2170c9;
  --blue-100: #e8f1fb;
  --blue-50:  #f4f8fd;

  --saffron:     #e8871e;
  --saffron-600: #d0740f;
  --saffron-100: #fdf1e2;

  --green: #1c7a4d;

  /* Accent palette — used to give each card/section its own identity */
  --c1: #1a5aa8;  --c1-soft: #e8f1fb;   /* blue    */
  /* Text-safe shades: each passes WCAG AA (4.5:1) on its own soft background */
  --c2: #a35c07;  --c2-soft: #fdf1e2;   /* saffron */
  --c3: #1c7a4d;  --c3-soft: #e6f5ee;   /* green   */
  --c4: #8b3fa8;  --c4-soft: #f5eafa;   /* purple  */
  --c5: #c62828;  --c5-soft: #fdecea;   /* red     */
  --c6: #0a6b7c;  --c6-soft: #e4f5f8;   /* teal    */

  --ink:      #14202e;
  --ink-soft: #4a5a6d;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f6f8fb;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 4px 20px rgba(11, 47, 94, .08);
  --shadow-lg: 0 14px 40px rgba(11, 47, 94, .14);
  --container: 1200px;
  /* Segoe UI first, with cross-platform fallbacks so the look holds everywhere */
  --font: "Segoe UI", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont,
          Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* never allow sideways scrolling */
}

/* Long words and URLs must wrap rather than widen the page */
h1, h2, h3, h4, p, li, td, th, a { overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--saffron-600); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  line-height: 1.25; color: var(--blue-900); margin: 0 0 .6em;
}
input, select, textarea, button { font-family: var(--font); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue-900); color: #fff; padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-900);
  color: #cfe0f4;
  font-size: .82rem;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  align-items: center; justify-content: space-between;
  min-height: 40px; padding-block: .35rem;
}
.topbar__left, .topbar__right { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; align-items: center; }
.topbar__item { color: #cfe0f4; white-space: nowrap; }
.topbar__item:hover { color: #fff; }
.topbar__item--admin {
  background: var(--saffron); color: #fff; padding: .2rem .8rem;
  border-radius: 100px; font-weight: 600;
}
.topbar__item--admin:hover { background: var(--saffron-600); color: #fff; }
.topbar__item--portal {
  border: 1px solid rgba(255,255,255,.35); padding: .18rem .75rem;
  border-radius: 100px; font-weight: 600;
}
.topbar__item--portal:hover { background: rgba(255,255,255,.15); color: #fff; }


/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--saffron);
  box-shadow: var(--shadow);
}
.header__inner {
  display: flex; align-items: center; gap: 1rem; padding-block: .6rem;
}
.header__inner .nav { order: 1; }
.header__inner .header__tools { order: 2; }
/* margin-right:auto pushes the nav and tools together on the right */
.brand { display: flex; align-items: center; gap: .8rem; color: inherit; margin-right: auto; }
.brand__logo { width: 58px; height: 58px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 1.22rem; color: var(--blue-900); line-height: 1.2; letter-spacing: .2px; }
.brand__tag { font-size: .76rem; color: var(--ink-soft); }

.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .6rem .85rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .93rem; color: var(--blue-900);
  transition: background .18s, color .18s;
}
.nav__link:hover, .nav__link.is-active { background: var(--blue-100); color: var(--blue-700); }
.caret { font-size: .7em; opacity: .7; }

.has-drop { position: relative; }
.drop {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop,
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a {
  display: block; padding: .55rem .75rem; border-radius: 7px;
  color: var(--ink); font-size: .9rem;
}
.drop a:hover { background: var(--blue-50); color: var(--blue-700); }

/* Header tools (search + hamburger) */
.header__tools { display: flex; align-items: center; gap: .5rem; }

.search-toggle {
  width: 42px; height: 40px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  transition: background .18s, border-color .18s;
}
.search-toggle svg { width: 19px; height: 19px; fill: var(--blue-900); transition: fill .18s; }
.search-toggle:hover { background: var(--blue-900); border-color: var(--blue-900); }
.search-toggle:hover svg { fill: #fff; }
.search-toggle[aria-expanded="true"] { background: var(--saffron); border-color: var(--saffron); }
.search-toggle[aria-expanded="true"] svg { fill: #fff; }

/* Slide-down search panel */
.site-search {
  border-top: 1px solid var(--line);
  background: var(--blue-50);
  animation: searchDrop .25s ease;
}
@keyframes searchDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-search__form {
  display: flex; align-items: center; gap: .6rem; padding-block: .9rem;
}
.site-search__icon { width: 20px; height: 20px; fill: var(--blue-700); flex: none; }
.site-search__input {
  flex: 1; padding: .72rem 1rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 100px; background: #fff; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.site-search__input:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.site-search__close {
  width: 36px; height: 36px; flex: none; border: 0; background: transparent;
  color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; border-radius: 50%;
  transition: background .18s, color .18s;
}
.site-search__close:hover { background: var(--blue-100); color: var(--blue-900); }

/* Search result items */
.sr-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; color: inherit;
  transition: transform .2s, box-shadow .2s, border-left-color .2s;
}
.sr-item:hover {
  transform: translateX(3px); box-shadow: var(--shadow);
  border-left-color: var(--saffron); color: inherit;
}
.sr-item__icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid;
  place-items: center; background: var(--blue-50); font-size: 1.3rem;
}
.sr-item__thumb {
  flex: none; width: 64px; height: 48px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.sr-item__body { display: block; flex: 1; min-width: 0; }
.sr-item__label {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--saffron-600); background: var(--saffron-100);
  padding: .12rem .55rem; border-radius: 100px; margin-bottom: .3rem;
}
.sr-item__title { display: block; font-weight: 700; color: var(--blue-900); font-size: 1rem; }
.sr-item__text  { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: .15rem; }
.sr-item__meta  { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; opacity: .85; }
.sr-item__go    { flex: none; align-self: center; color: var(--saffron); font-size: 1.3rem; font-weight: 700; }

mark { background: #fff2c4; color: inherit; padding: 0 .12em; border-radius: 3px; }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--blue-900); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .78rem 1.6rem; border-radius: 100px;
  font-weight: 600; font-size: .94rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, #f39c2b, var(--saffron-600));
  color: #fff; box-shadow: 0 6px 18px rgba(232,135,30,.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--saffron-600), #b8650b);
  color: #fff; box-shadow: 0 10px 24px rgba(232,135,30,.45);
}
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--blue-900); }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--light:hover { background: var(--saffron); color: #fff; }
.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue-900); }
.hero__slides { position: relative; height: clamp(340px, 56vw, 580px); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  display: grid; place-items: center;
  visibility: hidden; pointer-events: none;
}
.hero__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,32,66,.94) 0%, rgba(9,38,76,.82) 42%, rgba(11,47,94,.55) 100%);
}
.hero__caption {
  position: absolute; inset: 0; display: flex; align-items: center;
}
.hero__inner { max-width: 660px; color: #fff; }
.hero__eyebrow {
  display: inline-block; background: rgba(232,135,30,.95); color: #fff;
  padding: .3rem 1rem; border-radius: 100px; font-size: .78rem;
  font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 1rem;
}
.hero__title { color: #fff; font-size: clamp(1.8rem, 4.4vw, 3.1rem); margin-bottom: .5rem; }
.hero__text { color: #dce8f7; font-size: clamp(.98rem, 1.6vw, 1.12rem); margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 3;
}
.hero__dot {
  width: 36px; height: 5px; border: 0; border-radius: 100px;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s;
}
.hero__dot.is-active { background: var(--saffron); }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.2); color: #fff; font-size: 1.3rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s;
}
.hero__arrow:hover { background: var(--saffron); }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5rem); position: relative; }
.section--alt {
  background:
    radial-gradient(900px 380px at 12% 0%,  rgba(26,90,168,.07),  transparent 60%),
    radial-gradient(760px 340px at 88% 100%, rgba(232,135,30,.10), transparent 60%),
    var(--bg-alt);
}
/* Soft tint on plain sections so the page never reads as flat white */
.section--tint {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(15,138,158,.07), transparent 60%),
    radial-gradient(620px 300px at 5% 100%, rgba(139,63,168,.06), transparent 60%),
    #fff;
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 2.6rem; }
.section__eyebrow {
  display: inline-block; font-weight: 700;
  font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .5rem;
  background: linear-gradient(90deg, var(--saffron), var(--c5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@supports not (background-clip: text) { .section__eyebrow { color: var(--saffron); } }

.section__title { margin-bottom: .55rem; }
.section__title::after {
  content: ""; display: block; width: 90px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--c1), var(--saffron), var(--c3));
  margin: .8rem auto 0;
}
.section__head--left { text-align: left; margin-inline: 0; }
.section__head--left .section__title::after { margin-inline: 0; }
.section__lead { color: var(--ink-soft); margin: 0; }

/* ---------- Notice ticker ---------- */
.ticker {
  background: linear-gradient(90deg, var(--saffron-100), #fff6e8 40%, var(--c6-soft));
  border-bottom: 2px solid var(--saffron);
}
.ticker__inner { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.ticker__label {
  flex: none; background: var(--saffron); color: #fff; font-weight: 700;
  font-size: .78rem; letter-spacing: 1px; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 100px;
}
.ticker__viewport { overflow: hidden; flex: 1; }
.ticker__track { display: flex; gap: 3rem; white-space: nowrap; animation: ticker 34s linear infinite; }
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
.ticker__item { color: var(--blue-900); font-size: .9rem; font-weight: 500; }
.ticker__item b { color: var(--saffron-600); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #0b2f5e 0%, #14508f 40%, #0f7f96 100%);
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 260px at 15% 20%, rgba(232,135,30,.30), transparent 65%),
    radial-gradient(460px 240px at 85% 85%, rgba(139,63,168,.28), transparent 65%);
  pointer-events: none;
}
.stats .container { position: relative; z-index: 1; }
/* Alternate the number colours across the row */
.stat:nth-child(odd)  .stat__num { color: #ffd9a8; }
.stat:nth-child(even) .stat__num { color: #b8ecff; }
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem; padding-block: clamp(2.2rem, 4vw, 3.2rem);
}
.stat { text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; line-height: 1; }
.stat__num span { color: var(--saffron); }
.stat__label { display: block; margin-top: .5rem; font-size: .9rem; color: #c9dcf2; letter-spacing: .4px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: 1.08rem; margin-bottom: .5rem; }
.card__text { color: var(--ink-soft); font-size: .93rem; margin-bottom: 1rem; }
.card__more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--saffron-600); }

.icon-card { text-align: center; padding: 2rem 1.4rem; }
.icon-card__icon {
  width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--ac-soft, var(--blue-100)); color: var(--ac, var(--blue-700));
  transition: background .22s, transform .22s;
}
.card:hover .icon-card__icon { background: var(--ac, var(--saffron)); color: #fff; transform: scale(1.08); }
/* Cycle accent colours across icon cards */
.grid > .card:nth-child(4n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.grid > .card:nth-child(4n+2) { --ac: var(--c2); --ac-soft: var(--c2-soft); }
.grid > .card:nth-child(4n+3) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.grid > .card:nth-child(4n+4) { --ac: var(--c4); --ac-soft: var(--c4-soft); }
.card__more { color: var(--ac, var(--saffron-600)); }

/* ---------- Achievements ---------- */
.ach {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.ach::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--saffron), var(--blue-700));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.ach:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ach:hover::before { transform: scaleX(1); }

.ach__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.ach__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ach:hover .ach__media img { transform: scale(1.07); }

.ach__body { padding: 1.5rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.ach__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.ach__icon {
  width: 54px; height: 54px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--ac-soft, var(--blue-100)); transition: background .22s, transform .22s;
}
.ach__icon svg { width: 27px; height: 27px; fill: var(--ac, var(--blue-700)); transition: fill .22s; }
.ach:hover .ach__icon { background: var(--ac, var(--saffron)); transform: rotate(-6deg) scale(1.06); }
.ach:hover .ach__icon svg { fill: #fff; }

/* Give each achievement card its own accent colour, cycling through the palette */
.ach:nth-child(6n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.ach:nth-child(6n+2) { --ac: var(--c2); --ac-soft: var(--c2-soft); }
.ach:nth-child(6n+3) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.ach:nth-child(6n+4) { --ac: var(--c4); --ac-soft: var(--c4-soft); }
.ach:nth-child(6n+5) { --ac: var(--c5); --ac-soft: var(--c5-soft); }
.ach:nth-child(6n+6) { --ac: var(--c6); --ac-soft: var(--c6-soft); }
.ach::before { background: var(--ac, var(--saffron)); }
.ach__metric { line-height: 1.1; font-size: 1.9rem; font-weight: 800; color: var(--ac, var(--blue-900)); }
.ach__metric small {
  display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .5px; text-transform: uppercase; margin-top: .2rem;
}
.ach__title { font-size: 1.05rem; margin-bottom: .5rem; }
.ach__text { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .6rem; }
.ach__date { margin-top: auto; font-size: .82rem; color: var(--saffron-600); font-weight: 600; }

/* ---------- Government office cards ---------- */
.office {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.3rem; position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.office::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--ac, var(--blue-700));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.office:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.office:hover::before { transform: scaleX(1); }
.office__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--ac-soft, var(--blue-100));
  transition: background .22s, transform .22s;
}
.office__icon svg { width: 28px; height: 28px; fill: var(--ac, var(--blue-700)); transition: fill .22s; }
.office:hover .office__icon { background: var(--ac, var(--saffron)); transform: rotate(-6deg) scale(1.06); }
.office:hover .office__icon svg { fill: #fff; }

/* Each office card gets its own accent colour */
.office:nth-child(6n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.office:nth-child(6n+2) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.office:nth-child(6n+3) { --ac: var(--c6); --ac-soft: var(--c6-soft); }
.office:nth-child(6n+4) { --ac: var(--c4); --ac-soft: var(--c4-soft); }
.office:nth-child(6n+5) { --ac: var(--c2); --ac-soft: var(--c2-soft); }
.office:nth-child(6n+6) { --ac: var(--c5); --ac-soft: var(--c5-soft); }
.office__type { background: var(--ac-soft, var(--saffron-100)); color: var(--ac, var(--saffron-600)); }
.office__name { font-size: 1.03rem; margin-bottom: .4rem; }
.office__type {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase; color: var(--saffron-600); background: var(--saffron-100);
  padding: .2rem .7rem; border-radius: 100px; margin-bottom: .9rem;
}
.office__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .38rem; }
.office__meta li { font-size: .87rem; color: var(--ink-soft); line-height: 1.5; }
.office__meta strong { color: var(--blue-900); }

/* ---------- Member cards ---------- */
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1rem; text-align: center;
  transition: transform .22s, box-shadow .22s;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member__photo {
  width: 108px; height: 108px; margin: 0 auto .9rem; border-radius: 50%;
  object-fit: cover; background: var(--blue-50);
  border: 4px solid var(--ac-soft, var(--blue-100)); padding: 3px;
  transition: border-color .22s, transform .22s;
}
.member:hover .member__photo { border-color: var(--ac, var(--saffron)); transform: scale(1.04); }
.member__name { font-size: 1.02rem; margin-bottom: .2rem; }
.member__role {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--ac, var(--saffron-600)); background: var(--ac-soft, var(--saffron-100));
  padding: .18rem .7rem; border-radius: 100px;
}
/* Rotate accents through the member grid */
.member:nth-child(4n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.member:nth-child(4n+2) { --ac: var(--c2); --ac-soft: var(--c2-soft); }
.member:nth-child(4n+3) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.member:nth-child(4n+4) { --ac: var(--c6); --ac-soft: var(--c6-soft); }
.member__meta { display: block; margin-top: .5rem; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Notices ---------- */
.notice-item {
  display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--ac, var(--blue-700)); border-radius: var(--radius-sm);
  padding: 1.15rem 1.3rem; transition: box-shadow .2s, transform .2s, background .2s;
}
.notice-item:hover { box-shadow: var(--shadow); transform: translateX(3px); background: var(--ac-soft, #fff); }
.notice-item:nth-child(4n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.notice-item:nth-child(4n+2) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.notice-item:nth-child(4n+3) { --ac: var(--c6); --ac-soft: var(--c6-soft); }
.notice-item:nth-child(4n+4) { --ac: var(--c4); --ac-soft: var(--c4-soft); }
.notice-item__date { background: var(--ac, var(--blue-900)); }
.notice-item--important { border-left-color: var(--saffron); background: #fffdf9; }
.notice-item__date {
  flex: none; width: 66px; text-align: center; background: var(--blue-900);
  color: #fff; border-radius: var(--radius-sm); padding: .5rem .3rem; height: fit-content;
}
.notice-item--important .notice-item__date { background: var(--saffron); }
.notice-item__day { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.notice-item__mon { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; }
.notice-item__title { font-size: 1.03rem; margin-bottom: .3rem; }
.notice-item__text { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: .16rem .6rem; border-radius: 100px;
  background: var(--saffron); color: #fff; margin-left: .5rem; vertical-align: middle;
}

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.gallery-tab {
  padding: .55rem 1.3rem; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--blue-900); font-weight: 600; font-size: .89rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gallery-tab:hover { border-color: var(--saffron); color: var(--saffron-600); }
.gallery-tab.is-active { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; background: var(--blue-50);
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item__cap {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(11,47,94,.9));
  color: #fff; font-size: .88rem; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: .3s;
}
.gallery-item:hover .gallery-item__cap { transform: translateY(0); opacity: 1; }
.gallery-item__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(8,20,36,.94);
  display: none; place-items: center; padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox__media { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 10px; }
.lightbox__cap { color: #dce8f7; text-align: center; margin-top: .9rem; font-size: .94rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.16); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--saffron); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }

/* ---------- Blog ---------- */
.blog-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start;
}
.blog-main { min-width: 0; }
.blog-side { display: grid; gap: 1.2rem; position: sticky; top: 110px; }
.blog-side .panel { padding: 1.3rem; }
.blog-side__title {
  font-size: 1rem; margin-bottom: 1rem; padding-bottom: .55rem;
  border-bottom: 2px solid var(--saffron); display: inline-block;
}
.blog-side__search { display: flex; gap: .5rem; }
.blog-side__search input {
  flex: 1; min-width: 0; padding: .6rem .9rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 100px; background: #fff;
}
.blog-side__search input:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.blog-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.blog-side__list a {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .55rem .75rem; border-radius: 8px; font-size: .92rem;
  color: var(--ink); transition: background .18s, color .18s, padding-left .18s;
}
.blog-side__list a:hover { background: var(--blue-50); color: var(--blue-700); padding-left: 1rem; }
.blog-side__list a.is-active { background: var(--blue-900); color: #fff; font-weight: 600; }
.blog-side__list a span {
  font-size: .75rem; background: var(--blue-100); color: var(--blue-800);
  padding: .1rem .5rem; border-radius: 100px; font-weight: 700;
}
.blog-side__list a.is-active span { background: var(--saffron); color: #fff; }

.blog-side__recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.blog-side__recent a { display: flex; gap: .75rem; align-items: center; color: inherit; }
.blog-side__recent img {
  width: 58px; height: 46px; flex: none; object-fit: cover;
  border-radius: 7px; border: 1px solid var(--line); background: var(--blue-50);
}
.blog-side__recent strong { display: block; font-size: .88rem; line-height: 1.35; color: var(--blue-900); }
.blog-side__recent a:hover strong { color: var(--saffron-600); }
.blog-side__recent small { font-size: .76rem; color: var(--ink-soft); }

/* Post cards */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card__media {
  position: relative; display: block; aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--blue-50);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.07); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; background: var(--blue-50); }
.post-card__placeholder img { width: 40%; height: auto; object-fit: contain; opacity: .55; }
.post-card__flag {
  position: absolute; top: .7rem; left: .7rem; background: var(--saffron); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 100px;
}
.post-card__body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--saffron-600); background: var(--saffron-100);
  padding: .18rem .65rem; border-radius: 100px; margin-bottom: .6rem;
}
.post-card__cat:hover { background: var(--saffron); color: #fff; }
.post-card__title { font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.35; }
.post-card__title a { color: var(--blue-900); }
.post-card__title a:hover { color: var(--saffron-600); }
.post-card__text { font-size: .9rem; color: var(--ink-soft); margin-bottom: .8rem; }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem;
  color: var(--ink-soft); margin-bottom: .8rem;
}
.post-card__body .card__more { margin-top: auto; }

/* Single post */
.post__hero {
  width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 1.4rem;
}
.post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem;
}
.post__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.post__lead {
  font-size: 1.05rem; color: var(--ink-soft); font-style: italic;
  border-left: 4px solid var(--saffron); padding-left: 1rem; margin-bottom: 1.6rem;
}
.post__share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.post__share > span { font-weight: 600; font-size: .9rem; color: var(--blue-900); margin-right: .3rem; }
.post__share .social { background: var(--blue-50); border-color: var(--line); }
.post__share .social svg { fill: var(--blue-700); }
.post__share .social:hover svg { fill: #fff; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem;
}
.post-nav__link {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.post-nav__link:hover { box-shadow: var(--shadow); border-color: var(--saffron); transform: translateY(-2px); }
.post-nav__link small { display: block; font-size: .76rem; color: var(--saffron-600); font-weight: 700; margin-bottom: .25rem; }
.post-nav__link strong { font-size: .92rem; color: var(--blue-900); line-height: 1.35; }
.post-nav__link--next { text-align: right; }

@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; }
}
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; }
}

/* ---------- Job card / beneficiary search ---------- */
.jc-search {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  max-width: 720px; margin: 0 auto 1.4rem;
}
.jc-search input[type="search"] {
  flex: 1 1 320px; padding: .85rem 1.1rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 100px; background: #fff; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.jc-search input[type="search"]:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.jc-result { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.2rem; }

/* Compact heading used while search results are on screen */
.section__head--compact { margin-bottom: 1.4rem; }
.section__head--compact .section__title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* "Show all records" row below a result */
.jc-back {
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 2rem;
}

/* Prompt shown instead of the record list until a search is made */
.jc-prompt {
  text-align: center; max-width: 560px; margin: 1.6rem auto 0;
  padding: 2.4rem 1.6rem; border-radius: var(--radius);
  background: var(--blue-50); border: 1px dashed var(--blue-100);
}
.jc-prompt__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow);
}
.jc-prompt__icon svg { width: 30px; height: 30px; fill: var(--blue-700); }
.jc-prompt__title { font-size: 1.15rem; margin-bottom: .4rem; }
.jc-prompt__text  { color: var(--ink-soft); font-size: .95rem; margin-bottom: .9rem; }
.jc-prompt__count {
  display: inline-block; margin: 0; font-size: .85rem; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: .35rem 1rem;
}

.jc-status {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .3px;
  padding: .2rem .7rem; border-radius: 100px; white-space: nowrap;
}
.jc-status--on  { background: #e8f6ee; color: #14653c; }
.jc-status--off { background: #f0f2f5; color: #6a7683; }

/* Ration card types */
.jc-cardtype {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .3px;
  padding: .2rem .7rem; border-radius: 100px; white-space: nowrap;
  background: var(--blue-100); color: var(--blue-800);
}
.jc-cardtype--aay,
.jc-cardtype--antyodaya { background: #fdecea; color: #a52218; }   /* poorest of the poor */
.jc-cardtype--phh,
.jc-cardtype--priority  { background: var(--saffron-100); color: var(--saffron-600); }
.jc-cardtype--sfss      { background: #e8f6ee; color: #14653c; }

/* Small summary strip above the list */
.jc-summary {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.4rem;
}
.jc-summary__item {
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem 1.1rem; font-size: .86rem; color: var(--ink-soft);
}
.jc-summary__item strong { color: var(--blue-900); }

.jc-pager {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 1.8rem; flex-wrap: wrap;
}
.jc-pager__info { font-size: .88rem; color: var(--ink-soft); }

.jc-official {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
  margin-top: 2.4rem; padding: 1.6rem 1.8rem;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-left: 4px solid var(--saffron); border-radius: var(--radius);
}
.jc-official h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.jc-official p  { margin: 0; font-size: .9rem; color: var(--ink-soft); max-width: 640px; }

@media (max-width: 640px) {
  .jc-search { flex-direction: column; }
  .jc-search .btn { width: 100%; }
  .jc-official { flex-direction: column; align-items: flex-start; }
}

/* ---------- Page banner ---------- */
.banner {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  background: linear-gradient(115deg, #0b2f5e 0%, #14508f 45%, #0f7f96 100%);
}
.banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(232,135,30,.22);
}
.banner::before {
  content: ""; position: absolute; left: -80px; bottom: -90px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(139,63,168,.20);
}
.banner__title { color: #fff; margin-bottom: .4rem; position: relative; }
.crumbs { position: relative; font-size: .88rem; color: #c9dcf2; }
.crumbs a { color: #fff; }
.crumbs span { margin-inline: .45rem; opacity: .6; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
.table thead th {
  background: var(--blue-900); color: #fff; text-align: left; font-weight: 600;
  padding: .9rem 1rem; white-space: nowrap; font-size: .87rem;
}
.table tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.table tbody tr:nth-child(even) { background: var(--blue-50); }
.table tbody tr:hover { background: var(--saffron-100); }
.table tfoot td { padding: .9rem 1rem; background: var(--blue-100); font-weight: 700; color: var(--blue-900); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Rich content from CKEditor ---------- */
.rich { color: var(--ink); }
.rich h2, .rich h3, .rich h4 { margin-top: 1.6em; }
.rich ul, .rich ol { padding-left: 1.3rem; margin-bottom: 1.1em; }
.rich li { margin-bottom: .45em; }
.rich img { border-radius: var(--radius-sm); margin-block: 1rem; height: auto; max-width: 100%; }
/* A broken or missing image should not leave an ugly icon in the article */
.rich img:not([src]), .rich img[src=""], .rich img[src="x"] { display: none; }
.rich table { width: 100%; border-collapse: collapse; margin-block: 1.2rem; }
.rich table td, .rich table th { border: 1px solid var(--line); padding: .65rem .8rem; }
.rich table th { background: var(--blue-100); }
.rich blockquote {
  border-left: 4px solid var(--saffron); background: var(--saffron-100);
  margin: 1.2rem 0; padding: .9rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.rich a { text-decoration: underline; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow);
}

/* ---------- About highlights ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-block: 1.6rem; }
.fact {
  background: var(--ac-soft, var(--blue-50));
  border: 1px solid var(--line);
  border-left: 4px solid var(--ac, var(--blue-700));
  border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  transition: transform .2s, box-shadow .2s;
}
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fact:nth-child(4n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.fact:nth-child(4n+2) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.fact:nth-child(4n+3) { --ac: var(--c2); --ac-soft: var(--c2-soft); }
.fact:nth-child(4n+4) { --ac: var(--c6); --ac-soft: var(--c6-soft); }
.fact__num { font-size: 1.6rem; font-weight: 800; color: var(--ac, var(--blue-800)); line-height: 1.1; }
.fact__label { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; color: var(--blue-900); }
.field label .req { color: #d93025; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-size: .94rem;
  background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__hint { font-size: .8rem; color: var(--ink-soft); }

.alert {
  padding: .95rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem;
  font-size: .93rem; border: 1px solid transparent;
}
.alert--success { background: #e8f6ee; color: #14653c; border-color: #b7e2c9; }
.alert--error   { background: #fdecea; color: #a52218; border-color: #f5c2bd; }
.alert--info    { background: var(--blue-100); color: var(--blue-800); border-color: #c6ddf5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
  margin-bottom: 1rem;
}
.info-card__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); font-size: 1.15rem;
}
.info-card__label { font-weight: 700; color: var(--blue-900); font-size: .95rem; }
.info-card__value { color: var(--ink-soft); font-size: .92rem; }
.map-embed { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }

/* ---------- Official portal call-out ---------- */
.portal-card {
  margin-top: 1.4rem; padding: 1.6rem 1.5rem; border-radius: var(--radius);
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(130deg, #0b2f5e 0%, #14508f 55%, #0a6b7c 100%);
  box-shadow: var(--shadow-lg);
}
.portal-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px;
  border-radius: 50%; background: rgba(232,135,30,.22); pointer-events: none;
}
.portal-card__top { position: relative; z-index: 1; }
.portal-card__badge {
  display: inline-block; background: var(--saffron); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: .2rem .75rem; border-radius: 100px; margin-bottom: .6rem;
}
.portal-card__title { color: #fff; font-size: 1.5rem; margin-bottom: .2rem; }
.portal-card__sub { color: #cfe0f4; font-size: .86rem; margin-bottom: .9rem; }
.portal-card__text { position: relative; z-index: 1; color: #dce8f7; font-size: .92rem; margin-bottom: 1.2rem; }
.portal-card__text strong { color: #fff; }
.portal-card .btn { position: relative; z-index: 1; }

/* ---------- Links grid ---------- */
.link-tile {
  display: flex; align-items: center; gap: .8rem; background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--ac, var(--blue-700));
  border-radius: var(--radius-sm); padding: 1rem 1.2rem;
  font-weight: 600; color: var(--blue-900); font-size: .93rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.link-tile:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  background: var(--ac-soft, var(--saffron-100)); color: var(--ac, var(--saffron-600));
}
.link-tile__arrow { color: var(--ac, var(--saffron)); }
.grid > .link-tile:nth-child(6n+1) { --ac: var(--c1); --ac-soft: var(--c1-soft); }
.grid > .link-tile:nth-child(6n+2) { --ac: var(--c3); --ac-soft: var(--c3-soft); }
.grid > .link-tile:nth-child(6n+3) { --ac: var(--c2); --ac-soft: var(--c2-soft); }
.grid > .link-tile:nth-child(6n+4) { --ac: var(--c4); --ac-soft: var(--c4-soft); }
.grid > .link-tile:nth-child(6n+5) { --ac: var(--c6); --ac-soft: var(--c6-soft); }
.grid > .link-tile:nth-child(6n+6) { --ac: var(--c5); --ac-soft: var(--c5-soft); }
.link-tile__arrow { margin-left: auto; opacity: .6; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-900); color: #b9cfe9; font-size: .92rem; margin-top: 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.footer__brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.footer__logo { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; }
.footer__brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer__brand span { font-size: .82rem; }
.footer__about { line-height: 1.7; }
.footer__title {
  color: #fff; font-size: 1rem; margin-bottom: 1rem; padding-bottom: .55rem;
  border-bottom: 2px solid rgba(232,135,30,.55); display: inline-block;
}
.footer__list, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__list a {
  color: #b9cfe9; display: inline-flex; align-items: center; gap: .5rem;
  transition: color .18s, transform .18s;
}
.footer__list a::before {
  content: "›"; color: var(--saffron); font-weight: 700; font-size: 1.1em; line-height: 1;
}
.footer__list--ext a::before { content: "↗"; font-size: .9em; }
.footer__list a:hover { color: var(--saffron); transform: translateX(4px); }

.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer__contact a { color: #b9cfe9; }
.footer__contact a:hover { color: var(--saffron); }
.footer__ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.1);
}
.footer__ico svg { width: 15px; height: 15px; fill: var(--saffron); }

/* Social icon row */
.footer__title--social { margin-top: 1.4rem; }
.socials { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .2rem; }
.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  transition: background .2s, transform .2s, border-color .2s;
}
.social svg { width: 20px; height: 20px; fill: #fff; transition: fill .2s; }
.social:hover { transform: translateY(-3px); border-color: transparent; }
.social:hover svg { fill: #fff; }
.social--facebook:hover  { background: #1877f2; }
.social--youtube:hover   { background: #ff0000; }
.social--whatsapp:hover  { background: #25d366; }
.social--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.social--twitter:hover   { background: #000; }
.social--telegram:hover  { background: #229ed9; }
.social--linkedin:hover  { background: #0a66c2; }
.social--email:hover     { background: var(--saffron); }
.footer__cta { margin-top: 1.1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-inner {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between;
  padding-block: 1rem; font-size: .84rem;
}

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--saffron); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 78vh; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; padding: .6rem; gap: .1rem; }
  .nav__link { padding: .8rem 1rem; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--blue-100);
    margin-left: 1rem; display: none; min-width: 0;
  }
  .has-drop.is-open .drop { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar__left .topbar__item:first-child { display: none; }
}
@media (max-width: 640px) {
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 1rem; }
  .brand__tag { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__arrow { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__left { display: none; }
  /* Footer icons are a primary contact route on mobile — make them bigger */
  .socials { justify-content: center; gap: .6rem; }
  .social { width: 44px; height: 44px; }
  .social svg { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .footer, .to-top, .hero__arrow, .hero__dots { display: none !important; }
}
