/*
Theme Name: TKDK Spor Kulübü Yönetim Sistemi
Theme URI: https://tkdk.com
Author: TKDK
Author URI: https://tkdk.com
Description: Spor kulüpleri için profesyonel WordPress yönetim teması. Üye yönetimi, kurs takibi, muhasebe, devam sistemi ve üye portalı.
Version: 3.7.37
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tkdk-spor
Tags: sports, club, management, members, courses

TKDK Spor Kulübü Yönetim Sistemi — WordPress Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════
   TKDK FRONTEND STILLER — v3.4
   Kapsam: Header · Slider · Bloklar · Footer · Global
═══════════════════════════════════════════════════════ */

/* ── Değişkenler ── */
:root {
  /* Renk Paleti */
  --c-primary:      #0d3b66;
  --c-primary-dark: #061e36;
  --c-primary-light:#1a5a9a;
  --c-secondary:    #c4a747;
  --c-secondary-dk: #a8893a;
  --c-accent:       #2874a6;
  --c-success:      #1a7f3c;
  --c-success-bg:   #eafaf1;
  --c-danger:       #e74c3c;
  --c-danger-bg:    #fdecea;
  --c-warning:      #d4a017;
  --c-warning-bg:   #fef9e7;
  --c-info:         #2874a6;
  --c-info-bg:      #eff6ff;
  --c-light:        #f0f4f8;
  --c-light-alt:    #f8fafc;
  --c-border:       #e2e8f0;
  --c-border-dark:  #cbd5e1;
  --c-text:         #1e293b;
  --c-text-light:   #ffffff;
  --c-muted:        #64748b;
  --c-white:        #ffffff;

  /* Şekil & Efekt */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --radius-full: 999px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 20px rgba(0,0,0,.09);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.16);
  --transition:  .22s ease;

  /* Tipografi — Inter önce, sistem fontları fallback */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size:   15px;
  --line-height: 1.65;
}

/* ── Sıfırlama ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--font-size);
  color: var(--c-text);
  background: var(--c-light-alt);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--c-primary); }
ul { list-style: none; }

.tkdk-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════
   ÜST BAR
════════════════════════════════════════ */
.tkdk-topbar {
  background: var(--c-primary);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tkdk-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tkdk-topbar-left { display: flex; gap: 20px; }
.tkdk-topbar-left span { display: flex; align-items: center; gap: 5px; }

/* ════════════════════════════════════════
   HEADER ANA
════════════════════════════════════════ */
#tkdk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(13,59,102,.18);
}
.tkdk-header-main {
  background: var(--c-white);
  border-bottom: 3px solid var(--c-secondary);
}
.tkdk-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
#tkdk-header-spacer { height: 0; }

/* Logo */
.tkdk-logo { flex-shrink: 0; }
.tkdk-logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.tkdk-logo a    { text-decoration: none; }
/* NOT: .tkdk-logo-name / .tkdk-logo-sub / .tkdk-logo-icon / .tkdk-logo img
   kuralları burada KASITLI OLARAK tanımlanmıyor — tek kaynak olması için
   aşağıdaki ".tkdk-logo-img / .tkdk-logo-text-wrap" bloğunda toplandı
   (satır ~395). Burada aynı sınıfların tekrar tanımlanması, önceki bir
   düzeltmede logonun büyütülememesine sebep olan tam da bu tür bir
   çakışmaydı — bir daha yaşanmaması için tek blokta birleştirildi. */

/* Nav */
.tkdk-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tkdk-menu { display: flex; align-items: center; gap: 2px; }
.tkdk-menu li a {
  display: block;
  padding: 8px 14px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.tkdk-menu li a:hover,
.tkdk-menu li.current-menu-item > a,
.tkdk-menu li.current_page_item > a {
  background: var(--c-light);
  color: var(--c-primary);
  text-decoration: none;
}

/* Açılır alt menü (dropdown) — örn. "Hakkımızda" altında Tüzük/KVKK/Yönetim */
.tkdk-menu li.menu-item-has-children { position: relative; }
.tkdk-menu li.menu-item-has-children > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 5px;
  opacity: .6;
  position: relative;
  top: -1px;
}
.tkdk-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(13,59,102,.16);
  padding: 8px;
  margin: 10px 0 0;
  z-index: 1100;
  border: 1px solid rgba(0,0,0,.05);
}
/* Üst linkten dropdown'a giderken fareyi kaybetmemek için görünmez köprü:
   margin ile oluşan boşluk, hover zincirini kırıyordu — fare o boşluktan
   geçerken li:hover durumu bitiyor ve menü kapanıyordu. Bu köprü o boşluğu
   da hoverlanabilir hale getirir. */
.tkdk-menu li.menu-item-has-children::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
}
.tkdk-menu li.menu-item-has-children:hover > .sub-menu,
.tkdk-menu li.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.tkdk-menu .sub-menu li a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  white-space: nowrap;
  border-radius: 8px;
  color: var(--c-text);
}
.tkdk-menu .sub-menu li a:hover {
  background: var(--c-light);
  color: var(--c-primary);
}

/* Üye giriş butonu nav içi */
.tkdk-nav-cta { margin-left: 12px; }
.tkdk-btn-nav {
  display: inline-block;
  background: var(--c-primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.tkdk-btn-nav:hover { background: #0a2d52; transform: translateY(-1px); text-decoration: none; }

/* Hamburger */
.tkdk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.tkdk-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Logo + Site Başlığı ── */
.tkdk-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
}
.tkdk-logo-link:hover { opacity: .92; }

.tkdk-logo-img {
  height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.tkdk-logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.tkdk-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary);
  white-space: nowrap;
  letter-spacing: -.2px;
}
.tkdk-logo-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
  letter-spacing: .1px;
}

/* Mobil: sub gizle, logo/başlık biraz küçülsün (yine de okunabilir kalsın) */
@media (max-width: 600px) {
  .tkdk-logo-sub { display: none; }
  .tkdk-logo-name { font-size: 15px; }
  .tkdk-logo-img { height: 38px; }
}

/* ════════════════════════════════════════
   3'LÜ BLOK ALANI
════════════════════════════════════════ */
.tkdk-home-blocks {
  background: #f0f4f8;
  padding: 56px 0 60px;
}
.tkdk-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tkdk-block {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tkdk-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 2px solid var(--c-primary);
  background: var(--c-primary);
}
.tkdk-block-icon { font-size: 20px; }
.tkdk-block-header h3 { color: #fff; font-size: 16px; font-weight: 700; flex: 1; }
.tkdk-block-more {
  color: var(--c-secondary) !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tkdk-block-more:hover { color: #fff !important; text-decoration: none; }

.tkdk-block-list { padding: 8px 0; flex: 1; }
.tkdk-block-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--c-muted);
  font-size: 13px;
}

/* List item */
.tkdk-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}
.tkdk-list-item:last-child { border-bottom: none; }
.tkdk-list-item:hover { background: var(--c-light); }
.tkdk-list-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  background: var(--c-light);
  border-radius: 8px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.tkdk-list-date .tkdk-day { font-size: 18px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.tkdk-list-date .tkdk-mon { font-size: 10px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; margin-top: 2px; }

.tkdk-list-item--announce .tkdk-list-date { background: #fff8e1; }
.tkdk-list-item--announce .tkdk-list-date .tkdk-day { color: #b7950b; }

.tkdk-list-body h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tkdk-list-body h4 a { color: var(--c-text); }
.tkdk-list-body h4 a:hover { color: var(--c-primary); }
.tkdk-list-body p { font-size: 12px; color: var(--c-muted); line-height: 1.5; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
#tkdk-footer {
  background: #0a2d52;
  color: rgba(255,255,255,.75);
  margin-top: 0;
}
.tkdk-footer-top { padding: 56px 0 40px; }
.tkdk-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr 1.5fr;
  gap: 40px;
}
.tkdk-footer-logo { margin-bottom: 16px; }
.tkdk-footer-logo-text { font-size: 20px; font-weight: 800; color: #fff; }
/* NOT: Eskiden burada ".tkdk-footer-logo img" için "filter: brightness(0) invert(1)"
   kuralı vardı ve bu, logoyu düz beyaz bir silüete çevirip soluk/silik gösteriyordu.
   Header'daki ".tkdk-logo-img" ile birebir aynı, filtresiz görünüm için bu kural
   kaldırıldı — logo artık ".tkdk-footer-logo-img" bloğunda (aşağıda) hiçbir filtre
   uygulanmadan, orijinal renkleriyle gösteriliyor. */
.tkdk-footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 20px; }

.tkdk-social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.tkdk-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.8) !important;
  transition: background var(--transition), transform var(--transition);
}
.tkdk-social-btn:hover { background: var(--c-secondary); transform: translateY(-2px); text-decoration: none; }

.tkdk-footer-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-secondary);
  letter-spacing: .4px;
}
.tkdk-footer-links { display: flex; flex-direction: column; gap: 10px; }
.tkdk-footer-links li a {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  transition: color var(--transition), padding var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tkdk-footer-links li a:hover { color: var(--c-secondary); padding-left: 4px; text-decoration: none; }

.tkdk-footer-event { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tkdk-footer-event:last-child { border-bottom: none; margin-bottom: 0; }
.tkdk-footer-event-date { font-size: 11px; color: var(--c-secondary); font-weight: 600; }
.tkdk-footer-event-name { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600; }
.tkdk-footer-event-loc  { font-size: 11px; color: rgba(255,255,255,.5); }
.tkdk-footer-empty      { font-size: 13px; color: rgba(255,255,255,.4); }

.tkdk-footer-contact { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.tkdk-footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.tkdk-contact-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.tkdk-footer-contact a { color: rgba(255,255,255,.7); }
.tkdk-footer-contact a:hover { color: var(--c-secondary); text-decoration: none; }

/* Alt Footer */
.tkdk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  background: rgba(0,0,0,.2);
}
.tkdk-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tkdk-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.5); }
.tkdk-footer-bottom strong { color: rgba(255,255,255,.75); }
.tkdk-footer-legal { display: flex; gap: 16px; }
.tkdk-footer-legal a { color: rgba(255,255,255,.45); font-size: 12px; }
.tkdk-footer-legal a:hover { color: var(--c-secondary); text-decoration: none; }

/* ════════════════════════════════════════
   MOBİL — RESPONSİF
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tkdk-footer-grid { grid-template-columns: 1fr 1fr; }
  .tkdk-blocks-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .tkdk-topbar { display: none; }
  .tkdk-hamburger { display: flex; }
  .tkdk-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    gap: 8px;
    border-top: 2px solid var(--c-secondary);
    z-index: 999;
  }
  .tkdk-nav.is-open { display: flex; }
  .tkdk-header-main { position: relative; }
  .tkdk-menu { flex-direction: column; width: 100%; gap: 0; }
  .tkdk-menu li a { padding: 12px 16px; border-radius: 8px; font-size: 15px; }
  .tkdk-menu li.menu-item-has-children > a::after { float: right; }
  .tkdk-menu .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--c-light);
    margin: 2px 0 6px 12px;
    padding: 2px;
  }
  .tkdk-menu .sub-menu li a { font-size: 14px; padding: 10px 16px; }
  .tkdk-nav-cta { width: 100%; }
  .tkdk-btn-nav { display: block; text-align: center; width: 100%; padding: 12px; border-radius: 8px; }
  .tkdk-blocks-grid { grid-template-columns: 1fr; gap: 20px; }
  .tkdk-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .tkdk-footer-bottom-inner { flex-direction: column; text-align: center; }
  .tkdk-footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
  .tkdk-home-blocks { padding: 32px 0 36px; }
  .tkdk-footer-top { padding: 36px 0 28px; }
}

/* ════════════════════════════════════════
   İÇ SAYFA ŞABLONLARI (page.php / single.php / archive.php / 404.php)
════════════════════════════════════════ */
.tkdk-page-hero {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  padding: 48px 0 36px;
  color: #fff;
}
.tkdk-page-title { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.tkdk-breadcrumb { font-size: 13px; color: rgba(255,255,255,.75); }
.tkdk-breadcrumb a { color: rgba(255,255,255,.85); }
.tkdk-breadcrumb a:hover { color: var(--c-secondary); }
.tkdk-breadcrumb-sep { margin: 0 8px; opacity: .6; }

.tkdk-page-content { padding: 48px 0 64px; background: #f8fafc; }
.tkdk-page-content-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 15px;
  color: var(--c-text);
}
.tkdk-page-content-box h2, .tkdk-page-content-box h3 { margin: 24px 0 12px; color: var(--c-primary); }
.tkdk-page-content-box p { margin-bottom: 16px; }
.tkdk-page-content-box img { border-radius: 8px; margin: 16px 0; }
.tkdk-page-content-box ul, .tkdk-page-content-box ol { margin: 0 0 16px 24px; }

/* Single (haber detay) */
.tkdk-single-cat {
  display: inline-block;
  background: var(--c-secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.tkdk-single-meta { font-size: 13px; color: rgba(255,255,255,.75); }
.tkdk-single-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 32px; align-items: start; }
.tkdk-single-article { max-width: none; }
.tkdk-single-thumb { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.tkdk-single-sidebar { position: sticky; top: 90px; }

.tkdk-widget-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.tkdk-widget-box h4 { font-size: 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-primary); }
.tkdk-widget-link {
  display: block;
  font-size: 13px;
  color: var(--c-text);
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
}
.tkdk-widget-link:last-child { border-bottom: none; }
.tkdk-widget-link:hover { color: var(--c-primary); text-decoration: none; padding-left: 4px; }

/* Archive grid */
.tkdk-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tkdk-archive-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tkdk-archive-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.tkdk-archive-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--c-light); }
.tkdk-archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tkdk-archive-thumb--placeholder { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.tkdk-archive-body { padding: 18px 20px; }
.tkdk-archive-date { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; }
.tkdk-archive-body h2 { font-size: 16px; margin: 8px 0 10px; }
.tkdk-archive-body h2 a { color: var(--c-text); }
.tkdk-archive-body h2 a:hover { color: var(--c-primary); }
.tkdk-archive-body p { font-size: 13px; color: var(--c-muted); margin-bottom: 14px; }
.tkdk-archive-more { font-size: 12px; font-weight: 700; color: var(--c-accent); }

.tkdk-pagination { margin-top: 40px; text-align: center; }
.tkdk-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0 3px;
  border-radius: 8px;
  background: #fff;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.tkdk-pagination .page-numbers.current { background: var(--c-primary); color: #fff; }
.tkdk-pagination .page-numbers:hover { background: var(--c-light); }

/* 404 */
.tkdk-404-section { padding: 100px 0; background: #f8fafc; }
.tkdk-404-inner { text-align: center; }
.tkdk-404-icon { font-size: 70px; margin-bottom: 16px; }
.tkdk-404-code { font-size: 56px; font-weight: 800; color: var(--c-primary); margin-bottom: 10px; }
.tkdk-404-text { font-size: 16px; color: var(--c-muted); margin-bottom: 28px; }
.tkdk-404-btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff !important;
  padding: 13px 30px;
  border-radius: 25px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.tkdk-404-btn:hover { background: #0a2d52; transform: translateY(-2px); text-decoration: none; }

@media (max-width: 900px) {
  .tkdk-single-layout { grid-template-columns: 1fr; }
  .tkdk-single-sidebar { position: static; }
  .tkdk-archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tkdk-archive-grid { grid-template-columns: 1fr; }
  .tkdk-page-content-box { padding: 24px; }
}

/* Footer alt link (legal bar) */
.tkdk-footer-legal-login {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  opacity: .75;
  transition: opacity .15s;
}
.tkdk-footer-legal-login:hover { opacity: 1; }

/* ── Footer Logo + Başlık ── */
.tkdk-footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  margin-bottom: 14px;
}
.tkdk-footer-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.tkdk-footer-logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tkdk-footer-logo-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.tkdk-footer-logo-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.3;
}

/* ── Footer Portal Linki (CTA yerine sade link) ── */
.tkdk-footer-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: rgba(255,255,255,.85) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s;
}
.tkdk-footer-portal-link:hover {
  background: rgba(255,255,255,.18);
  color: #fff !important;
}

/* ════════════════════════════════════════════════════
   MADDE 7 — YENİ DUYURU ROZETİ
   Son 7 günde eklenen duyurulara "YENİ" rozeti otomatik
════════════════════════════════════════════════════ */
.tkdk-list-item {
  position: relative;
}
.tkdk-new-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  line-height: 1;
  box-shadow: 0 2px 6px rgba(231,76,60,.35);
  animation: tkdk-pulse 2s infinite;
}
@keyframes tkdk-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(231,76,60,.35); }
  50%       { box-shadow: 0 2px 14px rgba(231,76,60,.6); }
}

/* Duyuru kartı vurgu rengi */
.tkdk-list-item--announce {
  border-left: 3px solid var(--c-secondary);
}
.tkdk-list-item--announce:hover {
  background: var(--c-warning-bg);
}

/* ════════════════════════════════════════════════════
   MADDE 8 — MOBİL BOTTOM NAVIGATION
   Sadece mobilde görünür, desktop'ta kesinlikle gizli
════════════════════════════════════════════════════ */
.tkdk-bottom-nav {
  display: none; /* Desktop'ta gizli */
}

@media (max-width: 768px) {
  /* Sayfa içeriğinin alta yapışmaması için boşluk */
  body { padding-bottom: 64px; }

  .tkdk-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.10);
    z-index: 9990;
    align-items: stretch;
  }

  .tkdk-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none !important;
    color: var(--c-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: color .2s, background .2s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* iOS Safari'de bazı durumlarda bir linkin içindeki SVG/span'a dokununca
     tıklamanın üst öğeye (asıl <a>/<button>) değil, o iç elemana gitmesi ve
     "hiçbir şey olmuyor" hissi vermesi bilinen bir sorundur. İç elemanları
     tıklama olaylarından tamamen çıkararak her dokunuşun kesin olarak asıl
     bağlantı/butona ulaşması garanti edilir. */
  .tkdk-bottom-nav-item svg,
  .tkdk-bottom-nav-item span {
    pointer-events: none;
  }

  .tkdk-bottom-nav-item:hover,
  .tkdk-bottom-nav-item.is-active {
    color: var(--c-primary);
    background: var(--c-light);
  }

  .tkdk-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Aktif nokta göstergesi */
  .tkdk-bottom-nav-item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--c-primary);
    border-radius: 0 0 3px 3px;
  }

  /* Giriş butonu farklı renkle öne çıkar */
  .tkdk-bottom-nav-item--login {
    color: var(--c-secondary);
  }
  .tkdk-bottom-nav-item--login:hover {
    background: var(--c-warning-bg);
    color: var(--c-secondary-dk);
  }

  /* Footer'ı mobilde gizle — bottom nav karşılıyor */
  .tkdk-footer-grid {
    gap: 0;
  }
}

/* ════════════════════════════════════════════════════
   MADDE 9 — TİPOGRAFİ YENİLEMESİ
   Başlıklar, metin hiyerarşisi, link stili, form
════════════════════════════════════════════════════ */

/* Başlık ağırlıkları ve letter-spacing */
h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -.5px; }
h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -.3px; }
h3 { font-size: clamp(16px, 2vw, 20px); font-weight: 700; letter-spacing: -.2px; }
h4 { font-size: 15px; font-weight: 700; }
h5 { font-size: 13px; font-weight: 700; letter-spacing: .2px; }

/* Link alt çizgisi — hover'da görünür */
.tkdk-page-content-box a,
.tkdk-single-article a:not(.tkdk-btn):not(.tkdk-single-back-btn) {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.tkdk-page-content-box a:hover,
.tkdk-single-article a:not(.tkdk-btn):not(.tkdk-single-back-btn):hover {
  border-bottom-color: var(--c-accent);
}

/* Liste item başlıkları */
.tkdk-list-body h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.1px;
  line-height: 1.35;
}
.tkdk-list-body h4 a {
  color: var(--c-text);
  transition: color .2s;
}
.tkdk-list-body h4 a:hover { color: var(--c-primary); }
.tkdk-list-body p {
  font-size: 12.5px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-top: 3px;
}

/* Buton tipografisi */
.tkdk-btn-nav,
.tkdk-manshet-btn,
.tkdk-course-btn,
.tkdk-single-back-btn {
  letter-spacing: .1px;
}

/* Block header h3 */
.tkdk-block-header h3 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* ════════════════════════════════════════════════════
   KURSLAR — Kart Sistemi (Anasayfa + Kurslarımız sayfası)
════════════════════════════════════════════════════ */
.tkdk-courses-section { padding: 56px 0; background: #f8fafd; }
.tkdk-courses-section .tkdk-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.tkdk-section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.tkdk-section-header p {
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.tkdk-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.tkdk-course-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.tkdk-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-dark);
}

.tkdk-course-card-top {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tkdk-course-icon {
  font-size: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.tkdk-course-card-top h4 {
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.1px;
}

.tkdk-course-card-body {
  padding: 18px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tkdk-course-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--c-muted);
}
.tkdk-course-meta span { flex-shrink: 0; }

.tkdk-course-fee {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-secondary-dk);
  margin-top: 4px;
}
.tkdk-course-fee span {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
}

.tkdk-course-desc {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin-top: 2px;
}

.tkdk-course-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: var(--c-light);
  color: var(--c-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.tkdk-course-card-footer {
  padding: 0 22px 22px;
  margin-top: auto;
}

.tkdk-course-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--c-primary);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 18px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--transition), transform var(--transition);
}
.tkdk-course-btn:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}
.tkdk-course-btn--login {
  background: var(--c-secondary);
  color: var(--c-primary-dark) !important;
}
.tkdk-course-btn--login:hover {
  background: var(--c-secondary-dk);
}

@media (max-width: 600px) {
  .tkdk-courses-section { padding: 36px 0; }
  .tkdk-section-header h2 { font-size: 22px; }
  .tkdk-courses-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ════════════════════════════════════════════════════
   MADDE 10 — FOOTER AKORDIYON (MOBİL)
   Mobilde sütun başlıkları tıklanabilir, içerik açılır
════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tkdk-footer-col { border-bottom: 1px solid rgba(255,255,255,.08); }
  .tkdk-footer-col:last-child { border-bottom: none; }

  .tkdk-footer-heading {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 16px 0;
    border-bottom: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .tkdk-footer-heading::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255,255,255,.5);
    border-bottom: 2px solid rgba(255,255,255,.5);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-top: -4px;
  }

  .tkdk-footer-heading.is-open {
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 12px;
  }
  .tkdk-footer-heading.is-open::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .tkdk-footer-col-body {
    display: none;
    padding-bottom: 16px;
  }
  .tkdk-footer-col-body.is-open {
    display: block;
    animation: tkdk-slide-down .2s ease;
  }

  @keyframes tkdk-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* İlk sütun (logo/hakkında) accordion'dan muaf — her zaman açık */
  .tkdk-footer-col:first-child .tkdk-footer-heading { display: none; }
  .tkdk-footer-col:first-child .tkdk-footer-col-body { display: block; }
}
