/* ==========================================================================
   DERNEK YÖNETİM SİSTEMİ — STİL ŞABLONU
   ========================================================================== */

:root {
    --primary-color: #1b5e20;    /* Kurumsal Güven Yeşili */
    --primary-hover: #144317;
    --secondary-color: #2c3e50;  /* Derin Kurumsal Gri/Mavi */
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-light: #ffffff;
    --bg-accent: #f8faf9;
    --border-color: #eaeaea;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --header-h: 85px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVİGASYON
   ========================================================================== */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* TEK tanım (eskiden 80px ve 85px olmak üzere iki kez tanımlıydı) */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.header-left   { flex: 1;   display: flex; justify-content: flex-start; align-items: center; gap: 12px; }
.header-center { flex: 2;   display: flex; justify-content: center;     align-items: center; }
.header-right  { flex: 1;   display: flex; justify-content: flex-end;   align-items: center; gap: 12px; }

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-link img { max-height: 55px; width: auto; }

.logo-title {
    display: block;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.logo-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav > a:hover { color: var(--primary-color); }

/* --- Dropdown --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--bg-accent);
    color: var(--primary-color);
    padding-left: 24px;
}

/* ÖNEMLİ: Alt menü fare üzerine gelince AÇILMAZ.
   Sadece tıklama ile açılır (JS .open sınıfını ekler). */
.dropdown > .dropbtn:hover { color: var(--primary-color); }
.dropdown.open > .dropbtn { color: var(--primary-color); }
.dropdown.open > .dropdown-content { display: block; }

/* Ok işareti açıkken ters döner (varsa) */
.dropdown > .dropbtn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.25s ease;
}
.dropdown.open > .dropbtn::after { transform: rotate(180deg); }

/* ==========================================================================
   HAMBURGER BUTONU
   Masaüstünde display:none. HTML'de içeriği ne olursa olsun
   (☰ karakteri, ikon fontu veya 3 span) çizgiler CSS ile çizilir.
   ========================================================================== */
.mobile-nav-toggle {
    display: none;                 /* ← Masaüstünde GİZLİ */
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    margin: 0;
    cursor: pointer;

    /* Varsayılan <button> görünümünü tamamen sıfırla */
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--secondary-color);
    -webkit-tap-highlight-color: transparent;

    /* İçerideki ☰ / ikon / metin görünmez olsun */
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;

    /* ORTA çizgi (background ile çizilir) */
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 20px 2px;
    background-position: center center;
    background-repeat: no-repeat;

    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

/* İçeride span varsa gizle — çizgileri CSS çiziyor */
.mobile-nav-toggle > * { display: none; }

/* ÜST ve ALT çizgiler */
.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle::before { top: 13px; }
.mobile-nav-toggle::after  { bottom: 13px; }

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f9fbf9;
    outline: none;
}

/* Menü açıkken ikon "X" olur */
.mobile-nav-toggle.active { background-size: 0 2px; }        /* orta çizgi kaybolur */
.mobile-nav-toggle.active::before { transform: translateY(7px)  rotate(45deg); }
.mobile-nav-toggle.active::after  { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   BUTON STANDARTLARI
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.btn-primary { background: var(--primary-color); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary-color); color: var(--primary-color); background: transparent; }
.btn-outline:hover { background: var(--primary-color); color: #ffffff; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Minimal header butonları */
.btn-minimal-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid #dcdfe6;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-minimal-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f9fbf9;
}

.btn-minimal-primary {
    background: var(--primary-color);
    color: #ffffff !important;
    border: 1px solid var(--primary-color);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.15);
}

.btn-minimal-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 94, 32, 0.25);
}

/* ==========================================================================
   ANA SAYFA (HERO)
   ========================================================================== */
.hero-section {
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(circle at top right, #f4f9f5 0%, #ffffff 80%);
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   IZGARA MİMARİSİ
   ========================================================================== */
.section-padding { padding: 90px 0; }

.section-title-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-center h2 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title-center p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stats-grid, .features-grid, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); }
.stat-card h3 { font-size: 2.8rem; color: var(--primary-color); font-weight: 800; margin-bottom: 8px; }
.stat-card p { font-weight: 600; color: var(--text-color); }

.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-box:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-box h4 { font-size: 1.25rem; margin-bottom: 12px; color: var(--secondary-color); font-weight: 700; }
.feature-box p { color: var(--text-muted); font-size: 0.95rem; }

/* 5 Adımlı Süreç Hattı */
.steps-section { padding: 90px 0; background-color: var(--bg-accent); }

.steps-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}

.step-item { position: relative; }

.step-circle {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(27,94,32,0.2);
}

.step-item h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--secondary-color); }
.step-item p  { font-size: 0.9rem; color: var(--text-muted); }   /* "0.9  rem" yazım hatası düzeltildi */

/* Kurumsal Bilgi Kartları */
.info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card h3 { color: var(--secondary-color); font-size: 1.4rem; margin-bottom: 24px; font-weight: 800; }
.info-list { list-style: none; }
.info-list li { margin-bottom: 14px; font-size: 1rem; color: var(--text-color); font-weight: 500; display: flex; gap: 10px; }

/* İç sayfa detay kartı */
.corporate-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.page-main-title {
    font-size: 2.6rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 12px;
}

.meta-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 70px 0 30px;
    margin-top: 0;   /* üstteki beyaz şerit kaldırıldı */
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    font-size: 0.9rem;
    color: #a0aab2;
}

/* ==========================================================================
   KİMLİK DOĞRULAMA (LOGIN / REGISTER)
   ========================================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-accent);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}

.auth-logo { margin-bottom: 25px; }
.auth-logo h2 { color: var(--primary-color); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.5px; margin-bottom: 5px; }
.auth-logo span { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

.auth-form .form-group { text-align: left; margin-bottom: 20px; }
.auth-form label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--secondary-color); font-size: 0.95rem; }
.auth-form input, .auth-form select { width: 100%; padding: 12px 15px; border: 1px solid #dcdfe6; border-radius: 6px; font-size: 0.95rem; transition: var(--transition); }
.auth-form input:focus, .auth-form select:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1); }

.auth-btn { width: 100%; margin-top: 10px; padding: 14px; font-size: 1rem; }

.auth-links { margin-top: 25px; font-size: 0.95rem; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.auth-links a { color: var(--primary-color); text-decoration: none; font-weight: 700; transition: var(--transition); }
.auth-links a:hover { color: var(--primary-hover); }
.back-link { display: inline-block; margin-top: 15px; color: #90a4ae !important; font-weight: 600; font-size: 0.9rem; }

/* ==========================================================================
   RESPONSIVE — TEK BLOK (dosyadaki TÜM mobil kurallar burada)
   ========================================================================== */
@media (max-width: 768px) {

    :root { --header-h: 72px; }   /* logo satırının SABİT yüksekliği */

    /* --- Header yatay kalır: solda logo, sağda hamburger --- */
    .header-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;          /* satırlar esneyip yer değiştirmesin */
        height: auto;                       /* menü açılınca büyüyebilsin */
        min-height: var(--header-h);
        gap: 0;
    }

    /* KRİTİK: Logo satırının yüksekliği sabit.
       Böylece menü açılıp header uzasa da logo alanı ne büyür ne sıkışır. */
    .header-left,
    .mobile-nav-toggle {
        height: var(--header-h);
        align-self: flex-start;
    }

    .header-left {
        flex: 1 1 auto;
        min-width: 0;                       /* uzun başlığın taşmasını engeller */
        max-width: calc(100% - 54px);
        align-items: center;                /* logo dikeyde ortalı kalır */
        overflow: hidden;
    }

    /* Buton 42px; sabit yükseklikli satırda dikeyde ortalanır */
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        height: var(--header-h);
        border: none;                       /* çerçevesiz, sade görünüm */
        background-position: center center;
    }

    .mobile-nav-toggle::before { top: 50%; margin-top: -8px; }
    .mobile-nav-toggle::after  { bottom: 50%; margin-bottom: -8px; }

    .logo-link { height: 100%; }
    .header-left img { max-height: 42px !important; width: auto; }

    /* header.php'deki satır içi (inline) stilleri ezmek için !important gerekli */
    .logo-title    { font-size: 0.95rem !important; line-height: 1.25; }
    .logo-subtitle { font-size: 0.72rem !important; line-height: 1.2; }

    /* Hamburger görünür olur */
    .mobile-nav-toggle { display: block; }

    /* --- Menü ve butonlar: JS .active ekleyene kadar gizli --- */
    .header-center,
    .header-right {
        display: none;
        flex: 1 1 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
    }

    .header-center.active,
    .header-right.active { display: flex; }

    .header-center { border-top: 1px solid var(--border-color); padding: 8px 0; }
    .header-right  { border-top: 1px solid #f4f7f6; padding: 14px 0 18px; gap: 10px; }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .main-nav > a,
    .dropdown .dropbtn {
        width: 100%;
        padding: 13px 4px;
        border-bottom: 1px solid #f4f7f6;
        text-align: left;
    }

    .dropdown { display: block; width: 100%; }

    /* Alt menü akordiyon: sadece .open ile açılır */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: var(--bg-accent);
    }

    .dropdown-content a { padding: 11px 4px 11px 22px; }
    .dropdown-content a:hover { padding-left: 26px; }

    .btn-minimal-outline,
    .btn-minimal-primary {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- Hero / içerik --- */
    .container { padding: 0 18px; }
    .hero-section { padding: 64px 0; }
    .hero-content h1 { font-size: 2.1rem; }
    .hero-content p { font-size: 1.05rem; margin-bottom: 30px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }

    .section-padding, .steps-section { padding: 56px 0; }
    .section-title-center { margin-bottom: 36px; }
    .section-title-center h2 { font-size: 1.8rem; }

    .corporate-card  { padding: 26px 20px; }
    .page-main-title { font-size: 1.9rem; }
    .info-card       { padding: 26px 20px; }

    .footer-contact { gap: 18px; flex-direction: column; text-align: center; }

    /* --- Yönetim Paneli (Dashboard) --- */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .dashboard-layout { flex-direction: column; }

    .sidebar {
        display: none;
        width: 100%;
        height: auto;
        border-right: none;
    }

    .sidebar.active { display: flex; }
    .sidebar-brand h3 { display: none; }            /* çift isim hatasını çözer */
    .sidebar-brand { padding: 15px 20px 10px; border-bottom: none; }
}

/* ==========================================================================
   PANELDEN EKLENEN ZENGİN İÇERİK (Sayfa & Haber/Duyuru Detayı)
   --------------------------------------------------------------------------
   Global "* { margin:0; padding:0 }" reset'i editörden gelen p/h2/ul/table
   etiketlerinin varsayılan boşluklarını siliyordu. Bu blok yalnızca
   .rich-text-content içinde geçerlidir, sitenin geri kalanını etkilemez.
   ========================================================================== */
.rich-text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-text-content > *:first-child { margin-top: 0; }
.rich-text-content > *:last-child  { margin-bottom: 0; }

.rich-text-content p {
    margin: 0 0 1.15em;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.9em 0 0.6em;
}

.rich-text-content h1 { font-size: 2rem; }
.rich-text-content h2 { font-size: 1.65rem; }
.rich-text-content h3 { font-size: 1.35rem; }
.rich-text-content h4 { font-size: 1.15rem; }
.rich-text-content h5,
.rich-text-content h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }

.rich-text-content ul,
.rich-text-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.6em;
}

.rich-text-content ul { list-style: disc outside; }
.rich-text-content ol { list-style: decimal outside; }
.rich-text-content ul ul { list-style: circle outside; }

.rich-text-content li {
    margin-bottom: 0.5em;
}

.rich-text-content li > ul,
.rich-text-content li > ol {
    margin: 0.5em 0 0;
}

.rich-text-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-text-content a:hover { color: var(--primary-hover); }

.rich-text-content strong,
.rich-text-content b { font-weight: 700; color: var(--secondary-color); }

.rich-text-content em,
.rich-text-content i { font-style: italic; }

.rich-text-content img,
.rich-text-content video,
.rich-text-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.6em auto;
    border-radius: var(--radius);
}

.rich-text-content iframe { width: 100%; aspect-ratio: 16 / 9; }

.rich-text-content figure { margin: 1.6em 0; }
.rich-text-content figcaption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.rich-text-content blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    background: var(--bg-accent);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--secondary-color);
    font-style: italic;
}

.rich-text-content blockquote p:last-child { margin-bottom: 0; }

.rich-text-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2.2em 0;
}

/* Tablolar: dar ekranda yatay kaydırılabilir */
.rich-text-content .table-scroll { width: 100%; overflow-x: auto; margin: 1.6em 0; }

.rich-text-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.rich-text-content th,
.rich-text-content td {
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.rich-text-content th {
    background: var(--bg-accent);
    color: var(--secondary-color);
    font-weight: 700;
}

.rich-text-content tr:nth-child(even) td { background: #fcfdfc; }

.rich-text-content pre {
    background: #f5f7f5;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    overflow-x: auto;
    margin: 1.6em 0;
    font-size: 0.9rem;
}

.rich-text-content code {
    background: #f0f4f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.rich-text-content pre code { background: none; padding: 0; }

/* ==========================================================================
   İÇERİK ROZETİ (HABER / DUYURU)
   ========================================================================== */
.badge-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    background: var(--bg-accent);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   İÇERİK SAYFASI YARDIMCI SINIFLARI
   ========================================================================== */
.content-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 35px;
    padding: 20px 24px;
    background: var(--bg-accent);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.content-back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.content-back-link:hover { color: var(--primary-hover); }

.content-cover {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.footer-content { width: 100%; }

@media (max-width: 768px) {
    .rich-text-content   { font-size: 1rem; }
    .rich-text-content h1 { font-size: 1.6rem; }
    .rich-text-content h2 { font-size: 1.4rem; }
    .rich-text-content h3 { font-size: 1.2rem; }
    .content-lead        { font-size: 1.05rem; padding: 16px 18px; }
}


/* ==========================================================================
   ALT BİLGİ (FOOTER) — panelden yönetilen çok sütunlu düzen
   --------------------------------------------------------------------------
   Eski .footer-contact kuralı geriye dönük uyumluluk için duruyor.
   ========================================================================== */
.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: .01em;
}

.footer-about {
    color: #b6c0c9;
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 42ch;
}

/* --- Sosyal medya --- */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: #ffffff;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- Hızlı bağlantılar --- */
.footer-links,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin-bottom: 11px; }

.footer-links a {
    color: #b6c0c9;
    text-decoration: none;
    font-size: 0.93rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* --- İletişim listesi --- */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
    color: #b6c0c9;
    font-size: 0.93rem;
    line-height: 1.6;
}

.footer-contact-list li > span:first-child { flex-shrink: 0; }

.footer-contact-list a {
    color: #b6c0c9;
    text-decoration: none;
    word-break: break-word;
    transition: var(--transition);
}

.footer-contact-list a:hover { color: #ffffff; }

/* --- Alt şerit --- */
.main-footer .footer-bottom {
    margin-top: 0;
}

/* Editörden "Tam genişlik" seçilen görseller */
.rich-text-content img.img-full {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ==========================================================================
   ALT BİLGİ IZGARASI — 34 / 22 / 22 / 22
   --------------------------------------------------------------------------
   Sütun sayısı içeriğe göre değiştiği için oran, PHP'nin eklediği
   .cols-N sınıfına göre belirlenir. Boşluk (gap) fr birimlerinden
   düşüldüğü için toplam her zaman kapsayıcı genişliğine tam oturur.
   ========================================================================== */
.main-footer .footer-grid {
    display: grid;
    gap: 40px;
    align-items: start;
    padding-bottom: 50px;
}

.main-footer .footer-grid.cols-4 { grid-template-columns: 34fr 22fr 22fr 22fr; }
.main-footer .footer-grid.cols-3 { grid-template-columns: 34fr 33fr 33fr; }
.main-footer .footer-grid.cols-2 { grid-template-columns: 40fr 60fr; }

.main-footer .footer-grid.cols-1 {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.footer-col { min-width: 0; }   /* uzun içerik sütunu taşırmasın */

/* --- Serbest HTML alanı (4. sütun) --- */
.footer-custom {
    color: #b6c0c9;
    font-size: 0.93rem;
    line-height: 1.75;
}

.footer-custom > *:first-child { margin-top: 0; }
.footer-custom > *:last-child  { margin-bottom: 0; }
.footer-custom p  { margin: 0 0 1em; }
.footer-custom a  { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer-custom a:hover { opacity: .8; }
.footer-custom img { max-width: 100%; height: auto; border-radius: 8px; }
.footer-custom strong { color: #ffffff; }

.footer-custom ul,
.footer-custom ol { margin: 0 0 1em; padding-left: 1.3em; }
.footer-custom li { margin-bottom: .5em; }

.footer-custom .btn,
.footer-custom .footer-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-custom .btn:hover,
.footer-custom .footer-btn:hover { background: var(--primary-hover); opacity: 1; }

@media (max-width: 1000px) {
    .main-footer .footer-grid.cols-4,
    .main-footer .footer-grid.cols-3,
    .main-footer .footer-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }
    .footer-col-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .main-footer { padding: 50px 0 25px; }

    .main-footer .footer-grid.cols-4,
    .main-footer .footer-grid.cols-3,
    .main-footer .footer-grid.cols-2 {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-about { max-width: none; }
}

/* ==========================================================================
   AKILLI ÜST MENÜ + YUKARI ÇIK DÜĞMESİ
   Davranış assets/js/ui-scroll.js içindedir.
   ========================================================================== */

.main-header {
    transition: transform .28s ease;
    will-change: transform;
}

/* Aşağı inerken menü yukarı kayar. Sticky konumu korunur; yalnızca
   görsel olarak dışarı çıkar, böylece yukarı çıkışta anında geri gelir. */
.main-header.header-gizli {
    transform: translateY(-100%);
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e0e0e0);
    background: #ffffff;
    color: var(--primary-color, #2e7d32);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Kapalıyken yalnızca saydam değil, ERİŞİLEMEZ olmalı; aksi hâlde
       sekme tuşuyla görünmeyen bir düğmeye odaklanılır. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.to-top-acik {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.to-top:hover {
    border-color: var(--primary-color, #2e7d32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.to-top:focus-visible {
    outline: 2px solid var(--primary-color, #2e7d32);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* Hareket azaltma tercihi: geçişler kapatılır, işlev korunur. */
@media (prefers-reduced-motion: reduce) {
    .main-header,
    .to-top { transition: none; }
}
