/* Tes-İş Adapazarı Şubesi — ui-ux-pro-max tasarım sistemi */
:root {
  --primary: #dc3545;
  --primary-dark: #c82333;
  --primary-darker: #a71e2a;
  --navy: #1f2a36;
  --bg-light: #f8f9fa;
  --border-light: #e9ecef;
  --text: #212529;
  --text-muted: #6c757d;
  --heading: #2c3e50;
  --primary-gradient: linear-gradient(135deg, #dc3545, #c82333);
  --light-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text); line-height: 1.6; background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 70px 0; }

/* ---------- Başlıklar ---------- */
.section-title { font-size: 2rem; font-weight: 700; color: var(--heading); text-align: center; }
.section-line {
  width: 60px; height: 4px; border-radius: 2px; margin: 12px auto 40px;
  background: linear-gradient(90deg, #dc3545, #c82333);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 8px; padding: 12px 26px;
  font-size: .95rem; font-weight: 600; transition: all .25s;
}
.btn-primary { background: var(--primary-gradient); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(220,53,69,.4); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-red { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-red:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Üst şerit ---------- */
.topstrip { background: var(--bg-light); border-bottom: 1px solid var(--border-light); font-size: .82rem; }
.topstrip .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topstrip-links { display: flex; gap: 16px; }
.topstrip-links a { color: var(--text-muted); }
.topstrip-links a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 8px; align-items: center; }
.social-icons a {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text-muted); color: #fff; transition: background .2s;
}
.social-icons a:hover { background: var(--primary); }
.social-icons svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- Ana header ---------- */
.main-header { background: #fff; padding: 16px 0; }
.main-header .container { display: flex; align-items: center; gap: 20px; }
.header-logo img { height: 74px; }
.header-title { flex: 1; text-align: center; }
.header-title .main-title { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.header-title .sub-title { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.header-title .desc-title { font-size: .85rem; color: var(--text-muted); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-right img { height: 64px; }

/* Giriş yapmış üye: ad/unvan + Profil + Çıkış Yap ("Üye Girişi"nin yerini alır) */
.header-user { display: flex; align-items: center; gap: 10px; }
.header-user-info { display: flex; flex-direction: column; line-height: 1.25; text-align: right; max-width: 190px; }
.header-user-name { font-size: .92rem; font-weight: 700; color: var(--heading); }
.header-user-title { font-size: .78rem; color: var(--text-muted); }
.header-user-name, .header-user-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-logout {
  border: none; background: none; padding: 8px 4px; font: inherit; font-size: .85rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.header-logout:hover { color: var(--primary); }

/* ---------- Nav ---------- */
.main-nav { background: var(--primary-gradient); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-menu { display: flex; list-style: none; }
.nav-menu a {
  display: block; color: #fff; padding: 14px 18px; font-weight: 600; font-size: .92rem;
  transition: background .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(0,0,0,.18); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; padding: 10px 0; }

/* ---------- Slider ---------- */
.hero-slider { position: relative; height: 480px; overflow: hidden; background: #0a1628; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }

/* Blurred background layer */
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: blur(25px) brightness(.55);
  transform: scale(1.15);          /* prevent blur white edges */
  z-index: 1;
}

/* Sharp main image – fully visible, not cropped */
.slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 2;
  /* subtle shadow so image pops off the blurred bg */
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.45));
}

/* Caption overlay */
.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.85) 100%);
  color: #fff; padding: 80px 0 38px; z-index: 5;
}
.slide-caption .badge { margin-bottom: 10px; }
.slide-caption h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.slide-caption p { color: #e3e6ea; margin-bottom: 14px; }

/* Navigation arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  color: #fff; font-size: 1.4rem; cursor: pointer;
  transition: background .25s, transform .25s;
}
.slider-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

/* Counter badge (e.g. "1 / 3") */
.slider-counter {
  position: absolute; top: 16px; right: 18px; z-index: 10;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  color: #fff; font-size: .82rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: .04em;
}

/* Numbered pagination dots */
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.slider-dots button {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.35); backdrop-filter: blur(4px);
  color: #fff; font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: all .25s;
  display: flex; align-items: center; justify-content: center;
}
.slider-dots button:hover { border-color: #fff; background: rgba(255,255,255,.2); }
.slider-dots button.active {
  background: var(--primary); border-color: var(--primary);
  transform: scale(1.15); box-shadow: 0 0 0 3px rgba(196,30,58,.35);
}
.hero-empty { height: 200px; display: flex; align-items: center; justify-content: center; color: #fff; }

/* ---------- Rozet ---------- */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .03em;
}

/* ---------- CTA bantları ---------- */
.cta-band { background: var(--primary-gradient); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 1.8rem; margin-bottom: 8px; }
.cta-band p { color: #ffe0e3; margin-bottom: 24px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- İstatistikler ---------- */
.stats-band { background: var(--navy); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .icon { font-size: 1.8rem; }
.stat-item .num { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-item .label { color: #9fb2c3; font-size: .92rem; }

/* ---------- Kart grid'leri ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Hizmet / değer kartları */
.icon-card { padding: 30px 22px; text-align: center; }
.icon-card .icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 14px;
  background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.icon-card h3 { font-size: 1.1rem; color: var(--heading); margin-bottom: 8px; }
.icon-card p { font-size: .88rem; color: var(--text-muted); }

/* Haber kartı */
.news-card { display: flex; flex-direction: column; }
.news-card .img-wrap { position: relative; aspect-ratio: 16/9; background: var(--light-gradient); }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-card .img-wrap .badge { position: absolute; top: 12px; left: 12px; }
.news-card .img-wrap .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #cfd4d9;
}
.news-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card .date { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.news-card h3 { font-size: 1.08rem; color: var(--heading); margin-bottom: 8px; line-height: 1.4; }
.news-card p {
  font-size: .88rem; color: var(--text-muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .more { margin-top: 12px; font-weight: 600; font-size: .88rem; }

/* Üye kartı (anasayfa önizlemesi + teşkilat) */
.member-card { text-align: center; display: flex; flex-direction: column; }
.member-card .photo { aspect-ratio: 4/5; background: var(--light-gradient); position: relative; overflow: hidden; }
.member-card .photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block;
  transition: transform .5s ease;
}
.member-card:hover .photo img { transform: scale(1.03); }
.member-card .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; font-weight: 800; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, #34495e, var(--navy));
}
.member-card .body { padding: 18px 14px 22px; flex: 1; }
.member-card .body::before {
  content: ''; display: block; width: 32px; height: 3px; border-radius: 2px;
  margin: 0 auto 12px; background: var(--primary-gradient);
}
.member-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--heading); line-height: 1.35; }
.member-card .title { color: var(--primary); font-size: .9rem; font-weight: 600; margin-top: 2px; }

/* Kurul başkanı (Denetim / Disiplin) */
.member-card--lead { border-top: 4px solid var(--primary); }
.member-card--lead h3 { font-size: 1.15rem; }

/* Şube Başkanı */
.member-card--head { box-shadow: 0 14px 40px rgba(31,42,54,.22); }
.member-card--head .body { background: var(--primary-gradient); padding: 22px 18px 24px; }
.member-card--head .body::before { background: rgba(255,255,255,.7); }
.member-card--head h3 { color: #fff; font-size: 1.4rem; font-weight: 800; }
.member-card--head .title { color: #ffe3e6; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.member-card--head .initials { font-size: 4rem; }

/* ---------- Teşkilat: Şube Başkanı -> kurullar ---------- */
.org-chart { margin-bottom: 30px; }
.org-head { display: flex; justify-content: center; }
.org-head .member-card { width: 320px; max-width: 100%; }
.org-trunk { width: 3px; height: 44px; margin: 0 auto; background: var(--primary); border-radius: 2px; }
.org-branches {
  --gap: 24px;
  list-style: none; position: relative; display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap);
  max-width: 980px; margin: 0 auto; padding-top: 34px;
}
/* Yatay bağlantı: ilk dalın ortasından son dalın ortasına */
.org-branches::before {
  content: ''; position: absolute; top: 0; height: 3px; background: var(--primary); border-radius: 2px;
  left: calc((100% - (var(--n) - 1) * var(--gap)) / (2 * var(--n)));
  right: calc((100% - (var(--n) - 1) * var(--gap)) / (2 * var(--n)));
}
.org-branches li { position: relative; display: flex; }
.org-branches li::before {
  content: ''; position: absolute; top: -34px; left: 50%; width: 3px; height: 34px;
  margin-left: -1.5px; background: var(--primary);
}
.org-branch {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border-radius: 12px; padding: 20px 16px;
  border-top: 4px solid var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,.08);
  color: var(--heading); text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.org-branch:hover, .org-branch:focus-visible { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.org-branch:focus-visible { outline: 3px solid rgba(220,53,69,.35); outline-offset: 3px; }
.org-branch-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 6px;
  background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.org-branch strong { font-size: 1.1rem; }
.org-branch-count { font-size: .85rem; color: var(--text-muted); }

.board-section { padding-top: 60px; scroll-margin-top: 20px; }
.board-kicker {
  text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 6px;
}
.board-lead { display: flex; justify-content: center; margin-bottom: 28px; }
.board-lead .member-card { width: 280px; max-width: 100%; }
.board-grid {
  display: grid; gap: 28px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
}

/* Kurum kartı */
.partner-card { text-align: center; padding-bottom: 18px; }
.partner-card .logo-wrap { aspect-ratio: 4/3; background: var(--light-gradient); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.partner-card .logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.partner-card .logo-wrap .text-logo { font-size: 1.25rem; font-weight: 800; color: var(--primary); padding: 12px; }
.partner-card .body { padding: 14px 16px 0; }
.partner-card h3 { font-size: 1rem; color: var(--heading); }
.partner-card .cat { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.partner-card .discount { font-size: .85rem; color: var(--primary); font-weight: 700; }
.partner-card .phone { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* TİS kartı */
.tis-card { padding: 26px 24px; border-top: 4px solid var(--primary); }
.tis-card .period { font-size: .8rem; color: #fff; }
.tis-card h3 { font-size: 1.1rem; color: var(--heading); margin: 10px 0 6px; }
.tis-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.tis-card .date { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; }

/* Tesis kartı */
.facility-card .img-wrap { aspect-ratio: 16/9; background: var(--light-gradient); }
.facility-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.facility-card .body { padding: 20px 22px 24px; }
.facility-card h3 { color: var(--heading); margin-bottom: 4px; }
.facility-card .loc { color: var(--primary); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.facility-card p { font-size: .9rem; color: var(--text-muted); }

/* ---------- Filtre pilleri ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  border: 2px solid var(--primary); background: #fff; color: var(--primary);
  border-radius: 50px; padding: 7px 20px; font-size: .88rem; font-weight: 600;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border-light);
  background: #fff; color: var(--text); font-weight: 600;
}
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:hover:not(.active):not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- Alt bölümler / sayfa başlığı ---------- */
.page-head { background: var(--light-gradient); padding: 46px 0 40px; text-align: center; }
.page-head h1 { font-size: 2rem; color: var(--heading); }
.page-head .crumb { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.section-alt { background: var(--light-gradient); }
.center-btn { text-align: center; margin-top: 36px; }
.empty-state { text-align: center; color: var(--text-muted); padding: 40px 0; }
.loading-block { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* ---------- Nasıl üye olurum ---------- */
.join-page { max-width: 900px; margin: 0 auto; }
.join-card {
  background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding: 30px; margin-bottom: 24px;
}
.join-card h2 { font-size: 1.4rem; font-weight: 700; color: var(--heading); margin-bottom: 16px; }
.join-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.join-card p { margin-bottom: 14px; text-align: justify; }
.join-card p:last-child { margin-bottom: 0; }
.join-highlight { background: var(--bg-light); border-left: 5px solid var(--primary); }
.join-highlight h2 { color: var(--primary); }
.btn-pill { border-radius: 50px; }
/* 16:9 video kutusu */
.join-video {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); margin-bottom: 24px; background: #000;
}
.join-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.join-pdf { margin: 20px 0 0; }
.join-pdf object {
  display: block; width: 100%; height: 520px;
  border: 1px solid var(--border-light); border-radius: 8px;
}
.join-pdf-fallback { padding: 24px; text-align: center; color: var(--text-muted); }
.center-btn.center-btn--tight { margin-top: 16px; }
.btn-edevlet { background: linear-gradient(135deg, #5b6ee1, #3f51b5); color: #fff; font-size: 1.05rem; padding: 15px 30px; }
.btn-edevlet:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(91,110,225,.4); transform: translateY(-2px); }
.join-steps {
  margin-top: 24px; padding: 18px 20px; background: var(--bg-light);
  border-left: 4px solid #5b6ee1; border-radius: 8px;
}
.join-steps h4 { color: var(--heading); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.join-steps ol { margin: 0; padding-left: 20px; color: var(--text); }
.join-steps li { margin-bottom: 6px; line-height: 1.6; }
.join-steps li:last-child { margin-bottom: 0; }

/* ---------- Haber detay ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article .meta { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.article .meta .date { color: var(--text-muted); font-size: .9rem; }
.article h1 { font-size: 1.9rem; color: var(--heading); line-height: 1.3; margin-bottom: 18px; }
.article .cover {
  border-radius: 12px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  cursor: zoom-in;
}
.article .cover img { display: block; width: 100%; transition: transform .3s ease; }
.article .cover:hover img { transform: scale(1.02); }
.article .content { font-size: 1.04rem; color: var(--text); }
/* Metnin kendisi satır sonlarını korur; aradaki fotoğraf figürleri korumaz (fazladan boşluk oluşmasın). */
.article .content .text { white-space: pre-line; }

/* ---------- Haber fotoğrafları (metin içi küçük resim + galeri + tam ekran) ---------- */
.article-photo, .photo-tile {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-light);
  box-shadow: 0 4px 12px rgba(0,0,0,.08); cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.article-photo:hover, .photo-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.article-photo:focus-visible, .photo-tile:focus-visible, .article .cover:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 3px;
}
.article-photo img, .photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-photo figcaption, .photo-tile figcaption {
  padding: 9px 12px; font-size: .85rem; line-height: 1.45; color: var(--text-muted); background: #fff;
}

/* Metin içine yerleştirilen fotoğraf: paragrafın altında, ortalanmış küçük resim */
.article-photo { display: block; width: min(100%, 460px); margin: 22px auto; }
.article-photo img { aspect-ratio: 4 / 3; }

/* Metne yerleştirilmeyen fotoğraflar: haberin altındaki galeri */
.photo-gallery { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border-light); }
.photo-gallery-title { font-size: 1.15rem; font-weight: 700; color: var(--heading); margin-bottom: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-tile img { aspect-ratio: 4 / 3; }

/* Tam ekran fotoğraf paneli (js/photo-viewer.js) */
body.pv-open { overflow: hidden; }
.photo-viewer {
  position: fixed; inset: 0; z-index: 1000; background: rgba(20,24,28,.94);
  display: flex; align-items: center; justify-content: center; padding: 56px 20px;
  animation: pv-fade .2s ease;
}
.photo-viewer[hidden] { display: none; }
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
.pv-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.pv-stage img {
  max-width: min(1200px, 92vw); max-height: 78vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 16px 50px rgba(0,0,0,.5); cursor: default;
}
.pv-stage figcaption {
  color: #e9ecef; font-size: .95rem; line-height: 1.5; text-align: center; max-width: 760px;
}
.pv-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s;
}
.pv-btn:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.06); }
.pv-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pv-close { top: 16px; right: 20px; font-size: 1.2rem; }
.pv-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.pv-next { right: 20px; top: 50%; transform: translateY(-50%); }
.pv-prev:hover, .pv-next:hover { transform: translateY(-50%) scale(1.06); }
.pv-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #ced4da; font-size: .9rem; font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-viewer { padding: 64px 12px; }
  .pv-btn { width: 42px; height: 42px; font-size: 1.4rem; }
  .pv-prev { left: 8px; }
  .pv-next { right: 8px; }
}
@media (max-width: 576px) {
  .photo-grid { grid-template-columns: 1fr; }
  .article-photo { margin: 18px auto; }
}
.article .meta .author { color: var(--text-muted); font-size: .9rem; }
.article .meta .author strong { color: var(--heading); }

.author-box {
  display: flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 20px;
  background: var(--light-gradient); border-radius: 12px; border-left: 4px solid var(--primary);
}
.author-avatar {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-gradient); color: #fff; font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.author-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 700; }
.author-name { font-size: 1.08rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.author-title { font-size: .9rem; color: var(--primary); font-weight: 600; }

/* ---------- Paylaşım ---------- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-bar--compact { margin: -4px 0 22px; }
.share-bar-label { font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 10px; border: none; background: none;
  color: var(--text); font: inherit; text-decoration: none; cursor: pointer;
}
.share-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--navy); transition: transform .2s, box-shadow .2s;
}
.share-ico svg { width: 20px; height: 20px; }
.share-btn:hover .share-ico, .share-btn:focus-visible .share-ico { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.share-btn:focus-visible { outline: none; }
.share-btn:focus-visible .share-ico { outline: 3px solid rgba(220,53,69,.45); outline-offset: 2px; }
.share-bar--compact .share-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.share-native .share-ico { background: var(--primary-gradient); }
.share-whatsapp .share-ico { background: #25d366; }
.share-instagram .share-ico { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.share-facebook .share-ico { background: #1877f2; }
.share-x .share-ico { background: #000; }
.share-telegram .share-ico { background: #229ed9; }
.share-linkedin .share-ico { background: #0a66c2; }
.share-email .share-ico { background: var(--text-muted); }
.share-copy .share-ico { background: var(--heading); }

.share-bar--full {
  display: block; margin-top: 34px; padding: 26px 24px; border-radius: 12px;
  background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08); border-top: 4px solid var(--primary);
}
.share-title { font-size: 1.2rem; color: var(--heading); }
.share-sub { font-size: .88rem; color: var(--text-muted); margin: 2px 0 18px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.share-grid .share-btn {
  padding: 6px 14px 6px 6px; border-radius: 50px; border: 1px solid var(--border-light);
  background: #fff; font-size: .9rem; font-weight: 600; transition: border-color .2s, background .2s;
}
.share-grid .share-btn:hover { border-color: var(--primary); background: #fff7f8; }
.share-grid .share-ico { width: 36px; height: 36px; }
.share-grid .share-ico svg { width: 18px; height: 18px; }

/* Hikâye / görsel paylaşım penceresi */
.share-modal {
  position: fixed; inset: 0; z-index: 1000; background: rgba(31,42,54,.7);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
body.share-modal-open { overflow: hidden; }
.share-modal-box {
  position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 720px;
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.share-modal-box h3 { color: var(--heading); font-size: 1.25rem; margin-bottom: 16px; padding-right: 36px; }
.share-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--bg-light); font-size: 1.5rem; line-height: 1; color: var(--heading);
}
.share-modal-close:hover { background: var(--border-light); }
.share-modal-body { display: grid; grid-template-columns: 1fr; gap: 20px; }
.share-modal-body.is-story { grid-template-columns: 220px 1fr; align-items: start; }
.share-modal-preview { width: 100%; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.15); display: block; }
.share-steps { padding-left: 20px; margin-bottom: 16px; font-size: .95rem; }
.share-steps li { margin-bottom: 8px; }
.share-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.share-link-box {
  font-size: .85rem; background: var(--bg-light); border: 1px dashed #ced4da; border-radius: 8px;
  padding: 8px 12px; word-break: break-all; color: var(--heading);
}
.share-note { font-size: .82rem; color: var(--text-muted); margin-top: 10px; }

/* Genel site bildirimi */
.site-toasts {
  position: fixed; top: 18px; right: 18px; left: auto; z-index: 1100;
  display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px);
}
.site-toast {
  min-width: 240px; max-width: 380px; padding: 12px 16px; border-radius: 10px;
  color: #fff; font-size: .9rem; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: #198754; animation: site-toast-in .3s ease;
}
.site-toast.error { background: var(--primary-dark); }
@keyframes site-toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.related-title { font-size: 1.3rem; color: var(--heading); margin: 54px 0 20px; }

/* ---------- Okunma sayısı ---------- */
.news-card .news-views { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--border-light); white-space: nowrap; }
.article .meta .views { color: var(--text-muted); font-size: .9rem; white-space: nowrap; }

/* ---------- Yorumlar ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.comments {
  margin-top: 34px; padding: 26px 24px; border-radius: 12px;
  background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.comments-title { font-size: 1.2rem; color: var(--heading); margin-bottom: 18px; }
.comments-count { color: var(--text-muted); font-weight: 600; }
.comment-list { display: flex; flex-direction: column; }
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.comment:first-child { padding-top: 0; }
.comment-avatar {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--border-light); color: var(--heading); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.comment--member .comment-avatar { background: var(--primary-gradient); color: #fff; }
.comment-main { min-width: 0; flex: 1; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.comment-author { color: var(--heading); }
.comment-date { font-size: .8rem; color: var(--text-muted); }
.comment-body { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.comment-empty { color: var(--text-muted); padding: 4px 0 16px; }
.badge-member {
  display: inline-block; padding: 1px 9px; border-radius: 50px; font-size: .7rem; font-weight: 700;
  color: var(--primary-dark); background: #fdecee; border: 1px solid #f5c2c7; vertical-align: middle;
}
.comment-form { margin-top: 22px; padding-top: 20px; border-top: 2px solid var(--border-light); }
.comment-form-title { font-size: 1.05rem; color: var(--heading); margin-bottom: 6px; }
.comment-as { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.55; }
.comment-as strong { color: var(--heading); }
/* Ziyaretçi ad soyad alanı: giriş yapmamış kullanıcıda textarea'nın üstünde çıkar. */
.comment-name-label { display: block; font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.comment-name-label .req { color: var(--primary); }
.comment-form input.comment-name {
  width: 100%; max-width: 360px; padding: 10px 14px; margin-bottom: 14px;
  border: 1px solid #ced4da; border-radius: 8px; font: inherit; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea {
  width: 100%; min-height: 110px; padding: 12px 14px; border: 1px solid #ced4da; border-radius: 8px;
  font: inherit; color: var(--text); resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.comment-form input.comment-name:focus,
.comment-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,53,69,.15); }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.comment-counter { font-size: .8rem; color: var(--text-muted); }
.comment-form .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.comment-msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.comment-msg.ok { background: #e8f5ee; color: #146c43; }
.comment-msg.error { background: #fdecee; color: var(--primary-darker); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spinner-sm {
  display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; vertical-align: -2px; animation: spin-sm .8s linear infinite;
}
@keyframes spin-sm { to { transform: rotate(360deg); } }

/* ---------- Sesimizi Duyuran Üyelerimiz ---------- */
.section-desc { text-align: center; color: var(--text-muted); margin: -6px auto 26px; max-width: 620px; }
.contributors-card {
  max-width: 820px; margin: 0 auto; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08); overflow: hidden;
}
.contributors-table { width: 100%; border-collapse: collapse; }
.contributors-table th {
  background: var(--bg-light); color: var(--heading); font-size: .8rem; font-weight: 700;
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.contributors-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); }
.contributors-table tbody tr:last-child td { border-bottom: none; }
.contributors-table tbody tr:hover { background: #fffafa; }
.contributors-table .c-rank { width: 48px; color: var(--text-muted); font-weight: 700; text-align: center; }
.contributors-table .c-name { font-weight: 600; color: var(--heading); }
.contributors-table .c-num { text-align: right; white-space: nowrap; }
.contributors-table td.c-value { font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.contributors-card .empty-state { padding: 30px 20px; }
.contributors-note { text-align: center; font-size: .82rem; color: var(--text-muted); margin: 14px auto 0; max-width: 820px; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card { padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px;
  background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.contact-card h3 { font-size: 1rem; color: var(--heading); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--text-muted); word-break: break-word; }
.map-wrap { margin-top: 30px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer-social { background: var(--primary-gradient); padding: 18px 0; }
.footer-social .container { display: flex; justify-content: center; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.footer-social a:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer { background: var(--navy); color: #b9c5d1; padding: 56px 0 0; font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-cols h3 {
  color: #fff; font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary); display: inline-block;
}
.footer-about img { height: 56px; margin-bottom: 14px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #b9c5d1; transition: color .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { list-style: none; display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact .ico { color: var(--primary); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0;
  text-align: center; font-size: .82rem; color: #8fa3b5;
}

/* ---------- Yukarı çık ---------- */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--primary-gradient); color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(220,53,69,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
/* Üye girişi mobilde hamburger menüde, masaüstünde header butonunda */
.nav-menu .only-mobile { display: none; }

@media (max-width: 992px) {
  .org-branches { max-width: 720px; --gap: 16px; }
  .org-branch { padding: 16px 10px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .header-title .main-title { font-size: 1.9rem; }
  .header-logo img, .header-right img { height: 58px; }
  .header-user-info { max-width: 130px; }
  .hero-slider { height: 400px; }
}
@media (max-width: 768px) {
  section { padding: 50px 0; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 13px 22px; border-top: 1px solid rgba(255,255,255,.1); }
  .header-right .btn, .header-user { display: none; }
  .nav-menu .only-mobile { display: block; }
  .header-title .desc-title { display: none; }
  .hero-slider { height: 330px; }
  .slide-caption h2 { font-size: 1.2rem; }
  .slide-caption p { display: none; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .topstrip-links { display: none; }
  /* Dallar alt alta; bağlantı çizgisi gövdeden devam eder */
  .org-branches { grid-template-columns: 1fr; --gap: 14px; padding-top: 0; max-width: 420px; }
  .org-branches::before { display: none; }
  .org-branches li::before { top: -14px; height: 14px; }
  .org-branch { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 14px 16px; }
  .org-branch-icon { margin-bottom: 0; flex-shrink: 0; }
  .org-branch strong { flex: 1; }
  .board-section { padding-top: 46px; }
  .share-modal-body.is-story { grid-template-columns: 160px 1fr; }
  /* Mobil tarayıcılar PDF'i iframe içinde göstermiyor; boş kutu yerine doğrudan buton */
  .join-pdf { display: none; }
  .join-card { padding: 22px 18px; }
  .join-card h2 { font-size: 1.2rem; }
  .join-card p { text-align: left; }
  .center-btn { margin-top: 20px; }
}
@media (max-width: 576px) {
  section { padding: 40px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.5rem; }
  .header-title .main-title { font-size: 1.6rem; }
  .header-title .sub-title { font-size: .95rem; }
  .header-right img { display: none; }
  .hero-slider { height: 260px; }
  .article h1 { font-size: 1.4rem; }
  .org-head .member-card { width: 280px; }
  .member-card--head h3 { font-size: 1.25rem; }
  .board-grid { grid-template-columns: minmax(0, 320px); }
  .board-lead .member-card { width: 100%; max-width: 320px; }
  .share-bar--compact { gap: 6px; }
  .share-bar--compact .share-bar-label { display: none; }
  .share-bar--compact .share-ico { width: 38px; height: 38px; }
  .share-grid { grid-template-columns: 1fr 1fr; }
  .share-grid .share-btn { font-size: .82rem; padding-right: 8px; }
  .share-bar--full { padding: 20px 16px; }
  .share-modal-box { padding: 20px 16px; }
  .share-modal-body.is-story { grid-template-columns: 1fr; }
  .share-modal-body.is-story .share-modal-preview { max-width: 200px; margin: 0 auto; }
  .site-toasts { left: 18px; }
  .site-toast { min-width: 0; max-width: none; }
  .comments { padding: 20px 16px; }
  .comment-form-foot { flex-direction: column-reverse; align-items: stretch; }
  .comment-form-foot .btn { width: 100%; }
  .comment-counter { text-align: right; }
  /* Liste satırları kart gibi yığılır: sıra + ad üstte, sayılar etiketli altta */
  .contributors-table thead { display: none; }
  .contributors-table tbody tr {
    display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
  }
  .contributors-table tbody tr:last-child { border-bottom: none; }
  .contributors-table td { padding: 0; border: none; }
  .contributors-table .c-rank { width: auto; grid-row: span 4; align-self: start; padding-top: 2px; }
  .contributors-table td.c-num { display: flex; justify-content: space-between; font-size: .9rem; }
  .contributors-table td.c-num::before { content: attr(data-label); color: var(--text-muted); font-weight: 400; font-size: .85rem; }
}
