/* ============================================================
   Hon. Adv. O. J. Janeesh — Official Portal
   Kerala Government style: Deep Blue, White, Gold, Soft Green
   ============================================================ */

:root {
  --blue-900: #062544;
  --blue-800: #0b3d6e;
  --blue-700: #0e4f8c;
  --blue-600: #1565a8;
  --blue-100: #e8f1fa;
  --blue-50: #f3f8fc;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --gold-100: #faf3dc;
  --green-700: #1b5e40;
  --green-100: #e6f4ee;
  --grey-900: #1a1d21;
  --grey-700: #3d4450;
  --grey-500: #6b7280;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f3f4f6;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #15803d;
  --warning: #b45309;
  --info: #0369a1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(6, 37, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(6, 37, 68, 0.12);
  --font: "Inter", "Noto Sans Malayalam", system-ui, sans-serif;
  --font-display: "Poppins", "Noto Sans Malayalam", system-ui, sans-serif;
  --header-h: 76px;
  --topbar-h: 36px;
  --container: 1180px;
  --glass: rgba(255, 255, 255, 0.72);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--blue-50);
  line-height: 1.6;
  min-height: 100vh;
}
.lang-ml body, body.lang-ml { font-family: "Noto Sans Malayalam", "Inter", sans-serif; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-900); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--blue-900);
}
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.muted { color: var(--grey-500); }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold-400); color: var(--blue-900);
  padding: 0.5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Topbar */
.topbar {
  background: var(--blue-900);
  color: #cfe0f2;
  font-size: 0.8rem;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 0.35rem 0; }
.topbar .sep { opacity: 0.4; margin: 0 0.5rem; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-link { color: #cfe0f2; }
.topbar-link:hover { color: var(--gold-400); }
.lang-switch { display: inline-flex; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  color: #cfe0f2; padding: 0.2rem 0.65rem; font-weight: 600; font-size: 0.75rem;
}
.lang-switch a.active { background: var(--gold-500); color: var(--blue-900); }

/* Header */
.site-header {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 61, 110, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  flex-wrap: nowrap;
}
/* Brand must never shrink — full Malayalam/English name always visible */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  flex: 0 0 auto;
  max-width: none;
  min-width: auto;
}
.brand:hover { color: inherit; }
.brand-emblem {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-900));
  color: var(--gold-400); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow); flex-shrink: 0;
  border: 2px solid var(--gold-400);
}
.brand-text {
  flex: 0 0 auto;
  max-width: none;
}
.brand-text strong {
  display: block;
  font-size: 1rem;
  color: var(--blue-900);
  line-height: 1.35;
  font-weight: 700;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: none !important;
}
.brand-text small {
  color: var(--grey-500);
  font-size: 0.68rem;
  line-height: 1.35;
  margin-top: 0.12rem;
  max-width: 22rem;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.lang-ml .brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}
body.lang-ml .brand-text small {
  font-size: 0.62rem;
  max-width: 20rem;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.05rem;
  min-width: 0;
}
.main-nav > a {
  color: var(--grey-700);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav > a.btn {
  margin-left: 0.15rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
}
.main-nav > a:hover, .main-nav > a.active {
  color: var(--blue-800); background: var(--blue-100);
}
body.lang-ml .main-nav > a {
  font-size: 0.74rem;
  padding: 0.35rem 0.38rem;
}
body.lang-ml .main-nav > a.btn {
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--blue-800); border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.15s ease;
  font-family: inherit; text-decoration: none; line-height: 1.2;
}
.btn-primary { background: var(--blue-800); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); color: var(--white); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--blue-900); }
.btn-gold:hover { filter: brightness(1.05); color: var(--blue-900); }
.btn-outline {
  background: transparent; border-color: var(--blue-700); color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-100); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, #1a6a4a 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,175,55,0.18), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.06), transparent 35%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-400);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/*
 * Photo card: outer frame holds gold border.
 * Inner frame clips image + nameplate so nothing can spill outside.
 */
.hero-photo-wrap {
  justify-self: end;
  width: min(100%, 320px);
  padding: 0;
  border: 4px solid rgba(212, 175, 55, 0.85);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  background: rgba(212, 175, 55, 0.35);
  box-sizing: border-box;
}
.hero-photo-inner {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 13px;
  overflow: hidden !important;
  background: var(--blue-900);
  isolation: isolate;
  line-height: 0;
}
.hero-photo {
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  vertical-align: top;
}
/* Nameplate: full width of photo, clipped by .hero-photo-inner */
.hero-photo-caption {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  z-index: 3;
  padding: 2rem 0.85rem 0.85rem !important;
  border-radius: 0 !important;
  text-align: center;
  line-height: 1.35;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(6, 37, 68, 0) 0%,
    rgba(6, 37, 68, 0.75) 40%,
    rgba(6, 37, 68, 0.95) 100%
  ) !important;
  backdrop-filter: none;
}
.hero-photo-caption strong {
  display: block;
  color: var(--gold-400);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.hero-photo-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}
body.lang-ml .hero-photo-caption strong {
  font-size: 0.9rem;
}
body.lang-ml .hero-photo-caption span {
  font-size: 0.78rem;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.65rem; }
.section-head p { margin: 0.35rem 0 0; color: var(--grey-500); }
.page-hero {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-900));
  color: #fff; padding: 2.25rem 0;
}
.page-hero h1 { color: #fff; margin: 0 0 0.35rem; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; max-width: 40rem; }

/* Cards / grid */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 61, 110, 0.06);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.25rem 1.35rem; }
.card-img {
  aspect-ratio: 16/10; background: var(--blue-100);
  object-fit: cover; width: 100%;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { color: var(--grey-700); font-size: 0.92rem; margin-bottom: 0.75rem; }
.card-meta { font-size: 0.8rem; color: var(--grey-500); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold-500);
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--blue-800);
  line-height: 1.1;
}
.stat-card .label { color: var(--grey-500); font-size: 0.88rem; margin-top: 0.35rem; }

/* Dept cards */
.dept-card {
  text-align: center; padding: 1.5rem 1rem;
}
.dept-icon {
  width: 56px; height: 56px; margin: 0 auto 0.85rem;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blue-100), var(--gold-100));
  display: grid; place-items: center;
  color: var(--blue-800); font-weight: 700; font-size: 1.1rem;
  border: 1px solid rgba(11,61,110,0.08);
}

/* Progress */
.progress {
  height: 8px; background: var(--grey-200); border-radius: 999px; overflow: hidden;
}
.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue-700), var(--green-700));
  border-radius: 999px;
}

/* Badges */
.badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.3;
}
.badge-primary { background: var(--blue-100); color: var(--blue-800); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-warning { background: #fef3c7; color: var(--warning); }
.badge-danger { background: #fee2e2; color: var(--danger); }
.badge-info { background: #e0f2fe; color: var(--info); }
.badge-muted { background: var(--grey-100); color: var(--grey-700); }

/* Forms */
.form-card { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.88rem;
  margin-bottom: 0.35rem; color: var(--grey-700);
}
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--grey-300); border-radius: var(--radius-sm);
  font: inherit; background: var(--white); color: var(--grey-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none; border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(21, 101, 168, 0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--grey-500); margin-top: 0.25rem; }

/* Alerts */
.flash-wrap { padding-top: 1rem; }
.alert {
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 0.75rem; font-size: 0.92rem;
  border: 1px solid transparent;
}
.alert-success { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.alert-error { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.alert-info { background: #e0f2fe; color: #0c4a6e; border-color: #bae6fd; }
.alert-warning { background: #fef3c7; color: #78350f; border-color: #fde68a; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 0.25rem; bottom: 0.25rem;
  width: 2px; background: var(--blue-100);
}
.timeline-item { position: relative; padding: 0 0 1.5rem 1.25rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.15rem; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-500); border: 2px solid var(--blue-800);
}
.timeline-year {
  font-weight: 700; color: var(--blue-800); font-size: 0.9rem;
}

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
table.data th, table.data td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--grey-200);
}
table.data th {
  background: var(--blue-50); color: var(--blue-900); font-weight: 600; white-space: nowrap;
}
table.data tr:hover td { background: #fafcfe; }

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: #c5d5e8;
  margin-top: 3rem;
  padding-top: 2.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h3, .footer-col h4 { color: #fff; font-size: 1rem; }
.footer-col p, .footer-col li { font-size: 0.88rem; }
.footer-col a { color: #c5d5e8; }
.footer-col a:hover { color: var(--gold-400); }
.footer-col li { margin-bottom: 0.4rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.social-links a {
  background: rgba(255,255,255,0.08); padding: 0.3rem 0.65rem;
  border-radius: 6px; font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  font-size: 0.82rem;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom a { color: #9eb6d1; }

/* Quick services strip */
.services-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: -2rem; position: relative; z-index: 2;
}
.service-tile {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11,61,110,0.06);
  text-align: center; color: inherit;
}
.service-tile:hover { color: inherit; border-color: var(--gold-400); }
.service-tile strong { display: block; color: var(--blue-800); margin-bottom: 0.25rem; }
.service-tile span { font-size: 0.85rem; color: var(--grey-500); }

/* Ticket success */
.ticket-box {
  background: linear-gradient(135deg, var(--green-100), var(--blue-100));
  border: 1px solid #a7d8c0;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.ticket-box .ticket-no {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: 0.04em;
  margin: 0.5rem 0;
}

/* About layout */
.about-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start;
}
.about-side .card { position: sticky; top: calc(var(--header-h) + 1rem); }
.about-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
}

/* Pagination */
.pagination {
  display: flex; gap: 0.4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 0.4rem 0.75rem; border-radius: 8px; background: var(--white);
  border: 1px solid var(--grey-200); color: var(--blue-800); font-size: 0.88rem;
}
.pagination .current { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }

/* Admin shell */
.admin-body { background: #eef2f7; }
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--blue-900); color: #c5d5e8; padding: 1.25rem 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand {
  padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}
.admin-brand strong { display: block; color: #fff; font-size: 0.95rem; }
.admin-brand small { color: #8aa4c2; font-size: 0.75rem; }
.admin-nav a {
  display: block; padding: 0.65rem 1.25rem; color: #c5d5e8; font-size: 0.9rem;
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.06); color: #fff; border-left-color: var(--gold-500);
}
.admin-main { padding: 1.5rem; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.admin-top h1 { margin: 0; font-size: 1.4rem; }
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue-900), var(--blue-700));
  padding: 1.5rem;
}
.login-card {
  width: min(100%, 420px); background: var(--white);
  border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-lg);
}
.login-card h1 { text-align: center; font-size: 1.35rem; }
.login-card .sub { text-align: center; color: var(--grey-500); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* Empty */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--grey-500);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Filters bar */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem;
  background: var(--white); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.filters .form-control { width: auto; min-width: 140px; }

/* Responsive — collapse nav early so brand name always has room */
@media (max-width: 1280px) {
  .nav-toggle { display: flex; }
  .site-header .container { position: relative; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--grey-200);
    z-index: 120;
  }
  .main-nav.open { display: flex; }
  .main-nav > a {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    white-space: normal;
  }
  body.lang-ml .main-nav > a {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  /* Keep full name visible; only title may be tight */
  .brand { flex: 0 0 auto; max-width: none; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { justify-self: center; }
  .hero .lead { margin-inline: auto; }
  .stats-grid, .services-strip, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .stats-grid, .services-strip { grid-template-columns: 1fr 1fr; }
  .topbar-left { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 0.95rem; }
  body.lang-ml .brand-text strong { font-size: 0.88rem; }
  .hero-photo-caption { padding: 1.5rem 0.85rem 0.85rem; }
  .hero-photo-caption strong { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .stats-grid, .services-strip, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 2rem 0; }
  .hero-photo-wrap { width: min(100%, 280px); }
}
