/* =========================================================================
   Kasheli Village — Design System
   Professional, content-first, Marathi-first.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Neutral surfaces */
  --bg:           #f7f3ec;
  --bg-soft:      #efe9dd;
  --surface:      #ffffff;
  --surface-2:    #fbf8f2;
  --line:         #e6dfd0;
  --line-strong:  #d6cdb8;

  /* Ink */
  --ink:          #1a1f29;
  --ink-soft:     #3b4350;
  --muted:        #6b7280;

  /* Brand — Konkan earth & sun */
  --brand:        #7a2e14;
  --brand-dark:   #5a1f0c;
  --brand-soft:   #f4e3d6;
  --accent:       #c98a2b;
  --accent-soft:  #f8e7c2;
  --teal:         #1c5560;
  --teal-soft:    #d8e9ec;

  /* Status */
  --success:      #1e6b3a;
  --success-soft: #e3f3e7;
  --danger:       #a83227;
  --danger-soft:  #f7e1dd;

  /* Effects */
  --shadow-sm:    0 1px 2px rgba(20, 14, 8, .05);
  --shadow:       0 2px 6px rgba(20, 14, 8, .06), 0 12px 28px rgba(20, 14, 8, .07);
  --shadow-lg:    0 8px 18px rgba(20, 14, 8, .08), 0 24px 48px rgba(20, 14, 8, .10);

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  --maxw:         1200px;
  --maxw-prose:   780px;

  --transition:   180ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Keep browser auto-translators (Chrome, Edge, Safari) from rewriting the
   carefully-curated Marathi/English content into the user's UI language. */
html, body { -webkit-translate: no; }
body.lang-mr {
  font-family: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif;
  line-height: 1.75;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 19px; }
body.lang-mr h1, body.lang-mr h2 { letter-spacing: 0; }

p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section   { padding: 64px 0; }
.section.tight   { padding: 40px 0; }
.section.narrow  { max-width: var(--maxw-prose); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.center { text-align: center; }
.muted  { color: var(--muted); }
.small  { font-size: 13.5px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Utility topbar ---------- */
.topbar {
  background: var(--ink);
  color: #f1ece1;
  font-size: 13px;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-meta { display: flex; gap: 18px; flex-wrap: wrap; opacity: .88; }
.topbar-meta span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.topbar-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.topbar-actions a {
  color: #f1ece1; opacity: .9;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.topbar-actions a:hover { opacity: 1; color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  display: block;
  transition: transform var(--transition);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 26px; font-weight: 700; color: var(--brand-dark); letter-spacing: .2px; }
.brand-tag  { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.search {
  display: flex;
  flex: 1;
  max-width: 440px;
  margin-left: auto;
}
.search input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font: inherit;
  background: var(--surface-2);
  color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; background: #fff; border-color: var(--accent); }
.search button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 11px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: background var(--transition);
}
.search button:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 7px; }

/* ---------- Primary nav ---------- */
.primary-nav {
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.primary-nav > ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 14px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.primary-nav > ul > li { position: relative; }
.primary-nav a,
.primary-nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background var(--transition);
}
.primary-nav .has-menu > button::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
}
.primary-nav a:hover,
.primary-nav button:hover,
.primary-nav .has-menu:hover > button { background: var(--brand-dark); text-decoration: none; }

.primary-nav .menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #fff;
  color: var(--ink);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 60;
}
.primary-nav .has-menu:hover .menu,
.primary-nav .has-menu:focus-within .menu,
.primary-nav .has-menu.open .menu { display: block; }
.primary-nav .menu a {
  color: var(--ink);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 400;
  border-left: 3px solid transparent;
}
.primary-nav .menu a:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-left-color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(122,46,20,.78) 0%, rgba(28,85,96,.72) 100%),
    url('/images/beach.jpg') center / cover no-repeat;
  color: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at bottom, rgba(0,0,0,.35), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 88px;
  text-align: center;
}
.hero .eyebrow {
  color: var(--accent-soft);
  background: rgba(255,255,255,.08);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  margin: 18px 0 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: rgba(255,255,255,.93);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Quick stats ---------- */
.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.stat { padding: 12px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--brand); display: block; letter-spacing: -.02em; }
.stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .lead { color: var(--muted); margin-top: 6px; max-width: 560px; font-size: 15px; }
.link-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.link-more::after { content: " →"; transition: transform var(--transition); display: inline-block; }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--bg-soft); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.small  { padding: 7px 14px; font-size: 13.5px; }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.danger:hover { background: #832519; border-color: #832519; }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  border-color: var(--line-strong);
}
.card:hover::before { transform: scaleX(1); }
.card-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card-title { font-weight: 600; font-size: 18px; color: var(--brand-dark); }
.card-desc  { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Two-column feature row ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* ---------- News list ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.news-list li:hover { background: var(--surface-2); }
.news-list a {
  display: flex;
  gap: 20px;
  padding: 16px 6px;
  color: var(--ink);
  align-items: baseline;
}
.news-list a:hover { color: var(--brand); text-decoration: none; }
.news-date {
  color: var(--muted);
  min-width: 120px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.news-title { font-weight: 500; font-size: 16px; }
.news-list.big a { padding: 20px 6px; font-size: 17px; }
.news-list.big .news-title { font-size: 17.5px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-grid.large { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-grid figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-grid figure:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 500ms ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* ---------- Article / content ---------- */
.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  max-width: var(--maxw-prose);
  margin: 0 auto;
}
.content h1 { margin-top: 0; color: var(--brand-dark); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.content .body { font-size: 17px; color: var(--ink-soft); }
.content .body p { margin: 0 0 16px; }
.content .body h2 { font-size: 22px; color: var(--ink); margin-top: 28px; }
.content .body h3 { font-size: 18px; color: var(--ink); margin-top: 22px; }
.content .body ul, .content .body ol { padding-left: 22px; margin: 0 0 16px; }
.content .body li { margin-bottom: 6px; }
.content .body a { font-weight: 500; }
.content .body blockquote {
  margin: 18px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-style: italic;
}
.admin-edit-link { margin-top: 28px; font-size: 14px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--maxw-prose);
  margin: 0 auto 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; opacity: .55; }

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  background: var(--surface);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.form input, .form textarea, .form select {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { font-family: inherit; resize: vertical; min-height: 140px; }
.form .row { display: flex; gap: 12px; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 14px 0;
  font-size: 14.5px;
  border-left: 4px solid;
}
.alert.success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.alert.error   { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger); }

/* ---------- Admin ---------- */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 12px;
}
.admin-head h1 { margin: 0; }
.admin-section {
  margin: 32px 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.admin-section h2 {
  margin-top: 0;
  color: var(--brand-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th, .admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.admin-table tr:hover { background: var(--surface-2); }
.inline { display: inline-block; margin: 0 2px; }
code {
  font-family: 'SF Mono', 'Consolas', 'Roboto Mono', monospace;
  font-size: 13px;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-dark);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(28,85,96,.92) 0%, rgba(122,46,20,.90) 100%),
    url('/images/sheti.jpg') center / cover no-repeat;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 540px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1b120b;
  color: #e9dfcc;
  margin-top: 72px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  gap: 32px;
  padding: 56px 24px 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-grid h4 {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}
.footer-grid a { color: #e9dfcc; opacity: .85; }
.footer-grid a:hover { color: var(--accent); opacity: 1; text-decoration: none; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; font-size: 14px; }
.footer-brand-block { max-width: 320px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.footer-logo { border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.footer-brand { font-size: 24px; font-weight: 700; color: var(--accent); }
.footer-tag { font-size: 13.5px; opacity: .8; margin-bottom: 14px; }
.footer-address {
  font-size: 13.5px;
  opacity: .8;
  line-height: 1.7;
  font-style: normal;
}
.footer-bottom {
  text-align: center;
  padding: 18px 24px;
  font-size: 13px;
  border-top: 1px solid #3b2a1d;
  opacity: .75;
}

/* ---------- Responsive ---------- */
/* Tablet / small-laptop */
@media (max-width: 900px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .brand-bar { flex-wrap: wrap; gap: 14px; padding: 12px 18px; }
  .search { order: 3; max-width: 100%; width: 100%; }
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; min-width: 44px; }
  .primary-nav > ul { display: none; flex-direction: column; padding: 6px 0; max-height: calc(100vh - 140px); overflow-y: auto; }
  .primary-nav.open > ul { display: flex; }
  .primary-nav > ul > li { width: 100%; }
  .primary-nav .menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: rgba(0,0,0,.18);
    margin-left: 14px;
    min-width: 0;
  }
  .primary-nav .menu a { color: #fff; }
  .primary-nav .menu a:hover { background: rgba(0,0,0,.25); color: #fff; border-left-color: transparent; }
  .primary-nav .has-menu > button { width: 100%; justify-content: space-between; }
  .primary-nav .has-menu > button::after { margin-left: auto; }
  .primary-nav a, .primary-nav button { padding: 13px 18px; min-height: 44px; font-size: 15px; }
  .content { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 44px 20px 28px; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .stat:last-child { border-bottom: 0; }
  .news-list a { flex-direction: column; gap: 4px; }
  .news-date { min-width: 0; }
  .cta-band { padding: 32px 24px; flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Phones */
@media (max-width: 560px) {
  body { font-size: 15.5px; line-height: 1.6; -webkit-tap-highlight-color: rgba(122,46,20,.12); }
  body.lang-mr { line-height: 1.7; }
  .container { padding: 0 16px; }
  .section { padding: 32px 0; }
  .section.tight { padding: 24px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 32px 18px 20px; }
  .footer-grid h4 { margin-bottom: 10px; }
  .footer-grid li { padding: 6px 0; }
  .site-footer { margin-top: 48px; }

  /* Hero — tighter rhythm, no shadowy gap */
  .hero-inner { padding: 48px 18px 44px; }
  .hero h1 { margin: 14px 0 14px; font-size: clamp(26px, 7vw, 36px); }
  .hero-intro { font-size: 15.5px; margin-bottom: 24px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }

  /* Topbar collapses to just language + login */
  .topbar { font-size: 12.5px; }
  .topbar-meta { display: none; }
  .topbar-inner { padding: 7px 14px; gap: 10px; }
  .topbar-actions { margin-left: 0; gap: 14px; flex-wrap: wrap; width: 100%; justify-content: flex-end; }

  /* Brand bar */
  .brand-bar { padding: 10px 14px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 19px; }
  .brand-tag { font-size: 11.5px; }
  .brand-mark { width: 40px; height: 40px; }

  /* Search */
  .search input, .search button { padding: 10px 14px; }
  .search button { padding-left: 16px; padding-right: 16px; }

  /* Stop iOS Safari zooming on focus when input font is <16px */
  .form input, .form textarea, .form select, .search input { font-size: 16px; }
  .form { padding: 22px 18px; gap: 14px; border-radius: var(--radius); }
  .form .row { flex-direction: column; gap: 12px; }

  /* Article / content card */
  .content { padding: 22px 18px; border-radius: var(--radius); }
  .content h1 { padding-bottom: 12px; margin-bottom: 16px; font-size: clamp(22px, 6.2vw, 28px); }
  .content .body { font-size: 16px; line-height: 1.7; }
  body.lang-mr .content .body { line-height: 1.8; }
  .content .body p { margin-bottom: 14px; }
  .content .body h2 { font-size: 19px; margin-top: 24px; }
  .content .body h3 { font-size: 17px; margin-top: 20px; margin-bottom: .4em; }
  .content .body ul, .content .body ol { padding-left: 20px; }
  .content .body blockquote { padding: 10px 16px; margin: 14px 0; }

  /* Breadcrumb */
  .breadcrumb { padding: 0 4px; margin-bottom: 14px; font-size: 13px; }
  .breadcrumb .sep { margin: 0 6px; }

  /* Grids */
  .card-grid { gap: 12px; grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .card-title { font-size: 17px; }
  .card-desc { font-size: 14px; }
  .feature-grid { gap: 14px; grid-template-columns: 1fr; }

  /* Gallery — two columns on small phones, one on very small */
  .gallery-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.large { grid-template-columns: 1fr; gap: 14px; }
  .gallery-grid figcaption { padding: 10px 12px; font-size: 13px; }

  /* Quick stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 16px 12px; gap: 6px; }
  .stat { padding: 12px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 11.5px; }

  /* Section headings — stack the "see more" link */
  .section-head { margin-bottom: 18px; gap: 6px; }
  .section-head .lead { font-size: 14px; }

  /* News list — tap-friendly cards */
  .news-list li { border-bottom: 1px solid var(--line); }
  .news-list a { padding: 14px 4px; gap: 2px; }
  .news-list.big a { padding: 16px 4px; font-size: 16px; }
  .news-title, .news-list.big .news-title { font-size: 15.5px; line-height: 1.45; }
  .news-date { font-size: 12.5px; }

  /* Buttons */
  .btn { padding: 12px 18px; min-height: 44px; width: 100%; justify-content: center; }
  .btn.small { padding: 8px 14px; min-height: 36px; width: auto; }
  /* In CTA bands and hero we want side-by-side buttons that share width */
  .hero-cta .btn, .cta-band .btn { width: auto; }

  /* Admin tables horizontally scroll instead of breaking the layout */
  .admin-section { padding: 20px 14px; overflow-x: auto; }
  .admin-table { font-size: 13.5px; min-width: 520px; }
  .admin-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* CTA band */
  .cta-band { padding: 24px 18px; border-radius: var(--radius); gap: 16px; }
  .cta-band h2 { font-size: 20px; }
  .cta-band p { font-size: 14.5px; }

  h1 { font-size: clamp(24px, 6vw, 32px); }
  h2 { font-size: clamp(20px, 5vw, 24px); }
  hr { margin: 24px 0; }
}

/* Very small phones (older / narrow Android, ~360px) */
@media (max-width: 380px) {
  .brand-text { display: none; }
  .brand-bar { padding: 10px 12px; }
  .topbar-actions { font-size: 12px; gap: 10px; }
  .container { padding: 0 12px; }
  .content { padding: 18px 14px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 14px 36px; }
  .hero h1 { font-size: 24px; }
  .hero-intro { font-size: 15px; }
}

/* Prevent any element from forcing horizontal scroll on mobile */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  img, table, pre { max-width: 100%; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .primary-nav, .site-footer, .hero-cta, .admin-edit-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .content { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Footer credit line ---------- */
.footer-credit {
  margin-top: 4px;
  font-size: 12.5px;
  opacity: .7;
  letter-spacing: .02em;
}
.footer-credit::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent);
  opacity: .85;
}
