/* ==========================================================================
   Mental Aritmetik Derneği — Modern tema
   Palet: logo mavisi (#2b5ca8) + logo turuncusu (#f58220)
   ========================================================================== */

:root {
  --primary: #2b5ca8;
  --primary-dark: #1e4280;
  --primary-light: #eaf1fb;
  --accent: #f58220;
  --accent-dark: #d96f12;
  --accent-light: #fef2e6;
  --dark: #16294e;
  --text: #2c3444;
  --muted: #64708a;
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #e3e8f1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 41, 78, .06), 0 6px 18px rgba(22, 41, 78, .07);
  --shadow-lg: 0 8px 30px rgba(22, 41, 78, .14);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img, iframe, video { max-width: 100%; }

img { height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; font-weight: 700; }

h1 { font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.35rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.3vw, 1.75rem); margin-bottom: .85rem; }
h3 { font-size: clamp(1.12rem, 1rem + .7vw, 1.35rem); margin-bottom: .7rem; }

p { margin-bottom: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* Görsel olarak gizli (erişilebilirlik) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Üst bilgi çubuğu (topbar)
   ========================================================================== */
.topbar {
  background: var(--dark);
  color: #cfd9ec;
  font-size: .82rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #ffffff; font-weight: 600; }
.topbar a:hover { color: var(--accent); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Header + navigasyon
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 22px rgba(22, 41, 78, .1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; display: block; }
.brand-name { font-weight: 800; color: var(--primary); font-size: .98rem; line-height: 1.15; letter-spacing: .2px; }
.brand-name small { display: block; font-weight: 600; color: var(--accent-dark); font-size: .72rem; letter-spacing: .6px; }

/* Ana menü */
.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav a.active { background: var(--primary); color: #fff; }
.nav a.nav-cta { background: var(--accent); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav a.nav-cta.active { background: var(--accent-dark); }

/* Mobil menü butonu */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  width: 44px;
  height: 42px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 26px; }
.nav-toggle[aria-expanded="true"]::before { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { top: 20px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 10px 14px 16px;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: .96rem; }
  .nav a.nav-cta { margin-left: 0; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* ==========================================================================
   Hero / sayfa başlığı
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(1100px 420px at 85% -60%, rgba(245, 130, 32, .22), transparent 60%),
    linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 55%, var(--primary) 100%);
  color: #fff;
  padding: 46px 0 42px;
}
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #d7e1f4; margin-bottom: 0; max-width: 760px; }
.page-hero .kicker {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #ffd9ae;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Ana sayfa hero */
.hero {
  background:
    radial-gradient(1200px 500px at 88% -70%, rgba(245, 130, 32, .28), transparent 62%),
    linear-gradient(135deg, #101f3c 0%, var(--dark) 40%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 130, 32, .28), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 42px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 1.15rem + 2.6vw, 2.7rem); margin-bottom: .6rem; }
.hero .lead { color: #d7e1f4; font-size: 1.06rem; max-width: 640px; margin-bottom: 1.4rem; }
.hero .kicker { background: rgba(245, 130, 32, .18); border-color: rgba(245, 130, 32, .45); color: #ffcf9c; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.event-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  backdrop-filter: blur(6px);
}
.event-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: .2rem; }
.event-card .date {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff; font-weight: 700;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .86rem;
  margin-bottom: 14px;
}
.event-card ul { list-style: none; }
.event-card li {
  display: flex; gap: 10px; align-items: flex-start;
  color: #e3eaf8; font-size: .93rem;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.event-card li:first-of-type { border-top: 0; }
.event-card .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

@media (max-width: 900px) {
  .hero { padding: 46px 0 42px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Butonlar
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: .93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(245, 130, 32, .32); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .05); }
.btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: var(--border); background: #fff; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-sm { padding: 8px 15px; font-size: .85rem; border-radius: 9px; }

/* ==========================================================================
   Bölümler ve kartlar
   ========================================================================== */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 780px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head .kicker {
  display: inline-block;
  color: var(--accent-dark);
  background: var(--accent-light);
  font-size: .72rem; font-weight: 800;
  letter-spacing: 1.3px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
  margin-bottom: 10px;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; display: block; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; margin-top: 12px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-card .lbl { color: var(--muted); font-size: .88rem; font-weight: 600; margin-top: 4px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

/* Uyarı / duyuru şeridi */
.notice {
  background: linear-gradient(135deg, var(--accent-light), #fff);
  border: 1px solid #f6d8b4;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.notice h3 { color: var(--accent-dark); margin-bottom: .35rem; }
.notice p { margin-bottom: 0; font-size: .95rem; }

/* ==========================================================================
   Slider (ana sayfa galeri şeridi)
   ========================================================================== */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
}
.slider-track { position: relative; aspect-ratio: 21 / 9; }
.slider-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slider-slide.active { opacity: 1; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: rgba(10, 20, 40, .55);
  color: #fff; font-size: 1.15rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.slider-nav:hover { background: var(--accent); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; gap: 7px; justify-content: center;
}
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: background .2s ease, transform .2s ease;
}
.slider-dots button.active { background: var(--accent); transform: scale(1.25); }
@media (max-width: 620px) { .slider-track { aspect-ratio: 16 / 10; } .slider-nav { width: 36px; height: 36px; } }

/* ==========================================================================
   Tablolar
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .92rem;
}
table.data thead th {
  background: var(--dark);
  color: #fff;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  white-space: nowrap;
}
table.data tbody td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:nth-child(even) { background: #fafbfe; }
table.data tbody tr:hover { background: var(--primary-light); }
table.data .num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .score { font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .name { font-weight: 600; color: var(--dark); }

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .82rem;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.rank-1 { background: linear-gradient(135deg, #ffd76e, #f5a623); color: #5b3c00; box-shadow: 0 3px 10px rgba(245, 166, 35, .4); }
.rank-2 { background: linear-gradient(135deg, #e8edf5, #c3ccdc); color: #46536b; }
.rank-3 { background: linear-gradient(135deg, #f2c9a0, #d99e63); color: #5c3a12; }

/* Podyum kartları */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.podium-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.podium-card .medal { font-size: 1.9rem; line-height: 1; }
.podium-card .p-name { font-weight: 800; color: var(--dark); font-size: 1.02rem; }
.podium-card .p-meta { color: var(--muted); font-size: .86rem; }
.podium-card .p-score { font-weight: 800; color: var(--primary); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.podium-card .p-title {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: .74rem; font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-top: 6px;
  align-self: center;
}
.podium-card.first { border-color: #f0c168; box-shadow: 0 10px 28px rgba(245, 166, 35, .22); }
@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; }
  .podium-card.first { order: -1; }
}

/* Yıl videosu — sonuç sayfasında ortalanmış */
.year-video {
  max-width: 720px;
  margin: 0 auto 1.75rem;
}
.year-video .video-card { margin: 0; }

/* ==========================================================================
   Yıl sekmeleri + filtre paneli (sonuçlar)
   ========================================================================== */
.year-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: thin;
}
.year-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .18s ease;
}
.year-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.year-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 5px 14px rgba(43, 92, 168, .3);
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.filter-bar .field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 190px; }
.filter-bar label { font-size: .74rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.filter-bar input, .filter-bar select {
  font: inherit;
  font-size: .92rem;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfcfe;
  color: var(--text);
  width: 100%;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 92, 168, .15);
}
.filter-count { margin-left: auto; color: var(--muted); font-size: .88rem; font-weight: 600; }
@media (max-width: 700px) { .filter-count { margin-left: 0; } }

/* Pager */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pager button {
  min-width: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}
.pager button:hover { border-color: var(--primary); color: var(--primary); }
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .45; cursor: default; }

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ==========================================================================
   İçerik (makale) tipografisi
   ========================================================================== */
.prose { max-width: 860px; }
.prose h2 { margin-top: 2rem; color: var(--primary-dark); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.3rem; }
.prose li { margin-bottom: .45rem; }
/* Uzun bağlantıların mobilde taşmasını engelle */
.prose a { overflow-wrap: anywhere; word-break: break-word; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 1.4rem 0;
  color: var(--muted);
}
.prose img { border-radius: var(--radius-sm); }
.prose .portre {
  float: left;
  max-width: 340px;
  margin: 6px 24px 14px 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.prose a img { transition: transform .2s ease, box-shadow .2s ease; cursor: zoom-in; }
.prose a img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* Ortalanmış fotoğraf + açıklama bloğu */
.prose .foto-blok {
  margin: 1.6rem auto;
  text-align: center;
  max-width: 100%;
}
.prose .foto-blok img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.prose .foto-blok figcaption {
  max-width: 560px;
  margin: .7rem auto 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 620px) {
  .prose .portre { float: none; max-width: 100%; margin: 0 0 14px; }
}
.prose::after { content: ""; display: table; clear: both; }
.prose iframe {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

/* Makale kartı */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px);
}

/* ==========================================================================
   Galeri
   ========================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); display: block; }
.video-card figcaption { padding: 12px 6px 4px; font-weight: 600; color: var(--dark); font-size: .95rem; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.photo-card a { display: block; line-height: 0; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-card a:hover img { transform: scale(1.04); }
.photo-card figcaption { padding: 14px 16px; font-size: .88rem; color: var(--muted); flex: 1; }
@media (max-width: 980px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .photo-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   İletişim formu
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 36px);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: .88rem; color: var(--dark); margin-bottom: 6px; }
.form-row label .req { color: #d64545; }
.form-row input, .form-row textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfcfe;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 92, 168, .15);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 140px; }
.captcha-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.captcha-row img { border: 1px solid var(--border); border-radius: 8px; }
.form-note { color: var(--muted); font-size: .85rem; }
.form-message { margin-top: 14px; padding: 12px 15px; border-radius: 9px; font-size: .92rem; font-weight: 600; display: none; }
.form-message.ok { display: block; background: #e8f7ec; border: 1px solid #b7e4c2; color: #1d6b33; }
.form-message.err { display: block; background: #fdecec; border: 1px solid #f5c2c2; color: #a33; }

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.info-card ul { list-style: none; }
.info-card li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .93rem; }
.info-card li:first-child { border-top: 0; }
.info-card .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

/* ==========================================================================
   Galeri/lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 15, 30, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 20px;
  background: rgba(255,255,255,.12);
  color: #fff; border: 0; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer;
}
.lightbox-close:hover { background: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #b9c5dd;
  margin-top: auto;
  padding: 48px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 36px;
}
.site-footer h3 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9c5dd; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { background: #fff; border-radius: 10px; padding: 7px 10px; height: 52px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: #8fa0c0;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Yukarı çık */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease, transform .2s ease;
  z-index: 150;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ==========================================================================
   Yardımcılar / animasyonlar
   ========================================================================== */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.small { font-size: .86rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .to-top, .slider-nav, .slider-dots, .filter-bar, .year-tabs { display: none !important; }
  body { background: #fff; }
  .table-wrap { box-shadow: none; }
}
