/* Tarihçe sayfası (/tarihce.html) — yalnız bu sayfada yüklenir.
   Başlıklarda Playfair Display (arşiv/gazete havası), metinde sitenin sistem yazı tipi.
   Kurumsal kırmızı + lacivert korunur; yıllarda sıcak bir altın vurgu kullanılır. */

.th {
  --th-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --th-gold: #e9b949;
  --th-gold-soft: #fff6df;
  --th-ink: #1f2a36;
  overflow-x: clip;
  /* Playfair'in varsayılan eski tip rakamları (1963 → "ı96з" gibi) okunurluğu düşürür */
  font-variant-numeric: lining-nums;
}

.th-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.th-h2 {
  font-family: var(--th-serif); font-weight: 900; font-size: 2.4rem; line-height: 1.15;
  color: var(--heading); margin-bottom: 18px;
}
.th-center { display: block; text-align: center; }
.th-light { color: #fff; }
.th-eyebrow.th-light { color: var(--th-gold); }

/* ---------- Kahraman ---------- */
.th-hero {
  position: relative; color: #fff; padding: 72px 0 170px; isolation: isolate;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(233,185,73,.20), transparent 60%),
    linear-gradient(135deg, #16202b 0%, #2c1d29 45%, #8e1b26 80%, #b3202e 100%);
}
.th-hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; z-index: -1; }
.th-hero-inner { max-width: 860px; text-align: center; }
.th-hero .crumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 26px; }
.th-hero .crumb a { color: #fff; }
.th-kicker {
  display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; background: rgba(255,255,255,.1); border: 1px solid rgba(233,185,73,.55); color: var(--th-gold);
}
.th-hero h1 {
  font-family: var(--th-serif); font-weight: 900; font-size: 4rem; line-height: 1.05;
  margin: 22px 0 18px; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.th-hero h1 em {
  display: block; font-style: italic; font-weight: 700; font-size: .62em; margin-top: 10px; color: #ffd9dc;
}
.th-hero-lead { font-size: 1.15rem; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 680px; margin: 0 auto 30px; }
.th-scroll {
  display: inline-flex; gap: 10px; align-items: center; color: #fff; font-weight: 600;
  border-bottom: 2px solid var(--th-gold); padding-bottom: 4px;
}
.th-scroll span { display: inline-block; animation: thBob 1.8s ease-in-out infinite; }
@keyframes thBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Rakamlar (kahramanın altına biner) ---------- */
.th-stats { padding: 0; margin-top: -86px; position: relative; z-index: 2; }
.th-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(31,42,54,.16); overflow: hidden;
}
.th-stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border-light); }
.th-stat:last-child { border-right: none; }
.th-stat-num { display: block; font-family: var(--th-serif); font-weight: 900; font-size: 2.8rem; color: var(--primary); line-height: 1.1; }
.th-stat-label { display: block; margin-top: 6px; font-size: .9rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Kuruluş ---------- */
.th-founding { padding: 90px 0 70px; }
.th-founding-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.th-founding-text p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 16px; }
.th-lead-p { font-size: 1.18rem !important; color: var(--heading); }
.th-lead-p::first-line { font-weight: 600; }
.th-quote {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 20px 24px;
  border-left: 5px solid var(--primary); background: var(--light-gradient); border-radius: 0 12px 12px 0;
  font-family: var(--th-serif); font-size: 1.6rem; font-weight: 700; color: var(--heading);
}
.th-quote span + span::before { content: '·'; color: var(--th-gold); margin-right: 22px; }

.th-founders {
  background: var(--th-ink); color: #dfe6ee; border-radius: 16px; padding: 30px 28px;
  box-shadow: 0 14px 32px rgba(31,42,54,.2); position: relative;
}
.th-founders::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--th-gold));
}
.th-founders h3 { font-family: var(--th-serif); font-size: 1.5rem; color: #fff; margin-bottom: 16px; }
.th-founders ol { list-style: none; counter-reset: kurucu; }
.th-founders li {
  counter-increment: kurucu; position: relative; padding: 10px 0 10px 40px; font-size: .9rem; line-height: 1.45;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.th-founders li:last-child { border-bottom: none; }
.th-founders li::before {
  content: counter(kurucu); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--th-ink); background: var(--th-gold);
}
.th-city {
  display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 4px; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(220,53,69,.85);
}

/* ---------- Zaman tüneli ---------- */
.th-timeline-wrap { background: var(--light-gradient); padding: 80px 0 60px; }
.th-era { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 56px auto 28px; }
.th-era-icon {
  flex: 0 0 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-gradient); box-shadow: 0 8px 20px rgba(220,53,69,.35);
}
.th-era-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.th-era-years { font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: #b07d10; }
.th-era h3 { font-family: var(--th-serif); font-size: 2rem; font-weight: 900; color: var(--heading); line-height: 1.15; }

.th-timeline { list-style: none; position: relative; max-width: 1100px; margin: 0 auto; }
.th-timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(220,53,69,.15), var(--primary) 12%, var(--primary) 88%, rgba(220,53,69,.15));
}
.th-item { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: start; margin-bottom: 26px; position: relative; }
.th-year {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; margin-top: 14px;
  min-width: 88px; text-align: center; padding: 7px 12px; border-radius: 50px; white-space: nowrap;
  font-family: var(--th-serif); font-weight: 900; font-size: 1.05rem; color: var(--th-ink);
  background: var(--th-gold); border: 4px solid #f1f3f5; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.th-card {
  grid-row: 1; grid-column: 1; background: #fff; border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(31,42,54,.08); position: relative; transition: transform .3s ease, box-shadow .3s ease;
}
.th-item:nth-child(even) .th-card { grid-column: 3; }
.th-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,42,54,.13); }
/* Kartı merkez çizgisine bağlayan ok */
.th-card::after {
  content: ''; position: absolute; top: 24px; right: -9px; width: 18px; height: 18px; background: #fff;
  transform: rotate(45deg); box-shadow: 4px -4px 8px rgba(31,42,54,.04);
}
.th-item:nth-child(even) .th-card::after { right: auto; left: -9px; box-shadow: -4px 4px 8px rgba(31,42,54,.04); }
.th-card h4 { font-family: var(--th-serif); font-size: 1.3rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; line-height: 1.25; }
.th-card p { font-size: .95rem; line-height: 1.75; color: #3d4852; }
.th-card p + p { margin-top: 10px; }

/* Dönüm noktası kartları */
.th-item-key .th-card { background: linear-gradient(160deg, #fff 60%, #fff4f5); border-top: 4px solid var(--primary); }
.th-item-key .th-year { background: var(--primary); color: #fff; }
.th-badge {
  display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary-darker); background: #fde8ea;
}
.th-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.th-tags li {
  padding: 5px 12px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  background: var(--th-gold-soft); color: #7a5a0c; border: 1px solid #f3dca2;
}
.th-bar {
  position: relative; margin-top: 16px; height: 34px; border-radius: 50px; overflow: hidden; background: #eef1f4;
}
.th-bar span { position: absolute; inset: 0 auto 0 0; background: var(--primary-gradient); border-radius: 50px; }
.th-bar b { position: relative; display: block; line-height: 34px; padding-left: 16px; font-size: .85rem; color: #fff; }

/* ---------- Genel başkanlar ---------- */
.th-presidents {
  padding: 80px 0; color: #fff;
  background: radial-gradient(900px 400px at 10% 0%, rgba(220,53,69,.35), transparent 60%), var(--th-ink);
}
.th-rail {
  list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px;
  margin-top: 40px; position: relative;
}
.th-rail::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 45px; height: 2px;
  background: linear-gradient(90deg, rgba(233,185,73,.2), var(--th-gold), rgba(233,185,73,.2));
}
.th-rail li { text-align: center; position: relative; padding-top: 64px; }
.th-rail li::before {
  content: ''; position: absolute; top: 38px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--th-ink); border: 3px solid var(--th-gold);
}
.th-rail-year { position: absolute; top: 0; left: 0; right: 0; font-family: var(--th-serif); font-weight: 900; font-size: 1.25rem; color: var(--th-gold); }
.th-rail strong { display: block; font-size: .88rem; padding: 0 2px; line-height: 1.3; color: #eef2f6; }
.th-rail li.is-now::before { background: var(--primary); border-color: #fff; box-shadow: 0 0 0 6px rgba(220,53,69,.35); }
.th-rail li.is-now strong { color: #fff; }

/* ---------- Güncel yönetim ---------- */
.th-today { padding: 80px 0 90px; }
.th-board { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 10px; }
.th-board li {
  flex: 0 1 calc(25% - 15px);
  background: #fff; border-radius: 14px; padding: 24px 18px; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .3s ease, box-shadow .3s ease;
}
.th-board li:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.th-initials {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--primary);
  background: #fff1f2; border: 2px solid #f8c9ce;
}
.th-board strong { display: block; font-size: 1rem; color: var(--heading); }
.th-board small { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.45; color: var(--primary); font-weight: 600; }
.th-board li.is-lead {
  flex: 0 0 100%; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center;
  column-gap: 22px; text-align: left; background: var(--primary-gradient); padding: 26px 28px;
}
.th-board li.is-lead .th-initials { margin: 0; grid-row: span 2; }
.th-board li.is-lead strong { align-self: end; }
.th-board li.is-lead small { align-self: start; margin-top: 4px; }
.th-board li.is-lead .th-initials { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; width: 76px; height: 76px; font-size: 1.6rem; }
.th-board li.is-lead strong { color: #fff; font-family: var(--th-serif); font-size: 1.5rem; }
.th-board li.is-lead small { color: #ffe3e5; font-size: .95rem; }

.th-closing {
  margin: 56px auto 0; max-width: 820px; text-align: center; padding: 40px 32px; border-radius: 18px;
  background: var(--light-gradient); border: 1px solid var(--border-light);
}
.th-closing > p:first-child { font-family: var(--th-serif); font-size: 1.7rem; line-height: 1.4; color: var(--heading); }
.th-closing strong { color: var(--primary); }
.th-closing-sub { margin-top: 14px; color: var(--text-muted); }
.th-members { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 26px; }
.th-members li {
  padding: 8px 18px; border-radius: 50px; background: #fff; font-weight: 700; color: var(--heading);
  box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid var(--border-light);
}
.th-closing .btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Genel Başkanımız (rakamların hemen altında, sayfanın ilk vurgusu) ---------- */
.th-leader { padding: 80px 0 30px; }
.th-leader-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; }
.th-leader-card {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 44px 32px 36px; border-radius: 20px;
  background: radial-gradient(500px 260px at 50% 0%, rgba(233,185,73,.28), transparent 70%),
    linear-gradient(160deg, #8e1b26 0%, var(--primary) 55%, #b3202e 100%);
  box-shadow: 0 18px 40px rgba(167,30,42,.28);
}
.th-leader-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--th-gold), #fff3d1, var(--th-gold));
}
.th-leader-mono {
  width: 112px; height: 112px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--th-serif); font-weight: 900; font-size: 2.4rem; color: #fff;
  background: rgba(255,255,255,.12); border: 3px solid var(--th-gold); box-shadow: 0 0 0 8px rgba(255,255,255,.08);
}
.th-leader-name { font-family: var(--th-serif); font-weight: 900; font-size: 2.3rem; line-height: 1.1; margin: 2px 0 10px; color: #fff; }
.th-leader-role { font-size: .98rem; line-height: 1.6; color: #ffe3e5; font-weight: 600; }
.th-leader-vote {
  display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.th-leader-vote strong { font-family: var(--th-serif); font-size: 2.3rem; font-weight: 900; color: var(--th-gold); line-height: 1; }
.th-leader-vote span { font-size: .85rem; line-height: 1.45; color: rgba(255,255,255,.88); }
.th-leader-h { font-family: var(--th-serif); font-weight: 900; font-size: 2rem; line-height: 1.2; color: var(--heading); margin-bottom: 16px; }
.th-leader-text p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 14px; }
.th-leader-text strong { color: var(--primary); }
.th-leader-steps { list-style: none; margin-top: 22px; border-left: 2px solid #f3dca2; padding-left: 0; }
.th-leader-steps li { position: relative; padding: 0 0 12px 22px; font-size: .95rem; line-height: 1.5; color: var(--text); }
.th-leader-steps li::before {
  content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--th-gold);
}
.th-leader-steps li.is-key::before { background: var(--primary); border-color: var(--primary); }
.th-leader-steps li.is-key { font-weight: 700; color: var(--heading); }
.th-leader-steps b { display: inline-block; min-width: 52px; font-family: var(--th-serif); color: var(--primary); }

/* ---------- Adapazarı'nda TES-İŞ ---------- */
.th-local { padding: 70px 0; background: var(--light-gradient); }
.th-local-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 10px; }
.th-local-grid li {
  background: #fff; border-radius: 14px; padding: 24px 22px; border-top: 4px solid var(--th-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .3s ease, box-shadow .3s ease;
}
.th-local-grid li:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.th-local-grid li.is-key { border-top-color: var(--primary); }
.th-local-grid b { font-family: var(--th-serif); font-weight: 900; font-size: 1.4rem; color: var(--primary); }
.th-local-grid h3 { font-family: var(--th-serif); font-size: 1.2rem; color: var(--heading); margin: 6px 0 8px; line-height: 1.3; }
.th-local-grid p { font-size: .95rem; line-height: 1.65; color: var(--text); }
.th-local-grid strong { color: var(--heading); }
/* "Bugün" kartı: 2 sütun x 2 satır (masaüstünde sağ alt blok), vurgular farklı renkte */
.th-local-grid li.th-local-wide { grid-column: 2 / 4; grid-row: 2 / 4; align-self: stretch; border-top-color: var(--primary); }
.th-local-wide p { font-size: .9rem; line-height: 1.6; }
.th-hl-place, .th-hl-org, .th-hl-right { font-weight: 700; border-radius: 4px; padding: 0 3px; }
.th-hl-place { color: var(--primary); background: rgba(220,53,69,.09); }
.th-hl-org { color: #8a5a00; background: var(--th-gold-soft); }
.th-hl-right { color: #1b6b4a; background: rgba(27,107,74,.1); }

/* ---------- Kaydırınca beliren öğeler (yalnız JS açıkken; bkz. main.js tarihce) ---------- */
.th-anim .th-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.th-anim .th-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .th-anim .th-reveal { opacity: 1; transform: none; transition: none; }
  .th-scroll span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .th-hero h1 { font-size: 3.1rem; }
  .th-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .th-stat:nth-child(2) { border-right: none; }
  .th-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-light); }
  .th-founding-grid { grid-template-columns: minmax(0, 1fr); }
  .th-leader-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .th-leader-card { max-width: 520px; width: 100%; margin: 0 auto; }
  .th-local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-local-grid li.th-local-wide { grid-column: 1 / -1; grid-row: auto; }
  .th-board li { flex-basis: calc(50% - 10px); }
  /* Genel başkanlar: yatay kaydırılabilir şerit (sayfa değil, yalnız şerit kayar) */
  .th-rail { display: flex; overflow-x: auto; gap: 0; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .th-rail li { flex: 0 0 130px; scroll-snap-align: start; }
  .th-rail::before { left: 0; right: auto; width: calc(130px * 9); }
}
@media (max-width: 768px) {
  .th-hero { padding: 48px 0 140px; }
  .th-hero-art { opacity: .55; height: 55%; }
  .th-hero h1 { font-size: 2.5rem; }
  .th-hero-lead { font-size: 1rem; }
  .th-h2 { font-size: 1.9rem; }
  .th-era h3 { font-size: 1.6rem; }
  /* Zaman tüneli tek sütun: çizgi solda, yıl kartın üstünde */
  .th-timeline::before { left: 22px; transform: none; }
  .th-item { grid-template-columns: 44px minmax(0, 1fr); }
  .th-year { grid-column: 2; grid-row: 1; justify-self: start; margin: 0 0 10px; }
  .th-card, .th-item:nth-child(even) .th-card { grid-column: 2; grid-row: 2; }
  .th-item::before {
    content: ''; position: absolute; left: 15px; top: 12px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 4px solid var(--primary);
  }
  .th-card::after { display: none; }
  .th-quote { font-size: 1.25rem; }
}
@media (max-width: 576px) {
  .th-hero h1 { font-size: 2.05rem; }
  .th-stat-num { font-size: 2.1rem; }
  .th-stat { padding: 20px 10px; }
  .th-founding { padding: 70px 0 50px; }
  .th-leader { padding: 56px 0 20px; }
  .th-leader-card { padding: 34px 20px 28px; }
  .th-leader-mono { width: 92px; height: 92px; font-size: 2rem; }
  .th-leader-name { font-size: 1.9rem; }
  .th-leader-h { font-size: 1.55rem; }
  .th-local { padding: 40px 0; }
  .th-local-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .th-founders { padding: 24px 18px; }
  .th-board { gap: 12px; }
  .th-board li { flex-basis: calc(50% - 6px); padding: 18px 10px; }
  .th-board small { font-size: .76rem; }
  .th-initials { width: 52px; height: 52px; font-size: 1rem; }
  .th-board li.is-lead { display: flex; flex-direction: column; text-align: center; gap: 10px; }
  .th-closing { padding: 28px 18px; }
  .th-closing > p:first-child { font-size: 1.35rem; }
  .th-quote span + span::before { margin-right: 12px; }
}
