/* ============ Ula Belediyesi — Kurumsal Tasarım Sistemi ============ */
/* Referanslar: gov.uk, singapore gov, boston.gov, helsinki.fi, nyc.gov */

:root {
  /* Resmi devlet mavisi paleti */
  --gov-50:  #f3f6fb;
  --gov-100: #e3ebf5;
  --gov-200: #c6d6ea;
  --gov-300: #9bb6d6;
  --gov-400: #5e88bd;
  --gov-500: #1f4e8c;     /* Primary */
  --gov-600: #163b6d;
  --gov-700: #0f2a52;
  --gov-800: #0a1d3b;
  --gov-900: #061226;

  /* Resmi kırmızı (uyarı/duyuru) */
  --alert-500: #b8242b;
  --alert-600: #8e1a20;

  /* Yardımcı durum renkleri */
  --success-500: #1f7a3f;
  --warning-500: #b67700;
  --info-500: #1f4e8c;

  /* Nötr (kâğıt + mürekkep) */
  --paper:        #ffffff;
  --paper-soft:   #f7f8fa;
  --paper-warm:   #f3f4f6;
  --line:         #e3e5e9;
  --line-strong:  #c8ccd2;
  --ink:          #0a1224;
  --ink-soft:     #2c3447;
  --ink-mute:     #5b6373;
  --ink-faint:    #8b92a1;

  /* Tipografi — kurumsal, okunaklı, klasik */
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Yoğunluk */
  --density: 1;
  --pad-1: calc(8px * var(--density));
  --pad-2: calc(12px * var(--density));
  --pad-3: calc(16px * var(--density));
  --pad-4: calc(24px * var(--density));
  --pad-5: calc(32px * var(--density));
  --pad-6: calc(48px * var(--density));
  --pad-7: calc(64px * var(--density));
  --pad-8: calc(96px * var(--density));

  --accent: var(--gov-500);
  --accent-deep: var(--gov-700);
  --accent-soft: var(--gov-100);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { letter-spacing: -0.02em; }

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--gov-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--gov-700); text-decoration-thickness: 2px; }

/* Card-style links should not be underlined */
.qs-card, .qs-card *,
.news-card, .news-card *,
.disc-card, .disc-card *,
.brand, .brand *,
.nav-link {
  text-decoration: none !important;
}
.qs-card:hover, .news-card:hover, .disc-card:hover,
.brand:hover, .nav-link:hover { text-decoration: none !important; }

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

/* Skip link (erişilebilirlik) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
  z-index: 999;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ===== Layout helpers ===== */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-4);
}
.wrap-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--pad-4);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gov-600);
}

/* ===== Government strip (en üst) ===== */
.gov-strip {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}
.gov-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  gap: 16px;
}
.gov-strip .gov-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gov-strip .gov-flag {
  width: 18px; height: 12px;
  background: linear-gradient(#e30a17 50%, #e30a17 50%);
  position: relative;
  display: inline-block;
}
.gov-strip .gov-flag::after {
  content: '★';
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%,-50%);
  color: white;
  font-size: 9px;
}
.gov-strip a {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}
.gov-strip a:hover { opacity: 1; text-decoration: underline; }
.gov-strip .gov-right { display: flex; gap: 18px; align-items: center; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 16px;
}
.topbar a {
  color: var(--ink-soft);
  text-decoration: none;
}
.topbar a:hover { color: var(--gov-600); text-decoration: underline; }
.topbar .tb-left, .topbar .tb-right {
  display: flex;
  gap: 22px;
  align-items: center;
}
.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.lang-switch button {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--ink-soft);
  border-right: 1px solid var(--line-strong);
}
.lang-switch button:last-child { border-right: none; }
.lang-switch button.active {
  background: var(--gov-500);
  color: white;
}

/* ===== Main nav ===== */
.nav {
  background: var(--paper);
  border-bottom: 3px solid var(--gov-500);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--gov-500);
  color: white;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  position: relative;
  border-radius: 2px;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 1px;
}
.brand-text { line-height: 1.1; }
.brand-text .b-1 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand-text .b-2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  border-radius: 2px;
}
.nav-link:hover { color: var(--gov-700); background: var(--gov-50); text-decoration: none; }
.nav-link.active {
  color: var(--gov-700);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -14px;
  height: 3px;
  background: var(--gov-500);
}

/* ===== Dropdown menus ===== */
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret {
  font-size: 9px;
  color: var(--ink-mute);
  transition: transform 0.2s, color 0.2s;
  margin-top: 1px;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); color: var(--gov-600); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 248px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gov-500);
  box-shadow: 0 16px 40px -12px rgba(10,18,36,0.22);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-link {
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-dd-link:hover {
  background: var(--gov-50);
  color: var(--gov-700);
  border-left-color: var(--gov-500);
  text-decoration: none;
}
.nav-dd-link.active {
  color: var(--gov-700);
  background: var(--gov-50);
  border-left-color: var(--gov-500);
  font-weight: 600;
}

/* Mobile submenu accordion */
.nav-mobile-group { display: flex; flex-direction: column; }
.nav-mobile-toggle {
  font-family: inherit;
  width: 100%;
  cursor: pointer;
  background: none;
}
.nav-mobile-toggle span:last-child {
  font-size: 22px;
  font-weight: 400;
  color: var(--gov-600);
  line-height: 1;
}
.nav-mobile-sub {
  display: flex;
  flex-direction: column;
  padding: 2px 0 10px 10px;
}
.nav-mobile-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none !important;
  border-left: 2px solid var(--line);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-mobile-sublink:hover,
.nav-mobile-sublink.active {
  color: var(--gov-700);
  border-left-color: var(--gov-500);
  background: var(--gov-50);
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-search { width: 148px; }
  .nav-link { padding: 10px 10px; }
  .nav-links { gap: 0; }
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  border-radius: 2px;
  background: var(--paper);
  width: 220px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search:focus-within {
  border-color: var(--gov-500);
  box-shadow: 0 0 0 3px var(--gov-100);
}
.nav-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
}
.nav-search .icon { color: var(--ink-mute); font-size: 14px; }

/* Hamburger button */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--paper);
  z-index: 49;
  padding: 80px var(--pad-3) var(--pad-4);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), visibility 0.3s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { transform: translateY(0); visibility: visible; }
.nav-mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-warm);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.nav-mobile-search .icon { color: var(--ink-mute); font-size: 16px; }
.nav-mobile-search input { flex: 1; border: 0; background: transparent; font-size: 15px; }
.nav-mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none !important;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.nav-mobile-link:hover { background: var(--gov-50); }
.nav-mobile-link.active { color: var(--gov-600); }
.nav-mobile-link.active::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--gov-500);
  margin-right: 12px;
  margin-left: -14px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--gov-700);
  color: white;
  border-bottom: 1px solid var(--gov-800);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--gov-800) 0%, rgba(15,42,82,0.85) 50%, rgba(15,42,82,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--pad-7) 0 var(--pad-6);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--pad-6);
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gov-200);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: white;
  max-width: 22ch;
}
.hero-lead {
  margin-top: var(--pad-3);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
}
.hero-actions {
  margin-top: var(--pad-4);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--pad-5);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--pad-3);
}
.hero-meta-item {
  border-right: 1px solid rgba(255,255,255,0.15);
  padding-right: 16px;
}
.hero-meta-item:last-child { border-right: none; }
.hero-meta-item .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gov-200);
  margin-bottom: 4px;
}
.hero-meta-item .value {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: white;
}
.hero-aside {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  padding: var(--pad-4);
}
.hero-aside h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  color: var(--gov-200);
}
.weather-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.weather-temp {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: white;
}
.weather-temp sup { font-size: 22px; vertical-align: super; opacity: 0.7; }
.weather-meta { text-align: right; opacity: 0.85; font-size: 13px; }
.weather-divider { height: 1px; background: rgba(255,255,255,0.15); margin: var(--pad-3) 0; }
.weather-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 12px;
}
.weather-mini > div { text-align: left; }
.weather-mini .v { font-family: var(--sans); font-size: 16px; font-weight: 600; color: white; }
.weather-mini .l { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-top: 2px; }

/* Hero alert/announcement strip */
.hero-strip {
  position: relative;
  z-index: 2;
  background: var(--alert-500);
  color: white;
  border-top: 1px solid rgba(0,0,0,0.15);
}
.hero-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
}
.hero-strip-inner .strip-tag {
  background: rgba(255,255,255,0.18);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-strip-inner .strip-text { flex: 1; }
.hero-strip-inner a { color: white; text-decoration: underline; font-weight: 600; }

/* ===== Quick services grid ===== */
.qs-section {
  padding: var(--pad-7) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.qs-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--pad-5);
  gap: var(--pad-4);
  flex-wrap: wrap;
  padding-bottom: var(--pad-3);
  border-bottom: 1px solid var(--line);
}
.qs-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  max-width: 22ch;
}
.qs-head .qs-intro {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 15px;
}
.qs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.qs-card {
  background: var(--paper);
  padding: var(--pad-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  position: relative;
  border-left: 3px solid transparent;
}
.qs-card:hover { background: var(--gov-50); border-left-color: var(--gov-500); }
.qs-card:hover .qs-arrow { color: var(--gov-600); transform: translateX(2px); }
.qs-icon {
  width: 40px; height: 40px;
  background: var(--gov-50);
  color: var(--gov-600);
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1px solid var(--gov-100);
  border-radius: 2px;
}
.qs-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.qs-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.qs-arrow {
  position: absolute;
  top: var(--pad-4);
  right: var(--pad-4);
  font-size: 16px;
  color: var(--ink-mute);
  transition: all 0.15s;
}
.qs-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* ===== Official announcements (Duyurular) ===== */
.announce-section {
  padding: var(--pad-7) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.announce-list {
  margin-top: var(--pad-4);
  border-top: 2px solid var(--ink);
}
.announce-list li { list-style: none; }
.announce-row {
  display: grid;
  grid-template-columns: 116px 96px 1fr auto 24px;
  align-items: baseline;
  gap: var(--pad-3);
  padding: var(--pad-3) 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
  color: var(--ink);
  border-left: 3px solid transparent;
  margin-left: -9px;
  padding-left: 6px;
  transition: background 0.15s, border-color 0.15s, padding-left 0.15s;
}
.announce-row--nometa { grid-template-columns: 116px 96px 1fr 24px; }
.announce-row:hover {
  background: var(--gov-50);
  border-left-color: var(--gov-500);
  padding-left: 14px;
}
.announce-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.announce-tag {
  justify-self: start;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gov-700);
  background: var(--gov-50);
  border: 1px solid var(--gov-100);
  border-radius: 2px;
  padding: 3px 7px;
  white-space: nowrap;
  line-height: 1.2;
}
.announce-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.announce-row:hover .announce-title { color: var(--gov-700); }
.announce-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.announce-arrow {
  justify-self: end;
  color: var(--ink-faint);
  font-size: 15px;
  transition: transform 0.15s, color 0.15s;
}
.announce-row:hover .announce-arrow { color: var(--gov-600); transform: translateX(3px); }

@media (max-width: 760px) {
  .announce-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "date tag"
      "title title"
      "meta arrow";
    gap: 6px var(--pad-3);
    padding: var(--pad-3) 6px;
  }
  .announce-date { grid-area: date; }
  .announce-tag { grid-area: tag; justify-self: end; }
  .announce-title { grid-area: title; font-size: 15.5px; }
  .announce-meta { grid-area: meta; }
  .announce-arrow { grid-area: arrow; justify-self: end; align-self: center; }
}

/* ===== News ===== */
.news-section {
  padding: var(--pad-7) 0;
  background: var(--paper-soft);
}
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--pad-4);
  margin-top: var(--pad-5);
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  border-color: var(--gov-400);
  box-shadow: 0 4px 18px -10px rgba(15,42,82,0.25);
}
.news-card.feature { grid-row: span 2; max-height: 640px; }

/* ===== News slider ===== */
.news-slider {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: var(--pad-5);
}
.ns-feature {
  background: var(--paper);
  display: grid;
  grid-template-rows: 1fr auto;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.3,1);
}
.ns-feature-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-warm);
}
.ns-feature-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.ns-feature:hover .ns-feature-img img { transform: scale(1.03); }
.ns-feature .news-tag {
  position: absolute; top: 16px; left: 16px;
}
.ns-feature-body { padding: var(--pad-4); display: flex; flex-direction: column; gap: 10px; }
.ns-feature-body h3 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.ns-feature-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.ns-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--gov-600);
  margin-top: 4px;
}

.ns-aside {
  background: var(--paper);
  padding: var(--pad-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ns-aside-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ns-up {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ns-up:hover .ns-up-title { color: var(--gov-600); }
.ns-up-img {
  width: 80px; height: 60px;
  overflow: hidden;
  background: var(--paper-warm);
}
.ns-up-img img { width: 100%; height: 100%; object-fit: cover; }
.ns-up-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.ns-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ns-controls > button {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  border-radius: 2px;
  transition: all 0.15s;
}
.ns-controls > button:hover { background: var(--gov-500); color: white; border-color: var(--gov-500); }
.ns-dots { display: flex; gap: 6px; }
.ns-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all 0.15s;
}
.ns-dots button.active {
  background: var(--gov-500);
  width: 22px;
  border-radius: 4px;
}
.ns-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* ===== Gallery slider ===== */
.gallery-section {
  padding: var(--pad-7) 0;
  background: var(--ink);
  color: white;
  border-bottom: 1px solid var(--gov-900);
}
.gallery-section .qs-head { border-bottom-color: rgba(255,255,255,0.15); }
.gallery-section .qs-head h2 { color: white; }
.gallery-section .qs-intro { color: rgba(255,255,255,0.7); }
.gallery-section .eyebrow { color: var(--gov-200); }

.gal-stage {
  position: relative;
  margin-top: var(--pad-5);
  height: 540px;
  overflow: hidden;
}
.gal-track {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(.2,.7,.3,1);
  padding: 0;
  width: max-content;
}
.gal-slide {
  flex: 0 0 auto;
  height: 92%;
  position: relative;
  overflow: hidden;
  background: var(--gov-900);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.4s, transform 0.4s, height 0.4s;
  filter: grayscale(0.4);
}
.gal-slide.active {
  opacity: 1;
  height: 100%;
  filter: grayscale(0);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.gal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--pad-4);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  color: white;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.gal-cap-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gov-200);
  flex-shrink: 0;
}
.gal-cap-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: right;
  max-width: 60%;
}

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  border-radius: 50%;
  z-index: 5;
  transition: all 0.15s;
  border: 1px solid rgba(255,255,255,0.5);
}
.gal-nav:hover { background: white; transform: translateY(-50%) scale(1.05); }
.gal-prev { left: 16px; }
.gal-next { right: 16px; }

.gal-bar {
  display: flex;
  gap: 6px;
  margin-top: var(--pad-4);
  justify-content: center;
}
.gal-tick {
  flex: 1;
  max-width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.gal-tick:hover { background: rgba(255,255,255,0.35); }
.gal-tick.active { background: var(--gov-200); height: 5px; }

@media (max-width: 1024px) {
  .news-slider { grid-template-columns: 1fr; }
  .gal-stage { height: 420px; }
}
@media (max-width: 640px) {
  .gal-stage { height: 320px; }
  .gal-cap { flex-direction: column; align-items: flex-start; }
  .gal-cap-text { max-width: 100%; text-align: left; font-size: 14px; }
  .gal-nav { width: 44px; height: 44px; font-size: 18px; }
  .ns-feature-body h3 { font-size: 20px; }
}
.news-img {
  aspect-ratio: 16/10;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.news-card.feature .news-img { aspect-ratio: 4/3; }
.news-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-card:hover .news-img img { transform: scale(1.04); }
.news-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gov-500);
  color: white;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.news-body {
  padding: var(--pad-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-date {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.news-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.news-card.feature h3 { font-size: 26px; }
.news-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Discover Ula band ===== */
.discover {
  position: relative;
  padding: var(--pad-7) 0;
  background: var(--gov-800);
  color: #fff;
  overflow: hidden;
}
.discover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gov-800) 0%, var(--gov-900) 100%);
}
.discover-inner { position: relative; z-index: 1; }
.discover h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  color: white;
  font-weight: 600;
  max-width: 18ch;
  letter-spacing: -0.022em;
}
.discover-lead {
  margin-top: var(--pad-3);
  max-width: 56ch;
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pad-3);
  margin-top: var(--pad-6);
}
.disc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.disc-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.3);
}
.disc-img { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.disc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.disc-card:hover .disc-img img { transform: scale(1.04); }
.disc-info { padding: var(--pad-3); }
.disc-info .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.disc-info h4 {
  font-family: var(--sans);
  font-size: 18px;
  color: white;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.disc-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: var(--pad-7) 0 var(--pad-4);
  border-top: 4px solid var(--gov-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--pad-5);
}
.footer h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
}
.footer a:hover { color: white; text-decoration: underline; }
.footer-brand h3 {
  font-family: var(--sans);
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.65); max-width: 36ch; line-height: 1.6; }
.footer-bottom {
  margin-top: var(--pad-6);
  padding-top: var(--pad-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: white; }

/* ===== Generic page header (subpages) ===== */
.page-head {
  padding: var(--pad-6) 0 var(--pad-5);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  max-width: 22ch;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.page-head h1 em { font-style: normal; color: var(--gov-600); }
.page-head .crumbs {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.page-head .crumbs a { color: var(--gov-600); text-decoration: none; }
.page-head .crumbs a:hover { text-decoration: underline; }
.page-head p {
  margin-top: var(--pad-3);
  max-width: 60ch;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  transition: all 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gov-500);
  color: white;
  border-color: var(--gov-500);
}
.btn-primary:hover { background: var(--gov-600); border-color: var(--gov-600); color: white; text-decoration: none; }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-warm); border-color: var(--ink-mute); color: var(--ink); text-decoration: none; }
.btn-light {
  background: white;
  color: var(--gov-700);
  border-color: white;
}
.btn-light:hover { background: var(--gov-50); color: var(--gov-700); text-decoration: none; }
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }

/* ===== Forms ===== */
.field { display: block; margin-bottom: var(--pad-3); }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gov-500);
  box-shadow: 0 0 0 3px var(--gov-100);
}

/* ===== Density variations ===== */
body[data-density="compact"]  { --density: 0.8; }
body[data-density="cozy"]     { --density: 0.92; }
body[data-density="default"]  { --density: 1; }
body[data-density="spacious"] { --density: 1.2; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--pad-5); }
  .qs-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.feature { grid-column: span 2; grid-row: auto; }
  .discover-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
  .nav-burger { display: flex; }
  .nav-links { display: none; }
  .nav-inner { padding: 14px var(--pad-3); }
  .news-section { padding: var(--pad-6) 0; }
  .qs-section, .gallery-section, .discover { padding: var(--pad-6) 0; }
}
@media (max-width: 768px) {
  .news-slider { grid-template-columns: 1fr; }
  .ns-feature-body h3 { font-size: 22px; }
  .ns-feature-body p { font-size: 14px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.feature { grid-column: span 1; max-height: none; }
  .discover-grid { grid-template-columns: 1fr; }
  .hero-content { padding: var(--pad-5) 0 var(--pad-4); }
  .hero-title { font-size: clamp(32px, 8vw, 48px); }
  .hero-lead { font-size: 16px; }
  .hero-aside { padding: var(--pad-3); }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .hero-strip-inner { flex-wrap: wrap; gap: 8px; padding: 10px var(--pad-3); }
  .hero-strip-inner .strip-text { font-size: 13px; flex: 1 1 100%; order: 3; }
  .qs-head { flex-direction: column; align-items: flex-start; }
  .qs-head h2 { font-size: clamp(24px, 6vw, 32px); }
  .qs-head .qs-intro { font-size: 14px; }
  .page-head { padding: var(--pad-5) 0 var(--pad-4); }
  .page-head h1 { font-size: clamp(28px, 7vw, 40px); }
  .page-head p { font-size: 15px; }
  .footer { padding: var(--pad-6) 0 var(--pad-4); }
  .footer-grid { gap: var(--pad-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gal-stage { height: 380px; }
  .gal-cap { padding: var(--pad-3); }
  .gal-cap-text { font-size: 14px; }
  .gov-strip-inner { flex-wrap: wrap; gap: 6px 12px; padding: 6px var(--pad-3); }
  .gov-strip .gov-right { display: none; }
  .topbar-inner { padding: 6px var(--pad-3); }
  .topbar .tb-left a:not(:first-child) { display: none; }
  .brand-text .b-2 { font-size: 10px; }
  .brand-text .b-1 { font-size: 15px; }
  /* Detail page */
  main section .wrap[style*="grid-template-columns: 1.4fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Council list horizontal scroll */
  .ns-up { grid-template-columns: 64px 1fr; }
  .ns-up-img { width: 64px; height: 48px; }
}
@media (max-width: 640px) {
  :root {
    --pad-5: calc(24px * var(--density));
    --pad-6: calc(36px * var(--density));
    --pad-7: calc(48px * var(--density));
  }
  .qs-grid, .news-grid, .discover-grid, .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { font-size: 11px; gap: 8px; flex-wrap: wrap; }
  .topbar .tb-left { display: none; }
  .gov-strip-inner { font-size: 11px; }
  .gov-strip .gov-flag { width: 14px; height: 10px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-meta-item:nth-child(3) { grid-column: span 2; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gal-stage { height: 300px; }
  .gal-cap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .gal-cap-text { max-width: 100%; text-align: left; font-size: 13px; }
  .gal-cap-num { font-size: 10px; }
  .gal-nav { width: 40px; height: 40px; font-size: 16px; }
  .gal-prev { left: 8px; } .gal-next { right: 8px; }
  .ns-controls > button { width: 40px; height: 40px; }
  .qs-card { padding: var(--pad-3); }
  .qs-card h3 { font-size: 16px; }
  .qs-card p { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-mobile { padding-top: 76px; }
  .nav-mobile-link { font-size: 16px; padding: 14px 14px; }
  .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }
  .hero-title { line-height: 1.1; }
  body { font-size: 15px; }
  .page-head .crumbs { font-size: 12px; flex-wrap: wrap; }
  /* Tables / wide grids — let them scroll */
  .wrap > div[style*="display:grid"][style*="grid-template-columns:auto 1fr auto auto auto"],
  .wrap > div[style*="display:flex"][style*="flex-direction:column"][style*="background:var(--line)"] {
    overflow-x: auto;
  }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s cubic-bezier(.2,.7,.3,1) both; }

/* ===== Scroll reveal ===== */
[data-rv] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(.2,.7,.3,1) var(--rv-d, 0ms),
    transform 0.8s cubic-bezier(.2,.7,.3,1) var(--rv-d, 0ms);
  will-change: opacity, transform;
}
[data-rv].rv-in { opacity: 1; transform: none; }

/* ===== Hero parallax ===== */
.hero-bg img {
  position: relative;
  top: -12%;
  height: 124%;
  will-change: transform;
}

/* ===== Nav scrolled shadow ===== */
.nav.scrolled { box-shadow: 0 3px 18px rgba(15, 42, 82, 0.12); }

/* ===== Card hover micro-lift ===== */
.qs-card {
  transition: background 0.15s, border-color 0.15s,
    transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s;
}
.qs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgba(15, 42, 82, 0.3);
}
.disc-card { transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(.2,.7,.3,1); }
.disc-card:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1; transform: none; transition: none; }
  .fade-up { animation: none; }
  .hero-bg img { transform: none !important; }
  .qs-card:hover, .disc-card:hover { transform: none; }
}

/* Focus ring (erişilebilirlik) */
*:focus-visible {
  outline: 3px solid var(--gov-400);
  outline-offset: 2px;
}
