/* Diyarbakır DSYB — kurumsal tema */
:root {
  --blue-900: #0a2647;
  --blue-800: #0d3d70;
  --blue-700: #134a82;
  --blue-600: #1e5fa8;       /* primary */
  --blue-500: #2c75c0;
  --blue-100: #e8f0fa;
  --blue-50:  #f4f8fd;

  --red-700: #a4161a;
  --red-600: #c1121f;        /* TC kırmızı vurgu */
  --red-100: #fce8ea;

  --gold-600: #c8941f;       /* ödül/üye rozetleri için yedek */

  --ink-900: #0e1117;
  --ink-800: #1a1f2b;
  --ink-700: #2c3340;
  --ink-500: #5b6573;
  --ink-400: #828b99;
  --ink-300: #b6bdc8;
  --ink-200: #d8dde4;
  --ink-100: #eef0f4;

  --paper:   #ffffff;
  --paper-2: #f6f8fb;
  --paper-3: #eef2f7;

  --rule:    #d8dde4;
  --rule-strong: #1a1f2b;

  --primary: var(--blue-600);
  --primary-dark: var(--blue-800);
  --accent: var(--red-600);
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --text: var(--ink-900);
  --text-soft: var(--ink-500);

  --shadow-sm: 0 1px 2px rgba(13, 61, 112, 0.06), 0 1px 1px rgba(13, 61, 112, 0.04);
  --shadow-md: 0 4px 14px rgba(13, 61, 112, 0.08), 0 2px 4px rgba(13, 61, 112, 0.05);
  --shadow-lg: 0 14px 32px rgba(13, 61, 112, 0.12), 0 4px 8px rgba(13, 61, 112, 0.06);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --container: 1240px;
  --gutter: 24px;

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --t-fast: 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--ink-900); }
h1 { font-size: 44px; letter-spacing: -0.02em; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p  { margin: 0 0 12px; color: var(--ink-700); }
a  { color: var(--blue-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-600); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-900);
  color: white;
  font-size: 12.5px;
  border-bottom: 3px solid var(--red-600);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 0;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: white; }
.topbar .gov-strip {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}
.topbar .gov-strip::before {
  content: ""; width: 14px; height: 14px;
  background: linear-gradient(180deg, var(--red-600) 50%, var(--red-700) 50%);
  border-radius: 2px;
  display: inline-block;
}
.topbar .quick-links { display: flex; gap: 16px; align-items: center; }
.topbar .quick-links .div { width: 1px; height: 12px; background: rgba(255,255,255,0.2); }

/* ---------- Brand row ---------- */
.brandrow {
  background: white;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.brandrow-inner { display: flex; align-items: center; gap: 18px; }
.brand-mark {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  pointer-events: none;
}
.brand-text .name { font-size: 19px; font-weight: 800; line-height: 1.15; color: var(--blue-900); }
.brand-text .sub  { font-size: 13px; color: var(--ink-500); margin-top: 2px; letter-spacing: 0.02em; }
.brandrow .spacer { flex: 1; }
.brand-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 8px 12px; min-width: 280px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.brand-search:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(30,95,168,0.12); }
.brand-search input { border: 0; background: transparent; outline: none; flex: 1; font: inherit; font-size: 14px; }
.brand-search svg { color: var(--ink-400); }

.brand-cta {
  background: var(--red-600);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.brand-cta:hover { background: var(--red-700); color: white; transform: translateY(-1px); }

/* ---------- Main nav ---------- */
.mainnav {
  background: var(--blue-600);
  border-bottom: 1px solid var(--blue-800);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
.mainnav-inner {
  display: flex; align-items: stretch;
}
.mainnav a {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.mainnav a:hover { background: var(--blue-700); color: white; }
.mainnav a.active { background: var(--blue-800); color: white; }
.mainnav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--red-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-md);
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue-600); color: white; }
.btn-primary:hover { background: var(--blue-700); color: white; box-shadow: var(--shadow-md); }
.btn-accent { background: var(--red-600); color: white; }
.btn-accent:hover { background: var(--red-700); color: white; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: white; }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--paper-3); color: var(--ink-900); }

/* ---------- Cards ---------- */
.card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card:hover { border-color: var(--blue-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Image placeholder — striped, with monospace label */
.imgph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 8px, var(--paper-3) 8px 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}
.imgph .imgph-label {
  background: white; border: 1px dashed var(--ink-300);
  padding: 4px 10px; border-radius: 3px;
}
.imgph.dark {
  background:
    repeating-linear-gradient(45deg, var(--blue-800) 0 8px, var(--blue-900) 8px 16px);
  color: rgba(255,255,255,0.7);
}
.imgph.dark .imgph-label { background: var(--blue-900); border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); }

/* Section heading */
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 24px;
  border-bottom: 2px solid var(--blue-900);
}
.section-heading .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 6px;
}
.section-heading h2 { font-size: 28px; }
.section-heading .more {
  font-weight: 700; font-size: 13px; color: var(--blue-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.section-heading .more:hover { color: var(--red-600); }

/* Page header (sub pages) */
.pagehead {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: white;
  padding: 36px 0 32px;
  border-bottom: 4px solid var(--red-600);
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.pagehead .breadcrumb {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
}
.pagehead .breadcrumb a { color: rgba(255,255,255,0.7); }
.pagehead .breadcrumb a:hover { color: white; }
.pagehead h1 { color: white; margin-top: 8px; }
.pagehead .lead { color: rgba(255,255,255,0.85); max-width: 640px; margin-top: 10px; font-size: 15.5px; }

/* Footer */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.78);
  padding: 48px 0 0;
  margin-top: 60px;
  border-top: 4px solid var(--red-600);
}
.footer h4 { color: white; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,0.78); font-size: 13.5px; }
.footer a:hover { color: white; }
.footer .brand-mark { background: white; color: var(--blue-700); }
.footer .brand-text .name { color: white; font-size: 16px; }
.footer .brand-text .sub { color: rgba(255,255,255,0.6); }
.footer .footer-bottom {
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
}

/* Pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-mono);
}
.pill-red { background: var(--red-100); color: var(--red-700); }
.pill-blue { background: var(--blue-100); color: var(--blue-800); }
.pill-gray { background: var(--paper-3); color: var(--ink-700); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 480ms cubic-bezier(0.2,0.8,0.2,1) both; }

@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(193,18,31,0.5); } 50% { box-shadow: 0 0 0 6px rgba(193,18,31,0); } }
.dot { width: 8px; height: 8px; background: var(--red-600); border-radius: 50%; display: inline-block; animation: pulseDot 1.6s infinite; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-700); letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--ink-200); border-radius: var(--r-md);
  background: white; color: var(--ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(30,95,168,0.12);
}
.field.error input, .field.error textarea { border-color: var(--red-600); }
.field .err { color: var(--red-700); font-size: 12px; }

/* ========== HAMBURGER MENU ========== */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  z-index: 51;
}

/* ========== RESPONSIVE — Tablet Landscape ≤1024px ========== */
@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }

  .brand-search { min-width: 200px; }

  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ========== RESPONSIVE — Tablet Portrait ≤768px ========== */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }

  /* Topbar — hide on mobile to save space */
  .topbar { display: none; }

  /* Brandrow */
  .brand-search { display: none; }
  .brand-cta { display: none; }
  .brand-mark { width: 48px; height: 48px; font-size: 18px; }
  .brand-text .name { font-size: 16px; }
  .brand-text .sub { font-size: 11px; }

  /* Hamburger visible */
  .hamburger { display: flex; align-items: center; justify-content: center; }

  /* Nav wrapper — stack vertically on mobile */
  .mainnav-wrap {
    display: flex;
    flex-direction: column;
    padding: 0 var(--gutter);
  }
  .mainnav-wrap .hamburger {
    align-self: flex-start;
    padding: 12px 0;
  }

  /* Main nav — mobile dropdown */
  .mainnav-inner {
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    width: 100%;
  }
  .mainnav-inner.open {
    max-height: 500px;
  }
  .mainnav a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
  }

  /* Page header */
  .pagehead { padding: 28px 0 24px; }
  .pagehead h1 { font-size: 28px; }
  .pagehead .lead { font-size: 14px; }

  /* Section heading */
  .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Footer */
  .footer { padding: 36px 0 0; margin-top: 40px; }
  .footer .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ========== RESPONSIVE — Mobile ≤480px ========== */
@media (max-width: 480px) {
  :root { --gutter: 14px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }

  .topbar-inner { padding: 6px 0; }
  .topbar .gov-strip { font-size: 8px; gap: 6px; }

  .brandrow { padding: 12px 0; }
  .brandrow-inner { gap: 12px; }
  .brand-mark { width: 42px; height: 42px; font-size: 16px; }
  .brand-text .name { font-size: 14px; }

  .btn { padding: 10px 14px; font-size: 13px; }

  .pagehead { padding: 22px 0 18px; }
  .pagehead h1 { font-size: 24px; }

  .footer .footer-bottom { font-size: 10px; }
}
