:root {
  --bg: #f3f5f1;
  --surface: #ffffff;
  --ink: #1f2a24;
  --muted: #6a756e;
  --line: #d7e0d9;
  --green: #054239;
  --green-dark: #04352e;
  --green-soft: #e6f0ed;
  --nav-bg: #eef4f0;
  --nav-text: #2a4f3a;
  --nav-sep: #b9c9be;
  --gold: #b7922a;
  --red-soft: #a33a45;
  --footer: #1b2d23;
  --shadow: 0 10px 28px rgba(31, 42, 36, 0.06);
  --radius: 16px;
  --font: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.75;
  background: #fff url('/brand/pattern.png') repeat top center;
  background-size: 256px auto;
  overflow-x: clip;
}
html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--red-soft); }
img { max-width: 100%; display: block; }
.container { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex: 0 0 auto;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
  border: 1.5px solid var(--green);
  transition: background .15s ease, color .15s ease;
}
.btn-login:hover {
  background: var(--green-dark);
  color: #fff !important;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
  background: #fff;
}
.lang-switch a {
  color: var(--muted);
  padding: .1rem .2rem;
}
.lang-switch a:hover,
.lang-switch a.active {
  color: var(--green-dark);
}
.lang-sep { color: var(--line); user-select: none; }

.site-header {
  position: relative;
  z-index: 1000;
  /* Faint Islamic geometric pattern over white */
  background: rgba(255,255,255,.94) url('/brand/pattern.png') repeat top center;
  background-size: 256px auto;
  border-bottom: 0;
  backdrop-filter: blur(8px);
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 .9rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  min-width: 0;
}
.brand img {
  width: 76px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  flex: 0 0 auto;
}
.brand-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.site-name,
.site-place {
  display: block;
  width: max-content;
  max-width: 100%;
}
.site-name {
  white-space: nowrap;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.35;
}
.site-place {
  color: var(--muted);
  margin-top: .15rem;
  font-size: .92rem;
  line-height: 1.4;
  text-align: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: .55rem .85rem;
  font: inherit;
  cursor: pointer;
}

.main-nav {
  position: relative;
  z-index: 1001;
  /* Exact teal-green from mofaex.gov.sy nav strip (rgb(5,66,57)) */
  background: #054239;
  border: 0;
  margin: 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-list > li:not(:last-child)::after {
  content: "|";
  color: rgba(255,255,255,.32);
  font-weight: 400;
  padding: 0 .15rem;
  opacity: .9;
}
.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #f3f7f4;
  padding: .95rem 1.2rem;
  font-weight: 700;
  border-radius: 10px;
}
.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: .95;
}
.nav-list > li > a:hover,
.nav-list > li.active > a,
.nav-list > li:hover > a {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1100;
  padding: .4rem;
  border-radius: 12px;
}
.nav-list > li:hover > .submenu { display: block; }
.submenu a {
  display: block;
  padding: .65rem .8rem;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 500;
}
.submenu a:hover { background: var(--green-soft); color: var(--green-dark); }
.submenu.nested {
  /* RTL: fly out to the left (inline-end). inset-inline-start:100% = right:100% in RTL */
  inset-inline-start: 100%;
  inset-inline-end: auto;
  top: 0;
  display: none;
}
.submenu > li { position: relative; }
.submenu > li:hover > .submenu.nested { display: block; }

.site-main {
  position: relative;
  z-index: 1;
  min-height: 55vh;
  overflow: visible;
  /* Transparent so body Islamic pattern shows in mid-page empty areas */
  background: transparent;
}
.main-inner { position: relative; z-index: 1; }

.hero {
  position: relative;
  z-index: 0;
  /* background-image set inline from admin sliders; this covers sizing */
  background-color: #1b2d23;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 3.2rem 0;
  margin: 0;
}
.hero h1 {
  margin: 0 0 .7rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
  max-width: 18ch;
  font-weight: 800;
}
.hero p {
  margin: 0;
  opacity: .95;
}
/* Must beat .hero p specificity — previous 70rem rule lost to .hero p { max-width: 40rem } */
.hero p.hero-about,
.hero-about {
  margin: 0;
  max-width: 100%;
  opacity: .95;
}
.about-text {
  white-space: pre-line;
  margin: 0;
  line-height: 1.7;
}
/* Desktop: one flowing line; natural wrap only when the viewport is narrow */
@media (min-width: 992px) {
  .hero p.hero-about {
    white-space: normal;
    max-width: none;
  }
}
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

.section {
  padding: 2.6rem 0;
  background: transparent;
}
.section-panel {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(215,224,217,.9);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.5rem;
  font-weight: 800;
}
.section-head p { margin: .3rem 0 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(63,122,88,.35);
}
.card h3 { margin: 0 0 .45rem; font-size: 1.05rem; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.meta { margin-top: .85rem; color: var(--green); font-weight: 800; font-size: .9rem; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.news-card .thumb {
  height: 170px;
  background: #dfe8e2 center/cover no-repeat;
}
.news-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.news-card time {
  color: var(--green);
  font-size: .85rem;
  font-weight: 700;
}
.news-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.news-card p { margin: 0; color: var(--muted); flex: 1; }
.news-card .meta { margin-top: .4rem; }

.page-hero {
  position: relative;
  z-index: 0;
  background: linear-gradient(120deg, #2f5f44, #24362c);
  color: #fff;
  padding: 2rem 0;
}
.page-hero h1 { margin: 0; font-size: 1.7rem; }
/* Option A: light secondary bar under dark main nav (consular profile / account) */
.page-hero.page-hero--light {
  background: #F7F9F8;
  color: #054239;
  border-bottom: 1px solid #e5e8e5;
  padding: 1.35rem 0;
}
.page-hero.page-hero--light h1 {
  color: #054239;
  font-weight: 800;
}
.content-box {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  margin-top: -1.2rem;
  position: relative;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #054239; color: #fff !important; border: 1.5px solid #054239;
  border-radius: 999px; padding: .72rem 1.2rem; font-weight: 800; font: inherit; cursor: pointer;
  text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #03352e; border-color: #03352e; color: #fff !important; }
.btn-light {
  background: #E8F2EF; color: #054239 !important; border: 1.5px solid #c5d9d2;
}
.btn-light:hover {
  background: #d7ebe4; border-color: #9bb8ae; color: #054239 !important;
}
.btn-outline {
  background: #fff; color: #054239 !important;
  border: 1.5px solid #054239;
}
.btn-outline:hover {
  background: #E8F2EF !important;
  border-color: #054239;
  color: #054239 !important;
}
.btn-logout,
.btn-danger-outline {
  background: #fff; color: #8f1524 !important;
  border: 1.5px solid #d4a0a8;
}
.btn-sm { padding: .38rem .7rem; font-size: .8rem; border-radius: 999px; }

.form-grid { display: grid; gap: .9rem; }
.form-grid label { display: grid; gap: .3rem; font-weight: 700; }
.form-grid input, .form-grid textarea, .form-grid select {
  border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; font: inherit; background: #fff;
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.form-grid select {
  appearance: auto;
  min-height: 2.75rem;
}
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-success { background: #e8f7ef; color: #0b5c32; }

.site-footer {
  position: relative;
  margin-top: 2.5rem;
  background: linear-gradient(180deg, #1b2d23, #14221b);
  color: #e8eee9;
  padding: 2.8rem 0 1.1rem;
  border-top: 3px solid rgba(183,146,42,.55);
}
/* Eagle pinned to the right side of the green bar, vertically centered.
   Absolutely positioned: zero effect on the 5-column grid. */
.footer-eagle-abs {
  position: absolute;
  /* RTL: center the eagle inside the empty zone between the viewport's right
     edge and the consulate text (outer gutter + spacer col + grid gap).
     zone = (100vw - 1140px)/2 + 76px + 2rem; eagle = 90px */
  inset-inline-start: calc((100vw - 1140px) / 4 + 9px);
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  pointer-events: none;
}
@media (max-width: 1240px) {
  .footer-eagle-abs { inset-inline-start: 1rem; }
}
/* Skyline decorative art on the far left of the green footer bar */
.footer-skyline-abs {
  position: absolute;
  inset-inline-end: calc((100vw - 1140px) / 4 + 9px);
  bottom: 2.6rem;
  width: min(420px, 38vw);
  height: auto;
  max-height: 168px;
  object-fit: contain;
  object-position: left bottom;
  opacity: 0.62;
  transform: translateX(-20px);
  pointer-events: none;
}
@media (max-width: 1240px) {
  .footer-skyline-abs {
    inset-inline-end: 1rem;
    width: min(280px, 48vw);
    max-height: 120px;
    bottom: 2rem;
  }
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-col {
  min-width: 0;
}
/* Spacer keeping col1 footprint so cols 2-5 stay in place */
.footer-eagle-col {
  width: 76px;
  align-self: stretch;
}
.site-footer h4 {
  position: relative;
  margin: 0 0 1.05rem;
  padding-bottom: .55rem;
  color: #e2c56a;
  font-size: 1.05rem;
}
.site-footer h4::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: .45rem;
  background: var(--gold);
  border-radius: 1px;
}
.site-footer p { margin: 0 0 .55rem; color: #d5ddd7; }
.site-footer .about-text {
  white-space: pre-line;
  margin: 0 0 .55rem;
  line-height: 1.7;
}
.site-footer a { color: #e7eee8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-links {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: .95rem;
  color: #e7eee8;
}
.footer-links a:hover { color: #fff; }
.copy {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1.6rem;
  padding-top: 1rem;
  text-align: center;
  color: #aeb8b1;
  font-size: .9rem;
}

/* Related sites — same white panel as news; horizontal button tiles */
.related-sites {
  background: transparent;
}
.related-sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .related-sites-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}
/* Horizontal clickable button tile */
.related-site-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 108px;
  padding: 1rem 1.05rem;
  background: #f7f9f7;
  border: 1px solid #e2e8e4;
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(5, 66, 57, 0.1);
  color: inherit;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .2s ease;
}
.related-site-btn:hover,
.related-site-btn:focus-visible {
  transform: scale(1.06);
  z-index: 2;
  border-color: rgba(5, 66, 57, 0.35);
  box-shadow: 0 10px 22px rgba(5, 66, 57, 0.16);
  color: inherit;
  outline: none;
}
.related-site-img {
  flex: 0 0 35%;
  max-width: 110px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-site-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.related-site-label {
  flex: 1 1 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 83px;
  padding: 0 .35rem;
  color: #054239;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  font-weight: 800;
  line-height: 1.4;
}

.pager{margin-top:1rem}
.pager ul{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0;padding:0;align-items:center}
.pager a,.pager span{display:inline-block;padding:.4rem .7rem;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--green-dark);font-size:.9rem;line-height:1.2}
.pager .active span{background:var(--green);border-color:var(--green);color:#fff}
.pager .disabled span{opacity:.45;cursor:not-allowed}
nav[role="navigation"] svg{width:1.25rem;height:1.25rem;max-width:1.25rem;max-height:1.25rem}

/* —— Citizen registration wizard —— */
.reg-shell { max-width: 820px; margin-inline: auto; }
.reg-stepper {
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.reg-stepper li {
  flex: 1 1 110px; min-width: 100px;
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .55rem;
}
.reg-stepper li span {
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--ink); font-size: .78rem;
}
.reg-stepper li.active { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.reg-stepper li.active span { background: var(--green); color: #fff; }
.reg-stepper li.done { border-color: #9bb8ae; color: var(--green-dark); }
.reg-stepper li.done span { background: #9bb8ae; color: #fff; }
.reg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.reg-card h2 { margin: 0 0 .4rem; color: var(--green-dark); font-size: 1.35rem; }
.reg-lead { margin: 0 0 1rem; color: var(--muted); }
.reg-form { display: grid; gap: .85rem; }
.reg-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="password"],
.reg-form input[type="date"],
.reg-form input[type="file"],
.reg-form select,
.reg-form textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff;
}
.reg-form small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.reg-fieldset {
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; margin: 0;
}
.reg-fieldset legend { font-weight: 800; color: var(--green-dark); padding-inline: .35rem; }
.reg-radio, .reg-check {
  display: inline-flex !important; align-items: center; gap: 8px; justify-content: flex-start;
  font-weight: 600 !important; width: auto;
}
.reg-radio input, .reg-check input { width: auto; max-width: none; padding: 0; }
.reg-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: .4rem; }
.btn-sm { padding: .35rem .7rem !important; font-size: .85rem !important; }
.reg-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reg-verify-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fafcfb;
}
.reg-verify-box.ok { border-color: #9bb8ae; background: var(--green-soft); }
.reg-verify-box h3 { margin: 0 0 .75rem; font-size: 1rem; color: var(--green-dark); word-break: break-all; }
.ok-text { color: var(--green); font-weight: 800; margin: 0; }
.reg-resend { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.reg-note {
  margin: .5rem 0 0; padding: .65rem .8rem; border-radius: 10px;
  background: #f7f3e8; color: #6a5a2a; font-size: .9rem;
}
.reg-summary {
  display: grid; gap: .55rem; margin: 0 0 1rem;
}
.reg-summary > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.reg-summary dt { margin: 0; color: var(--muted); font-weight: 700; }
.reg-summary dd { margin: 0; font-weight: 700; color: var(--ink); }
.reg-status-badge {
  display: inline-block; margin: 0 0 .75rem; padding: .35rem .9rem;
  border-radius: 999px; background: var(--green-soft); color: var(--green-dark);
  font-weight: 800; font-size: 1.05rem;
}
.reg-req { margin: 0 0 1rem; font-size: 1.05rem; }
.reg-alt {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
}
.reg-cta-link {
  display: inline-block;
  margin-inline-start: .35rem;
  color: var(--green) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reg-cta-link:hover {
  color: var(--green-dark) !important;
}
.reg-link-accent {
  color: var(--green) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reg-form-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.reg-exists-actions {
  margin: .75rem 0 0;
  font-weight: 600;
}
.reg-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0 1.15rem;
}
.reg-subhead {
  margin: 0 0 .4rem;
  color: var(--green-dark);
  font-size: 1.1rem;
}
.reg-resume-banner {
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid #9bb8ae;
  background: var(--green-soft);
  color: var(--green-dark);
}
.reg-resume-banner p { margin: 0 0 .55rem; font-weight: 600; }
.reg-resume-banner p:last-child { margin-bottom: 0; }
.reg-resume-cta-label {
  font-weight: 800 !important;
  color: var(--green) !important;
}
.btn-resume-reg {
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
}
.reg-help-box {
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid #c5d9d0;
  background: #f3f8f5;
  color: var(--green-dark);
}
.reg-help-box strong { display: block; margin-bottom: .4rem; color: var(--green); }
.reg-help-box ul {
  margin: 0;
  padding-inline-start: 1.2rem;
  display: grid;
  gap: .25rem;
  font-size: .92rem;
  font-weight: 600;
}
.reg-upload-field {
  display: grid;
  gap: .4rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcfb;
}
.reg-upload-title {
  font-weight: 800;
  color: var(--green-dark);
  font-size: 1rem;
}
.reg-upload-hints {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}
.reg-upload-error {
  color: #8f1524;
  background: #fdecee;
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .86rem;
  font-weight: 700;
}
.reg-upload-preview {
  margin-top: .25rem;
}
.reg-upload-preview img {
  display: block;
  max-width: 220px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.reg-upload-kept {
  color: var(--green) !important;
  font-weight: 700 !important;
}
.reg-blur-beside {
  margin-top: .35rem;
}
.alert-success { background: #e8f7ef; color: #0b5c32; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-warning { background: #fff7e6; color: #7a5a10; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fdecee; color: #8f1524; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
@media (max-width: 720px) {
  .reg-row, .reg-verify-grid { grid-template-columns: 1fr; }
  .reg-summary > div { grid-template-columns: 1fr; }
  .reg-form-meta { flex-direction: column; align-items: flex-start; }
  .reg-stepper li {
    flex: 1 1 calc(50% - .45rem);
    min-width: 0;
    font-size: .75rem;
    padding: .3rem .45rem;
  }
  .reg-stepper li span { width: 1.25rem; height: 1.25rem; font-size: .72rem; }
  .page-hero h1 { font-size: 1.35rem; overflow-wrap: anywhere; }
  .hero h1 { max-width: none; overflow-wrap: anywhere; }
}

@media (max-width: 900px) {
  .container { width: min(1140px, calc(100% - 1.75rem)); }
  .brand-row {
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem .75rem;
    padding: .75rem 0 .7rem;
  }
  .brand {
    flex: 1 1 12rem;
    min-width: 0;
    gap: .65rem;
  }
  .brand img { width: 56px; }
  .brand-titles {
    align-items: flex-start;
    text-align: start;
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-name,
  .site-place {
    width: auto;
    max-width: 100%;
  }
  .site-name {
    white-space: normal;
    font-size: clamp(.95rem, 3.6vw, 1.1rem);
  }
  .site-place { font-size: .8rem; }
  .header-actions {
    flex: 0 0 auto;
    gap: .4rem;
    margin-inline-start: auto;
  }
  .btn-login {
    padding: .38rem .7rem;
    font-size: .82rem;
  }
  .lang-switch {
    padding: .22rem .55rem;
    gap: .2rem;
    font-size: .85rem;
  }
  .nav-toggle {
    display: inline-flex;
    padding: .45rem .7rem;
    font-size: .85rem;
  }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li:not(:last-child)::after { display: none; }
  .submenu, .submenu.nested {
    position: static; display: none; box-shadow: none; border: none;
    z-index: auto;
  }
  .nav-list > li:hover > .submenu { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-eagle-col { display: none; }
  .footer-eagle-abs {
    position: static;
    transform: none;
    display: block;
    margin: 0 auto 1.25rem;
  }
  .footer-skyline-abs {
    position: static;
    display: block;
    margin: 0 auto 1rem;
    width: min(320px, 90%);
    max-height: 130px;
    opacity: 0.7;
  }
}

@media (max-width: 560px) {
  .brand-row { align-items: flex-start; }
  .header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .35rem;
  }
  .news-grid,
  .cards {
    grid-template-columns: 1fr;
  }
  .hero .hero-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .hero-actions .btn,
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
