:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --text: #171614;
  --text-muted: #6b6a63;
  --border: #e4e2da;
  --accent: #2457c5;
  --container: 1080px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > .site-footer {
  flex-shrink: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}
.btn:hover {
  opacity: 0.85;
}

body.is-hero-page {
  overflow: hidden;
  height: 100vh;
}

/* --- Admin girişliyken görünen düzenleme çubuğu (ziyaretçiler hiç görmez) --- */
.admin-edit-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #1a2233;
  color: #cbd3e6;
  font-size: 0.82rem;
}
.admin-edit-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.admin-edit-bar-btn {
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.admin-edit-bar-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* --- Site header / nav --- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}
/* Anasayfa hero'sunda menü ayrı bir bar değil, görselin üzerine biniyor (orijinal tasarım) */
.site-header--overlay {
  position: absolute;
  /* Admin girişliyken üstte beliren düzenleme çubuğu bu noktada olabilir —
     var --admin-bar-offset boşsa 0, çubuk varsa header.ejs onu ölçüp
     ayarlıyor, menü çubuğun altına iner (üzerine binmez). */
  top: var(--admin-bar-offset, 0px);
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  padding: 12px 32px;
  max-width: none;
  margin: 0;
  width: 100%;
}
.site-header .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.site-header .logo img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-toggle-mobile {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle-mobile span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: static;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 12px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--radius);
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-item.has-mega.open > .mega-toggle {
  color: var(--text);
  font-weight: 700;
}
.nav-item .caret {
  font-size: 0.85em;
  opacity: 0.85;
  transition: transform 0.15s;
}
.nav-item.open .caret {
  transform: rotate(180deg);
}

/* --- Mega menu panel (masaüstü) --- */
.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: min(1080px, calc(100vw - 40px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 28px rgba(20, 20, 18, 0.09);
  overflow-x: hidden;
  /* Kısa ekranlarda site-nav.js max-height veriyor; o zaman kendi içinde kayar. */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-item.has-mega.open .mega-panel {
  display: block;
}
/* Sol sekme listesi + sağda seçili kategorinin içeriği (eBay/Amazon tarzı
   mega menü). Panel yüksekliği artık TÜM kategorilerin toplamı değil, sadece
   o an seçili TEK kategorinin boyutuyla sınırlı — hem çok daha kompakt hem de
   hangi sütunun hangi kategoriye ait olduğu hiç şüpheye yer bırakmıyor. */
.mega-flyout {
  display: flex;
  align-items: stretch;
  min-height: 260px;
}
.mega-flyout-nav {
  flex: 0 0 220px;
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.mega-flyout-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.mega-flyout-tab:hover {
  background: var(--bg);
  color: var(--text);
}
.mega-flyout-tab.active {
  background: var(--bg);
  border-left-color: var(--text);
  color: var(--text);
  font-weight: 700;
}
.mega-flyout-content {
  flex: 1;
  padding: 24px clamp(20px, 3vw, 40px);
  min-width: 0;
}
.mega-flyout-panel {
  display: none;
}
.mega-flyout-panel.active {
  display: block;
}
.mega-group-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 26px;
}
.mega-col {
  min-width: 150px;
}
.mega-col-wide {
  min-width: 300px;
}
.mega-col-wide3 {
  min-width: 420px;
}
.mega-col-wide4 {
  min-width: 540px;
}
.mega-col-title {
  font-weight: 700;
  font-size: 0.83rem;
  padding-bottom: 6px;
  margin-bottom: 8px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
a.mega-col-title {
  display: block;
  text-decoration: none;
}
a.mega-col-title:hover {
  color: var(--text);
  text-decoration: underline;
}
.mega-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: var(--mega-cols, 1);
  column-gap: 20px;
}
/* Uzun listeler tek dikey sütunda panel boyunu şişirmesin diye 2-3 sütuna
   bölünüyor (bkz. _mega-menu.ejs inline column-count) — scroll hiç gerekmesin diye. */
.mega-col-list li {
  break-inside: avoid;
}
.mega-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.mega-link {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.87rem;
  line-height: 1.45;
}
.mega-link:hover {
  color: var(--text);
  text-decoration: underline;
}
/* Alt kategorisi olmayıp tek başına duran bazı öğeler (örn. "Taramalar"),
   admin panelden işaretlenirse yanındaki kalın kategori başlıklarıyla
   (.mega-col-title) aynı ağırlıkta gösterilir — tek başına sönük kalmasın. */
.mega-link-bold {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--text);
}
.mega-link-bold:hover {
  color: var(--text);
  text-decoration: underline;
}


/* --- Mobil: hamburger + tam ekran akordiyon --- */
@media (max-width: 1024px) {
  .site-header .bar {
    padding-left: 24px;
    padding-right: 24px;
  }
  .nav-toggle-mobile {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open {
    display: block;
  }
  /* Sadece site-nav.js max-height verdiyse (kaydırması kapalı sayfa) kendi
     içinde kayar. Aksi halde overflow:auto + overscroll-behavior:contain,
     menünün üzerinden başlayan dokunuşta sayfa kaydırmasını engelliyordu
     (Android telefonda menü açıkken sayfa kaymıyordu). */
  .site-nav.open[style*="max-height"] {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav-link {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    border-radius: 0;
  }
  .nav-link:hover {
    background: none;
  }
  /* Açık panel, üstündeki başlık düğmesiyle birlikte tek bir "kutu" gibi
     görünsün diye: düğmenin kendi alt çizgisini kaldırıp o çizgiyi kutunun
     EN ALTINA taşıyoruz — böylece "bu kategori nerede bitip bir sonraki ana
     başlık nerede başlıyor" göz gezdirirken hemen belli oluyor, karışmıyor. */
  .nav-item.has-mega.open > .mega-toggle {
    border-bottom-color: transparent;
    color: var(--text);
    font-weight: 700;
  }
  .mega-panel {
    display: none;
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    overflow: visible;
    overscroll-behavior: auto;
  }
  .nav-item.has-mega.open .mega-panel {
    display: block;
    width: calc(100% - 12px);
    margin-left: 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
  }
  .mega-flyout {
    flex-direction: column;
    min-height: 0;
  }
  .mega-flyout-nav {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    background: none;
    padding: 10px 0 8px 14px;
    gap: 4px 8px;
  }
  .mega-flyout-tab {
    width: auto;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 4px;
  }
  .mega-flyout-tab.active,
  .mega-flyout-tab:hover {
    background: none;
    border-bottom-color: var(--text);
  }
  .mega-flyout-content {
    padding: 4px 0 14px 14px;
  }
  .mega-group-columns {
    flex-direction: column;
    gap: 12px;
  }
  .mega-col-wide,
  .mega-col-wide3,
  .mega-col-wide4 {
    min-width: auto;
  }
  .mega-col-list {
    column-count: 1 !important;
  }
  .site-header .bar {
    flex-wrap: wrap;
  }
}

/* --- Site footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 0;
}
.site-footer .footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.site-footer .footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.site-footer .socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer .socials a {
  display: inline-flex;
  color: var(--text-muted);
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}
.site-footer .socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
.site-footer .socials svg {
  width: 17px;
  height: 17px;
}
.site-footer .copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
}
.site-footer .footer-bottom-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.site-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 12px;
}
.site-footer .footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.site-footer .back-to-top:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}
.site-footer .back-to-top svg {
  width: 15px;
  height: 15px;
}
.site-footer .credit-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.site-footer .credit-logo-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.site-footer .credit-logo-link:hover {
  color: var(--accent);
  opacity: 1;
}
.site-footer .credit-logo {
  fill: currentColor;
}

/* --- Modules: shared spacing --- */
.module {
  padding: clamp(28px, 5vw, 52px) 0;
}
/* Görsel ağırlıklı bloklar (Fotoğraf Galerisi, 2 Sütun, Görsel Düzeni) art
   arda geldiğinde her ikisinin üst+alt boşluğu toplanıp aralarında aşırı
   büyük bir boşluk oluşuyordu — ikincinin üst boşluğu kaldırılıp sadece
   birincinin alt boşluğu kalıyor. Bir metin bloğunun hemen altına gelen ilk
   görsel bloğu için de aynısı geçerli — "yazı hemen altında görsel" kalıbı
   genelde tek bir bütün gibi okunmalı, aralarında tam blok boşluğu olmamalı. */
.module-media-block + .module-media-block,
.module-text + .module-media-block {
  padding-top: 0;
}
/* Bir metin/görsel bloğunun hemen ardından bir galeri/görsel bloğu
   geldiğinde aradaki boşluk artık öncekinin varsayılan (28-52px arası
   ekrana göre değişen) alt boşluğuna değil, sabit bir standarda bağlı
   (tarayıcıda canlı denenip göze hoş gelen değer olarak seçildi). */
.module-text:has(+ .module-media-block),
.module-media-block:has(+ .module-media-block) {
  padding-bottom: 10px;
}
/* Sayfa başlığı (Üst Görsel ve Başlık) ile hemen altındaki içerik arası
   sitede genelde 60-100px gibi çok açık duruyordu — tarayıcıda canlı
   denenip göze hoş gelen çok dar bir değere indirildi.
   .has-image (tam ekran arka plan görselli, ör. "Kimim" sayfası) hariç —
   o zaten kendi görseliyle bitiyor, altındaki modülün normal boşluğuna
   ihtiyacı var; yoksa görsel bir sonraki içeriğe yapışık görünüyordu. */
.module-hero:not(.has-image) {
  padding-bottom: 2px;
}
.module-hero:not(.has-image) + * {
  padding-top: 0;
}
.module h1, .module h2 {
  /* Admin'de bir başlık boyutu (piksel) girilmişse --heading-size onu ezer;
     girilmemişse tasarımın varsayılan, ekrana göre ölçeklenen boyutu kullanılır
     (masaüstünde tam 2.5rem'e sabitleniyor, dar ekranda küçülüyor). */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--heading-size, clamp(1.9rem, 4vw, 2.5rem));
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

/* --- Hero / page title --- */
.module-hero {
  padding-top: clamp(36px, 6vw, 60px);
}
.module-hero.has-image {
  position: relative;
  color: #fff;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.module-hero.has-image .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.module-hero.has-image .hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.module-hero.has-image .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.module-hero.has-image .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}
.module-hero.has-image .container {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}
.module-hero .page-breadcrumb {
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.module-hero.has-image .page-breadcrumb {
  color: rgba(255, 255, 255, 0.8);
}
.module-hero h1 {
  font-size: var(--heading-size, clamp(2rem, 5vw, 2.5rem));
  margin: 0 0 8px;
}
.module-hero .hero-subheading {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 900px;
  margin: 0 0 20px;
}
.module-hero .hero-subheading p {
  margin: 0 0 8px;
}
.module-hero.heading-color-dark {
  color: var(--text);
}
.module-hero.heading-color-light {
  color: #fff;
}
@media (max-width: 820px) {
  /* Görselli başlıkta (ör. "Kimim") metin dar ekranda görselin üstüne
     binince okunmuyordu — anasayfa hero'sundaki gibi mobilde görsel üstte,
     metin altında normal sayfa akışında. Masaüstü değişmiyor. */
  .module-hero.has-image {
    display: block;
    min-height: auto;
    color: var(--text);
  }
  .module-hero.has-image .hero-bg {
    position: static;
    height: 46vh;
  }
  .module-hero.has-image .hero-bg::after {
    display: none;
  }
  .module-hero.has-image .container {
    padding-top: 24px;
  }
  .module-hero.has-image .page-breadcrumb {
    color: var(--text-muted);
  }
  .module-hero.has-image.heading-color-light {
    color: var(--text);
  }
}

/* --- Anasayfa hero: tam ekran görsel, üzerinde sol-altta metin --- */
.module-home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.module-home-hero.has-image .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.module-home-hero.has-image .home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fotoğrafta konu sağ tarafta, sol taraf boş arka plan (metin paneli için
     tasarlanmış) — dar ekranlarda kırpma her zaman boş SOLDAN olsun diye
     sağa hizalı, yoksa dar pencerelerde tam konunun (yüz) olduğu kısım
     kırpılıp kayboluyordu. */
  object-position: top right;
}
.home-hero-panel {
  position: relative;
  z-index: 1;
  width: 53.065%;
  padding: 24px clamp(20px, 4vw, 56px) 56px;
}
.home-hero-panel h5 {
  font-family: "Noto Sans", sans-serif;
  font-size: var(--heading-size, 1.05rem);
  font-weight: 700;
  margin: 0 0 16px;
}
.home-hero-body {
  font-family: "Noto Sans", sans-serif;
  line-height: 1.45;
  /* Kaydırma (scroll) YOK: metin kısa ekranlarda ekran yüksekliğine göre
     ölçeklenir, böylece panel üstteki menüye taşmadan her zaman sığar. */
  font-size: clamp(11px, 1.75vh, 15px);
}
.home-hero-body p {
  margin: 0 0 14px;
}
.home-hero-body p:last-child {
  margin-bottom: 0;
}
.home-hero-body em {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
}
@media (max-height: 820px) {
  .home-hero-panel {
    padding-bottom: 32px;
  }
  .home-hero-body p {
    margin-bottom: 10px;
  }
}
@media (max-width: 820px) {
  /* Fotoğraf + tüm metin küçük ekrana asla tek seferde sığmaz, o yüzden
     mobilde masaüstünün aksine normal sayfa akışına ve scroll'a dönüyoruz. */
  body.is-hero-page {
    overflow: visible;
    height: auto;
  }
  .site-header--overlay {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .module-home-hero {
    min-height: auto;
    display: block;
  }
  .module-home-hero.has-image .home-hero-bg {
    position: static;
    height: 46vh;
  }
  .module-home-hero.has-image .home-hero-bg img {
    object-position: top right;
  }
  .home-hero-panel {
    width: 100%;
    padding: 24px clamp(20px, 4vw, 56px) 40px;
  }
  .home-hero-body {
    font-size: 15px;
  }
}

/* --- Text block --- */
.module-text .text-body {
  max-width: var(--text-max-width, 74ch);
  font-size: 1rem;
}
.module-text .text-body p {
  margin: 0 0 16px;
}

/* --- Zengin metin editöründeki hazır stiller (admin-richtext.js'teki
   "Stil" dropdown'ı) — Quill'in kendi CSS'i sadece admin'de yüklü olduğu için
   bu sınıfların karşılığı burada tanımlanıyor; text-body ve hero-subheading
   gibi tüm richtext alanlarını kapsar --- */
.text-body .ql-style-vurgu, .hero-subheading .ql-style-vurgu {
  font-weight: 700;
  font-size: 1.1em;
}
.text-body .ql-style-kucuknot, .hero-subheading .ql-style-kucuknot {
  font-size: 0.85em;
  color: var(--text-muted);
}
.text-body .ql-style-alinti, .hero-subheading .ql-style-alinti {
  border-left: 3px solid var(--border);
  padding-left: 14px;
  font-style: italic;
}

/* --- Metin + yan görsel(ler) (1-3 görselli galeriler metinle eşleşir) --- */
.article-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.article-text .text-body {
  font-size: 1rem;
}
.article-text .text-body p {
  margin: 0 0 16px;
}
.article-figures {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-figures figure {
  margin: 0;
}
.article-figures img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.article-figures figcaption {
  padding-top: 7px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-figures {
    margin-top: 4px;
  }
}

/* --- Image gallery --- */
/* Grid değil flexbox kullanıyoruz: son satır eksik kalırsa (örn. 3 sütunda 5
   görsel -> üstte 3, altta 2) grid'de o son satır sola yaslanır, flexbox +
   justify-content:center'da ise kendiliğinden ortalanır — "3 üstte, 2 altta
   ortalı" gibi düzenler için ekstra bir ayar gerekmesin diye. */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}
.gallery-group-caption {
  margin: 18px 0 0;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  white-space: pre-line;
}
.gallery-grid figure {
  flex: 1 1 220px;
  max-width: 320px;
}
.gallery-grid-1 figure {
  flex-basis: 100%;
  max-width: 100%;
}
.gallery-grid-2 figure {
  flex-basis: calc(50% - 8px);
  max-width: calc(50% - 8px);
}
.gallery-grid-3 figure {
  flex-basis: calc(33.333% - 11px);
  max-width: calc(33.333% - 11px);
}
.gallery-grid-4 figure {
  flex-basis: calc(25% - 12px);
  max-width: calc(25% - 12px);
}
.gallery-grid-5 figure {
  flex-basis: calc(20% - 13px);
  max-width: calc(20% - 13px);
}
@media (max-width: 700px) {
  .gallery-grid-2 figure,
  .gallery-grid-3 figure,
  .gallery-grid-4 figure,
  .gallery-grid-5 figure {
    flex-basis: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}
@media (max-width: 480px) {
  .gallery-grid-2 figure,
  .gallery-grid-3 figure,
  .gallery-grid-4 figure,
  .gallery-grid-5 figure {
    flex-basis: 100%;
    max-width: 100%;
  }
}
.gallery-grid figure {
  margin: 0;
}
.gallery-row-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}
.gallery-grid img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-grid figcaption {
  padding-top: 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

/* --- Görsel Düzeni (hazır kalıplar: tek / yanyana / büyük+2 küçük) ---
   Büyük+2 küçük kalıbında sağdaki (veya soldaki) 2 görsellik "stack" her
   zaman büyük görselle aynı toplam yüksekliğe gelsin diye object-fit:cover
   kullanılıyor — orijinal görsellerin en-boy oranı ne olursa olsun üstten
   ve alttan tam hizalı görünür, "kırpma" pahasına ama hiç bozuk/asimetrik
   sonuç çıkmaz. */
.layout-grid.layout-single {
  display: grid;
  justify-items: center;
}
/* %30 daha küçük görünsün diye 640px yerine 448px (640 * 0.7) — hem ortalı
   hem sola yaslı halinde aynı oranda küçültülüyor. */
.layout-grid.layout-single .layout-slot {
  max-width: 448px;
  width: 100%;
}
.layout-grid.layout-single.align-left {
  justify-items: start;
}
/* Sola yaslıyken "2 görsel yanyana" düzeninde bir görselin kapladığı alanı
   taklit ediyoruz — konteynerin yaklaşık yarısı (aradaki 16px boşluk
   düşülerek), sonra aynı %30 küçültme uygulanıyor. */
.layout-grid.layout-single.align-left .layout-slot {
  max-width: calc((50% - 8px) * 0.7);
  width: 100%;
}
/* "2 görsel yanyana": eşit sütun genişliği yerine, orijinal sitedeki gibi
   ikisi de AYNI YÜKSEKLİĞE gelecek şekilde (genişlikleri kendi en-boy
   oranlarına göre doğal kalır) yan yana diziliyor — bir görsel yatay bir
   görsel dikeyse eşit sütunlarda ikisi de garip/farklı boyda görünürdü. */
/* "Justified row" tekniği: her figürün flex-grow'u kendi en-boy oranına
   (--ratio, sunucuda media.width/height'tan hesaplanıp inline yazılıyor)
   eşit. flex-basis:0 olduğu için nihai genişlik SADECE bu orana göre
   dağılıyor — matematiksel olarak ikisi de otomatik aynı yüksekliğe gelir
   VE satır tam olarak konteyner genişliğini doldurur (orijinal sitedeki
   gibi). Kırpma da distorsiyon da yok, JS de gerekmiyor. */
.layout-grid.layout-pair {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.layout-grid.layout-pair .layout-slot {
  flex-grow: var(--ratio, 1);
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
}
.layout-grid.layout-pair .layout-slot img {
  display: block;
  width: 100%;
  height: auto;
}
.layout-slot {
  margin: 0;
}
.layout-slot img,
.layout-images img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.layout-slot figcaption,
.layout-caption {
  padding-top: 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}
/* Büyük+2 küçük kalıbı: alt yazılar, görselleri hizalayan grid'in DIŞINDA,
   ayrı bir satırda — böylece alt yazı uzunluğu ne olursa olsun görsel
   kutularının üstten/alttan hizası hiç etkilenmiyor (object-fit:cover ile
   büyük görselin toplam yüksekliğine kırpılarak eşitleniyor). */
.layout-images {
  display: grid;
  gap: 16px;
}
.layout-grid.layout-big_left .layout-images {
  grid-template-columns: 2fr 1fr;
}
.layout-grid.layout-big_right .layout-images {
  grid-template-columns: 1fr 2fr;
}
.layout-grid.layout-big_right .layout-slot-big {
  grid-column: 2;
  grid-row: 1;
}
.layout-grid.layout-big_right .layout-slot-stack {
  grid-column: 1;
  grid-row: 1;
}
.layout-slot-big img {
  height: 100%;
  object-fit: cover;
}
.layout-slot-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.layout-slot-stack img {
  height: 100%;
  object-fit: cover;
}
.layout-captions {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.layout-grid.layout-big_left .layout-captions {
  grid-template-columns: 2fr 1fr;
}
.layout-grid.layout-big_right .layout-captions {
  grid-template-columns: 1fr 2fr;
}
.layout-grid.layout-big_right .layout-captions .layout-caption:first-child {
  grid-column: 2;
  grid-row: 1;
}
.layout-grid.layout-big_right .layout-caption-stack {
  grid-column: 1;
  grid-row: 1;
}
.layout-caption-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.layout-caption-stack .layout-caption {
  padding-top: 0;
}
@media (max-width: 700px) {
  .layout-images,
  .layout-captions {
    grid-template-columns: 1fr;
  }
  .layout-grid.layout-pair {
    flex-direction: column;
    align-items: center;
  }
  .layout-grid.layout-pair .layout-slot {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }
  .layout-grid.layout-big_right .layout-slot-big,
  .layout-grid.layout-big_right .layout-slot-stack,
  .layout-grid.layout-big_right .layout-captions .layout-caption:first-child,
  .layout-grid.layout-big_right .layout-caption-stack {
    grid-column: 1;
  }
  .layout-slot-stack,
  .layout-caption-stack {
    grid-template-rows: none;
  }
  .layout-slot-big img,
  .layout-slot-stack img {
    height: auto;
  }
}

/* --- Lightbox (galeri / metin-yanı-görsel modüllerindeki fotoğraflar) --- */
body.lightbox-locked {
  overflow: hidden;
}
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 9, 0.92);
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-body {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: #f2f1ee;
  font-size: 0.92rem;
  text-align: center;
  margin: 14px 0 0;
  max-width: 70ch;
}
.lightbox-counter {
  color: rgba(242, 241, 238, 0.6);
  font-size: 0.8rem;
  margin-top: 6px;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #f2f1ee;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
@media (max-width: 640px) {
  .lightbox-overlay {
    padding: 16px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/* --- Services list --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  border-top: 2px solid var(--text);
  padding-top: 14px;
}
.service-card .icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testimonial-card {
  border-left: 2px solid var(--border);
  padding-left: 18px;
}
.testimonial-card blockquote {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.6;
}
.testimonial-card .author {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-card .role {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Video --- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- PDF Dosyası --- */
.pdf-embed {
  width: 100%;
  max-width: 860px;
  height: 75vh;
  max-height: 800px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.pdf-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.pdf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  /* Mobil tarayıcılarda gömülü PDF önizlemesi genelde güvenilir çalışmıyor
     (boş/beyaz alan olarak kalabiliyor) — orada sadece indirme/yeni sekme
     butonlarını gösteriyoruz, her cihazda çalışması garanti olsun diye. */
  .pdf-embed {
    display: none;
  }
}

/* --- Contact form --- */
.contact-form {
  max-width: 480px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .field {
  margin-bottom: 14px;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
}
.form-notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.form-notice.success {
  border-color: #1e7a34;
  color: #1e7a34;
}
.form-notice.error {
  border-color: #d1352b;
  color: #d1352b;
}

/* --- Ayırıcı çizgi --- */
.module-divider {
  padding: clamp(12px, 3vw, 24px) 0;
}
.divider-line {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Buton grubu --- */
.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
}
.social-icon svg {
  width: 17px;
  height: 17px;
}
.social-icon:hover {
  background: var(--surface);
  color: var(--accent);
}
.social-icon-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* --- 404 / placeholder --- */
.state-page {
  padding: 90px 0;
  text-align: center;
}
.state-page h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  font-weight: 800;
}
.state-page p {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- 2 Sütun modülü --- */
.columns-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.column-item {
  min-width: 0;
}
.columns-ratio-50-50 .column-item {
  flex: 1 1 50%;
}
.columns-ratio-60-40 .column-item-left {
  flex: 1 1 60%;
}
.columns-ratio-60-40 .column-item-right {
  flex: 1 1 40%;
}
.columns-ratio-40-60 .column-item-left {
  flex: 1 1 40%;
}
.columns-ratio-40-60 .column-item-right {
  flex: 1 1 60%;
}
.column-item .module-gallery,
.column-item .module-text,
.column-item .module-video {
  padding: 0;
}
@media (max-width: 760px) {
  .columns-row {
    flex-direction: column;
    gap: 28px;
  }
  .columns-ratio-50-50 .column-item,
  .columns-ratio-60-40 .column-item-left,
  .columns-ratio-60-40 .column-item-right,
  .columns-ratio-40-60 .column-item-left,
  .columns-ratio-40-60 .column-item-right {
    flex: 1 1 100%;
  }
}

/* --- Sayfa altı Önceki/Sonraki gezinme (footer'dan hemen önce) --- */
.page-nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.page-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 46%;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.page-nav-link:hover {
  color: var(--accent);
}
.page-nav-next {
  margin-left: auto;
  text-align: right;
}
.page-nav-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}
.page-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .page-nav-label {
    white-space: normal;
  }
}

/* --- Zaman Tüneli modülü (masaüstü): bölüm normal sayfa akışında sabit
   yükseklikte duruyor (header/footer hiç kaymıyor); üzerindeyken fare
   tekerleği/trackpad dikey hareketi yatay kaydırmaya çevriliyor, çizelge
   sonuna gelince sayfa normal kaymaya devam ediyor (bkz.
   public/js/timeline-scroll.js). Mobilde aşağıdaki media query'de dikey
   listeye dönüyor. --- */
.module-timeline {
  padding: clamp(24px, 5vw, 48px) 0;
}
/* Standart .container (1080px) yerine daha geniş, kendi sınırı - yatay
   çizelge daha çok ekran genişliğini kullansın, ama yine de yanlarda
   makul bir boşluk kalsın. */
.timeline-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.timeline-current-decade {
  margin-bottom: 14px;
}
.timeline-current-decade span {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.timeline-current-decade.is-changing span {
  opacity: 0;
  transform: translateY(-4px);
}
.timeline-scroll {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--border) transparent;
}
.timeline-track {
  position: relative;
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  height: 400px;
  padding: 0 8px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--border);
  transform: translateY(-1px);
}
.timeline-decade-marker {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.timeline-decade-marker::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 26%;
  bottom: 26%;
  width: 1px;
  background: var(--border);
  transform: translateX(-0.5px);
}
.timeline-decade-label {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
}
.timeline-item {
  position: relative;
  flex: 0 0 240px;
  display: block;
  color: var(--text);
  text-decoration: none;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  z-index: 1;
}
.timeline-card {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 224px;
  height: 96px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.timeline-item-top .timeline-card {
  bottom: calc(50% + 20px);
  transform: translateX(-50%);
}
.timeline-item-bottom .timeline-card {
  top: calc(50% + 20px);
  transform: translateX(-50%);
}
.timeline-item-top .timeline-card::after,
.timeline-item-bottom .timeline-card::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--border);
  transform: translateX(-0.5px);
}
.timeline-item-top .timeline-card::after {
  top: 100%;
}
.timeline-item-bottom .timeline-card::after {
  bottom: 100%;
}
.timeline-item:hover .timeline-card {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.timeline-thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}
.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.timeline-year {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.timeline-title {
  font-weight: 600;
  line-height: 1.35;
  font-size: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.timeline-item:hover .timeline-title {
  color: var(--accent);
}

/* Mobilde sabitleme/yatay kaydırma yerine tek sütun, dikey bir liste
   (küçük ekranda yatay kaydırma daha zahmetli, dikey liste daha rahat okunur). */
@media (max-width: 680px) {
  .timeline-current-decade {
    display: none;
  }
  .timeline-scroll {
    overflow: visible;
  }
  .timeline-track {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
  }
  .timeline-track::before {
    left: 19px;
    top: 0;
    bottom: 0;
    right: auto;
    width: 2px;
    height: auto;
    transform: none;
  }
  .timeline-decade-marker {
    padding: 10px 0;
    justify-content: flex-start;
  }
  .timeline-decade-marker::before {
    display: none;
  }
  .timeline-item {
    flex: none;
    display: block;
    margin: 18px 0;
    padding-left: 44px;
  }
  .timeline-dot {
    left: 19px;
    top: 22px;
  }
  .timeline-item-top .timeline-card,
  .timeline-item-bottom .timeline-card {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: 100%;
    height: auto;
  }
  .timeline-item-top .timeline-card::after,
  .timeline-item-bottom .timeline-card::after {
    display: none;
  }
}
