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

:root {
    --primary: #c81e2c;
    --primary-dark: #6e0f18;
    --primary-light: #fbeaea;
    --accent-red: #e11d3f;
    --accent-orange: #ff7a30;
    --accent-gold: #ffb020;
    --accent-teal: #0f9d8c;
    --accent-purple: #7c3aed;
    --text: #241a1a;
    --text-muted: #6a5a5a;
    --border: #ede2e2;
    --bg: #f9f5f5;
    --white: #ffffff;
    --fixed-white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 18px rgba(200, 30, 44, 0.10);
    --shadow-hover: 0 10px 30px rgba(200, 30, 44, 0.20);
    --gradient-primary: linear-gradient(135deg, #d42636 0%, #6e0f18 100%);
    --gradient-accent: linear-gradient(135deg, #ff7a30 0%, #c81e2c 100%);
    --heading: var(--primary-dark);
}

:root[data-theme="dark"] {
    --primary-light: #3a1418;
    --text: #f5e9e9;
    --text-muted: #c2a8a8;
    --border: #3f2224;
    --bg: #170e0f;
    --white: #241618;
    --heading: #ffd9d9;
    --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: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

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

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

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

.header-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--heading);
    text-align: center;
    justify-content: center;
    flex: 1;
}

.header-tagline-figure {
    height: 58px;
    width: auto;
    flex-shrink: 0;
    transition: filter .2s;
}

:root[data-theme="dark"] .header-tagline-figure { filter: invert(1); }

.header-tagline-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading);
}

.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;
    gap: 12px;
    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: 116px; width: auto; }

.confederation-badge-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--heading);
    white-space: nowrap;
}

@media (max-width: 1300px) {
    .header-tagline, .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); }

/* ---------------- 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;
    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; }
}

@media (max-width: 760px) {
    .rep-cta {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .rep-cta-text p { max-width: none; }
    .rep-cta-features { justify-content: center; }
    .rep-cta-btn { width: 100%; text-align: center; }
}

/* ---------------- 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;
}

.slide {
    display: none;
    position: relative;
    min-height: 500px;
    height: 100%;
    background-size: cover;
    background-position: center;
    align-items: flex-end;
}

.slide.active { display: flex; }

.slide-overlay {
    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);
}

.side-research-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    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: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

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

.showcase-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    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: .74rem;
    letter-spacing: .3px;
    color: var(--heading);
}

@media (max-width: 720px) {
    .showcase-card { width: 104px; }
    .showcase-card img { width: 104px; height: 104px; }
}

.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 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: left;
    position: relative;
}

.page-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
}

/* ---------------- 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; }

.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-card img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 12px; background: var(--primary-light); border: 3px solid var(--primary-light);
}
.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);
    gap: 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: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
}
.news-feature-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-feature-img-wrap { overflow: hidden; }
.news-feature-main .news-feature-img-wrap img { height: 280px; }
.news-feature-img-wrap img { width: 100%; display: block; object-fit: cover; 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: 22px 24px 26px; }
.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: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
}
.news-feature-small:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-feature-small .news-feature-img-wrap img { height: 110px; }
.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; }
}

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

.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; }

/* ---------------- 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;
}

.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: 2fr 1fr 1fr 1fr; gap: 30px; padding: 44px 20px 30px; }
.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-tagline { 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 { padding: 12px 20px; gap: 12px; }
    .logo { margin-left: 12px; }
    .logo img { height: 44px; width: 44px; }
    .logo span { display: none; }
    .confederation-badge { margin-right: 12px; }
    .confederation-badge img { height: 44px; }
    .confederation-badge-text { display: none; }
    .btn-contact-top { padding: 7px 12px; font-size: .76rem; }

    .nav-row-inner { flex-wrap: wrap; }

    .nav-utility {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        padding-top: 14px;
        margin-top: 6px;
        border-top: 1px solid var(--border);
        order: 3;
    }

    .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; }
    .slide { min-height: 320px; background-size: contain; background-repeat: no-repeat; background-color: var(--primary-dark); }
    .slide-overlay { padding: 24px 16px 70px 16px; }
    .slide-overlay h2 { font-size: .98rem; }
    .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; }

/* ---------------- 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;
}

.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; }
}
