:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4273;
  --gold: #c9a227;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2533;
  --muted: #5f6b7a;
  --border: #dde3ea;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 1px rgba(11, 37, 69, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: 0; }

body {
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body.modal-acik { overflow: hidden; }
button, select, input, .card { touch-action: manipulation; }

a { color: inherit; text-decoration: none; }
.container { width: min(1240px, 92%); margin-inline: auto; }

/* ---------- Üst şerit ---------- */
.topbar { background: #071a33; color: #a9b6c8; font-size: .78rem; }
.topbar-inner { display: flex; justify-content: space-between; padding: 7px 0; gap: 12px; }
.topbar strong { color: #fff; font-weight: 500; }

/* ---------- Başlık ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--border); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 16px; }
.emblem { width: 52px; height: 58px; flex-shrink: 0; }
.brand-org {
  font-size: .78rem; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--muted);
}
.brand-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.6rem; font-weight: 700; color: var(--navy);
  letter-spacing: .3px; line-height: 1.2;
}

.masthead-right { display: flex; align-items: center; gap: 12px; }
.masthead-search { position: relative; width: min(340px, 100%); }
.masthead-search input {
  width: 100%; font: inherit; font-size: .92rem;
  padding: 11px 42px 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #f8fafc; outline: none; transition: .15s;
}
.masthead-search input:focus { border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 3px rgba(29,66,115,.12); }
.masthead-search svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 18px; fill: var(--muted); }

/* İletişim butonu */
.contact-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 7px 16px 7px 12px; border: 1px solid var(--navy);
  transition: .15s; white-space: nowrap;
}
.contact-btn:hover { background: var(--navy-3); }
.contact-btn svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }
.contact-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.contact-text small { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: #b9c7da; font-weight: 600; }
.contact-text strong { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.mainnav { background: var(--navy); border-top: 3px solid var(--gold); }
.mainnav .container { display: flex; }
.mainnav a {
  color: #d5deea; padding: 13px 20px; font-size: .88rem; font-weight: 500;
  letter-spacing: .6px; text-transform: uppercase; border-bottom: 3px solid transparent;
  transition: .15s;
}
.mainnav a:hover { color: #fff; background: var(--navy-2); }
.mainnav a.active { color: #fff; border-bottom-color: var(--gold); background: var(--navy-2); }

/* ---------- Sayfa başlığı ---------- */
.pagehead {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; padding: 34px 0 70px;
}
.breadcrumb { font-size: .8rem; color: #9fb2cc; margin-bottom: 10px; }
.breadcrumb span { margin: 0 6px; opacity: .6; }
.pagehead h1 { font-family: "IBM Plex Serif", Georgia, serif; font-size: 2rem; font-weight: 700; }
.pagehead p { color: #c3d0e0; margin-top: 4px; max-width: 700px; }

/* ---------- İstatistikler ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-top: -44px; position: relative;
}
.stat {
  background: #fff; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(11,37,69,.08);
  padding: 16px 18px; border-left: 4px solid var(--c, var(--navy));
}
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 4px; }

/* ---------- Araç çubuğu ---------- */
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; margin-top: 28px;
}
.segmented { display: flex; flex-wrap: wrap; gap: 4px; }
.seg {
  font: inherit; font-size: .84rem; font-weight: 500;
  background: transparent; border: 1px solid transparent; color: var(--text);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: .15s;
}
.seg:hover { background: #f1f4f8; }
.seg .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.seg .count {
  font-size: .72rem; background: #eef1f5; color: var(--muted);
  padding: 1px 7px; border-radius: 10px; font-weight: 600;
}
.seg.active { background: var(--navy); color: #fff; }
.seg.active .count { background: rgba(255,255,255,.18); color: #fff; }

.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar select {
  font: inherit; font-size: .85rem; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  color: var(--text); outline: none; cursor: pointer;
}
.toolbar select:focus { border-color: var(--navy-3); }

.result-info { font-size: .85rem; color: var(--muted); margin: 18px 0 12px; }
.result-info strong { color: var(--text); }

/* ---------- Kartlar ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
  cursor: pointer; outline: none;
}
.card:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.card:active { transform: scale(.985); }
@media (hover: hover) {
  .card:hover { box-shadow: 0 10px 26px rgba(11,37,69,.13); transform: translateY(-2px); }
  .card:hover .btn-detail { background: var(--navy); color: #fff; }
}

.photo { aspect-ratio: 3 / 4; background: #e7ebf0; position: relative; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c);
}
.initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #e3e8ee 0 10px, #dde3ea 10px 20px);
  color: #8794a6;
}
.initials svg { width: 46%; fill: currentColor; opacity: .55; }
.photo .rec {
  position: absolute; top: 10px; left: 10px;
  background: rgba(11,37,69,.85); color: #fff; font-size: .7rem; font-weight: 600;
  padding: 3px 8px; border-radius: 2px; letter-spacing: .6px;
}

.card-body { padding: 14px 16px 6px; flex: 1; }
.card-body h3 {
  font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--navy); line-height: 1.3;
}
.meta { list-style: none; margin-top: 10px; font-size: .83rem; }
.meta li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--border); }
.meta span { color: var(--muted); }
.meta b { font-weight: 600; text-align: right; }

.card-foot { padding: 10px 16px 16px; }
.btn-detail {
  display: block; text-align: center;
  width: 100%; font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; padding: 9px;
  background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius);
  transition: .15s;
}

.badge {
  display: inline-block; background: var(--c); color: #fff;
  font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .8px;
}

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 50px 20px; color: var(--muted); text-align: center;
}
.empty strong { color: var(--text); }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0 50px; flex-wrap: wrap; }
.pagination button {
  font: inherit; font-size: .85rem; min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--border); background: #fff; border-radius: var(--radius); cursor: pointer;
  color: var(--text);
}
.pagination button:hover:not(:disabled) { border-color: var(--navy-3); }
.pagination button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- Hakkında ---------- */
.about { background: #fff; border-top: 1px solid var(--border); padding: 46px 0; }
.about h2 { font-family: "IBM Plex Serif", Georgia, serif; color: var(--navy); font-size: 1.4rem; margin-bottom: 10px; }
.about h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin-top: 8px; }
.about p { color: var(--muted); max-width: 820px; white-space: pre-line; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(7, 26, 51, .72);
  display: grid; place-items: center; padding: 20px; z-index: 50;
  animation: fade .18s ease-out;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 820px;
  max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: rise .2s ease-out;
}
.modal-head {
  background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold);
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; font-size: .78rem; font-weight: 600; letter-spacing: 1.5px;
}
.modal-close { background: none; border: none; color: #cbd5e1; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-content { display: grid; grid-template-columns: 290px 1fr; overflow-y: auto; }
.modal-photo { aspect-ratio: 3/4; background: #e7ebf0; position: relative; border-bottom: 5px solid var(--c); }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 24px 28px 28px; }
.modal-body h2 {
  font-size: 1.45rem; color: var(--navy); text-transform: uppercase; letter-spacing: .4px;
  margin: 12px 0 14px; line-height: 1.25;
}
.fields { border: 1px solid var(--border); border-radius: var(--radius); }
.fields div { display: grid; grid-template-columns: 120px 1fr; font-size: .88rem; }
.fields div + div { border-top: 1px solid var(--border); }
.fields dt { background: #f6f8fb; color: var(--muted); font-weight: 600; padding: 8px 12px; }
.fields dd { padding: 8px 12px; font-weight: 500; }
.modal-body h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted);
  margin: 20px 0 6px;
}
.modal-body .desc { white-space: pre-line; color: #334155; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Alt bilgi ---------- */
.footer { background: var(--navy); color: #a9b6c8; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding: 36px 0; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { margin: 0; }
.footer-title { font-family: "IBM Plex Serif", Georgia, serif; color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.footer-links { display: flex; gap: 22px; align-items: flex-start; }
.footer-links a:hover { color: #fff; }
.footer-bottom { background: #071a33; padding: 12px 0; font-size: .78rem; }

/* ---------- Yukarı çık ---------- */
.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); box-shadow: 0 6px 18px rgba(7,26,51,.3);
  display: grid; place-items: center; z-index: 40;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s;
}
.to-top svg { width: 24px; fill: #fff; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .masthead-inner { flex-wrap: wrap; }
  .masthead-right { flex: 1 1 100%; }
  .masthead-search { flex: 1; width: auto; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .segmented, .toolbar-right { min-width: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .toolbar-right select { flex: 1; }
  .modal-content { grid-template-columns: 240px 1fr; }
}

