/* ==========================================================================
   Sendika Sitesi - Genel Stil
   Kurumsal mavi-beyaz tema, mobil öncelikli responsive tasarım
   ========================================================================== */

:root {
    --primary: #2e3192;
    --primary-dark: #181a5c;
    --primary-light: #eceefb;
    --accent-red: #e11d3f;
    --accent-orange: #ff7a30;
    --accent-gold: #ffb020;
    --accent-teal: #0f9d8c;
    --accent-purple: #7c3aed;
    --text: #1b1c33;
    --text-muted: #5c5e78;
    --border: #e3e5f1;
    --bg: #f5f6fb;
    --white: #ffffff;
    --fixed-white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(46, 49, 146, 0.10);
    --shadow-hover: 0 10px 30px rgba(46, 49, 146, 0.20);
    --gradient-primary: linear-gradient(135deg, #3a3dac 0%, #181a5c 100%);
    --gradient-accent: linear-gradient(135deg, #ff7a30 0%, #2e3192 100%);
    --heading: var(--primary-dark);
}

:root[data-theme="dark"] {
    --primary: #7479f0;
    --primary-dark: #4a4fc4;
    --primary-light: #1e2150;
    --text: #eceefb;
    --text-muted: #a9acd0;
    --border: #2c2f66;
    --bg: #0e1020;
    --white: #181b33;
    --heading: #dfe2ff;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    transition: background .2s, color .2s;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--heading); }

/* ---------------- Header: üst satır (logo / tanıtım / aksiyonlar) ---------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.header-top .logo { grid-column: 1; }
.header-top .header-motto { grid-column: 2; }
.header-top .header-actions { grid-column: 3; }

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading);
    flex-shrink: 0;
    margin-left: 40px;
}

.logo span { max-width: 320px; line-height: 1.25; text-align: center; }

.header-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary, #2e3192);
    white-space: nowrap;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo img { height: 116px; width: auto; }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
    justify-self: end;
}

.confederation-badge {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 72px;
    opacity: .95;
    transition: opacity .15s, transform .15s;
}

.confederation-badge:hover { opacity: 1; transform: scale(1.03); }
.confederation-badge img { height: 142px; width: auto; margin: -13px 0; }

.confederation-badge-text {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading);
    white-space: nowrap;
    text-decoration: none;
    margin-left: 32px;
    transition: opacity .15s;
}

.confederation-badge-text:hover { opacity: .8; }

@media (max-width: 1300px) {
    .header-motto, .confederation-badge-text { display: none; }
}

.btn-contact-top {
    background: var(--gradient-accent);
    color: var(--fixed-white) !important;
    font-weight: 700;
    font-size: .82rem;
    padding: 8px 16px;
    border-radius: 6px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: var(--text-muted);
    display: flex;
}

.social-icons a:hover { color: var(--primary); }

.social-icon-inactive {
    display: flex;
    color: var(--text-muted);
    opacity: .35;
    cursor: default;
}

/* ---------------- Gündüz/Gece okuma modu anahtarı ---------------- */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.theme-switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.theme-icon { font-size: .85rem; line-height: 1; }

.theme-switch-track {
    width: 38px;
    height: 20px;
    background: var(--border);
    border-radius: 20px;
    position: relative;
    transition: background .2s;
}

.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fixed-white);
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
    transition: transform .2s;
}

.theme-switch input:checked ~ .theme-switch-track { background: var(--primary); }
.theme-switch input:checked ~ .theme-switch-track .theme-switch-thumb { transform: translateX(18px); }

/* ---------------- Hesap menüsü (giriş/çıkış, üye ayarları) ---------------- */
.account-menu { position: relative; flex-shrink: 0; }

.account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--fixed-white) !important;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.account-btn:hover { transform: scale(1.06); box-shadow: var(--shadow-hover); }

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 230px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 8px;
    z-index: 500;
}

.account-menu.open .account-dropdown { display: block; }

.account-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.account-dropdown-header strong { color: var(--heading); font-size: .92rem; }
.account-dropdown-header span { color: var(--text-muted); font-size: .78rem; }

.account-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: .88rem;
    color: var(--text);
}

.account-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.account-dropdown a.account-logout { color: var(--accent-red); }
.account-dropdown a.account-logout:hover { background: rgba(225, 29, 63, .1); }

/* ---------------- Dil değiştirici ---------------- */
.lang-switch { position: relative; flex-shrink: 0; }

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 0 10px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.lang-switch-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.lang-switch-code { font-size: .74rem; letter-spacing: .3px; }

.lang-switch-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 190px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 8px;
    z-index: 500;
}

.lang-switch.open .lang-switch-dropdown { display: block; }

.lang-switch-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: .88rem;
    color: var(--text);
}

.lang-switch-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.lang-switch-dropdown a.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }

.lang-switch-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 4px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
}

[dir="rtl"] .lang-switch-dropdown,
[dir="rtl"] .account-dropdown { right: auto; left: 0; }

/* ---------------- Header: nav satırı ---------------- */
.nav-row { background: var(--white); }

.nav-row-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
}

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

.main-nav a {
    color: var(--text);
    font-weight: 700;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

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

/* ---------------- Nav içi açılır menüler (Yönetim / Basın Yayın) ---------------- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: inherit;
    line-height: inherit;
    color: var(--text);
    font-weight: 700;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
}

.nav-dropdown-toggle:hover { color: var(--primary); }
.nav-dropdown-toggle svg { flex-shrink: 0; transition: transform .2s; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown.open .nav-dropdown-toggle { color: var(--primary); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 250px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 8px;
    z-index: 500;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    color: var(--text);
}

.nav-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

.nav-utility {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-archive {
    background: var(--primary-dark);
    color: var(--fixed-white) !important;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: .85rem !important;
}

/* ---------------- Nav'da Canlı Yayın rozeti (Arşiv'in yanında) ---------------- */
.nav-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: var(--accent-red);
    color: var(--fixed-white) !important;
    font-weight: 700 !important;
    font-size: .72rem !important;
    letter-spacing: .2px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: transform .15s;
    animation: live-badge-blink 1.3s ease-in-out infinite;
}

.nav-live-badge:hover { transform: translateY(-1px); }
.nav-live-badge .live-dot { width: 7px; height: 7px; background: var(--fixed-white); animation: none; }

@keyframes live-badge-blink {
    0%, 100% { background: var(--accent-red); box-shadow: 0 0 0 0 rgba(225, 29, 63, .5); }
    50% { background: #ff2d55; box-shadow: 0 0 6px 1px rgba(225, 29, 63, .55); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-live-badge { animation: none; }
    .live-dot { animation: none; }
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
    flex-shrink: 0;
    animation: pulse-live 1.6s infinite;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 63, .6); }
    70% { box-shadow: 0 0 0 9px rgba(225, 29, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 63, 0); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background .15s;
}

.menu-toggle:hover,
.menu-toggle:focus-visible { background: var(--primary-light); }
.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--heading);
    border-radius: 2px;
}

/* ---------------- Son Dakika bandı ---------------- */
.ticker-bar {
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 1520px;
    margin: 14px auto 0;
    padding: 6px;
    gap: 4px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.ticker-label {
    background: linear-gradient(135deg, var(--accent-red), #b5123a);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    flex-shrink: 0;
}

.ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    animation: ticker-pulse 1.6s ease-in-out infinite;
}

.ticker-track-wrap {
    overflow: hidden;
    flex: 1;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 12px), transparent 100%);
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    color: var(--text) !important;
    padding: 6px 28px;
    font-size: .88rem;
    font-weight: 500;
}

.ticker-item[href]:hover { color: var(--primary) !important; }

@keyframes ticker-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.65); }
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ---------------- Temsilcilik Başvurusu CTA ---------------- */
.rep-cta-section { padding-top: 10px; padding-bottom: 10px; }

.rep-cta {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 45px -16px rgba(10, 37, 96, .45);
}

.rep-cta::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.rep-cta-icon {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.rep-cta-text { flex: 1 1 320px; position: relative; z-index: 1; }
.rep-cta-text h2 { color: #fff; margin: 0 0 8px; }
.rep-cta-text p { color: #dce6fb; margin: 0 0 16px; max-width: 560px; }

.rep-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.rep-cta-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: #eaf0ff;
}

.rep-cta-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: #fff;
    color: var(--primary-dark) !important;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.rep-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.rep-cta-duo {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.rep-cta-half {
    flex: 1 1 0;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 14px;
}

.rep-cta-half .rep-cta-text { flex: none; }
.rep-cta-half .rep-cta-text p { max-width: none; }
.rep-cta-half .rep-cta-features { justify-content: center; }

@media (max-width: 900px) {
    .rep-cta-duo { flex-direction: column; }
    .rep-cta-half { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 760px) {
    .rep-cta {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
        gap: 10px;
        border-radius: 16px;
    }
    .rep-cta-duo, .rep-cta-half { gap: 10px; }
    .rep-cta-icon { width: 46px; height: 46px; }
    .rep-cta-icon svg { width: 24px; height: 24px; }
    .rep-cta-text h2 { font-size: 1.05rem; margin: 0 0 6px; }
    .rep-cta-text p { max-width: none; font-size: .82rem; line-height: 1.45; margin: 0 0 10px; }
    .rep-cta-features { justify-content: center; gap: 4px 14px; }
    .rep-cta-features span { font-size: .74rem; }
    .rep-cta-btn { width: 100%; text-align: center; padding: 11px 18px; font-size: .88rem; }
}

/* ---------------- Hero Row (slider + side news) ---------------- */
.hero-row {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    border-radius: var(--radius);
    flex: 2 1 0;
    min-width: 0;
    min-height: 500px;
    cursor: grab;
    user-select: none;
}

.hero-slider.is-dragging { cursor: grabbing; }
.hero-slider.is-dragging .slide { pointer-events: none; }

.slider-track {
    position: absolute;
    inset: 0;
    display: flex;
    will-change: transform;
}

/* Resim kırpılmadan tam gösterilir (::after); kutuda kalan boşluk aynı
   resmin bulanık hali (::before) ile doldurulur. Resim --img değişkeniyle gelir. */
.slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.slide::before,
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--img);
    background-position: center;
    background-repeat: no-repeat;
}

.slide::before {
    background-size: cover;
    filter: blur(24px) brightness(.7);
    transform: scale(1.2);
}

.slide::after { background-size: contain; background-position: center top; }

.slide-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10,37,96,.05) 0%, rgba(10,37,96,.94) 100%);
    width: 100%;
    padding: 40px 28px 92px 28px;
}

/* ---------------- Side News List ---------------- */
.side-news {
    flex: 1 1 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.side-news h3 { margin-bottom: 14px; font-size: 1.05rem; border-bottom: 2px solid var(--primary); padding-bottom: 10px; }

.side-research-list { display: flex; flex-direction: column; gap: 14px; flex: 1; }

.side-research-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
}

/* Resmin tamamı görünür (kırpılmaz); boş kalan yanlar aynı resmin bulanık hâliyle dolar */
.side-research-img { position: relative; display: block; height: 150px; overflow: hidden; background-size: cover; background-position: center; background-color: #e8ebf5; }
.side-research-img::before { content: ""; position: absolute; inset: -24px; background: inherit; filter: blur(16px) saturate(1.1); transform: scale(1.1); }
.side-research-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }

.side-research-title {
    display: block;
    padding: 0 12px 12px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
    text-transform: uppercase;
}

.side-research-item:hover .side-research-title { color: var(--primary); }

/* ---------------- Kategori hızlı erişim ---------------- */
.quick-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.quick-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    padding: 24px 12px;
    min-height: 112px;
    text-align: center;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    color: var(--text);
    transition: transform .2s, box-shadow .2s, color .2s, border-color .2s;
}

.quick-cat-item:hover,
.quick-cat-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--primary);
    border-color: var(--primary);
}
.quick-cat-item:hover .quick-cat-icon,
.quick-cat-item:focus-visible .quick-cat-icon { background: var(--gradient-accent); color: var(--fixed-white); }

/* ---------------- Görsel vitrin (Görseller altı) ---------------- */
.showcase-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.showcase-card {
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.showcase-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--primary-light);
    transition: transform .2s, box-shadow .2s;
}

.showcase-card:hover img { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.showcase-label {
    font-weight: 700;
    font-size: .78rem;
    line-height: 1.3;
    color: var(--heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .showcase-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .showcase-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}



.quick-cat-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #d7e2fb);
    color: var(--primary);
    border-radius: 50%;
    transition: background .2s, color .2s;
}

.quick-cat-icon svg { width: 46%; height: 46%; }

.site-icon {
    vertical-align: -3px;
    flex-shrink: 0;
}

.site-icon.icon-sm { vertical-align: -2px; margin-right: 2px; }

/* ---------------- İstatistik bandı ---------------- */
.stats-banner {
    background: var(--gradient-primary);
    padding: 34px 20px;
    margin: 30px auto 0;
    max-width: 1520px;
    border-radius: var(--radius);
}

.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; text-align: center; }

.stat-num { font-size: 2.3rem; font-weight: 800; color: var(--accent-gold); }
.stat-label { color: #c9d7f5; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

.slide-overlay h2 {
    display: inline-block;
    max-width: 700px;
    margin: 0;
    line-height: 1.4;
}

.slide-title-link {
    color: var(--fixed-white) !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    background: rgba(10,20,40,.55);
    padding: 6px 14px;
    border-radius: 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ---------------- Slider ok butonları (önceki/sonraki) ---------------- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 20, 40, .45);
    color: var(--fixed-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

.slider-arrow:hover { background: rgba(10, 20, 40, .75); }
.slider-arrow-prev { left: 14px; }
.slider-arrow-next { right: 14px; }

@media (max-width: 600px) {
    .slider-arrow { width: 34px; height: 34px; }
}

/* ---------------- Slider sol dikey navigasyon (haber ikonlu) ---------------- */
.slider-vnav {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 16px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 5;
    overflow-x: auto;
    scrollbar-width: none;
}

.slider-vnav::-webkit-scrollbar { display: none; }

.vnav-item {
    width: 92px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
    opacity: .7;
    transition: opacity .2s, border-color .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.vnav-item:hover { opacity: .95; }

.vnav-item.active {
    opacity: 1;
    border-color: var(--accent-red);
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(225,29,63,.35);
}

/* ---------------- Bölümler / Kartlar ---------------- */
.section {
    padding: 50px 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 10px;
}

.section-title h2 { margin: 0; }
.section-title a { font-size: .9rem; font-weight: 600; }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card img { height: 170px; object-fit: cover; width: 100%; background: var(--primary-light); }

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.card-date { color: var(--text-muted); font-size: .8rem; margin-bottom: 6px; }

.card-title { font-size: 1.05rem; margin-bottom: 10px; color: var(--heading); }

.card-body p { color: var(--text-muted); font-size: .92rem; flex: 1; }

/* ---------------- Butonlar / Formlar ---------------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: .95rem;
}

.btn-primary { background: var(--gradient-primary); color: var(--fixed-white) !important; transition: filter .2s, transform .2s; }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary) !important; }
.btn-secondary { background: var(--border); color: var(--text) !important; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-danger { background: var(--accent-red); color: var(--fixed-white) !important; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    background: var(--white);
}

.form-control:focus { outline: none; border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.card-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
}

.card-form.wide { max-width: 820px; }

/* ---------------- Flash mesajları ---------------- */
.flash {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.flash-success { background: #e3f7e9; color: #1b7a3d; border: 1px solid #b7e6c4; }
.flash-error { background: #fdecea; color: #a72a1e; border: 1px solid #f6c4bd; }
.flash-info { background: var(--primary-light); color: var(--heading); border: 1px solid #c9d7f5; }

/* ---------------- Sayfa başlığı (iç sayfalar) ---------------- */
.page-hero {
    background: var(--gradient-primary);
    color: var(--fixed-white);
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.page-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 4px;
}

.page-hero h1 {
    color: var(--fixed-white);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.page-hero p {
    margin: 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .8);
    flex-basis: 100%;
}

/* ---------------- Belgeler ---------------- */
.doc-list { display: flex; flex-direction: column; gap: 12px; }

.doc-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-item .doc-category {
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .5px;
}

/* ---------------- Belge önizleme penceresi (Görüntüle) ---------------- */
.belge-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.belge-modal-box {
    background: var(--white);
    border-radius: var(--radius);
    width: min(1200px, 100%);
    height: min(92vh, 1100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.belge-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.belge-modal-header strong {
    font-size: .95rem;
    color: var(--heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.belge-modal-frame { flex: 1; border: 0; width: 100%; }

.belge-inline-preview {
    width: 100%;
    height: 80vh;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.belge-inline-preview-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    background: var(--bg-light, #f5f5f5);
}

@media (max-width: 700px) {
    .belge-modal-overlay { padding: 0; }
    .belge-modal-box { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ---------------- Duyuru detay / Dinle butonu ---------------- */
.article-body { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.article-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

.rich-content { color: var(--text); font-size: 1rem; line-height: 1.8; }
.rich-content::after { content: ''; display: table; clear: both; }
.rich-content p { margin: 0 0 16px; }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 12px 0; display: block; }
.rich-content h1, .rich-content h2, .rich-content h3 { color: var(--heading); margin: 24px 0 12px; }
.rich-content ul, .rich-content ol { margin: 0 0 16px; padding-left: 24px; }
.rich-content li { margin-bottom: 6px; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content blockquote { border-left: 3px solid var(--primary); margin: 16px 0; padding: 4px 0 4px 16px; color: var(--text-muted); font-style: italic; }
.rich-content strong { color: var(--heading); }
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }

.announcement-gallery { margin-top: 32px; }
.announcement-gallery h3 { margin: 0 0 14px; font-size: 1.1rem; color: var(--heading); }
.announcement-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.announcement-gallery-item {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.announcement-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s; }
.announcement-gallery-item:hover img { transform: scale(1.06); }

.related-announcements { margin-top: 32px; }
.related-announcements h3 { margin: 0 0 14px; font-size: 1.1rem; color: var(--heading); }
.related-announcements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.related-announcement-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}
.related-announcement-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.related-announcement-card img { width: 100%; height: 110px; object-fit: cover; object-position: center top; display: block; }
.related-announcement-card span { padding: 10px 12px; font-size: .84rem; font-weight: 600; color: var(--heading); line-height: 1.4; }

.btn-listen {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--heading);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 9px 18px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-listen.speaking { background: var(--primary); color: var(--fixed-white); }

/* ---------------- Yönetim Kurulu ---------------- */
.board-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.board-card { text-align: center; }
.board-photo {
    display: block; width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 12px; background: var(--primary-light); border: 3px solid var(--primary-light);
}
.board-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); transform-origin: 50% 36%; }
.board-photo-bos img { transform: none; }
.board-card h4 { margin-bottom: 2px; }
.board-card .role { color: var(--primary); font-weight: 600; font-size: .88rem; }
.board-card .sube { color: var(--text-muted); font-size: .82rem; }

/* ---------------- Namaz Vakitleri ---------------- */
.prayer-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.prayer-city-form { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.prayer-city-label { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: .85rem; font-weight: 600; }
.prayer-city-form select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: .85rem;
}

.prayer-times-row { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }

.prayer-time-item {
    flex: 1 1 90px;
    text-align: center;
    background: var(--primary-light);
    border-radius: 8px;
    padding: 10px 8px;
}

.prayer-time-item span { display: block; font-size: .74rem; color: var(--text-muted); margin-bottom: 2px; }
.prayer-time-item strong { font-size: 1.05rem; color: var(--heading); }

/* ---------------- Taziye Mesajları ---------------- */
.taziye-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.taziye-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.taziye-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.taziye-card-img { width: 100%; height: 110px; object-fit: cover; display: block; }

.taziye-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}

.taziye-card-icon {
    width: 34px;
    height: 34px;
    margin-top: -38px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- Son Duyurular (büyük + 2x2 ızgara) ---------------- */
.news-feature-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    align-items: stretch;
    gap: 22px;
}

.news-feature-row-3 {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    align-items: start;
    gap: 22px;
    margin-top: 22px;
}

.news-feature-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary);
    color: #fff !important;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.news-feature-main {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .18s;
}
.news-feature-main:hover { transform: translateY(-3px); }
.news-feature-img-wrap { overflow: hidden; }
.news-feature-main .news-feature-img-wrap img { height: 300px; }
.news-feature-img-wrap img { width: 100%; display: block; object-fit: cover; object-position: center top; transition: transform .35s; }
.news-feature-main:hover .news-feature-img-wrap img,
.news-feature-small:hover .news-feature-img-wrap img { transform: scale(1.05); }
.news-feature-body { display: flex; flex-direction: column; padding: 16px 20px 18px; }
.news-feature-body h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.35; color: var(--heading); }
.news-feature-body p { margin: 0; color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

.news-feature-small {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .18s;
}
.news-feature-small:hover { transform: translateY(-3px); }
.news-feature-grid .news-feature-small .news-feature-img-wrap { flex: 0 0 auto; }
.news-feature-grid .news-feature-small .news-feature-img-wrap img { width: 100%; height: 160px; min-height: 0; }
.news-feature-row-3 .news-feature-img-wrap img { height: 180px; }
.news-feature-small-body { display: flex; flex-direction: column; padding: 14px 16px 16px; }
.news-feature-small-body .news-feature-badge { margin-bottom: 8px; }
.news-feature-small h4 {
    margin: 0;
    font-size: .87rem;
    line-height: 1.42;
    font-weight: 600;
    color: var(--heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .news-feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(2, 1fr); }
    .news-feature-main { grid-row: 1; grid-column: 1 / 3; }
    .news-feature-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .news-feature-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .news-feature-main { grid-column: 1; }
    .news-feature-row-3 { grid-template-columns: 1fr; }
}

.taziye-card-title { margin: 0; font-size: .96rem; line-height: 1.4; color: var(--heading); font-weight: 600; }
.taziye-card-excerpt { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--text-muted); }

/* ---------------- Yazarlarımız (ana sayfa önizleme) ---------------- */
.columnist-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }

.columnist-tile {
    text-align: center;
    width: 168px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px 18px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.columnist-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.columnist-tile img {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 12px; background: var(--primary-light); border: 3px solid var(--primary-light);
}
.columnist-tile-name { display: block; font-size: .92rem; color: var(--heading); font-weight: 700; }
.columnist-tile-title { display: block; margin-top: 3px; font-size: .76rem; color: var(--text-muted); line-height: 1.35; }

.columnist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.columnist-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 16px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.columnist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.columnist-card img {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 12px; background: var(--primary-light); border: 3px solid var(--primary-light);
}
.columnist-card h3 { margin: 0 0 2px; font-size: 1rem; color: var(--heading); }
.columnist-card p { margin: 0; font-size: .82rem; color: var(--text-muted); }

.columnist-profile { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.columnist-profile img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    background: var(--primary-light); border: 3px solid var(--primary-light);
}
.columnist-profile > div { flex: 1 1 300px; }
.columnist-social { display: flex; gap: 14px; margin-top: 10px; }

@media (max-width: 900px) {
    .columnist-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Temsilcilikler ---------------- */
.rep-layout { display: flex; align-items: flex-start; gap: 24px; }

.rep-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    position: sticky;
    top: 90px;
}

.rep-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: .9rem;
    margin-bottom: 12px;
    background: var(--bg);
    color: var(--text);
}

.rep-search input:focus { outline: none; border-color: var(--primary); }

.rep-il-list { list-style: none; margin: 0; padding: 0; max-height: 480px; overflow-y: auto; }

.rep-il-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: .92rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}

.rep-il-list a:hover { background: var(--primary-light); color: var(--primary); }
.rep-il-list a.active { background: var(--gradient-primary); color: var(--fixed-white) !important; font-weight: 700; }

.rep-count {
    background: rgba(0,0,0,.08);
    border-radius: 20px;
    padding: 1px 9px;
    font-size: .76rem;
}

.rep-il-list a.active .rep-count { background: rgba(255,255,255,.25); }

.rep-empty-search { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 12px 0 0; }

.rep-content { flex: 1; min-width: 0; }

.rep-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.rep-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}

.rep-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.rep-card-baskan { border: 2px solid var(--accent-gold); }

.rep-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--fixed-white);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.rep-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.rep-union {
    display: inline-block;
    background: var(--primary-light);
    color: var(--heading);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.rep-phone {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: .92rem;
}

.rep-phone-none { color: var(--text-muted); font-weight: 400; }
.rep-gorev { display: block; font-size: .84rem; font-weight: 600; color: var(--primary); margin: -2px 0 8px; line-height: 1.35; }
.rep-line { display: flex; align-items: flex-start; gap: 6px; font-size: .84rem; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.rep-line svg { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.rep-phone svg { vertical-align: -2px; }
.rep-phone small { font-weight: 400; color: var(--text-muted); }
.rep-note { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); font-size: .8rem; color: var(--text-muted); line-height: 1.45; }

/* ---------------- Dergiler / Görseller / Foto / Video (ortak küçük kart) ---------------- */
.magazine-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.magazine-card {
    display: block;
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    text-align: center;
}

.magazine-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.magazine-card img,
.magazine-card iframe,
.magazine-card video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--primary-light);
    border: 0;
    display: block;
}

.magazine-card .magazine-title {
    padding: 8px 8px;
    font-weight: 600;
    font-size: .76rem;
    color: var(--heading);
    line-height: 1.3;
}

.magazine-date {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--fixed-white);
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.mag-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.mag-search-box {
    position: relative;
    flex: 1 1 320px;
    max-width: 420px;
}

.mag-search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
}

.mag-search-box input:focus { outline: none; border-color: var(--primary); }

.mag-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    opacity: .6;
}

.mag-count {
    font-size: .88rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.mag-count strong { color: var(--heading); }

.mag-empty { color: var(--text-muted); padding: 20px 0; }

.pdf-reader-frame {
    position: relative;
    width: 100%;
    height: 80vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface-alt, var(--bg));
    display: flex;
    flex-direction: column;
}

.gorsel-image-frame {
    width: 100%;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.gorsel-image-frame img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

/* ---------------- Dergi Okuyucu: Sayfa Çevirici (kaydırarak/oklarla) ---------------- */
.pdf-pager {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 10px;
}

.pdf-nav-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background .15s, transform .15s;
}

.pdf-nav-btn:hover:not(:disabled) { background: var(--primary-light); transform: scale(1.06); }
.pdf-nav-btn:disabled { opacity: .35; cursor: default; }

.pdf-canvas-wrap {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.pdf-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    background: #fff;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .9rem;
    background: var(--surface-alt, var(--bg));
}

.pdf-page-indicator {
    text-align: center;
    padding: 8px 0 12px;
    font-size: .85rem;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.reader-fallback {
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 10px;
}

body.reading-mode .pdf-nav-btn { width: 56px; height: 56px; font-size: 1.8rem; }
body.reading-mode .pdf-page-indicator { color: var(--fixed-white); }
body.reading-mode .reader-fallback { display: none; }

/* ---------------- Dergi Okuyucu: Okuma Modu + Sesli Oku ---------------- */
.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.reader-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.voice-panel[hidden] { display: none; }

.voice-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.voice-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.voice-btn:hover { background: var(--primary-light); }

.voice-page-info,
.voice-status { font-size: .85rem; color: var(--text-muted); }

.reader-exit-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 901;
    background: var(--primary);
    color: var(--fixed-white);
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
}

body.reading-mode .site-header,
body.reading-mode .ticker-bar,
body.reading-mode .site-footer,
body.reading-mode .reader-hero,
body.reading-mode .reader-toolbar { display: none; }

body.reading-mode .reader-section { padding: 0; }

body.reading-mode .pdf-reader-frame {
    position: fixed;
    inset: 0;
    height: 100vh;
    border-radius: 0;
    z-index: 900;
}

body.reading-mode .voice-panel:not([hidden]) {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 902;
}

/* ---------------- İletişim ---------------- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 18px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.contact-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.4rem;
}

.contact-icon-circle.icon-phone { background: var(--primary-light); color: var(--primary); }
.contact-icon-circle.icon-mail { background: rgba(255, 176, 32, .16); color: var(--accent-gold); }
.contact-icon-circle.icon-pin { background: rgba(225, 29, 63, .12); color: var(--accent-red); }
.contact-icon-circle.icon-clock { background: rgba(255, 122, 48, .14); color: var(--accent-orange); }

.contact-info-card h4 { margin: 0 0 6px; font-size: .95rem; }
.contact-info-card p { margin: 0; font-size: .87rem; color: var(--text-muted); line-height: 1.5; }
.contact-info-card a { color: var(--text-muted); }
.contact-info-card a:hover { color: var(--primary); }

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: start;
}

.contact-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.contact-panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}

.contact-panel > p.contact-panel-sub {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: .9rem;
}

.map-frame {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    font-size: .88rem;
    transition: background .15s, border-color .15s;
}

.social-pill:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.social-pill svg { flex: 0 0 auto; }

@media (max-width: 960px) {
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .contact-info-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr; }
}

/* ---------------- Bilgi ve Belgeler ---------------- */
.belge-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

#gorselCategories { justify-content: center; }

.belge-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.belge-pill:hover { border-color: var(--primary); }
.belge-pill.active { background: var(--gradient-primary); border-color: transparent; color: var(--fixed-white); }

.belge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.belge-card {
    position: relative;
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    transition: box-shadow .2s, transform .2s;
}

.belge-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.belge-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--primary-light);
    color: var(--primary);
}

.belge-badge.cat-Tüzük { background: rgba(225, 29, 63, .12); color: var(--accent-red); }
.belge-badge.cat-Yönetmelik { background: rgba(255, 122, 48, .14); color: var(--accent-orange); }
.belge-badge.cat-Rehber { background: rgba(34, 170, 110, .14); color: #1c9764; }
.belge-badge.cat-Kanun { background: rgba(255, 176, 32, .18); color: #9a6b00; }
.belge-badge.cat-Duyuru { background: var(--primary-light); color: var(--primary); }
.belge-badge.cat-Afiş { background: rgba(225, 29, 63, .12); color: var(--accent-red); }
.belge-badge.cat-Döviz { background: rgba(255, 176, 32, .18); color: #9a6b00; }
.belge-badge.cat-Pankart { background: rgba(255, 122, 48, .14); color: var(--accent-orange); }
.belge-badge.cat-Bülten { background: rgba(34, 170, 110, .14); color: #1c9764; }

.belge-card h3 { font-size: 1rem; margin: 0 0 8px; line-height: 1.35; }

.belge-desc {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.belge-date {
    font-size: .78rem;
    color: var(--text-muted);
}

.belge-download-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.belge-card-link { display: block; color: inherit; text-decoration: none; }
.anlasma-il { display: inline-flex; align-items: center; gap: 4px; margin: 0 14px 12px; font-size: .8rem; font-weight: 600; color: var(--primary); }
.belge-indir-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.belge-indir-btn small { opacity: .8; font-weight: 600; }

.belge-empty { color: var(--text-muted); padding: 30px 0; text-align: center; }

.gorsel-group-count { font-size: .8rem; font-weight: 500; color: var(--text-muted); }

.album-count-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 20, 40, .68);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
}

/* ---------------- Görsel Ön İzleme (Lightbox) ---------------- */
.gorsel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 14, 24, .92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gorsel-lightbox[hidden] { display: none; }

.gorsel-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

.gorsel-lightbox-close:hover { background: rgba(255, 255, 255, .22); }

.gorsel-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.gorsel-lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.gorsel-lightbox-prev { left: 16px; }
.gorsel-lightbox-next { right: 16px; }

.gorsel-lightbox-main {
    flex: 1;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    touch-action: pan-y;
}

.gorsel-lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.gorsel-lightbox-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #fff;
    margin-top: 16px;
    text-align: center;
}

.gorsel-lightbox-info span { color: rgba(255, 255, 255, .65); font-size: .85rem; }

.gorsel-lightbox-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    margin-top: 16px;
    padding-bottom: 4px;
}

.gorsel-lightbox-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    opacity: .5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity .15s, border-color .15s;
}

.gorsel-lightbox-thumb:hover { opacity: .8; }
.gorsel-lightbox-thumb.active { opacity: 1; border-color: var(--accent-gold); }

@media (max-width: 720px) {
    .gorsel-lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; }
    .gorsel-lightbox-thumb { width: 42px; height: 42px; }
}

.belge-detail-card {
    background: var(--gradient-primary);
    color: var(--fixed-white);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 18px;
}

.belge-detail-card h1 { color: var(--fixed-white); margin: 0 0 8px; }
.belge-detail-card p { color: rgba(255,255,255,.85); margin: 0; }

.belge-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: .85rem;
    color: var(--text-muted);
}

.belge-body {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    white-space: pre-wrap;
    line-height: 1.75;
    font-size: .96rem;
}

@media (max-width: 960px) {
    .belge-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .belge-grid { grid-template-columns: 1fr; }
    .belge-body { padding: 20px; font-size: .9rem; }
}

/* ---------------- Popup ---------------- */
.popup-overlay {
    position: fixed; inset: 0; background: rgba(10,20,40,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; padding: 20px;
}

.popup-overlay.hidden { display: none; }

.popup-box {
    background: var(--white); border-radius: var(--radius);
    max-width: 420px; width: 100%; padding: 26px; position: relative; text-align: center;
}

.popup-box img { border-radius: 8px; margin-bottom: 16px; }

.popup-close {
    position: absolute; top: 10px; right: 14px; background: none; border: none;
    font-size: 1.6rem; cursor: pointer; color: var(--text-muted); line-height: 1;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--primary-dark);
    color: #d8e2f7;
    width: calc(100% - 40px);
    max-width: 1520px;
    margin: 40px auto 24px;
    border-radius: var(--radius);
    overflow: hidden;
}
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.7fr 1fr 1.3fr; gap: 30px; padding: 44px 20px 30px; }
.footer-col-hizli { column-count: 2; column-gap: 28px; }
.footer-col-hizli h4 { column-span: all; }
.footer-col-hizli a { break-inside: avoid; }
.footer-col h3, .footer-col h4 { color: var(--fixed-white); }
.footer-col a { display: block; color: #d8e2f7; margin-bottom: 8px; font-size: .92rem; }
.footer-col p { font-size: .88rem; margin: 0 0 8px; }
.footer-social { margin-top: 14px; gap: 14px; }
.footer-social a { color: #d8e2f7; }
.footer-social a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 20px; font-size: .82rem; text-align: center; color: #b6c4e6; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .magazine-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .hero-row { flex-direction: column; }
    .hero-slider, .side-news { flex: none; width: 100%; }
    .hero-slider { order: 1; }
    .side-news { order: 2; min-width: 0; }
    .header-motto { display: none; }
    .confederation-badge-text { display: none; }
    .rep-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .menu-toggle { display: flex; }

    .header-top { grid-template-columns: 1fr 1fr; padding: 10px 16px 8px; gap: 6px 10px; }
    .header-top .logo { grid-row: 1; margin-left: 0; gap: 8px; min-width: 0; }
    .header-top .header-motto {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: clamp(1rem, 5.2vw, 1.3rem);
        line-height: 1.2;
    }
    .logo img { height: 56px; width: auto; flex-shrink: 0; }
    .logo span { display: block; max-width: none; font-size: .68rem; line-height: 1.25; text-align: left; }
    .logo-text br { display: none; }
    .header-top .header-actions { grid-column: 2; grid-row: 1; min-width: 0; gap: 8px; }
    .confederation-badge { margin-right: 0; }
    .confederation-badge img { height: 70px; width: auto; margin: -7px 0; }
    .confederation-badge-text { display: block; margin-left: 0; white-space: normal; font-size: .68rem; line-height: 1.25; text-align: right; }
    .btn-contact-top { padding: 7px 10px; font-size: .76rem; white-space: nowrap; }

    /* Sandviç menü, "Bize Ulaşın" ve diğer araçlar tek satırda */
    .nav-row-inner { flex-wrap: nowrap; gap: 8px; }

    .nav-utility .social-icons { display: none; }

    .nav-utility {
        margin-left: 0;
        flex: 1;
        min-width: 0;
        justify-content: space-between;
        gap: 6px;
    }

    .menu-toggle { width: 40px; height: 40px; flex-shrink: 0; }
    .menu-toggle span { width: 24px; }
    .nav-utility .lang-switch-btn { padding-left: 10px; padding-right: 10px; }
    .theme-switch { gap: 5px; }
    .theme-switch .theme-icon:first-child { display: none; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 20px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-hover);
        gap: 0;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 14px 4px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child { border-bottom: none; }

    .main-nav a.nav-archive {
        border-bottom: none;
        padding: 12px 16px;
        margin-top: 8px;
        text-align: center;
    }

    .main-nav a.nav-live-badge {
        border-bottom: none;
        padding: 12px 16px;
        margin-top: 8px;
        justify-content: center;
    }

    .nav-dropdown { width: 100%; border-bottom: 1px solid var(--border); }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 14px 4px;
        font-size: 1.05rem;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 8px 14px;
    }

    .nav-dropdown.open .nav-dropdown-menu { display: block; }

    .grid { grid-template-columns: 1fr; }
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .magazine-grid { grid-template-columns: repeat(2, 1fr); }
    .pdf-reader-frame { height: 70vh; }
    .rep-layout { flex-direction: column; }
    .rep-sidebar { width: 100%; position: static; max-height: none; }
    .rep-il-list { max-height: 260px; }
    .rep-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; padding: 32px 20px 20px; }
    .hero-slider { height: 320px; min-height: 0; }
    .slide-overlay { padding: 24px 16px 70px 16px; }
    .slide-overlay h2 {
        font-size: .86rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slider-vnav { left: 16px; right: 16px; bottom: 10px; gap: 6px; }
    .vnav-item { width: 62px; height: 42px; border-width: 2px; border-radius: 6px; }
    .stats-grid { gap: 26px 10px; }
    .stat-num { font-size: 1.7rem; }
    .quick-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .quick-cat-item { padding: 20px 10px; font-size: .92rem; min-height: 100px; }
    .quick-cat-icon { width: 54px; height: 54px; }
}

/* ---------------- Sendika Haritası ---------------- */
.union-map-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.union-map-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 29, 63, .08);
    color: var(--accent-red);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.union-map-disclaimer svg { flex-shrink: 0; }

.union-map-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 500;
    max-width: 960px;
    margin: 0 auto;
}

.union-map-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.union-map-shape path { fill: var(--primary-light); stroke: #ffffff; stroke-width: 1.1; }

.union-map-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
    cursor: help;
    z-index: 2;
}

.union-map-dot-empty {
    width: 6px;
    height: 6px;
    background: #9aa7bd;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .04);
    z-index: 1;
}

.union-map-city-label {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .58rem;
    font-weight: 700;
    color: #6b7280;
    background: rgba(255,255,255,.85);
    padding: 0 3px;
    border-radius: 3px;
    pointer-events: none;
}

.union-map-credit {
    text-align: right;
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.union-map-credit a { color: inherit; }

.union-map-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: .88rem;
    margin-top: 14px;
}

.union-map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.union-map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
}

.union-map-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.union-map-legend-dot-empty { background: #9aa7bd; width: 8px; height: 8px; }

/* ---------------- Anket ---------------- */
.mbs-breadcrumb { margin: 0 0 2px !important; font-size: .8rem !important; }
.mbs-breadcrumb a { color: var(--fixed-white); text-decoration: underline; text-underline-offset: 2px; }

.egt-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: .82rem; opacity: .9; margin-top: 6px; }
.egt-hero-meta a { color: var(--fixed-white); text-decoration: underline; }

.egt-status-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--primary); }
.egt-status-box > div { flex: 1; min-width: 240px; }
.egt-status-box strong { color: var(--heading); }
.egt-status-box p { margin: 4px 0 0; color: var(--text-muted); font-size: .9rem; }

.egt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ank-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); border-top: 4px solid var(--border); transition: transform .2s, box-shadow .2s; }
.ank-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ank-card.is-aktif { border-top-color: var(--primary); }
.ank-card h3 { margin: 0; font-size: 1.1rem; }
.ank-card p { margin: 0; color: var(--text-muted); font-size: .92rem; flex: 1; }
.ank-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ank-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; }
.ank-card-meta strong { color: var(--primary); font-size: .88rem; }
.ank-deadline { font-size: .78rem; color: var(--text-muted); }
.ank-status { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--text-muted); }
.ank-status.is-aktif { background: rgba(28, 151, 100, .14); color: #1c9764; }
.page-hero .ank-status { background: rgba(255, 255, 255, .2); color: var(--fixed-white); }
.ank-joined { font-size: .78rem; font-weight: 700; color: #1c9764; }
/* Sendika üyelik başvurusu (EK-1 formu) */
.uye-sendika-bilgi { display: grid; grid-template-columns: 1fr 2fr 90px; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.uye-sendika-bilgi > div { background: var(--bg); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.uye-sendika-bilgi span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.uye-sendika-bilgi strong { color: var(--heading); font-size: .92rem; }
.uye-bolum { margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--border); font-size: 1.05rem; color: var(--heading); }
.uye-secenekler { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 8px; }
.uye-secenekler label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; margin: 0; }
.uye-onay { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 600; }
.uye-onay input { margin-top: 3px; accent-color: var(--primary); }
.uye-kod-satir { display: grid; grid-template-columns: 90px 130px 1.4fr 80px 1.4fr; gap: 0 14px; }
@media (max-width: 720px) {
    .uye-sendika-bilgi { grid-template-columns: 1fr 1fr; }
    .uye-sendika-bilgi > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
    .uye-kod-satir { grid-template-columns: 1fr 1fr; }
}

.ank-wrap { max-width: 860px; }
.ank-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.ank-share-label { font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.ank-share-btn { display: inline-block; border: none; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; color: #fff !important; padding: 7px 14px; border-radius: 20px; text-decoration: none; line-height: 1.3; }
.ank-share-btn[hidden] { display: none; }
.ank-share-btn:hover { filter: brightness(1.1); }
.ank-share-btn.is-wa { background: #25d366; }
.ank-share-btn.is-fb { background: #1877f2; }
.ank-share-btn.is-x { background: #111; }
.ank-share-btn.is-tg { background: #229ed9; }
.ank-share-btn.is-mail { background: #6b7280; }
.ank-share-btn.is-copy, .ank-share-btn.is-native { background: var(--primary); }
.ank-intro { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.ank-section { font-size: 1.1rem; color: var(--heading); margin: 28px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.ank-section:first-child { margin-top: 0; }
.ank-form { display: flex; flex-direction: column; gap: 16px; }
.ank-q { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0; }
.ank-q legend { float: left; width: 100%; font-weight: 700; color: var(--heading); padding: 0; margin: 0 0 10px; font-size: 1.02rem; line-height: 1.5; }
.ank-q legend ~ * { clear: both; }
.ank-q legend span { color: var(--primary); }
.ank-req { color: var(--primary); font-style: normal; }
.ank-hint { font-size: .85rem; color: var(--text-muted); margin: 4px 0 10px; }
.ank-option { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; margin-top: 8px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg); cursor: pointer; transition: border-color .15s; }
.ank-option-metin { flex: 1; min-width: 160px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; background: var(--white); }
.ank-option:hover { border-color: var(--primary); }
.ank-option input { margin-top: 3px; accent-color: var(--primary); }
.ank-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.ank-form .btn { align-self: flex-start; }
.ank-muted { color: var(--text-muted); }
.ank-results { display: flex; flex-direction: column; gap: 18px; }
.ank-result-q { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.ank-result-q h3 { margin: 0 0 4px; font-size: 1rem; }
.ank-result-q h3 span { color: var(--primary); }
.ank-result-meta { margin: 0 0 12px; font-size: .82rem; color: var(--text-muted); }
.ank-text-answers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ank-text-answers li { background: var(--bg); border-radius: 8px; padding: 10px 14px; font-size: .92rem; color: var(--text); }
.ank-text-answers li small { display: block; margin-top: 4px; color: var(--text-muted); font-size: .75rem; }
.ank-bar { margin-bottom: 10px; }
.ank-bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin-bottom: 5px; }
.ank-bar-label strong { white-space: nowrap; color: var(--heading); }
.ank-bar-label small { color: var(--text-muted); font-weight: 400; }
.ank-bar-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.ank-bar-track span { display: block; height: 100%; background: var(--gradient-primary); opacity: .55; border-radius: 999px; }
.ank-bar.is-top .ank-bar-track span { opacity: 1; }

/* ---------------- Kamu Takvimi ---------------- */
.takvim-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.takvim-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 18px;
}

a.takvim-item { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.takvim-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Etkinlik detay sayfası */
.etk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.etk-grid:not(:has(.etk-side)) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.etk-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.etk-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.etk-title { margin: 0 0 12px; font-size: 1.1rem; color: var(--heading); }
.etk-address { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text); }
.etk-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 10px; background: var(--bg); }
.etk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.etk-contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); word-break: break-word; }
.etk-contact-row:last-child { border-bottom: none; }
.etk-contact-row svg { color: var(--primary); flex-shrink: 0; }
.etk-contact-row a { color: var(--text); font-weight: 600; }
.etk-contact-row a:hover { color: var(--primary); }
@media (max-width: 900px) {
    .etk-grid { grid-template-columns: minmax(0, 1fr); }
    .etk-map iframe { height: 280px; }
}

.takvim-date-badge {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: var(--accent-red);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.takvim-day { font-size: 1.15rem; font-weight: 800; }
.takvim-month { font-size: .68rem; font-weight: 700; letter-spacing: .4px; }

.takvim-info { flex: 1; min-width: 0; }
.takvim-info h4 { margin: 0 0 4px; font-size: .95rem; color: var(--heading); }

.takvim-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    color: var(--text-muted);
}

.takvim-countdown-badge {
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .union-map-legend { gap: 8px 14px; }
    .union-map-legend-item { font-size: .76rem; }
    .union-map-wrap { max-width: 100%; }
    .union-map-dot-empty .union-map-city-label { display: none; }
    .union-map-dot:not(.union-map-dot-empty) .union-map-city-label { font-size: .62rem; }
    .union-map-dot { width: 9px; height: 9px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .05); }
    .union-map-dot-empty { width: 4px; height: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
    .takvim-item { flex-wrap: wrap; }
    .takvim-countdown-badge { margin-left: 70px; }
}

/* ---------------- Anasayfa: Birleşik Kamu-İş Konfederasyonu üye sendikaları ---------------- */
.confed-members-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent-gold, #e8a33d);
}

.confed-members-header img { height: 56px; width: 56px; border-radius: 50%; flex-shrink: 0; }
.confed-members-header h2 { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin: 0; }

.confed-members-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.confed-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    text-decoration: none;
}

.confed-member-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--accent-gold, #e8a33d); }
.confed-member-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; }
.confed-member-card span { font-weight: 700; font-size: .86rem; color: var(--primary-dark); }

.confed-member-card-self { border: 2px solid var(--primary); background: var(--primary-light); }

@media (max-width: 960px) {
    .confed-members-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
    .confed-members-grid { grid-template-columns: repeat(2, 1fr); }
    .confed-members-header h2 { font-size: 1.1rem; }
}

.kimlik-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.kimlik-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.kimlik-row:last-child { border-bottom: none; }
.kimlik-label { font-weight: 700; color: var(--heading); }
.kimlik-value { color: var(--text); word-break: break-word; }
.kimlik-value a { color: var(--primary); text-decoration: none; }
.kimlik-value a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .kimlik-row { grid-template-columns: 1fr; gap: 4px; }
}


/* ---------------- Anasayfa: Kurumsal Anlaşmalar (kategori bazli) ---------------- */
.anlasma-home-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 18px;
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 10px;
}

.anlasma-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.anlasma-tabs-list { display: flex; flex-wrap: wrap; gap: 6px; }

.anlasma-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 14px;
    margin-bottom: -1px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.anlasma-tab-btn:hover { color: var(--heading); }

.anlasma-tab-btn.active {
    color: var(--tab-color, var(--primary));
    border-bottom-color: var(--tab-color, var(--primary));
}

.anlasma-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tab-color, var(--primary));
    color: #fff;
    flex-shrink: 0;
}

.anlasma-tab-panel { display: none; }
.anlasma-tab-panel.active { display: block; }

.anlasma-status-viewall {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 10px;
}
.anlasma-status-viewall:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .anlasma-tabs-bar { flex-direction: column; align-items: flex-start; }
    .anlasma-tab-btn { padding: 8px 10px; font-size: .85rem; }
}

.anlasma-home-empty {
    color: var(--text-muted);
    font-size: .88rem;
    margin: 0 0 8px;
}

.anlasma-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--anlasma-status-color, var(--primary));
    color: #fff;
    flex-shrink: 0;
}

.anlasma-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.anlasma-home-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}

.anlasma-home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.anlasma-home-img-wrap { position: relative; overflow: hidden; }
.anlasma-home-img-wrap img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .35s;
}
.anlasma-home-card:hover .anlasma-home-img-wrap img { transform: scale(1.06); }

.anlasma-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.anlasma-home-title {
    padding: 14px 16px 16px;
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.42;
    color: var(--heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .anlasma-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .anlasma-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .anlasma-home-grid { grid-template-columns: 1fr; }
}

/* ---------------- Şubelerimizden Haberler ---------------- */
.sube-haber-grid { align-items: stretch; }
.sube-haber-grid .news-feature-small { height: 100%; }
.sube-haber-grid .news-feature-img-wrap img { height: 160px; }
.sube-haber-il { display: inline-block; align-self: flex-start; margin-bottom: 8px; padding: 2px 10px; border-radius: 12px; background: rgba(139, 26, 43, .08); color: var(--primary, #8b1a2b); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.sube-rozet { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .74rem; font-weight: 700; }
.sube-rozet.sube-beklemede { background: #fdf3d8; color: #94720d; }
.sube-rozet.sube-yayinda { background: #e3f7e9; color: #1b7a3d; }
.sube-rozet.sube-reddedildi { background: #fdecea; color: #a72a1e; }

/* ---------------- Temsilci Paneli ---------------- */
.tp-wrap { max-width: 1000px; }
.tp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tp-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tp-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover, 0 6px 18px rgba(0,0,0,.08)); }
.tp-stat-sayi { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--heading); }
.tp-stat-ad { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.tp-vurgu { border-color: var(--primary, #8b1a2b); }
.tp-vurgu .tp-stat-sayi { color: var(--primary, #8b1a2b); }
.tp-bekliyor .tp-stat-sayi { color: #94720d; }
.tp-hizli { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tp-kolonlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.tp-kart { background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.tp-kart h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 1.02rem; color: var(--heading); }
.tp-kart h3 a { font-size: .8rem; font-weight: 600; }
.tp-liste { list-style: none; margin: 0; padding: 0; }
.tp-liste li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tp-liste li:last-child { border-bottom: 0; }
.tp-liste li > a { font-weight: 600; color: var(--heading); text-decoration: none; }
.tp-liste li > a:hover { color: var(--primary, #8b1a2b); }
.tp-liste li > span { font-size: .78rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp-yeni, .tp-onem { padding: 1px 8px; border-radius: 10px; font-size: .68rem; font-weight: 700; }
.tp-yeni { background: var(--primary, #8b1a2b); color: #fff; }
.tp-onem { background: #fdf3d8; color: #94720d; }
.tp-red { font-size: .8rem; color: #a72a1e; font-style: normal; }
.tp-bos, .tp-not { margin: 0; font-size: .88rem; color: var(--text-muted); }
.tp-not { margin-top: 12px; }
.tp-izinler { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-izinler span { padding: 5px 12px; border-radius: 16px; font-size: .8rem; font-weight: 600; }
.tp-var { background: #e3f7e9; color: #1b7a3d; }
.tp-yok { background: rgba(120,120,120,.12); color: var(--text-muted); }

/* ---------------- Örgütlü Olduğumuz Belediyeler ---------------- */
.belediye-grid {
    columns: 3 280px;
    column-gap: 20px;
    margin-top: 20px;
}
.belediye-il {
    break-inside: avoid;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.belediye-il h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.05rem;
}
.belediye-sayi {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    padding: 1px 10px;
    font-size: .8rem;
    font-weight: 700;
}
.belediye-il ul { list-style: none; margin: 0; padding: 0; }
.belediye-il li {
    padding: 5px 0;
    border-bottom: 1px dashed var(--border);
    font-size: .92rem;
    color: var(--text);
}
.belediye-il li:last-child { border-bottom: 0; }

/* ---------------- Konfederasyon sayfası ---------------- */
.konfed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.konfed-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.konfed-card img {
    width: 76px;
    height: 76px;
    flex: none;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
}
.konfed-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.konfed-card-ana { grid-column: 1 / -1; border-color: var(--primary); }
.konfed-card-self { border-color: var(--accent-orange); box-shadow: var(--shadow-hover); }
.konfed-line { font-size: .9rem; color: var(--text-muted); margin-top: 4px; display: flex; gap: 6px; align-items: flex-start; }
.konfed-line .icon-sm { flex: none; margin-top: 3px; }
.konfed-line a { color: var(--primary); word-break: break-all; }



.header-motto { gap: 16px; }
.header-motto-text { white-space: nowrap; }
.header-ataturk-figure { height: 58px; width: auto; flex-shrink: 0; transition: filter .2s; }
:root[data-theme="dark"] .header-ataturk-figure { filter: invert(1); }
@media (max-width: 720px) { .header-ataturk-figure { height: 34px; } .header-motto { gap: 10px; } }
.header-ataturk-bayrak { height: 62px; width: auto; flex-shrink: 0; }
@media (max-width: 720px) { .header-ataturk-bayrak { height: 38px; } }

/* Duyuru detay: paylaş + önceki/sonraki */
.article-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border, #e5e7eb); }
.article-share a, .article-share button { font: inherit; font-size: .85rem; padding: 6px 12px; border: 1px solid var(--border, #d1d5db); border-radius: 999px; background: transparent; color: var(--heading, inherit); cursor: pointer; text-decoration: none; }
.article-share a:hover, .article-share button:hover { background: var(--primary, #2b2a73); color: #fff; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.article-nav a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border, #e5e7eb); border-radius: var(--radius); text-decoration: none; color: inherit; }
.article-nav a:hover { border-color: var(--primary, #2b2a73); }
.article-nav small { color: var(--text-muted); }
.article-nav span { font-weight: 600; line-height: 1.3; }
.article-nav-next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } .article-nav-next { grid-column: auto; } }

/* Video kartı + oynatıcı penceresi */
.video-card { cursor: pointer; }
.video-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: #111827; overflow: hidden; }
.video-thumb img, .video-thumb video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.video-thumb-bos { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1e1b4b, #4c1d95); }
.video-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.video-card:hover .video-play { transform: scale(1.12); background: var(--primary, #2b2a73); }
.video-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal-inner { width: min(1000px, 100%); }
.video-modal-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-modal-stage iframe, .video-modal-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-modal-title { color: #fff; margin-top: 12px; font-weight: 600; text-align: center; }
.video-modal-close { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.video-modal-close:hover { background: rgba(255,255,255,.3); }

/* Gelişmiş filtre çubuğu (şubeler, haberler, belediyeler, anlaşmalar) */
.filtre-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 22px; }
.filtre-alan { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.filtre-genis { flex: 1 1 240px; }
.filtre-alan label { font-size: .75rem; font-weight: 600; color: var(--text-muted); }
.filtre-alan input, .filtre-alan select { font: inherit; font-size: .9rem; padding: 9px 12px; border: 1px solid var(--border, #d1d5db); border-radius: 8px; background: transparent; color: inherit; width: 100%; box-sizing: border-box; }
.filtre-alan input:focus, .filtre-alan select:focus { outline: 2px solid var(--primary, #2b2a73); outline-offset: 0; }
.filtre-onay { display: flex; gap: 6px; align-items: center; font-size: .85rem; padding-bottom: 8px; }
.filtre-dugmeler { display: flex; gap: 8px; align-items: center; }
.filtre-sonuc { width: 100%; font-size: .85rem; color: var(--text-muted); margin: 0; }
@media (max-width: 640px) { .filtre-alan { flex: 1 1 100%; } }

/* Şube haberi kartları: resmin tamamı görünür, yanlar aynı resmin bulanık hâliyle dolar */
.foto-sigdir { position: relative; background-size: cover; background-position: center; background-color: #e8ebf5; }
.foto-sigdir::before { content: ""; position: absolute; inset: -24px; background: inherit; filter: blur(16px) saturate(1.1); transform: scale(1.1); }
.foto-sigdir img { position: relative; z-index: 1; object-fit: contain !important; }

@media (max-width: 560px) { .footer-col-hizli { column-count: 1; } }

/* Koyu tema: logolar koyu zeminde okunmuyor; açık renkli yuvarlak bir zemin üzerine alınır */
:root[data-theme="dark"] .header-top .logo img,
:root[data-theme="dark"] .header-top .confederation-badge img { box-sizing: border-box; background: #fff; border-radius: 14px; padding: 6px 8px; }
:root[data-theme="dark"] .header-top .confederation-badge img { padding: 5px; }

.dava-aciklama { margin: 6px 0 0; font-size: .86rem; color: var(--text-muted); line-height: 1.45; }
.dava-sonuc { color: var(--primary); font-weight: 700; }

/* ---------------- Site içi arama ---------------- */
.nav-arama { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--primary); background: var(--primary-light); transition: background .15s, color .15s; flex: none; }
.nav-arama:hover { background: var(--primary); color: var(--fixed-white, #fff); }
.arama-kutu { display: flex; align-items: center; gap: 10px; background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 14px; }
.arama-kutu .arama-ikon { display: inline-flex; color: var(--text-muted); flex: none; }
.arama-kutu input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 1.05rem; padding: 8px 4px; }
.arama-ozet { margin: 4px 0 14px; color: var(--text-muted); font-size: .92rem; }
.arama-uyari { display: block; margin-top: 4px; color: var(--primary); font-weight: 600; }
.arama-turler { margin-bottom: 18px; }
.arama-liste { display: grid; gap: 14px; }
.arama-sonuc { background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.arama-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.arama-meta .icon-sm { vertical-align: -2px; }
.arama-tur { margin: 0; }
.arama-sonuc h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.35; }
.arama-sonuc h3 a { color: inherit; text-decoration: none; }
.arama-sonuc h3 a:hover { color: var(--primary); }
.arama-parca { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text-muted); }
.arama-sonuc mark { background: rgba(255, 200, 0, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.arama-ipucu, .arama-bos { background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.arama-ipucu h3 { margin: 0 0 8px; }
.arama-ipucu ul, .arama-bos ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.7; color: var(--text-muted); }
.arama-hizli a { font-weight: 600; }

/* ---------------- Maaş hesaplama robotu ---------------- */
.maas-donem { margin: 0 0 14px; color: var(--text-muted); }
.maas-form { background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px; }
.maas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.maas-onay { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; font-size: .92rem; }
.maas-onay label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.maas-ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.maas-kart { background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.maas-kart span { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.maas-kart strong { font-size: 1.45rem; }
.maas-net { background: var(--primary); color: var(--fixed-white, #fff); }
.maas-net span { color: rgba(255, 255, 255, .85); }
.maas-tablolar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 22px; }
.maas-tablo { background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.maas-tablo h3 { margin: 0 0 8px; font-size: 1.05rem; }
.maas-tablo h3 small { font-weight: 500; color: var(--text-muted); font-size: .8rem; }
.maas-tablo table { width: 100%; border-collapse: collapse; }
.maas-tablo td { padding: 9px 0; border-bottom: 1px solid var(--border, #e5e7eb); vertical-align: top; }
.maas-tablo td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 12px; }
.maas-tablo td small { display: block; font-weight: 400; color: var(--text-muted); font-size: .76rem; margin-top: 2px; }
.maas-toplam td { font-weight: 800; border-bottom: 0; padding-top: 12px; }
.maas-net-satir td { color: var(--primary); font-size: 1.05rem; }
.maas-anasayfa { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--primary), var(--primary-dark, #1c1f6b)); color: var(--fixed-white, #fff); border-radius: var(--radius); padding: 20px 26px; margin-bottom: 26px; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; flex-wrap: wrap; }
.maas-anasayfa:hover { transform: translateY(-2px); }
.maas-anasayfa .maas-ikon { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .16); align-items: center; justify-content: center; flex: none; }
.maas-anasayfa h3 { margin: 0 0 4px; font-size: 1.15rem; color: inherit; }
.maas-anasayfa p { margin: 0; font-size: .9rem; opacity: .9; }
.maas-anasayfa .maas-dugme { margin-left: auto; background: #fff; color: var(--primary); font-weight: 700; padding: 10px 22px; border-radius: 999px; white-space: nowrap; }

.maas-uyari { margin: 0 0 22px; font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* Üst menü: arama düğmesi eklendikten sonra İLETİŞİM alta düşüyordu. Biraz sıkılaştırıldı; geniş ekranda tek satır, dar ekranda gerekirse alta iner. */
@media (min-width: 961px) {
    .main-nav { gap: 8px; }
    .main-nav a, .nav-dropdown-toggle { font-size: .86rem; letter-spacing: .1px; }
    .nav-row-inner { gap: 10px; }
    .nav-utility { gap: 8px; }
    .nav-utility .social-icons { gap: 8px; }
    .nav-arama { width: 34px; height: 34px; }
}
@media (min-width: 1500px) {
    .main-nav { flex-wrap: nowrap; }
}

/* Maaş hesaplama: masaüstünde doğrudan açık; mobilde düğme olarak görünür, dokununca aynı sayfada açılır */
.maas-ac-btn { display: none; }
@media (max-width: 760px) {
    .maas-baslik { display: none; }
    .maas-ac-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--fixed-white, #fff);
        background: linear-gradient(120deg, var(--primary), var(--primary-dark, #1c1f6b)); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
    .maas-ac-ikon { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); align-items: center; justify-content: center; flex: none; }
    .maas-ac-metin { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
    .maas-ac-metin strong { font-size: 1rem; line-height: 1.25; }
    .maas-ac-metin small { font-size: .8rem; opacity: .88; line-height: 1.3; }
    .maas-ac-ok { display: inline-flex; flex: none; transition: transform .2s; }
    .maas-ac-btn.acik .maas-ac-ok { transform: rotate(180deg); }
    .maas-govde { display: none; margin-top: 14px; }
    .maas-govde.acik { display: block; }
    .maas-form { padding: 14px; }
    .maas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .maas-grid .filtre-alan { min-width: 0; }
    .maas-grid .filtre-alan input, .maas-grid .filtre-alan select { font-size: 16px; padding: 11px 12px; }
    .maas-form .btn { width: 100%; padding: 13px; font-size: 1rem; }
    .maas-onay { flex-direction: column; gap: 10px; }
    .maas-ozet { grid-template-columns: 1fr; }
    .maas-tablolar { grid-template-columns: 1fr; }
    .maas-kart strong { font-size: 1.3rem; }
}
@media (max-width: 440px) {
    .maas-grid { grid-template-columns: 1fr; }
}

/* Altbilgi yasal bağlantılar + yasal metin sayfaları */
.footer-yasal { display: inline-flex; gap: 8px; margin-left: 14px; flex-wrap: wrap; }
.footer-yasal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.footer-yasal a:hover { opacity: 1; }
.yasal-metin { background: var(--white, #fff); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; line-height: 1.75; max-width: 980px; margin: 0 auto; }
.yasal-metin h2 { margin: 26px 0 10px; font-size: 1.2rem; color: var(--primary); }
.yasal-metin h2:first-of-type { margin-top: 8px; }
.yasal-metin table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .92rem; display: block; overflow-x: auto; }
.yasal-metin th, .yasal-metin td { border: 1px solid var(--border, #e5e7eb); padding: 8px 12px; text-align: left; vertical-align: top; }
.yasal-metin th { background: var(--primary-light); }
.yasal-metin ul { padding-left: 22px; }
@media (max-width: 640px) { .yasal-metin { padding: 18px 16px; } .footer-yasal { margin-left: 0; display: flex; margin-top: 6px; } }

/* Logo yanındaki kuruluş yılı */
.logo-text { display: inline-flex; flex-direction: column; gap: 3px; }
.logo-kurulus { font-size: .78rem; font-weight: 600; color: var(--text-muted); letter-spacing: .2px; }
.logo .logo-kurulus { display: block; }
@media (max-width: 960px) { .logo .logo-kurulus { font-size: .62rem; margin-top: 1px; } }

.footer-saat { display: flex; align-items: center; gap: 6px; opacity: .9; }
.footer-saat .icon-sm { flex: none; }

/* KVKK: kişi bilgisi içerdiği için yayımlanmayan dosyalar */
.dava-gizli { font-size: .8rem; color: var(--text-muted); background: var(--primary-light); border-radius: 999px; padding: 6px 12px; line-height: 1.3; max-width: 260px; text-align: center; }

/* Üyelik kartı başvurusu (üye paneli) */
.kart-durum { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--primary-light); margin-bottom: 14px; }
.kart-durum-etiket { font-weight: 800; color: var(--primary); }
.kart-durum small { color: var(--text-muted); }
.kart-durum-onaylandi, .kart-durum-teslim_edildi { background: #e8f7ee; } .kart-durum-onaylandi .kart-durum-etiket, .kart-durum-teslim_edildi .kart-durum-etiket { color: #1b7a3d; }
.kart-durum-reddedildi { background: #fdecec; } .kart-durum-reddedildi .kart-durum-etiket { color: #b3261e; }
.kart-durum-iptal { background: #f1f1f4; } .kart-durum-iptal .kart-durum-etiket { color: #666; }
.kart-zaman { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: k; }
.kart-zaman li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--text-muted); position: relative; }
.kart-zaman li span { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--border, #e5e7eb); color: #fff; font-size: .8rem; font-weight: 800; position: relative; z-index: 1; }
.kart-zaman li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--border, #e5e7eb); }
.kart-zaman li:first-child::before { display: none; }
.kart-zaman li.bitti span, .kart-zaman li.simdi span { background: var(--primary); }
.kart-zaman li.bitti::before, .kart-zaman li.simdi::before { background: var(--primary); }
.kart-zaman li.simdi { color: var(--primary); }
.kart-detay { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: .88rem; }
.kart-detay dt { color: var(--text-muted); } .kart-detay dd { margin: 0; font-weight: 600; word-break: break-word; }
.kart-yonetici { background: #fffaf0; border: 1px solid #f3e3b8; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: .9rem; }
.kart-yonetici p { margin: 6px 0 8px; }
.kart-yonetici img { max-width: 100%; max-height: 240px; border-radius: 10px; display: block; border: 1px solid var(--border); }
