/* ==========================================================================
   GÜMÜŞLER BELEDİYESİ — Kurumsal Site Tasarım Sistemi
   ========================================================================== */

:root {
  /* Renkler */
  --navy-950: #071a2e;
  --navy-900: #0e2843;
  --navy-800: #163a5c;
  --navy-700: #1f4a73;
  --navy-600: #2c5c8a;
  --navy-100: #e8eff8;
  --navy-50:  #f4f8fc;

  --red-600: #c8102e;
  --red-700: #a80d26;
  --red-50:  #fdecef;

  --gold-500: #d4a017;
  --gold-400: #e8bb3f;
  --gold-50:  #fdf6e3;

  --white: #ffffff;
  --ink-900: #16212e;
  --ink-700: #3c4a5a;
  --ink-500: #64758a;
  --ink-300: #aab6c4;
  --border: #e3e9f1;
  --bg-soft: #f6f8fb;

  --success: #1a8f5e;

  /* Tipografi */
  --font-heading: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-scale: 1;

  /* Ölçüler */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --container: 1240px;
  --header-h: 88px;

  /* Gölgeler */
  --shadow-sm: 0 2px 8px rgba(14, 40, 67, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 40, 67, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 40, 67, 0.16);
  --shadow-red: 0 10px 24px rgba(200, 16, 46, 0.28);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  font-size: calc(16px * var(--font-scale));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { position: relative; }
.section-pad { padding: 76px 0; }
@media (max-width: 768px) { .section-pad { padding: 48px 0; } }

/* ---------- Yardımcı Sınıflar ---------- */
.text-center { text-align: center; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: #fff; padding: 12px 18px; z-index: 9999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buton ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-full); font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; transition: all var(--transition); white-space: nowrap;
}
.btn-red { background: var(--red-600); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(200,16,46,.34); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Section Title ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); margin-bottom: 10px; }
.section-eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--gold-500); border-radius: 3px; }
.section-title { font-size: clamp(1.6rem, 2.4vw, 2.25rem); margin: 0; }
.section-desc { color: var(--ink-500); max-width: 620px; margin: 10px 0 0; }
.section-head.centered { flex-direction: column; text-align: center; align-items: center; }
.link-more { font-weight: 700; color: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.link-more:hover { gap: 10px; color: var(--red-600); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar { background: var(--navy-950); color: rgba(255,255,255,.82); font-size: .82rem; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.top-bar-left { display: flex; align-items: center; gap: 18px; }
.top-bar-left span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--gold-500); }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-social { display: flex; gap: 8px; }
.top-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background var(--transition); font-size: .78rem; }
.top-social a:hover { background: var(--red-600); }
.font-size-ctrl { display: flex; align-items: center; gap: 4px; border-left: 1px solid rgba(255,255,255,.18); padding-left: 14px; }
.font-size-ctrl button { background: rgba(255,255,255,.08); color: #fff; border: none; width: 24px; height: 24px; border-radius: 6px; font-size: .78rem; }
.font-size-ctrl button:hover { background: var(--gold-500); color: var(--navy-950); }
@media (max-width: 860px) { .top-bar-left span.hide-sm { display: none; } }
@media (max-width: 640px) { .top-bar { display: none; } }

/* ==========================================================================
   HEADER / MEGA MENÜ
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 2px 18px rgba(14,40,67,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height var(--transition); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 54px; width: auto; transition: height var(--transition); }
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-family: var(--font-heading); font-weight: 800; color: var(--navy-900); font-size: 1.02rem; }
.brand-text span { display: block; font-size: .74rem; color: var(--ink-500); font-weight: 600; letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 15px; font-weight: 700; font-size: .92rem; color: var(--navy-900); border-radius: var(--radius-sm); transition: all var(--transition); }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--red-600); background: var(--red-50); }
.main-nav .dropdown { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); border: 1px solid var(--border); }
.main-nav li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; color: var(--ink-700); }
.main-nav .dropdown a:hover { background: var(--navy-50); color: var(--red-600); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-50); display: flex; align-items: center; justify-content: center; color: var(--navy-900); border: none; font-size: 1rem; transition: all var(--transition); }
.icon-btn:hover { background: var(--navy-900); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: none; background: var(--navy-900); color: #fff; border-radius: var(--radius-sm); font-size: 1.15rem; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .brand img { height: 44px; }
}

/* Mobil kayan menü */
.mobile-nav-panel { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.mobile-nav-panel.open { visibility: visible; }
.mobile-nav-overlay { position: absolute; inset: 0; background: rgba(7,26,46,.6); opacity: 0; transition: opacity var(--transition); }
.mobile-nav-panel.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86vw); background: var(--navy-950); color: #fff; padding: 22px; overflow-y: auto; transform: translateX(100%); transition: transform var(--transition); }
.mobile-nav-panel.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-drawer .close-btn { background: rgba(255,255,255,.1); border: none; color: #fff; width: 38px; height: 38px; border-radius: 50%; margin-left: auto; display: flex; align-items: center; justify-content: center; }
.mobile-nav-drawer ul { margin-top: 20px; }
.mobile-nav-drawer > ul > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-drawer a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 700; }
.mobile-nav-drawer .sub-menu { display: none; padding-left: 14px; }
.mobile-nav-drawer .sub-menu a { font-weight: 500; font-size: .92rem; color: rgba(255,255,255,.8); padding: 10px 4px; }
.mobile-nav-drawer li.open > .sub-menu { display: block; }
.mobile-nav-drawer .has-sub > a > .chev { transition: transform var(--transition); }
.mobile-nav-drawer li.open > a > .chev { transform: rotate(180deg); }
.mobile-social { display: flex; gap: 10px; margin-top: 24px; }
.mobile-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   HERO / SLIDER
   ========================================================================== */
.hero { position: relative; background: var(--navy-950); }
.hero .swiper-slide { height: min(640px, 82vh); min-height: 420px; position: relative; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,20,35,.92) 0%, rgba(7,20,35,.42) 46%, rgba(7,20,35,.35) 100%); }
.hero-slide-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 76px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: var(--radius-full); margin-bottom: 20px; width: fit-content; border: 1px solid rgba(255,255,255,.22); }
.hero-tag i { color: var(--gold-500); }
.hero-title { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); max-width: 820px; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.hero-desc { color: rgba(255,255,255,.86); max-width: 600px; font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .swiper-pagination { text-align: right; padding-right: 40px; bottom: 30px !important; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .5; width: 9px; height: 9px; }
.hero .swiper-pagination-bullet-active { opacity: 1; background: var(--gold-500); width: 26px; border-radius: 5px; }
.hero-nav { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: all var(--transition); }
.hero-nav:hover { background: var(--red-600); border-color: var(--red-600); }
.hero-prev { left: 24px; } .hero-next { right: 24px; }
@media (max-width: 640px) { .hero-nav { display: none; } .hero-slide-inner { padding-bottom: 46px; } }

/* Hızlı Erişim şeridi (hero'nun üstüne binen kart) */
.quick-access { position: relative; z-index: 20; margin-top: -56px; }
.quick-access-inner { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; }
.quick-access-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 10px; border-right: 1px solid var(--border); transition: all var(--transition); }
.quick-access-item:last-child { border-right: none; }
.quick-access-item:hover { background: var(--navy-900); transform: translateY(-4px); }
.quick-access-item:hover span, .quick-access-item:hover .qa-icon { color: #fff; }
.qa-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; }
.quick-access-item span { font-weight: 700; font-size: .82rem; color: var(--navy-900); }
@media (max-width: 992px) { .quick-access-inner { grid-template-columns: repeat(3, 1fr); } .quick-access-item:nth-child(3) { border-right: none; } }
@media (max-width: 560px) {
  .quick-access { margin-top: -34px; }
  .quick-access-inner { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-md); gap: 1px; background: var(--border); }
  .quick-access-item { border-right: none; background: #fff; padding: 20px 8px; }
}

/* ==========================================================================
   BAŞKAN BÖLÜMÜ
   ========================================================================== */
.mayor-section { background: var(--navy-950); color: #fff; overflow: hidden; position: relative; }
.mayor-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.mayor-photo { position: relative; }
.mayor-photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-lg); }
.mayor-photo::before { content: ''; position: absolute; inset: -14px -14px auto auto; width: 130px; height: 130px; border: 3px solid var(--gold-500); border-radius: var(--radius-lg); z-index: -1; top: 30px; right: -20px; }
.mayor-quote-icon { font-size: 2.6rem; color: var(--gold-500); opacity: .5; }
.mayor-name { color: #fff; font-size: 1.9rem; margin-bottom: 4px; }
.mayor-role { color: var(--gold-500); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; margin-bottom: 22px; display: block; }
.mayor-text { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 26px; }
@media (max-width: 900px) { .mayor-grid { grid-template-columns: 1fr; } .mayor-photo { max-width: 280px; margin: 0 auto; } }

/* ==========================================================================
   İSTATİSTİK ŞERİDİ
   ========================================================================== */
.stats-strip { background: linear-gradient(120deg, var(--red-600), #8f0c22); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 40px 14px; border-right: 1px solid rgba(255,255,255,.18); color: #fff; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.stat-label { font-size: .86rem; font-weight: 600; opacity: .92; margin-top: 6px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.18); } .stat-item:nth-child(odd){border-right:1px solid rgba(255,255,255,.18);} }

/* ==========================================================================
   KART SİSTEMİ (Haber / Duyuru / Proje / Hizmet)
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--transition); display: flex; flex-direction: column; height: 100%; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-50); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.card-badge { position: absolute; top: 14px; left: 14px; background: var(--red-600); color: #fff; font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .04em; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .03em; }
.card-date i { color: var(--gold-500); }
.card-title { font-size: 1.06rem; margin: 0; line-height: 1.4; }
.card-title a { transition: color var(--transition); }
.card:hover .card-title a { color: var(--red-600); }
.card-desc { color: var(--ink-500); font-size: .92rem; flex: 1; }
.card-more { font-weight: 700; font-size: .85rem; color: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.card:hover .card-more { color: var(--red-600); }

/* Yatay liste kartı (duyuru/ihale/ilan listeleri) */
.list-card { display: flex; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; transition: all var(--transition); align-items: center; }
.list-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-3px); }
.list-card .list-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--navy-50); color: var(--navy-800); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.list-card-body { flex: 1; min-width: 0; }
.list-card-title { font-size: 1.02rem; margin: 0 0 6px; }
.list-card-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-500); font-weight: 600; }
.list-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.status-pill { padding: 5px 12px; border-radius: var(--radius-full); font-size: .74rem; font-weight: 700; }
.status-pill.active { background: #e4f6ee; color: var(--success); }
.status-pill.closed { background: #fdeceb; color: var(--red-700); }
.list-stack { display: flex; flex-direction: column; gap: 16px; }

/* Hizmet kartı */
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 26px; text-align: center; transition: all var(--transition); }
.service-card:hover { background: var(--navy-900); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--navy-50); color: var(--navy-800); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 18px; transition: all var(--transition); }
.service-card:hover .service-icon { background: var(--gold-500); color: var(--navy-950); }
.service-card h3 { font-size: 1.05rem; }
.service-card:hover h3 { color: #fff; }
.service-card p { color: var(--ink-500); font-size: .88rem; margin: 0; }
.service-card:hover p { color: rgba(255,255,255,.75); }

/* ==========================================================================
   GALERİ
   ========================================================================== */
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,26,46,.88), transparent 55%); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-weight: 700; font-size: .9rem; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   HARİTA + İLETİŞİM BANDI
   ========================================================================== */
.contact-strip { display: grid; grid-template-columns: 1fr 1fr; }
.contact-strip .map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.15); }
.contact-strip .info-box { background: var(--navy-950); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.info-line { display: flex; gap: 16px; align-items: flex-start; }
.info-line i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--gold-500); flex-shrink: 0; }
.info-line strong { display: block; margin-bottom: 3px; }
.info-line span, .info-line a { color: rgba(255,255,255,.75); font-size: .92rem; }
@media (max-width: 860px) { .contact-strip { grid-template-columns: 1fr; } .contact-strip .info-box { padding: 44px 24px; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.footer-social a:hover { background: var(--red-600); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: .9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-500); }
.footer-newsletter input { width: 100%; padding: 12px 16px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; margin-bottom: 10px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.back-to-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--red-600); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); border: none; z-index: 500; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-700); }

/* Yüzen erişim düğmeleri (whatsapp vb.) */
.floating-actions { position: fixed; left: 22px; bottom: 26px; display: flex; flex-direction: column; gap: 12px; z-index: 500; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition); }
.floating-actions.show { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-actions a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-lg); transition: transform var(--transition); }
@media (max-width: 640px) { .floating-actions a { width: 44px; height: 44px; font-size: 1.1rem; } }
.floating-actions a:hover { transform: scale(1.1); }
.fa-wa { background: #25d366; }
.fa-tel { background: var(--navy-800); }

/* ==========================================================================
   İÇ SAYFA — SAYFA BAŞLIĞI / BREADCRUMB
   ========================================================================== */
.page-hero { position: relative; background: linear-gradient(150deg, var(--navy-900), var(--navy-950)); padding: 64px 0 54px; color: #fff; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(212,160,23,.22), transparent 70%); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; max-width: 760px; }

/* ==========================================================================
   İÇ SAYFA — GENEL LAYOUT (liste + sidebar)
   ========================================================================== */
.content-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 44px; align-items: flex-start; }
@media (max-width: 940px) { .content-layout { grid-template-columns: 1fr; } }
.sidebar-box { background: var(--bg-soft); border-radius: var(--radius-md); padding: 26px; margin-bottom: 24px; }
.sidebar-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.sidebar-box ul li { margin-bottom: 8px; }
.sidebar-box ul a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; background: #fff; transition: all var(--transition); }
.sidebar-box ul a:hover { background: var(--navy-900); color: #fff; }
.sidebar-box.contact-box { background: var(--navy-950); color: #fff; }
.sidebar-box.contact-box h3 { color: #fff; }

/* Detay sayfa metin gövdesi */
.article { max-width: 100%; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-500); font-size: .86rem; font-weight: 600; margin-bottom: 18px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article-body { font-size: 1.02rem; color: var(--ink-700); line-height: 1.9; }
.article-body img { border-radius: var(--radius-md); margin: 18px 0; }
.article-body p { margin-bottom: 1.2em; }
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-50); display: flex; align-items: center; justify-content: center; color: var(--navy-800); }
.share-row a:hover { background: var(--navy-900); color: #fff; }

/* Boş durum */
.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-500); }
.empty-state i { font-size: 2.6rem; color: var(--ink-300); margin-bottom: 14px; display: block; }

/* Filtre çubuğu (kategori sekmeleri) */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-tabs a { padding: 10px 20px; border-radius: var(--radius-full); background: var(--bg-soft); font-weight: 700; font-size: .85rem; color: var(--ink-700); transition: all var(--transition); }
.filter-tabs a:hover { background: var(--navy-100); }
.filter-tabs a.active { background: var(--navy-900); color: #fff; }

/* Sayfalama */
.pagination { display: flex; justify-content: center; margin-top: 46px; }
.pagination ul { display: flex; gap: 8px; }
.pagination a, .pagination .dots { min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem; background: var(--bg-soft); color: var(--ink-700); }
.pagination a:hover { background: var(--navy-100); }
.pagination li.active a { background: var(--navy-900); color: #fff; }

/* ==========================================================================
   FORM (İletişim)
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: .86rem; color: var(--navy-900); }
.form-group input, .form-group textarea, .form-group select {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-family: inherit; font-size: .95rem; transition: border-color var(--transition), box-shadow var(--transition); background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(31,74,115,.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.alert { padding: 16px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: .92rem; margin-bottom: 24px; display: flex; gap: 10px; align-items: center; }
.alert-success { background: #e4f6ee; color: var(--success); }
.alert-error { background: #fdeceb; color: var(--red-700); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   POPUP
   ========================================================================== */
.site-popup-overlay { position: fixed; inset: 0; background: rgba(7,26,46,.72); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.site-popup-overlay.show { display: flex; }
.site-popup { background: #fff; border-radius: var(--radius-lg); overflow: hidden; max-width: 480px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.site-popup img { width: 100%; display: block; }
.site-popup-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(7,26,46,.7); color: #fff; border: none; display: flex; align-items: center; justify-content: center; z-index: 2; }

/* ==========================================================================
   AOS basit fallback (kütüphane yüklenmezse de içerik görünür kalsın)
   ========================================================================== */
[data-aos] { opacity: 1; }

/* Erişilebilirlik kontrast modu */
body.high-contrast { filter: contrast(1.15) saturate(1.1); }

/* Manşet rozeti */
.card-badge-manset { background: var(--gold-500, #d4a017); color: #3a2b00; }

/* list-card içinde görsel küçük resmi */
.list-card .list-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.list-card .list-icon.has-img { background: var(--navy-50); overflow: hidden; }

/* Editör içeriğindeki görsel hizalama sınıfları (TinyMCE) */
.article-body img { max-width: 100%; height: auto; }
.article-body .img-full { width: 100%; display: block; }
.article-body .img-left { float: left; margin: 6px 20px 12px 0; max-width: 48%; }
.article-body .img-right { float: right; margin: 6px 0 12px 20px; max-width: 48%; }
.article-body::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  .article-body .img-left, .article-body .img-right { float: none; max-width: 100%; margin: 14px 0; }
}

/* ==========================================================================
   ✦ MODERNİZASYON KATMANI — 2026 tasarım cilası
   ========================================================================== */

:root {
  --shadow-xs: 0 1px 2px rgba(14,40,67,.05), 0 1px 3px rgba(14,40,67,.06);
  --shadow-sm: 0 2px 6px rgba(14,40,67,.05), 0 4px 14px rgba(14,40,67,.06);
  --shadow-md: 0 6px 18px rgba(14,40,67,.08), 0 14px 36px rgba(14,40,67,.09);
  --shadow-lg: 0 18px 44px rgba(14,40,67,.14), 0 8px 20px rgba(14,40,67,.08);
  --ring: 0 0 0 3px rgba(212,160,23,.4);
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { letter-spacing: -.018em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold-500); color: var(--navy-950); }

/* Klavye odak halkası — her yerde tutarlı */
a:focus-visible, button:focus-visible,
.btn:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}
:target { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Başlıklar ---------- */
.section-eyebrow { letter-spacing: .14em; font-size: .74rem; }
.section-eyebrow::before { width: 22px; height: 2px; }
.section-title { letter-spacing: -.022em; }
.section-desc { line-height: 1.7; }
.section-head { margin-bottom: 42px; }
.link-more { font-size: .9rem; }
.link-more i { transition: transform var(--transition); }
.link-more:hover i { transform: translateX(3px); }

/* ---------- Butonlar ---------- */
.btn {
  padding: 13px 28px;
  letter-spacing: .005em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn i { font-size: .95em; }
.btn-red { box-shadow: 0 8px 20px rgba(200,16,46,.24); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200,16,46,.32); }
.btn-navy:hover, .btn-gold:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
:root { --header-h: 100px; }
.site-header { box-shadow: 0 1px 0 var(--border), 0 6px 24px rgba(14,40,67,.06); backdrop-filter: saturate(1.4); }
.site-header.shrink { box-shadow: 0 2px 22px rgba(14,40,67,.12); }
.site-header.shrink .brand img { height: 52px !important; }

/* Menü tüm öğelerle sığsın: header tam genişlik + kompakt boşluklar */
.site-header .container,
.top-bar .container {
  max-width: none;
  padding-left: clamp(16px, 2.6vw, 44px);
  padding-right: clamp(16px, 2.6vw, 44px);
}
.site-header .container { gap: 14px; }
.brand { gap: 13px; }
.brand img { height: 72px !important; width: auto; }
.brand-text strong { font-size: 1.04rem; }
.brand-text span { font-size: .74rem; }
@media (max-width: 1560px) { .brand img { height: 64px !important; } }
@media (max-width: 480px)  { .brand img { height: 50px !important; } }

.main-nav > ul { gap: 0; }
.main-nav > ul > li > a {
  padding: 10px 12px;
  font-size: .86rem;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.main-nav > ul > li > a > i.bi { font-size: .62rem; }
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px;
  background: var(--red-600); border-radius: 2px; transform: scaleX(0); transition: transform var(--transition);
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.active > a::after { transform: scaleX(1); }
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { background: transparent; color: var(--red-600); }
.main-nav .dropdown { border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); border-color: #edf1f6; }

.header-cta { gap: 8px; }
.icon-btn { width: 40px; height: 40px; transition: transform var(--transition), background var(--transition), color var(--transition); }
.icon-btn:hover { transform: translateY(-2px); }

/* Orta genişlik: menü öğelerini biraz daha sıkıştır, sloganı gizle */
@media (max-width: 1400px) and (min-width: 1241px) {
  .main-nav > ul > li > a { padding: 9px 8px; font-size: .8rem; }
}
@media (max-width: 1340px) and (min-width: 1241px) {
  .brand-text span { display: none; }
}
/* Dar ekran: hamburger menüye geç (menü sığmadan önce) */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .site-header .burger { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero-slide-bg::after {
  background: linear-gradient(0deg, rgba(6,17,30,.94) 0%, rgba(6,17,30,.55) 40%, rgba(6,17,30,.30) 70%, rgba(6,17,30,.42) 100%);
}
.hero-slide-inner { padding-bottom: 90px; }
.hero-tag { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.2); font-size: .74rem; letter-spacing: .1em; }
.hero-title { font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.hero-desc { line-height: 1.7; }
.hero .swiper-pagination-bullet-active { width: 28px; }
@media (max-width: 640px) { .hero-slide-inner { padding-bottom: 54px; } }

/* ---------- Hızlı erişim (dinamik öğe sayısı) ---------- */
.quick-access-inner {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eef2f7;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}
.quick-access-item {
  padding: 24px 12px;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}
.quick-access-item .qa-icon { transition: transform var(--transition); box-shadow: 0 8px 18px rgba(14,40,67,.14); }
.quick-access-item:hover { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.quick-access-item:hover .qa-icon { transform: translateY(-3px) scale(1.05); }
.quick-access-item .qa-ad { font-weight: 700; font-size: .82rem; color: var(--navy-900); letter-spacing: .01em; line-height: 1.3; }
.quick-access-item .qa-kisa { font-size: .72rem; color: var(--ink-500); font-weight: 500; line-height: 1.35; }
.quick-access-item:hover .qa-ad { color: #fff; }
.quick-access-item:hover .qa-kisa { color: rgba(255,255,255,.72); }
@media (max-width: 992px) {
  .quick-access-inner { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
@media (max-width: 560px) {
  .quick-access-inner { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-md); }
  .quick-access-item { padding: 18px 10px; }
}

/* ---------- Başkan ---------- */
.mayor-section { background: linear-gradient(155deg, #0b2743 0%, var(--navy-950) 60%, #10314c 120%); }
.mayor-section::before {
  content: ""; position: absolute; left: -120px; bottom: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(212,160,23,.16), transparent 70%); pointer-events: none;
}
.mayor-photo img { border-radius: 20px; }
.mayor-name { letter-spacing: -.02em; }
.mayor-text { line-height: 1.8; }

/* ---------- İstatistik şeridi ---------- */
.stats-strip {
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(120deg, var(--red-600), #97102a 90%);
}
.stat-item { padding: 44px 16px; }
.stat-num { letter-spacing: -.02em; }
.stat-label { letter-spacing: .02em; opacity: .9; }

/* ---------- Kartlar ---------- */
.grid { gap: 28px; }
.card {
  border-radius: 16px;
  border-color: #ebeef3;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(9,24,41,.28), transparent 45%);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover .card-img::after { opacity: 1; }
.card-img img { transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card-badge {
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(200,16,46,.3);
  letter-spacing: .05em;
}
.card-badge-manset { box-shadow: 0 4px 12px rgba(212,160,23,.35); }
.card-body { padding: 22px 24px 24px; gap: 11px; }
.card-title { letter-spacing: -.015em; line-height: 1.42; }
.card-date { font-size: .74rem; letter-spacing: .04em; }
.card-more { gap: 6px; transition: gap var(--transition); }
.card:hover .card-more { gap: 10px; }

/* ---------- Yatay liste kartı ---------- */
.list-card { border-radius: 14px; box-shadow: var(--shadow-xs); padding: 16px 18px; }
.list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.list-card .list-icon { border-radius: 12px; }
.list-card-title { letter-spacing: -.01em; line-height: 1.4; }
.status-pill { letter-spacing: .02em; }

/* ---------- Hizmet kartı ---------- */
.service-card {
  border-radius: 16px; border-color: #ebeef3;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: linear-gradient(165deg, var(--navy-800), var(--navy-950)); }
.service-icon { transition: transform var(--transition), background var(--transition), color var(--transition); }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }

/* ---------- Galeri ---------- */
.gallery-item { border-radius: 14px; box-shadow: var(--shadow-xs); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(14,40,67,.06); pointer-events: none;
}
.gallery-overlay { background: linear-gradient(0deg, rgba(6,20,35,.92), rgba(6,20,35,.1) 60%, transparent); }

/* ---------- İç sayfa başlığı ---------- */
.page-hero {
  padding: 76px 0 60px;
  background: linear-gradient(140deg, #0d2843 0%, var(--navy-950) 65%, #0f2f4c 120%);
}
.page-hero::before {
  content: ""; position: absolute; left: -80px; bottom: -100px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,16,46,.20), transparent 70%); pointer-events: none;
}
.page-hero h1 { letter-spacing: -.025em; line-height: 1.14; }
.breadcrumb { letter-spacing: .01em; }
.breadcrumb a { transition: color var(--transition); }

/* ---------- Kenar kutuları ---------- */
.sidebar-box { border-radius: 16px; border: 1px solid #eceff4; }
.sidebar-box ul a { border: 1px solid transparent; transition: all var(--transition); }
.sidebar-box ul a:hover { background: var(--navy-900); border-color: var(--navy-900); transform: translateX(2px); }
.sidebar-box.contact-box { background: linear-gradient(165deg, #10314c, var(--navy-950)); }

/* ---------- Sayfalama / filtre ---------- */
.filter-tabs a { border: 1px solid #e6eaf0; transition: all var(--transition); }
.filter-tabs a:hover { border-color: var(--navy-100); transform: translateY(-1px); }
.filter-tabs a.active { border-color: var(--navy-900); box-shadow: var(--shadow-sm); }
.pagination a { border: 1px solid #e6eaf0; transition: all var(--transition); }
.pagination a:hover { border-color: var(--navy-100); }
.pagination li.active a { box-shadow: var(--shadow-sm); }

/* ---------- İletişim şeridi / form ---------- */
.contact-strip .info-box { background: linear-gradient(165deg, #10314c, var(--navy-950)); }
.form-group input, .form-group textarea, .form-group select { background: var(--bg-soft); border-color: #e3e9f1; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  background: #fff; border-color: var(--gold-500); box-shadow: var(--ring);
}

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #0a2036, var(--navy-950)); }
.footer-col a { transition: color var(--transition), padding-left var(--transition); }
.footer-col a:hover { padding-left: 5px; }
.footer-social a { transition: transform var(--transition), background var(--transition); }

/* ---------- Yüzen düğmeler ---------- */
.back-to-top { box-shadow: 0 12px 28px rgba(200,16,46,.34); }
.back-to-top, .floating-actions a { transition: transform var(--transition), background var(--transition), box-shadow var(--transition); }
.back-to-top:hover { transform: translateY(-3px); }

/* ==========================================================================
   ✦ MAKALE GÖVDESİ — zengin metin tipografisi (tüm detay sayfaları)
   ========================================================================== */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-700);
}
.article-body > *:first-child { margin-top: 0; }
/* Metin satırı okunur uzunlukta; görsel/galeri tam genişlik kullanır */
.article-body > p:not(:has(img)),
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > h4,
.article-body > blockquote { max-width: 68ch; }
.article-body h2, .article-body h3, .article-body h4 {
  color: var(--navy-900);
  margin: 1.8em 0 .6em;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.24rem; }
.article-body h4 { font-size: 1.08rem; }
.article-body p { margin: 0 0 1.15em; }
.article-body a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31,74,115,.35);
  transition: color var(--transition);
}
.article-body a:hover { color: var(--red-600); text-decoration-color: var(--red-600); }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul > li {
  position: relative; padding-left: 1.7em; margin-bottom: .6em;
}
.article-body ul > li::before {
  content: ""; position: absolute; left: .3em; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500);
}
.article-body ol > li { margin-bottom: .6em; padding-left: .3em; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--gold-500);
  color: var(--navy-900);
  font-size: 1.12rem;
  font-style: italic;
}
.article-body strong { color: var(--navy-900); }
.article-body hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0;
  font-size: .95rem; display: block; overflow-x: auto;
}
.article-body th, .article-body td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article-body thead th { background: var(--bg-soft); font-weight: 700; color: var(--navy-900); }

/* Makale içi görseller — eski içerikteki width/height etiketlerini etkisizleştir.
   Kaynak dosyalar yüksek çözünürlük; hepsini tek tip genişlikte, ortalı göster. */
.article-body img {
  width: 100% !important;
  max-width: 640px;
  height: auto !important;
  border-radius: 14px;
  margin: 28px auto;
  display: block;
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.article-body img.img-full { max-width: 100%; }
.article-body img.img-left  { float: left;  max-width: 48%; margin: 8px 24px 16px 0; box-shadow: var(--shadow-sm); }
.article-body img.img-right { float: right; max-width: 48%; margin: 8px 0 16px 24px; box-shadow: var(--shadow-sm); }
@media (max-width: 640px) {
  .article-body img.img-left, .article-body img.img-right { float: none; max-width: 100%; margin: 22px auto; }
}
.article-body p:has(> img) { text-align: center; margin-bottom: 0; }
.article-body p:has(> a > img) { text-align: center; }

/* Makale galeri ızgarası (main.js ardışık görselleri buraya toplar) */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.article-gallery[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.article-gallery .ag-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}
.article-gallery .ag-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.article-gallery .ag-item:hover img { transform: scale(1.06); }
@media (max-width: 620px) {
  .article-gallery, .article-gallery[data-count="3"] { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Kapak görseli — dikey (portre) fotoğraflar kırpılmadan, ortalı gösterilsin */
.article-cover.is-portrait {
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-50), var(--bg-soft));
  padding: 20px;
}
.article-cover.is-portrait img {
  width: auto;
  height: auto;
  max-width: min(100%, 380px);
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
@media (max-width: 560px) {
  .article-cover.is-portrait img { max-width: 78%; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(6,17,30,.86);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 4vw;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.94);
  transition: transform .25s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: none;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover { background: var(--red-600); }

/* Editör hizalama sınıfları makale tipografisiyle çakışmasın */
.article-body .img-full { margin: 26px 0; box-shadow: var(--shadow-md); }
.article-body .img-left, .article-body .img-right { box-shadow: var(--shadow-sm); margin-top: 8px; }

/* PDF / indirme linkleri makalede buton gibi */
.article-body a[href$=".pdf"] {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-50); color: var(--navy-800);
  padding: 10px 18px; border-radius: var(--radius-full);
  font-weight: 700; text-decoration: none; margin: 6px 8px 6px 0;
}
.article-body a[href$=".pdf"]::before { content: "\F642"; font-family: "bootstrap-icons"; }
.article-body a[href$=".pdf"]:hover { background: var(--navy-900); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

/* ==========================================================================
   ✦ POPUP — tam ekrana yakın · çoklu popup carousel'i · görsel + açıklama
   ========================================================================== */
.site-popup-overlay { background: rgba(5,15,26,.84); backdrop-filter: blur(3px); padding: clamp(10px, 3vw, 40px); }

.site-popup-carousel {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 94vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  background: #fff;
  animation: popupGir .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes popupGir { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.site-popup { width: 100%; max-width: none; max-height: 94vh; display: flex; flex-direction: column; }
.site-popup.has-text { flex-direction: row; }

.site-popup-media { flex: 1; min-height: 0; background: #0b1b2c; display: flex; }
.site-popup-media a { display: contents; }
.site-popup img { width: 100%; height: 100%; max-height: 94vh; object-fit: contain; display: block; }
.site-popup.has-text .site-popup-media { flex: 0 0 55%; max-width: 55%; }
.site-popup.has-text .site-popup img { object-fit: cover; }

.site-popup-body {
  flex: 1; min-width: 0;
  padding: clamp(22px, 3.2vw, 46px) clamp(22px, 3.2vw, 46px) 64px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff;
}
.site-popup-title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 0; color: var(--navy-900); }
.site-popup-text { font-size: 1rem; line-height: 1.75; color: var(--ink-700); }
.site-popup-text > *:first-child { margin-top: 0; }
.site-popup-body .btn { align-self: flex-start; margin-top: 4px; }

.site-popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10,25,40,.55); color: #fff; border: none;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background var(--transition), transform var(--transition);
}
.site-popup-close:hover { background: var(--red-600); transform: rotate(90deg); }

/* İleri / geri + sayaç */
.site-popup-nav {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: rgba(10,25,40,.62); backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: var(--radius-full);
  color: #fff; font-size: .82rem; font-weight: 700;
}
.site-popup-nav button {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.site-popup-nav button:hover { background: var(--red-600); }

/* "Bir daha gösterme" */
.site-popup-gizle {
  position: absolute; left: 16px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,25,40,.62); backdrop-filter: blur(6px);
  color: #fff; font-size: .8rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--radius-full); cursor: pointer;
}
.site-popup-gizle input { accent-color: var(--red-600); width: 15px; height: 15px; }

/* ── Tablet + mobil (≤860px): görsel üstte, metin ortada (kaydırılır),
   kontroller EN ALTTA akış içinde solid bar olarak. Yarı saydam kutucuklar
   artık kayan içeriğin üstünde durmuyor. ───────────────────────────────── */
@media (max-width: 860px) {
  .site-popup-carousel {
    width: min(560px, 94vw);
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
  }

  .site-popup,
  .site-popup.has-text {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    flex-direction: column;
  }

  /* metinli popup: görsel üstte sabit; metinsiz: görsel tüm alanı kaplar */
  .site-popup.has-text .site-popup-media {
    flex: 0 0 auto;
    max-width: none;
    height: 40vh;
    max-height: 40vh;
  }
  .site-popup.has-text .site-popup img { max-height: 40vh; object-fit: cover; }
  .site-popup:not(.has-text) .site-popup-media { flex: 1 1 auto; }

  .site-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .site-popup-body .btn { align-self: stretch; justify-content: center; }

  /* iki alt bar: mutlak konumdan çık, akışa gir, tam genişlik, opak */
  .site-popup-gizle,
  .site-popup-nav {
    position: static;
    transform: none;
    inset: auto;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    background: var(--navy-950);
    backdrop-filter: none;
    justify-content: center;
    flex: 0 0 auto;
  }
  .site-popup-gizle {
    order: 2;
    padding: 13px 16px;
    font-size: .85rem;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .site-popup-gizle input { width: 17px; height: 17px; }
  .site-popup-nav {
    order: 3;
    gap: 22px;
    font-size: .92rem;
    padding: 11px 16px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px));
  }
  .site-popup-nav button { width: 34px; height: 34px; }
}

/* ── Mobil (≤640px): tam ekran kart ───────────────────────────────────── */
@media (max-width: 640px) {
  .site-popup-overlay { padding: 0; align-items: stretch; }

  .site-popup-carousel {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .site-popup, .site-popup.has-text { border-radius: 0; }

  .site-popup.has-text .site-popup-media,
  .site-popup.has-text .site-popup img {
    height: 38vh;
    height: 38dvh;
    max-height: none;
  }

  .site-popup-body { padding: 20px 18px; gap: 12px; }
  .site-popup-title { font-size: 1.35rem; line-height: 1.3; }
  .site-popup-text { font-size: .96rem; line-height: 1.65; }

  .site-popup-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(6,17,28,.72);
  }
}
