:root {
  --gom-blue: #0a3977;
  --gom-blue-dark: #062a5c;
  --gom-blue-mid: #1a5191;
  --gom-blue-light: #2a6cb5;
  --gom-orange: #e8740c;
  --gom-orange-dark: #c45f06;
  --gom-orange-glow: rgba(232, 116, 12, 0.35);
  --gom-saffron: #ff9933;
  --gom-green: #138808;
  --org-magenta: #8b1a6b;
  --text: #1a2a3a;
  --muted: #5f6b7a;
  --border: #c5d0de;
  --surface: #ffffff;
  --bg: #e8edf4;
  --shadow-sm: 0 2px 8px rgba(10, 57, 119, 0.08);
  --shadow: 0 8px 30px rgba(10, 57, 119, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 57, 119, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --font-mr: 'Noto Sans Devanagari', 'Mangal', 'Nirmala UI', sans-serif;
  --font-en: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-slideshow-height: 500px;
  --hero-side-width: 240px;
  --hero-bar-height: 2.75rem;
  --nav-font-size: calc(0.92rem + 4pt);
  --ticker-font-size: calc(1.12rem + 2pt);
  --nav-min-height: calc(40px + 3pt);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 81, 145, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(232, 116, 12, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(19, 136, 8, 0.05), transparent 45%),
    linear-gradient(180deg, #f0f4f9 0%, var(--bg) 50%, #e2e8f0 100%);
  color: var(--text);
  font-family: var(--font-mr);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Top utility bar (GoM style) ───────────────────────── */
.gov-topbar {
  background: var(--gom-blue-dark);
  color: #fff;
  font-size: 0.82rem;
}

.gov-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gov-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.gov-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.gov-search-input {
  width: min(280px, 42vw);
  padding: 0.45rem 2.5rem 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mr);
  font-size: 0.88rem;
  outline: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.gov-search-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.gov-search-input:focus {
  background: #fff;
  color: var(--text);
  border-color: var(--gom-orange);
  box-shadow: 0 0 0 3px rgba(232, 116, 12, 0.25);
}

.gov-search-input:focus::placeholder {
  color: var(--muted);
}

.gov-search-btn {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: var(--gom-orange);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gov-search-btn:hover {
  background: var(--gom-orange-dark);
  transform: translateY(-50%) scale(1.04);
}

.gov-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(320px, 88vw);
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.gov-search-results:not([hidden]) {
  display: block;
}

.gov-search-result-item {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid #edf2f7;
  transition: background var(--transition);
}

.gov-search-result-item:last-child {
  border-bottom: none;
}

.gov-search-result-item:hover,
.gov-search-result-item:focus {
  background: #f0f6ff;
  color: var(--gom-blue);
  outline: none;
}

.gov-search-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gov-skip {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.gov-skip:hover {
  text-decoration: underline;
}

.gov-topbar-label {
  font-family: var(--font-en);
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.tricolor-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gom-saffron) 33.33%, #fff 33.33%, #fff 66.66%, var(--gom-green) 66.66%);
}

/* ── Government header ──────────────────────────────────── */
.gov-header {
  position: relative;
  background: #fff;
  color: #000;
  border-bottom: 4px solid var(--gom-orange);
  overflow: hidden;
}

.gov-header::before,
.gov-header::after {
  display: none;
}

.gov-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.25rem;
  background: #fff;
  color: #000;
}

.gov-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.gov-brand-left {
  flex-shrink: 0;
}

.gov-title-divider {
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 72px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gom-saffron) 0%, #fff 50%, var(--gom-green) 100%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.gov-logo-left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.org-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 153, 51, 0.4);
  background: #fff;
  transition: transform var(--transition);
}

.org-logo:hover {
  transform: scale(1.03);
}

/* ── Header: Student GR / PEN search ────────────────────── */
.gr-search-form {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  margin-left: auto;
  min-width: min(100%, calc(520px + 6pt));
  max-width: calc(640px + 6pt);
  padding: calc(0.4rem + 2pt);
  padding-left: calc(1.25rem + 2pt);
  border: 2.5px solid var(--gom-blue);
  border-radius: 12px;
  background: #fff;
  gap: calc(0.45rem + 4pt);
  box-shadow: 0 4px 14px rgba(26, 81, 145, 0.12);
}

.gr-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: calc(40px + 2pt);
  padding: calc(0.5rem + 2pt) calc(0.75rem + 2pt);
  border: 2.5px solid var(--gom-blue);
  border-radius: 10px;
  background: #fffde7;
  color: #111;
  font-family: var(--font-en);
  font-size: calc(1rem + 2pt);
  font-weight: 600;
  line-height: 1.25;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.gr-search-input::placeholder {
  color: #374151;
  font-weight: 600;
  opacity: 1;
}

.gr-search-input:focus {
  border-color: var(--gom-blue-mid);
  background: #fffef0;
  box-shadow: 0 0 0 3px rgba(26, 81, 145, 0.15);
}

.gr-search-input-error {
  border-color: #c62828;
  background: #fff5f5;
}

.gr-search-mic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: calc(44px + 2pt);
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.gr-search-mic svg {
  width: calc(20px + 2pt);
  height: calc(20px + 2pt);
}

.gr-search-mic:hover,
.gr-search-mic.is-listening {
  background: rgba(26, 81, 145, 0.08);
  color: var(--gom-blue);
}

.gr-search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.4rem + 2pt);
  min-height: calc(40px + 2pt);
  padding: calc(0.5rem + 2pt) calc(0.9rem + 2pt);
  border: none;
  border-radius: 10px;
  background: #2d2d2d;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.gr-search-submit svg {
  width: calc(18px + 2pt);
  height: calc(18px + 2pt);
}

.gr-search-submit:hover {
  background: #1a1a1a;
}

.gr-search-submit:active {
  transform: scale(0.98);
}

.gov-title-block {
  text-align: left;
  min-width: 0;
}

.gov-title-block-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.gov-title-line {
  border-bottom: 2px solid #000;
  padding-bottom: 0.25rem;
  margin-bottom: 0.28rem;
  display: inline-block;
  max-width: 100%;
}

.gov-subtitle {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
}

.org-title-mr {
  margin: 0 0 0.28rem;
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  color: #000;
  text-shadow: none;
}

.org-title-en {
  margin: 0.12rem 0 0;
  font-family: var(--font-en);
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
}

.org-title-en-left {
  margin: 0.1rem 0 0;
  text-align: left;
}

.gov-subtitle-en {
  margin: 0.28rem 0 0.12rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
}

/* ── Banner strip ───────────────────────────────────────── */
.gov-banner {
  background: linear-gradient(90deg, var(--gom-blue-dark), var(--gom-blue-light) 40%, var(--gom-orange) 100%);
  height: 2px;
}

.gov-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

/* ── Main navigation menu ───────────────────────────────── */
.main-nav {
  background: linear-gradient(180deg, #083060 0%, var(--gom-blue-dark) 100%);
  border-bottom: 2px solid var(--gom-orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(6, 42, 92, 0.35);
  backdrop-filter: blur(8px);
  min-height: var(--nav-min-height);
  width: 100%;
}

.main-nav-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: var(--nav-min-height);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mr);
  font-weight: 700;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch;
  justify-content: stretch;
}

.nav-menu li {
  flex: 1 1 calc(100% / 7);
  min-width: 0;
  max-width: calc(100% / 7);
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: calc(0.45rem + 3pt) 0.35rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--nav-font-size);
  line-height: 1.2;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}

.nav-link-external .nav-ext-icon {
  font-size: 0.72em;
  opacity: 0.9;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gom-saffron);
  transition: width var(--transition), left var(--transition);
  transform: translateX(-50%);
}

.nav-menu li:last-child .nav-link {
  border-right: none;
}

/* Full-width single-row nav on very wide screens (14 items) */
@media (min-width: 1500px) {
  .nav-menu {
    flex-wrap: nowrap;
  }

  .nav-menu li {
    flex: 1 1 0;
    max-width: none;
  }

  .nav-link {
    padding: calc(0.45rem + 3pt) 0.35rem;
  }
}

@media (min-width: 1100px) and (max-width: 1499px) {
  .nav-menu li {
    flex: 1 1 calc(100% / 7);
    max-width: calc(100% / 7);
  }
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

.nav-link.active {
  background: linear-gradient(180deg, var(--gom-orange) 0%, var(--gom-orange-dark) 100%);
  color: #fff;
}

/* ── News ticker (running marquee) ──────────────────────── */
.news-ticker {
  background: linear-gradient(90deg, var(--gom-blue-dark) 0%, var(--gom-blue) 50%, var(--gom-blue-mid) 100%);
  border-bottom: 3px solid var(--gom-orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.news-ticker-inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
  min-height: 58px;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, var(--gom-blue-dark) 0%, #062a5c 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.08rem;
  white-space: nowrap;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  animation: ticker-label-blink 1.1s ease-in-out infinite;
}

@keyframes ticker-label-blink {
  0%,
  100% {
    background: linear-gradient(135deg, var(--gom-blue-dark) 0%, #062a5c 100%);
    color: #fff;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
  }

  50% {
    background: linear-gradient(135deg, var(--gom-orange) 0%, var(--gom-orange-dark) 100%);
    color: #fff;
    box-shadow: 4px 0 16px rgba(232, 116, 12, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-label {
    animation: none;
  }
}

.ticker-label::before {
  content: '📢';
  font-size: 1.15rem;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 130s linear infinite;
  padding-left: 0;
  will-change: transform;
}

.ticker-item {
  font-size: var(--ticker-font-size);
  font-weight: 600;
  color: #000;
  line-height: 1.4;
}

.ticker-sep {
  color: var(--gom-orange);
  font-size: calc(0.95rem + 2pt);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

/* ── Hero row: personnel | slideshow | portals ─────────── */
.hero-feature-row {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0.65rem 0 0.35rem;
  padding: 0;
  display: grid;
  grid-template-columns: var(--hero-side-width) minmax(0, 1fr) var(--hero-side-width);
  grid-template-rows: 1fr;
  gap: 0;
  align-items: stretch;
}

.hero-side-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-side-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
}

.hero-side-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
}

.hero-side-panel .section-bar {
  padding: 0.55rem 0.75rem;
  min-height: var(--hero-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.personnel-section .section-bar {
  background: linear-gradient(90deg, var(--gom-blue-dark) 0%, var(--gom-blue) 50%, var(--gom-blue-mid) 100%);
}

.personnel-section .section-bar::after {
  background: linear-gradient(90deg, var(--gom-orange), var(--gom-saffron), var(--gom-orange));
}

.hero-side-panel .section-bar-title {
  font-size: calc(0.98rem + 3pt);
  line-height: 1.3;
  width: 100%;
  text-align: center;
}

.personnel-section .section-bar-title,
.portal-links-section .section-bar-title {
  font-size: calc(0.98rem + 3pt);
  text-align: center;
}

.hero-feature-row .hero-slideshow-center {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  max-width: none;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-self: stretch;
}

.hero-feature-row .hero-slideshow-center .slideshow-frame {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: var(--hero-slideshow-height);
  border-radius: 0;
}

.hero-feature-row .hero-slideshow-center .slideshow-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: var(--hero-slideshow-height);
  max-height: none;
  aspect-ratio: unset;
}

.hero-feature-row .hero-slideshow-center .slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-feature-row .hero-slideshow-center .slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-feature-row .hero-slideshow-center .slideshow-slide img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Hero slideshow (standalone pages only) ─────────────── */
.hero-slideshow:not(.hero-slideshow-center) {
  max-width: 1200px;
  margin: 0.85rem auto 0.75rem;
  padding: 0 1rem;
}

.slideshow-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 57, 119, 0.08);
  background: #000;
}

.slideshow-slides {
  position: relative;
  aspect-ratio: 16 / 5.5;
  min-height: 220px;
  max-height: 400px;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  overflow: hidden;
}

.slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-slide.is-active img {
  animation: slide-kenburns 8s ease-out forwards;
}

@keyframes slide-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.slideshow-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.25rem 1.5rem 1rem;
  background: linear-gradient(transparent, rgba(6, 42, 92, 0.75) 30%, rgba(6, 42, 92, 0.95));
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gom-blue);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), background var(--transition);
  opacity: 0.9;
}

.slideshow-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  opacity: 1;
}

.slideshow-prev {
  left: 0.65rem;
}

.slideshow-next {
  right: 0.65rem;
}

.slideshow-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.slideshow-dot.is-active {
  background: var(--gom-orange);
  border-color: var(--gom-orange);
}

/* ── Page layout ────────────────────────────────────────── */
.page {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 0.75rem 0 0.5rem;
}

.site-main {
  flex: 1;
}

.site-main > section {
  margin-bottom: 0.65rem;
}

.site-main > section:last-child {
  margin-bottom: 0.35rem;
}

/* ── Welcome section ────────────────────────────────────── */
.welcome-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(26, 81, 145, 0.12), rgba(232, 116, 12, 0.1));
  border: 1px solid rgba(26, 81, 145, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gom-blue);
  letter-spacing: 0.03em;
}

.welcome-body {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem !important;
}

.welcome-text p {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
}

.welcome-reg {
  font-size: 0.88rem !important;
  font-weight: 700;
  color: var(--gom-blue) !important;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #eef4fb, #f8fafc);
  border-left: 4px solid var(--gom-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

.welcome-quote {
  position: relative;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(145deg, var(--gom-blue-dark) 0%, var(--gom-blue) 50%, var(--gom-blue-mid) 100%);
  border-radius: var(--radius);
  color: #fff;
  border-bottom: 4px solid var(--gom-orange);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.welcome-quote::before {
  content: '"';
  position: absolute;
  top: -0.25rem;
  left: 0.75rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.15;
  color: #fff;
}

.quote-mr {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.quote-en {
  margin: 0;
  font-family: var(--font-en);
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ── Highlights strip ───────────────────────────────────── */
.highlights-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.highlight-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(197, 208, 222, 0.6);
  border-radius: var(--radius);
  padding: 1.35rem 1rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--gom-orange));
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #f8fafc, #eef4fb);
  border-radius: 12px;
  border: 1px solid #dce4ee;
  box-shadow: inset 0 1px 0 #fff;
}

.highlight-value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gom-blue);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, var(--gom-blue), var(--gom-blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
}

/* ── Focus / mission cards ──────────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.focus-card {
  position: relative;
  padding: 1.35rem 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(197, 208, 222, 0.5);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--focus-accent, var(--gom-blue));
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26, 81, 145, 0.25);
}

.focus-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26, 81, 145, 0.08), rgba(232, 116, 12, 0.06));
  border: 2px solid rgba(26, 81, 145, 0.12);
}

.focus-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.focus-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gom-blue);
  line-height: 1.35;
}

.focus-text {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}

/* ── Schools preview ────────────────────────────────────── */
.schools-preview-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem !important;
  background: linear-gradient(135deg, #fafbfd 0%, #fff 50%, #f5f8fc 100%);
}

.schools-preview-content p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;
}

.school-features {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.school-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gom-blue-dark);
  border-bottom: 1px dashed #dce4ee;
}

.school-features li:last-child {
  border-bottom: none;
}

.school-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gom-green);
  font-weight: 800;
}

.school-intro-note {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  font-style: italic;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.7rem 1.35rem;
  background: linear-gradient(135deg, var(--gom-orange) 0%, var(--gom-orange-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px var(--gom-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gom-orange-glow);
}

.schools-preview-visual {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.school-icon-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid #dce4ee;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gom-blue);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.school-icon-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.school-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #eef4fb, #e8f0fb);
  border-radius: 10px;
}

/* ── Quick links ────────────────────────────────────────── */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  min-height: 58px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1.5px solid #dce4ee;
  border-radius: var(--radius-sm);
  color: var(--gom-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-link-card::after {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition);
  color: var(--gom-orange);
  font-weight: 800;
}

.quick-link-card:hover {
  background: linear-gradient(135deg, var(--gom-blue) 0%, var(--gom-blue-mid) 100%);
  border-color: var(--gom-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-link-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Section panels (GoM orange title bars) ─────────────── */
.gov-panel {
  background: var(--surface);
  border: 1px solid rgba(197, 208, 222, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.gov-panel:hover {
  box-shadow: var(--shadow);
}

.section-bar {
  background: linear-gradient(90deg, var(--gom-orange) 0%, var(--gom-orange-dark) 100%);
  padding: 0.55rem 1rem;
  border-bottom: none;
  position: relative;
}

.section-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gom-blue), var(--gom-blue-mid), var(--gom-blue));
}

.section-bar-blue {
  background: linear-gradient(90deg, var(--gom-blue-dark) 0%, var(--gom-blue) 50%, var(--gom-blue-mid) 100%);
}

.section-bar-blue::after {
  background: linear-gradient(90deg, var(--gom-orange), var(--gom-saffron), var(--gom-orange));
}

.section-bar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.panel-body {
  padding: 0.85rem 1rem 0.9rem;
}

/* ── Announcements ─────────────────────────────────────── */
.announcement-panel {
  margin-bottom: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.announcement-body {
  padding: 0.85rem 1.1rem 1rem;
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}

.announcement-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.announcement-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.15rem;
  font-size: 0.98rem;
  color: #2d3748;
  border-bottom: 1px dashed #d4dce6;
}

.announcement-list li:last-child {
  border-bottom: none;
}

.announcement-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gom-orange);
  font-weight: 800;
}

/* ── Compact portal login cards ─────────────────────────── */
.portal-links-section .section-bar {
  padding: 0.5rem 1rem;
  justify-content: center;
  text-align: center;
}

.portal-links-section .section-bar-title {
  font-size: calc(0.98rem + 3pt);
  text-align: center;
  width: 100%;
}

.portal-links-body {
  padding: 0.65rem 0.9rem 0.7rem !important;
}

.portal-links-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.5rem 0.45rem 0.55rem !important;
}

.portal-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  width: 100%;
  align-items: stretch;
}

.portal-cards-stack .portal-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 0.7rem 0.45rem;
  gap: 0.45rem;
  text-align: center;
  width: 100%;
}

.portal-cards-stack .portal-mini-label {
  font-size: calc(0.78rem + 3pt);
  text-align: center;
  line-height: 1.3;
  font-weight: 800;
}

.portal-cards-stack .portal-mini-card-bio .portal-mini-label {
  font-size: calc(0.78rem + 3pt);
}

.portal-cards-stack .portal-mini-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.portal-cards-stack .portal-mini-icon svg {
  width: 22px;
  height: 22px;
}

/* legacy portal grid (other pages if used) */
.portal-cards-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.portal-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  min-height: 88px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid #dce4ee;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(10, 57, 119, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.portal-mini-card:hover {
  transform: translateY(-2px);
  border-color: var(--gom-blue-mid);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.portal-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.portal-mini-icon svg {
  width: 17px;
  height: 17px;
}

.portal-mini-icon.sanstha {
  background: #e8f0fb;
  color: var(--gom-blue);
}

.portal-mini-icon.school {
  background: #e8f5e9;
  color: #2e7d32;
}

.portal-mini-icon.employee {
  background: #fff3e0;
  color: var(--gom-orange-dark);
}

.portal-mini-icon.biometric {
  background: #ede7f6;
  color: #5e35b1;
}

.portal-mini-label {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--gom-blue-dark);
}

.portal-mini-card-bio {
  background: linear-gradient(180deg, #faf8ff, #f5f0ff);
  border-color: #d4c4f0;
}

.portal-mini-card-bio .portal-mini-label {
  font-size: 0.68rem;
}

/* ── Personnel (small round photos) ─────────────────────── */
.personnel-section {
  margin-bottom: 0;
}

.personnel-side-body {
  flex: 1;
  padding: 0.5rem 0.45rem 0.55rem !important;
  overflow-y: auto;
}

.personnel-grid-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
}

.personnel-grid-side .person-card {
  width: 100%;
}

.personnel-grid-side .person-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.4rem 0.6rem;
}

.personnel-grid-side .person-photo {
  width: 72px;
  height: 72px;
  margin-bottom: 0.4rem;
  border-width: 3px;
  outline-width: 2px;
}

.personnel-grid-side .person-role {
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.personnel-grid-side .person-name {
  font-size: 0.8rem;
  line-height: 1.25;
}

.personnel-section .panel-body {
  padding: 0.75rem 1rem 0.65rem;
}

.personnel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

.person-card {
  text-align: center;
  width: 200px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.person-card-inner {
  padding: 0.9rem 0.85rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(197, 208, 222, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.person-card:hover .person-card-inner {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.person-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 4px solid #fff;
  outline: 3px solid var(--gom-orange);
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(10, 57, 119, 0.2);
  transition: outline-color var(--transition);
}

.person-card:hover .person-photo {
  outline-color: var(--gom-blue);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-placeholder {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.25rem;
}

.person-role {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--gom-blue);
}

.person-name {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gom-blue-dark);
  background: transparent;
}

/* ── Footer visitor count (inline) ──────────────────────── */
.footer-visitor {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 0.78rem;
}

.footer-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.footer-stat-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-stat strong {
  font-family: var(--font-mr);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gom-saffron);
}

.footer-stat-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
}

/* ── Inner pages ─────────────────────────────────────────── */
.page-inner {
  width: min(900px, 100% - 2rem);
}

.inner-hero {
  background: linear-gradient(135deg, var(--gom-blue) 0%, var(--gom-blue-mid) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gom-orange);
}

.inner-hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: #fff;
  text-decoration: underline;
}

.org-sub {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  opacity: 0.88;
}

.content-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.content-card p {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  color: #334155;
}

.content-card .note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.school-list {
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.school-list li {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  color: var(--gom-blue);
}

.school-list li::before {
  content: '🏫 ';
}

.contact-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border);
}

.contact-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--gom-blue);
}

.notice-list {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
}

.notice-list li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
  color: var(--text);
}

/* ── Techno School / Digital School page ───────────────── */
.techno-hero .techno-hero-tag {
  margin: 0 0 0.35rem;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gom-saffron);
}

.techno-banner {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 57, 119, 0.12);
}

.techno-banner img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.techno-banner figcaption {
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, var(--gom-blue-dark), var(--gom-blue));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

.techno-content {
  padding: 1.65rem 1.75rem 1.75rem;
}

.techno-section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--gom-blue);
  border-bottom: 3px solid var(--gom-orange);
  padding-bottom: 0.45rem;
  display: inline-block;
}

.techno-intro {
  margin-bottom: 2rem;
}

.techno-benefits {
  margin-bottom: 2rem;
}

.techno-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.techno-benefit-card {
  background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
  border: 1px solid #dce4ee;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.techno-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.techno-benefit-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.techno-benefit-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--gom-blue-dark);
  font-family: var(--font-en);
}

.techno-benefit-mr {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.techno-benefit-en {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  font-family: var(--font-en);
  font-style: italic;
}

.techno-gallery {
  margin-bottom: 2rem;
}

.techno-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.techno-gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #dce4ee;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.techno-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.techno-gallery-item:hover img {
  transform: scale(1.04);
}

.techno-gallery-item figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gom-blue);
  background: #f8fafc;
  text-align: center;
  font-family: var(--font-en);
}

.techno-features {
  margin-bottom: 2rem;
}

.techno-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.techno-feature-list li {
  padding: 0.75rem 0.9rem;
  background: #f0f6ff;
  border: 1px solid #c5d8f0;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.45;
}

.techno-cta {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f6ff 0%, #fff 50%, #fff9ed 100%);
  border: 1px solid #dce4ee;
}

.techno-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.techno-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gom-blue) 0%, var(--gom-blue-mid) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.techno-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fff;
}

.techno-cta-btn-outline {
  background: #fff;
  color: var(--gom-blue);
  border: 2px solid var(--gom-blue);
}

.techno-cta-btn-outline:hover {
  background: var(--gom-blue);
  color: #fff;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  margin-top: 0.35rem;
  padding: 1rem 1.25rem 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, var(--gom-blue-dark) 0%, #041e3d 100%);
  border-top: 4px solid var(--gom-orange);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 24px rgba(6, 42, 92, 0.15);
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--gom-saffron);
  font-weight: 600;
}

.footer-dev {
  font-family: var(--font-en);
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-dev strong {
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .gov-brand-block {
    gap: 0.75rem;
  }

  .gr-search-form {
    min-width: 0;
    max-width: calc(440px + 6pt);
  }

  .gov-title-divider {
    min-height: 60px;
  }

  .org-logo {
    width: 72px;
    height: 72px;
  }

  .welcome-body,
  .schools-preview-body {
    grid-template-columns: 1fr;
  }

  .hero-feature-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0 0.65rem;
    min-height: auto;
  }

  .hero-side-left,
  .hero-side-right {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    justify-self: stretch;
    margin-left: 0;
    margin-right: 0;
    z-index: auto;
  }

  .hero-feature-row .hero-slideshow-center {
    grid-column: 1;
    grid-row: auto;
    padding: 0;
    order: 1;
  }

  .hero-side-left {
    order: 2;
  }

  .hero-side-right {
    order: 3;
  }

  .hero-feature-row .hero-slideshow-center .slideshow-frame,
  .hero-feature-row .hero-slideshow-center .slideshow-slides {
    min-height: 280px;
    height: 280px;
    aspect-ratio: unset;
  }

  .hero-feature-row .hero-slideshow-center .slideshow-slide img {
    min-height: 280px;
  }

  .personnel-grid-side {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .personnel-grid-side .person-card {
    width: 100%;
  }

  .highlights-strip,
  .focus-grid,
  .quick-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .techno-benefits-grid,
  .techno-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .techno-feature-list {
    grid-template-columns: 1fr;
  }

  .portal-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gov-topbar-inner {
    flex-wrap: wrap;
    padding: 0.45rem 0.75rem;
  }

  .gov-topbar-left {
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  .gov-topbar-label {
    display: none;
  }

  .gov-search {
    flex: 1 1 100%;
    order: 2;
    margin-left: 0;
  }

  .gov-search-input {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    margin: 0.5rem 0;
  }

  .main-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    text-align: left;
    padding: 1.05rem 1rem;
    font-size: calc(1rem + 4pt);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ticker-label {
    font-size: 0.95rem;
    padding: 0.55rem 0.85rem;
  }

  .ticker-item {
    font-size: var(--ticker-font-size);
  }

  .highlights-strip,
  .focus-grid,
  .quick-links-grid,
  .portal-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portal-cards-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-cards-stack .portal-mini-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100%, 100% - 1.25rem);
    padding-top: 1rem;
  }

  .gov-header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .gov-brand-block {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .gov-title-block-left {
    flex: 1 1 200px;
  }

  .gov-title-divider {
    width: 80%;
    min-height: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gom-saffron) 0%, #fff 50%, var(--gom-green) 100%);
  }

  .gov-title-block {
    text-align: left;
  }

  .gr-search-form {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-left: calc(0.35rem + 3pt);
    max-width: none;
    width: 100%;
  }

  .gr-search-submit span {
    display: none;
  }

  .gr-search-submit {
    padding: calc(0.55rem + 3pt) calc(0.7rem + 3pt);
  }

  .personnel-grid {
    gap: 1rem 1.25rem;
  }

  .personnel-grid-side .person-card {
    width: 120px;
  }

  .personnel-grid-side .person-photo {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 400px) {
  .panel-body {
    padding: 0.85rem;
  }

  .portal-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .portal-mini-card {
    min-height: 78px;
    padding: 0.6rem 0.35rem;
  }

  .portal-cards-stack .portal-mini-label,
  .portal-cards-stack .portal-mini-card-bio .portal-mini-label {
    font-size: calc(0.78rem + 3pt);
  }

  .portal-mini-label {
    font-size: 0.65rem;
  }

  .techno-benefits-grid,
  .techno-gallery-grid {
    grid-template-columns: 1fr;
  }

  .techno-gallery-item img {
    height: 200px;
  }
}
