@import url("https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Noto+Sans+Bengali:wght@400;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Sans+Gurmukhi:wght@400;600;700&family=Noto+Sans+Tamil:wght@400;600;700&display=swap");

:root {
  --navy: #071422;
  --ink: #172333;
  --olive: #3e5329;
  --gold: #f0b323;
  --gold-deep: #e2a40d;
  --muted: #526070;
  --line: #e6ebf1;
  --bg: #eef2f6;
  --card: #fff;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

html[data-i18n-pending] body { visibility: hidden; }
html[lang="hi"] body, html[lang="mr"] body { font-family: "Noto Sans Devanagari", "Source Sans 3", sans-serif; }
html[lang="ta"] body { font-family: "Noto Sans Tamil", "Source Sans 3", sans-serif; }
html[lang="pa"] body { font-family: "Noto Sans Gurmukhi", "Source Sans 3", sans-serif; }
html[lang="as"] body { font-family: "Noto Sans Bengali", "Source Sans 3", sans-serif; }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", serif; line-height: 1.9; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] .brand strong,
html[lang="mr"] h1, html[lang="mr"] h2, html[lang="mr"] .brand strong,
html[lang="ta"] h1, html[lang="ta"] h2, html[lang="ta"] .brand strong,
html[lang="pa"] h1, html[lang="pa"] h2, html[lang="pa"] .brand strong,
html[lang="as"] h1, html[lang="as"] h2, html[lang="as"] .brand strong,
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] .brand strong { font-family: inherit; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .hero-scrim {
  background: linear-gradient(270deg, rgba(16, 14, 10, 0.58) 0%, rgba(16, 14, 10, 0.22) 24%, rgba(16, 14, 10, 0) 46%);
}
html[dir="rtl"] .hero-side {
  margin-right: 0;
  margin-left: 12px;
  border-left: 0;
  border-right: 3px solid #f0b323;
  border-radius: 12px 2px 2px 12px;
}
html[dir="rtl"] .lang-switch select { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .quick a { box-shadow: inset 1px 0 0 var(--line); }
html[dir="rtl"] .quick a:last-child { box-shadow: none; }
html:not([lang="en"]) .nav a { font-size: 13px; letter-spacing: 0; }
html[lang="ta"] body { font-size: 15px; line-height: 1.55; }
html[lang="ta"] .brand strong { font-size: 17px; letter-spacing: 0; font-style: normal; line-height: 1.15; }
html[lang="ta"] .brand small { font-size: 14px; letter-spacing: 0; }
html[lang="ta"] .nav { gap: 14px; justify-content: space-between; }
html[lang="ta"] .nav a { font-size: 13.5px; }
html[lang="ta"] .hero-copy { max-width: 460px; }
html[lang="ta"] .hero-copy h1 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.22; letter-spacing: 0; }
html[lang="ta"] .hero-copy p { font-size: 15px; line-height: 1.45; }
html[lang="ta"] .motto { font-size: 12.5px; letter-spacing: 0; line-height: 1.35; }
html[lang="ta"] .rock { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 0; line-height: 1.22; }
html[lang="ta"] .quick a { font-size: 11px; line-height: 1.3; padding: 14px 6px 12px; }
html[lang="ta"] .btn { font-size: 11px; letter-spacing: 0; }
html[lang="ta"] .btn-lg { font-size: 12px; }
html[lang="ta"] .life-copy h2 { font-size: 22px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
html[lang="ta"] .life-copy p { font-size: 13.5px; }
html[lang="ta"] .page-hero h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.28; }
html[lang="ta"] .lede { font-size: 16px; line-height: 1.5; }
html[lang="ta"] .card h2 { font-size: 22px; line-height: 1.3; }
html[lang="ta"] .card h3 { font-size: 16px; line-height: 1.35; }
html[lang="ta"] .topic h3,
html[lang="ta"] .home-stage .topic h3 { font-size: 12px; line-height: 1.3; }
html[lang="ta"] .panel-head h2 { font-size: 14px; }
html[lang="ta"] .footer-brand strong,
html[lang="ta"] .footer-brand small { letter-spacing: 0; }
.lang-switch { flex: none; margin-left: 12px; }
.lang-switch select {
  width: 168px;
  margin-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
}
.lang-switch select option { color: #14233c; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 6px;
}

.skip:focus { top: 8px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  flex: none;
}

.flag-mark {
  width: 40px;
  height: 27px;
  display: block;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.brand strong {
  display: block;
  font-family: var(--cond);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  line-height: 0.9;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #d5dce6;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

.nav a {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 24px 0 20px;
  position: relative;
  white-space: nowrap;
}

.nav a:hover { color: var(--gold); }

.nav a[aria-current="page"] { color: var(--gold); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 6px 10px;
}

/* Hero */
@property --hero-left {
  syntax: "<color>";
  inherits: true;
  initial-value: #acaaa3;
}
@property --hero-right {
  syntax: "<color>";
  inherits: true;
  initial-value: #d6d1d0;
}

.hero {
  position: relative;
  height: auto;
  overflow: visible;
  color: #f4f7f2;
  --hero-left: #acaaa3;
  --hero-right: #d6d1d0;
  background: linear-gradient(90deg, var(--hero-left) 0%, var(--hero-left) 38%, var(--hero-right) 62%, var(--hero-right) 100%);
  transition: --hero-left 0.9s ease, --hero-right 0.9s ease;
}

.hero-frame {
  position: relative;
  z-index: 1;
  height: 540px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16, 12, 8, 0.28);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-photo.is-on { opacity: 1; }

.hero-scrim,
.hero-layout {
  position: absolute;
  inset: 0;
}

.hero-scrim {
  background: linear-gradient(90deg, rgba(16, 14, 10, 0.58) 0%, rgba(16, 14, 10, 0.22) 24%, rgba(16, 14, 10, 0) 46%);
}

.hero-layout {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 22px 0;
}

.hero-copy { max-width: 560px; }

.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.4px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-copy h1 span { display: block; }

.hero-copy p {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #f3f6f1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-side {
  width: 228px;
  flex: none;
  margin-top: 8px;
  padding: 14px 16px 16px;
  border-radius: 2px 12px 12px 2px;
  background: linear-gradient(180deg, rgba(32, 27, 20, 0.92), rgba(42, 36, 26, 0.78));
  border-left: 3px solid #f0b323;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.motto {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.tricolor {
  display: flex;
  width: 56px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  overflow: hidden;
}

.tricolor i { flex: 1; display: block; }
.tricolor i:nth-child(1) { background: #ff9933; }
.tricolor i:nth-child(2) { background: #fff; }
.tricolor i:nth-child(3) { background: #138808; }

.rock {
  margin: 22px 0 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #1b1b1b;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 5px;
  border: 0;
}

.btn:hover { background: var(--gold-deep); }
.btn-lg { padding: 12px 16px; font-size: 13.5px; }

/* Quick links and home columns */
.quick {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(12, 28, 52, 0.12);
  overflow: hidden;
}

.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 8px 16px;
  color: #1b2c44;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: inset -1px 0 0 var(--line);
}

.quick a:last-child { box-shadow: none; }
.quick a:hover { background: #f7f9fb; }
.quick svg { width: 28px; height: 28px; color: #1a3d66; }

.mid {
  display: grid;
  grid-template-columns: minmax(250px, 0.96fr) minmax(280px, 1.22fr) minmax(260px, 1fr);
  gap: 16px;
  margin-top: 18px;
  align-items: stretch;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(220px, 0.96fr) minmax(250px, 1.22fr) minmax(240px, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 0;
  align-items: stretch;
}

.home-main,
.home-stage .mid {
  display: contents;
}

.home-stage .mid > .panel { grid-column: 1; grid-row: 1; }
.home-stage .life-card { grid-column: 2; grid-row: 1; align-self: stretch; height: 100%; min-height: 0; }

.home-stage .topics {
  grid-column: 1 / span 2;
  grid-row: 2;
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.chat-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
  height: auto;
  align-self: stretch;
}

.home-stage .topic img { height: 72px; }

.home-stage .topic h3 {
  margin: 8px 8px 3px;
  font-size: 13px;
}

.home-stage .topic p {
  margin: 0 8px;
  font-size: 11.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-stage .topic .btn {
  margin: 8px;
  padding: 6px 8px;
  font-size: 10.5px;
}

.chat-panel {
  height: 100%;
  align-self: stretch;
}

.chat-panel .asks { margin-top: auto; }
.chat-panel .chat-form { margin-top: 10px; }

.chat-panel .thread {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.panel,
.life-card,
.topic,
.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(16, 32, 56, 0.08);
}

.panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.panel-head {
  background: var(--olive);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head svg { width: 18px; height: 18px; }

.view-all,
.badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, 0.22); }
.view-all:hover { background: rgba(255, 255, 255, 0.28); }

.updates { padding: 6px; }

.update {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 10px;
  color: #1c2838;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}

.update:hover { background: #f6f8fb; }

.when {
  width: 52px;
  height: 54px;
  flex: none;
  border-radius: 8px;
  background: #f3f5f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1a2740;
}

.when b { font-size: 18px; line-height: 1; }
.when small { font-size: 11px; letter-spacing: 0.08em; color: #66788a; font-weight: 800; }

.life-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.life-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.life-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0.2) 56%, rgba(255, 255, 255, 0) 72%);
}

.life-copy {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: 52%;
  padding: 18px 16px;
}

.life-copy h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #102848;
}

.life-copy p { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: #243246; }

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  flex: 1;
  min-height: 0;
}

.chat-switch { display: flex; justify-content: space-between; gap: 8px; align-items: center; }

.chat-mode,
.chat-lang {
  display: flex;
  border: 1px solid #d5dbe3;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f5f8;
}

.chat-mode button,
.chat-lang button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  color: #243044;
  cursor: pointer;
}

.chat-mode button[aria-pressed="true"],
.chat-lang button[aria-pressed="true"] {
  background: var(--olive);
  color: #fff;
}

.chat-panel .panel-head { flex-wrap: wrap; row-gap: 8px; }
.panel-head .chat-switch { flex: none; }
.panel-head .chat-mode,
.panel-head .chat-lang {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}
.panel-head .chat-mode button,
.panel-head .chat-lang button { color: #fff; }
.panel-head .chat-mode button[aria-pressed="true"],
.panel-head .chat-lang button[aria-pressed="true"] {
  background: var(--gold);
  color: #1a2332;
}

.chat-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #5c6570;
}

.chat-browse {
  font-size: 12px;
  max-height: 150px;
  overflow: auto;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 6px 8px;
}

.chat-browse summary { cursor: pointer; font-weight: 700; }
.chat-browse .sec { margin-top: 6px; }
.chat-browse .qlist { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }

.chat-browse button {
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 6px;
  padding: 5px 7px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.chat-browse button:hover { background: #e6edf5; }

.greet { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.greet img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.greet p { margin: 0; }

.thread { display: flex; flex-direction: column; gap: 8px; max-height: 210px; overflow: auto; }
.thread:empty { display: none; }

.msg { font-size: 13.5px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; max-width: 95%; }
.msg.user { align-self: flex-end; background: #e5edf7; }
.msg.bot { align-self: stretch; max-width: 100%; background: #f3f6f2; }
.msg p { margin: 0 0 6px; white-space: pre-wrap; }
.msg h2 { margin: 0 0 4px; font-size: 13px; }
.msg h3 { margin: 8px 0 4px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.msg .muted { color: #5c6570; font-size: 11.5px; }
.msg ul { margin: 0; padding-left: 16px; }
.msg .related { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .related button {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.msg a { color: #154e86; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.asks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.asks button {
  background: #f2f4f7;
  border: 0;
  border-radius: 8px;
  text-align: left;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #243044;
}

.asks button:hover { background: #e6edf5; }

.chat-form {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f5f8;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}

.chat-form input { flex: 1; border: 0; background: transparent; min-width: 0; padding: 8px 0; }
.chat-form input:focus { outline: none; }
.chat-form button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #d5dbe3;
  color: #1a2332;
  display: grid;
  place-items: center;
}
.chat-form button:hover { background: var(--gold); }

.chat-stage { padding: 28px 0 40px; }

.chat-stage .chat-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  min-height: 70vh;
  height: calc(100vh - 170px);
}

.chat-stage .thread { max-height: none; }
.chat-stage .chat-browse { max-height: 220px; }

.topics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 16px 0 26px;
}

.topic { overflow: hidden; display: flex; flex-direction: column; }
.topic img { width: 100%; height: 124px; object-fit: cover; }
.topic img.scheme-photo { object-fit: contain; object-position: center; background: #f4f8fb; }
.topic h3 { margin: 12px 12px 6px; font-size: 15px; line-height: 1.25; color: #14233c; }
.topic p { margin: 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.4; flex: 1; }
.topic .btn { margin: 12px; align-self: flex-start; }

/* Footer */
.site-footer { background: var(--navy); color: #d5deea; }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand strong { display: block; font-size: 12px; letter-spacing: 0.06em; }
.footer-brand small { display: block; color: #c5d0dc; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }

.follow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.soc { width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; color: #fff; }
.soc svg { width: 15px; height: 15px; }
.soc.yt { background: #ff0033; }
.soc.ig { background: #c13584; }
.soc.x { background: #111; }
.soc.in { background: #0a66c2; }

.legal {
  margin: 0;
  padding: 0 0 14px;
  color: #8ea0b5;
  font-size: 12px;
}

/* Inner pages */
.page-hero {
  position: relative;
  color: #fff;
  background: #0c2340 url("../images/hero.jpg") center 42% / cover no-repeat;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 36, 0.9) 0%, rgba(6, 18, 36, 0.62) 52%, rgba(46, 68, 32, 0.45) 100%);
}

.page-hero .wrap { position: relative; padding: 36px 0 28px; }
.crumbs { margin: 0 0 8px; font-size: 13px; color: #f0d48a; }
.crumbs a { color: #fff; font-weight: 700; }
.page-hero h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.05; }
.lede { margin: 0; max-width: 680px; font-size: 18px; color: #e7eef6; }

.page { padding: 22px 0 42px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.card { padding: 22px; }
.card > img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 12px;
  margin-bottom: 14px;
}
.card > img.skill-photo,
.topic img.skill-photo { object-position: center 25%; }
.card > img.full-photo {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.photo-zoom {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(16, 28, 48, 0.06);
}
.photo-zoom img {
  display: block;
  width: 100%;
  max-height: 560px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
}
.photo-zoom:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px 20px 24px;
  background: rgba(7, 20, 34, 0.86);
}
.photo-lightbox img {
  width: min(1180px, calc(100vw - 40px));
  height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.photo-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #14233c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.card h2 { font-family: var(--serif); color: #122848; font-size: 28px; margin: 18px 0 8px; line-height: 1.15; }
.card h2:first-child { margin-top: 0; }
.card h3 { margin: 0 0 6px; color: #16325c; font-size: 18px; }
.card p, .card li { color: #243140; }
.card p { margin: 0 0 12px; }
.card a:not(.btn) { color: #154e86; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.stack { display: grid; gap: 14px; }

.note {
  background: #f8f3e3;
  border-left: 4px solid var(--gold-deep);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 14px;
}

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.path { background: #f6f8fb; border-radius: 12px; padding: 14px; }
.path p { margin: 0; font-size: 14.5px; }
.path p + p { margin-top: 8px; }

.steps { margin: 0; padding-left: 18px; }
.steps li { margin: 8px 0; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.link-list a:hover { color: #154e86; }

.tag {
  display: inline-block;
  background: #eef2e6;
  color: #3d5228;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.story { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.story img { width: 100%; height: 320px; object-fit: cover; object-position: center 12%; border-radius: 10px; margin-bottom: 0; }
.story .photo-note { margin: 8px 0 0; font-size: 12px; color: #5c6b7a; }

.qa-list { display: grid; gap: 10px; }
details.qa { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 6px 16px rgba(16, 32, 56, 0.05); }
details.qa summary { cursor: pointer; font-weight: 700; color: #14305a; }
details.qa p { margin: 10px 0 0; }

label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 6px; }
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
textarea { resize: vertical; }
.form-error { color: #8d1d1d; font-size: 14px; margin: 8px 0; }
.form-ok { background: #eef6e8; border-radius: 8px; padding: 12px; margin-top: 12px; }
.form-actions { margin-top: 14px; }

.update-article + .update-article { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.live-asof { margin: 0 0 14px; color: #3e4d61; font-size: 14.5px; }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.live-col h2 { margin-top: 0; }
.live-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #1c2838;
}
.live-item strong { display: block; font-size: 15px; line-height: 1.35; }
.live-item em { display: block; margin-top: 6px; font-style: normal; color: #5c6b7a; font-size: 12.5px; }
.live-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e7f0e4;
  color: #24501c;
  font-weight: 700;
}
.live-tag-news { background: #eef2f7; color: #1d3d66; }
.live-empty { color: #3e4d61; }
.live-guides { margin-top: 16px; }
#all { margin-top: 14px; }
.when-lg { display: inline-flex; margin-bottom: 8px; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 20px 16px;
    gap: 0;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav a[aria-current="page"]::after { display: none; }
  .quick { grid-template-columns: repeat(4, 1fr); }
  .quick a:nth-child(4) { box-shadow: none; }
  .topics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .home-stage,
  .mid,
  .layout,
  .path-grid,
  .live-grid { grid-template-columns: 1fr; }
  .home-main,
  .home-stage .mid { display: flex; flex-direction: column; gap: 16px; }
  .home-stage .mid > .panel,
  .home-stage .life-card,
  .home-stage .topics,
  .chat-panel {
    grid-column: auto;
    grid-row: auto;
  }
  .home-stage .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-panel { min-height: 460px; }
  .life-card { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .hero-side { width: 190px; }
  .rock { font-size: 24px; }
}

@media (max-width: 760px) {
  .hero { height: auto; }
  .hero-frame { height: 420px; }
  .hero-photo { height: 100%; }
  .hero-scrim {
    background: linear-gradient(90deg, rgba(16, 14, 10, 0.7) 0%, rgba(16, 14, 10, 0.34) 58%, rgba(16, 14, 10, 0) 100%);
  }
  .hero-side { display: none; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: 40px; }
  .quick { grid-template-columns: 1fr 1fr; margin-top: 10px; }
  .quick a { box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
  .topics, .story { grid-template-columns: 1fr; }
  .home-stage .topics { grid-template-columns: 1fr; }
  .asks { grid-template-columns: 1fr; }
  .header-bar { flex-wrap: nowrap; padding: 8px 0; }
  .lang-switch select { width: 132px; }
  .footer-bar { align-items: flex-start; }
  .brand small { letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-photo { opacity: 0; }
  .hero-photo.is-on { opacity: 1; }
}
