html { font-size: 14px; height: 100%; }
@media (min-width: 768px) { html { font-size: 16px; } }
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
/* Sticky parent fix: header flex item olduğunda position:sticky bozulur */
body > header {
    position: sticky;
    top: 0;
    z-index: 1030;
}
body > header .navbar { position: relative; top: auto; }
.footer-menu {
    column-count: 2;
    column-gap: 24px;
    margin-bottom: 0;
}
.footer-menu li {
    padding: 2px 0;
    break-inside: avoid;
}
@media (max-width: 576px) { .footer-menu { column-count: 1; } }

.hero {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
    padding: 80px 0;
}
.hero h1 { font-weight: 700; }

.hero-slide {
    height: 560px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 70%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
}
.hero-slide-content h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-slide-content .lead { font-size: 1.25rem; opacity: 0.95; }

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0.6;
}
#heroCarousel .carousel-indicators .active { opacity: 1; background: #198754; }

@media (max-width: 768px) {
    .hero-slide { height: 380px; }
    .hero-slide-content h1 { font-size: 2rem; }
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .icon { font-size: 2.5rem; color: #198754; }
.stat-card .value { font-size: 2rem; font-weight: 700; color: #212529; }

.card-project, .card-news {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.card-project:hover, .card-news:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.card-project img, .card-news img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.progress { height: 8px; border-radius: 4px; }

.quick-donate-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-top: 4px solid #198754;
}

.category-tile {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all .25s;
    color: inherit;
    height: 100%;
}
.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: inherit;
}
.category-tile .icon-wrap {
    height: 100px;
    background: linear-gradient(135deg, #198754, #146c43);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
}
.category-tile .info {
    padding: 16px;
    text-align: center;
}

.project-horizontal {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s;
    margin-bottom: 1rem;
}
.project-horizontal:hover { transform: translateY(-3px); }
.project-horizontal .img-side {
    width: 240px;
    min-width: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}
.project-horizontal .content-side { padding: 24px; flex: 1; }

@media (max-width: 768px) {
    .project-horizontal { flex-direction: column; }
    .project-horizontal .img-side { width: 100%; min-width: 0; height: 180px; }
}

.payment-logos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.payment-logos .badge-card {
    background: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.section-title {
    font-weight: 800;
    font-size: 1.85rem;
    color: #1a2e23;
    margin-bottom: 0.4rem;
    position: relative;
    padding-bottom: 14px;
    display: inline-block;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 4px;
    background: linear-gradient(90deg, #198754 0%, #2cb673 100%);
    border-radius: 2px;
}
.section-title.text-center { display: block; }
.section-title.text-center::after { left: 50%; transform: translateX(-32px); }
.section-eyebrow {
    display: inline-block;
    color: #198754;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.section-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Quick-access tile strip */
.quick-access {
    background: #fff;
    padding: 28px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}
.quick-access .qa-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.qa-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #1a2e23;
    background: linear-gradient(135deg, #f4f9f4 0%, #ffffff 100%);
    border: 1px solid #e6efe8;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.qa-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(25,135,84,0.18);
    border-color: #198754;
    color: #1a2e23;
}
.qa-tile .qa-ic {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #198754;
    color: #fff;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(25,135,84,0.35);
}
.qa-tile.alt .qa-ic { background: #d4a437; box-shadow: 0 4px 12px rgba(212,164,55,0.35); }
.qa-tile.alt2 .qa-ic { background: #2c3e50; box-shadow: 0 4px 12px rgba(44,62,80,0.35); }
.qa-tile .qa-lbl strong { display: block; font-size: 0.98rem; font-weight: 700; }
.qa-tile .qa-lbl small { color: #6c757d; font-size: 0.78rem; }
@media (max-width: 991px) {
    .quick-access .qa-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .quick-access .qa-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .qa-tile { padding: 14px 12px; }
    .qa-tile .qa-ic { width: 40px; height: 40px; font-size: 1.2rem; }
}

.admin-sidebar {
    background: #1e2a3a;
    color: #adb5bd;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #2a3a52 #1e2a3a;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-track { background: #1e2a3a; }
.admin-sidebar::-webkit-scrollbar-thumb { background: #2a3a52; border-radius: 3px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: #3a4a62; }
.admin-sidebar a {
    color: #adb5bd;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: #2a3a52;
    color: #fff;
    border-left-color: #198754;
}
.admin-sidebar .sidebar-section {
    padding: 12px 20px;
    font-size: 0.72rem;
    color: #adb5bd;
    letter-spacing: 0.6px;
    border-top: 1px solid #2a3a52;
    margin: 0;
    background: transparent;
    border-bottom: none;
    border-left: none;
    border-right: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.admin-sidebar .sidebar-section:first-of-type { border-top: none; }
.admin-sidebar .sidebar-toggle:hover { background: #243246; color: #fff; }
.admin-sidebar .sidebar-toggle .chev {
    font-size: 0.75rem; opacity: 0.55; transition: transform .25s ease, opacity .15s;
}
.admin-sidebar .sidebar-toggle:not(.collapsed) .chev { transform: rotate(180deg); opacity: 1; color: #198754; }
.admin-sidebar .sidebar-toggle:not(.collapsed) { color: #fff; background: #243246; }
.admin-sidebar .collapse a, .admin-sidebar .collapsing a { font-size: 0.92rem; padding-left: 28px; }
.admin-sidebar .accordion-flush { --bs-accordion-bg: transparent; --bs-accordion-border-color: transparent; }
.admin-sidebar .sidebar-quicklinks { border-top: 1px solid #2a3a52; margin-top: 8px; padding-top: 4px; }
.admin-sidebar .brand {
    color: #fff;
    padding: 0 20px 20px;
    font-weight: 700;
    border-bottom: 1px solid #2a3a52;
    margin-bottom: 10px;
}

/* =================== Admin – Mobil Uyumluluk =================== */
.admin-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #1e2a3a;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-mobile-topbar .admin-burger {
    background: transparent;
    border: 1px solid #2a3a52;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    padding: 0;
}
.admin-mobile-topbar .admin-burger:active { background: #2a3a52; }
.admin-mobile-topbar .admin-mobile-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}
.admin-mobile-topbar .admin-mobile-profile {
    color: #fff;
    font-size: 1.4rem;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    text-decoration: none;
}
.admin-mobile-topbar .admin-mobile-profile:active { background: #2a3a52; }

/* Mobilde sidebar offcanvas davranışı */
@media (max-width: 767.98px) {
    .admin-sidebar.offcanvas-md {
        width: 82vw;
        max-width: 320px;
        height: 100vh;
        position: fixed;
        padding-top: 0;
        background: #1e2a3a;
    }
    .admin-sidebar .offcanvas-header {
        background: #18222f;
        border-bottom: 1px solid #2a3a52;
    }
    /* Mobilde main alanı tam genişlik ve sade kenar boşluğu */
    .admin-main { padding-left: 12px !important; padding-right: 12px !important; }
    /* İçindeki form/kartlar nefes alsın */
    .admin-main .card { border-radius: 10px; }
    /* Tablolar yan kayabilsin */
    .admin-main .table-responsive { -webkit-overflow-scrolling: touch; }
    .admin-main table { font-size: 0.88rem; }
    /* d-flex justify-content-between gibi başlık satırları altta dikey yığılsın */
    .admin-main .page-actions,
    .admin-main .d-flex.justify-content-between { flex-wrap: wrap; gap: 8px; }
    /* Butonlar mobilde tam genişlik isteyebilir */
    .admin-main .btn-toolbar-mobile .btn { flex: 1 1 auto; }

    /* ===== Mobilde tabloları kart görünümüne çevir ===== */
    .admin-main .table-responsive { overflow-x: visible; }
    .admin-main table.admin-stack-table,
    .admin-main table.admin-stack-table thead,
    .admin-main table.admin-stack-table tbody,
    .admin-main table.admin-stack-table tr,
    .admin-main table.admin-stack-table td {
        display: block;
        width: 100%;
    }
    .admin-main table.admin-stack-table thead { display: none; }
    .admin-main table.admin-stack-table tbody > tr {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .admin-main table.admin-stack-table tbody > tr > td {
        border: none !important;
        padding: 6px 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        text-align: right;
        word-break: break-word;
    }
    .admin-main table.admin-stack-table tbody > tr > td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        text-align: left;
        flex: 0 0 38%;
        max-width: 38%;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding-top: 2px;
    }
    .admin-main table.admin-stack-table tbody > tr > td:not([data-label])::before { content: ""; display: none; }
    .admin-main table.admin-stack-table tbody > tr > td:not([data-label]) { justify-content: flex-end; }
    /* Checkbox / aksiyon hücreleri */
    .admin-main table.admin-stack-table tbody > tr > td .btn { white-space: nowrap; }
    .admin-main table.admin-stack-table tbody > tr > td input[type=checkbox] { transform: scale(1.2); }
}

/* TinyMCE konteyneri mobilde sayfayı taşırmasın */
@media (max-width: 767.98px) {
    .admin-main .tox-tinymce { max-width: 100%; }
    .admin-main .tox .tox-toolbar__group { padding: 0 4px !important; }
}

/* Bootstrap offcanvas-md varsayılan davranışını koru (md+ normal grid) */
@media (min-width: 768px) {
    /* Bootstrap'in offcanvas-md md+ kuralları (width:auto, flex-grow:1) col-md-3/col-lg-2'yi
       ezdiği için grid genişliklerini geri zorluyoruz. */
    .admin-sidebar.offcanvas-md {
        position: sticky;
        flex-grow: 0 !important;
        width: 25% !important;
        height: 100vh !important;
        transform: none !important;
        visibility: visible !important;
        overflow-y: auto;
        background: #1e2a3a !important;
    }
}
@media (min-width: 992px) {
    .admin-sidebar.offcanvas-md { width: 16.66666667% !important; }
}
@media (min-width: 768px) {
    .admin-sidebar .offcanvas-header { display: none; }
    /* Logo veya başlık sidebar sınırını aşmasın — yükseklik HTML attribute'u (height="48") ile sınırlı kalsın */
    .admin-sidebar .brand img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
    .admin-sidebar .brand { overflow: hidden; word-break: break-word; }
}

/* Sticky / scrolled navbar */
.navbar.sticky-top { transition: box-shadow .25s, padding .2s; z-index: 1030; }
.navbar.navbar-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.08); padding-top: .25rem; padding-bottom: .25rem; }
.navbar.navbar-scrolled .navbar-brand img { height: 44px; transition: height .2s; }

/* Cart badge pill */
.cart-trigger { display: inline-flex; align-items: center; position: relative; }
.cart-pill {
    position: absolute;
    top: 2px; right: -2px;
    background: #dc3545;
    color: #fff;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    line-height: 20px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220,53,69,0.4);
}

/* Cart drawer (offcanvas) */
#cartDrawer { width: 420px; max-width: 100%; }
#cartDrawer .cart-line:hover { background: #f8f9fa; }
#cartDrawer .cart-line-icon {
    width: 56px; height: 56px;
    background: #d1e7dd;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}

/* Cart full page modern */
.cart-package-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex; gap: 16px; align-items: center;
    border-left: 4px solid #198754;
    transition: transform .15s, box-shadow .15s;
}
.cart-package-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.cart-package-card + .cart-package-card { margin-top: 14px; }
.cart-summary-card {
    background: linear-gradient(135deg, #198754, #146c43);
    color: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(25,135,84,0.25);
}
.cart-summary-card .total { font-size: 2.4rem; font-weight: 800; line-height: 1; }

/* Scroll to top */
.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #198754;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 1.3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all .25s;
    z-index: 1030;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: #198754; color: #fff; transform: translateY(-3px); }

@media (max-width: 768px) {
    .scroll-top-btn { right: 12px; bottom: 80px; width: 44px; height: 44px; }
    #cartDrawer { width: 90vw; }
}

/* Kurul Hiyerarşi */
.bh-wrap { max-width: 1080px; margin: 0 auto 60px; padding: 24px 0; }
.bh-row { text-align: center; margin-bottom: 6px; }
.bh-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 10px; }
.bh-line {
    width: 2px; height: 28px;
    background: linear-gradient(180deg, #198754 0%, #d4a437 100%);
    margin: 0 auto;
}
.bh-info { text-align: left; line-height: 1.3; }

/* Level 1 — Başkan: koyu yeşil, büyük, altın çerçeve */
.bh-card-1 {
    display: inline-flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #0f5132 0%, #146c43 100%);
    color: #fff;
    border-radius: 14px;
    padding: 18px 32px;
    border: 3px solid #d4a437;
    box-shadow: 0 10px 30px rgba(20,108,67,0.35);
}
.bh-card-1 .bh-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #d4a437; }
.bh-card-1 .bh-ph { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; }
.bh-card-1 .bh-name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.bh-card-1 .bh-title { font-size: 0.85rem; color: #d4a437; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.bh-card-1 .bh-meta { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* Level 2 — Yardımcı/Sekreter/Sayman: orta */
.bh-card-2 {
    display: inline-flex; align-items: center; gap: 12px;
    background: #eafaf0;
    border: 1px solid #198754;
    border-radius: 12px;
    padding: 14px 22px;
    box-shadow: 0 4px 14px rgba(25,135,84,0.12);
}
.bh-card-2 .bh-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #198754; }
.bh-card-2 .bh-ph { width: 60px; height: 60px; border-radius: 50%; background: #198754; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; }
.bh-card-2 .bh-name { font-size: 1rem; font-weight: 700; color: #0f5132; }
.bh-card-2 .bh-title { font-size: 0.82rem; color: #146c43; font-weight: 600; }
.bh-card-2 .bh-meta { font-size: 0.72rem; color: #6c757d; margin-top: 2px; }

/* Level 3 — Üyeler: küçük beyaz */
.bh-card-3 {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid #e6efe8;
    border-radius: 10px;
    padding: 11px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow .2s, transform .2s;
}
.bh-card-3:hover { box-shadow: 0 8px 20px rgba(25,135,84,0.15); transform: translateY(-2px); }
.bh-card-3 .bh-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #d4a437; }
.bh-card-3 .bh-ph { width: 50px; height: 50px; border-radius: 50%; background: #e6efe8; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #198754; }
.bh-card-3 .bh-name { font-size: 0.9rem; font-weight: 700; color: #1a2e23; }
.bh-card-3 .bh-title { font-size: 0.78rem; color: #198754; font-weight: 600; }
.bh-card-3 .bh-meta { font-size: 0.7rem; color: #95a5a6; margin-top: 2px; }

@media (max-width: 576px) {
    .bh-card-1, .bh-card-2, .bh-card-3 { padding: 12px 16px; }
    .bh-card-1 .bh-photo, .bh-card-1 .bh-ph { width: 60px; height: 60px; font-size: 1.5rem; }
    .bh-card-1 .bh-name { font-size: 1rem; }
}

/* Sponsor bar — koyu zemin, çoğu logoyu görünür kılar */
.sponsor-bar {
    background: linear-gradient(135deg, #1a2e23 0%, #0f5132 100%);
    padding: 36px 0;
    border-top: 1px solid #0f5132;
    border-bottom: 1px solid #0f5132;
}
.sponsor-title {
    text-align: center;
    color: rgba(255,255,255,0.65);
    letter-spacing: 3px;
    margin-bottom: 22px;
    font-weight: 700;
    font-size: 0.85rem;
}
.sponsor-grid {
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 16px;
}
.sponsor-card {
    background: transparent;
    padding: 12px 22px;
    min-width: 180px;
    height: 100px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, opacity .2s;
    text-decoration: none;
    opacity: 0.92;
}
.sponsor-card:hover {
    transform: translateY(-3px);
    opacity: 1;
}
.sponsor-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
@media (max-width: 576px) {
    .sponsor-card { min-width: 150px; height: 80px; padding: 8px 14px; }
    .sponsor-card img { max-height: 60px; }
}

/* Popup duyuru — TinyMCE HTML içerik için */
.popup-ann .modal-content { border-radius: 14px; overflow: hidden; }
.popup-ann-body { max-height: 65vh; overflow-y: auto; }
.popup-ann-body h1, .popup-ann-body h2, .popup-ann-body h3, .popup-ann-body h4 { color: #146c43; margin-top: 1.2rem; }
.popup-ann-body h1:first-child, .popup-ann-body h2:first-child, .popup-ann-body h3:first-child { margin-top: 0; }
.popup-ann-body p { margin-bottom: 0.9rem; line-height: 1.65; }
.popup-ann-body table {
    border-collapse: collapse; width: 100%; margin: 1rem 0;
    font-size: 0.95rem;
}
.popup-ann-body table th, .popup-ann-body table td {
    border: 1px solid #d9e2dc; padding: 10px 14px; vertical-align: top;
}
.popup-ann-body table th { background: #eafaf0; color: #0f5132; font-weight: 700; }
.popup-ann-body table tr:nth-child(even) td { background: #fafdfb; }
.popup-ann-body ul, .popup-ann-body ol { margin: 0.5rem 0 1rem 1.2rem; line-height: 1.7; }
.popup-ann-body li { margin-bottom: 0.4rem; }
.popup-ann-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.75rem 0; }
.popup-ann-body hr { border: 0; border-top: 2px solid #e6efe8; margin: 1.4rem 0; }
.popup-ann-body strong { color: #1a2e23; }
.popup-ann-body blockquote {
    border-left: 4px solid #198754; background: #f4f9f4;
    padding: 12px 16px; margin: 1rem 0; border-radius: 0 8px 8px 0;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 2000;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay .lb-stage {
    max-width: 92vw; max-height: 86vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay .lb-stage img {
    max-width: 92vw; max-height: 86vh;
    object-fit: contain; border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-overlay .lb-close,
.lightbox-overlay .lb-prev,
.lightbox-overlay .lb-next {
    position: absolute; background: rgba(255,255,255,0.1); color: #fff;
    border: none; cursor: pointer; font-size: 1.8rem;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lightbox-overlay .lb-close:hover,
.lightbox-overlay .lb-prev:hover,
.lightbox-overlay .lb-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-overlay .lb-close { top: 20px; right: 20px; font-size: 2rem; }
.lightbox-overlay .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-overlay .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-overlay .lb-caption {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 0.95rem; opacity: 0.85; max-width: 80vw; text-align: center;
}

/* Event detail info grid */
.event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.event-info-cell {
    display: flex; gap: 12px; align-items: center;
    background: #f4f9f4; border: 1px solid #e6efe8; border-radius: 10px;
    padding: 14px;
}
.event-info-cell .ic {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 10px; background: #198754; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.event-info-cell small { display: block; color: #6c757d; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.event-info-cell strong { font-size: 0.95rem; color: #1a2e23; }

/* Home 3-column info panels (Duyurular / Etkinlikler / Galeri) */
.info-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}
.info-panel .tab-content { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.info-panel .tab-pane.active { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.info-panel .info-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.info-panel .info-tabs {
    background: linear-gradient(135deg, #146c43 0%, #198754 100%);
    border-bottom: none;
    padding: 0;
    flex-wrap: nowrap;
}
.info-panel .info-tabs { display: flex; }
.info-panel .info-tabs .nav-item { flex: 1 1 0; min-width: 0; }
.info-panel .info-tabs .nav-link {
    color: rgba(255,255,255,0.85);
    border: none;
    border-radius: 0;
    padding: 14px 8px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-panel .info-tabs .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.info-panel .info-tabs .nav-link.active { background: #fff; color: #146c43; border-bottom: 3px solid #d4a437; }

.info-panel .info-header {
    background: linear-gradient(135deg, #146c43 0%, #198754 100%);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    color: #fff;
}
.info-panel .info-header-title { font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: 0.8px; text-transform: uppercase; }
.info-panel .info-header-link { color: #fff; font-size: 0.8rem; text-decoration: none; font-weight: 600; opacity: 0.9; }
.info-panel .info-header-link:hover { text-decoration: underline; }
.info-panel .info-body { padding: 14px 18px; flex: 1; }
.info-panel .info-subtitle { color: #6c757d; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }

.info-list { list-style: none; padding: 0; margin: 0; flex: 1; min-height: 0; overflow-y: auto; }
.info-list li { border-bottom: 1px solid #f0f0f0; }
.info-list li:last-child { border-bottom: none; }
.info-list li a { display: block; padding: 12px 18px; color: #2c3e50; text-decoration: none; transition: background .15s; }
.info-list li a:hover { background: #f8f9fa; }
.info-list .title {
    font-size: 0.92rem; font-weight: 500; line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.info-list .date { color: #95a5a6; font-size: 0.78rem; }
.info-list .empty { padding: 18px; text-align: center; font-size: 0.9rem; }

.info-panel .info-footer {
    padding: 12px 18px; border-top: 1px solid #e9ecef; text-align: right; background: #fafafa;
}
.info-panel .info-footer a { color: #198754; font-size: 0.85rem; text-decoration: none; font-weight: 600; }
.info-panel .info-footer a:hover { text-decoration: underline; }

/* Event list */
.event-list {
    list-style: none; padding: 0; margin: 0;
    flex: 1; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
}
.event-list li { margin-bottom: 10px; }
.event-list li:last-child { margin-bottom: 0; }
.event-list li a {
    display: flex; gap: 14px; align-items: center;
    padding: 14px 16px;
    background: #f8faf8;
    border: 1px solid #e6efe8;
    border-left: 4px solid #198754;
    color: #1a2e23;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.event-list li a:hover { background: #fff; border-color: #198754; box-shadow: 0 6px 18px rgba(25,135,84,0.15); }
.event-list .cal-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 10px;
    background: #198754; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.event-list .event-info { flex: 1; }
.event-list .title {
    font-weight: 700; font-size: 0.95rem; line-height: 1.3; margin-bottom: 2px; color: #1a2e23;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word;
}
.event-list .event-info { min-width: 0; overflow: hidden; }
.event-list .date { font-size: 0.82rem; color: #6c757d; }

/* Gallery slide as link */
.gallery-slide-link { display: block; height: 100%; text-decoration: none; color: inherit; position: relative; }
.gallery-slide-link .gallery-slide { transition: transform .4s ease; }
.gallery-slide-link:hover .gallery-slide { transform: scale(1.04); }

/* Gallery carousel panel */
.gallery-panel {
    background: #2c3e50;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 520px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.gallery-panel .carousel, .gallery-panel .carousel-inner { height: 100%; }
.gallery-panel .carousel-item { height: 100%; }
.gallery-panel .gallery-slide-link { display: block; height: 100%; }
.gallery-slide { height: 100%; background-size: cover; background-position: center; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.5) 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px; color: #fff;
}
.gallery-title { font-size: 1.6rem; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.6); margin: 0; }
.gallery-overlay .btn-light { align-self: center; margin-top: auto; padding: 6px 24px; font-weight: 600; }
.gallery-panel .carousel-control-prev, .gallery-panel .carousel-control-next { width: 48px; opacity: 0.85; }
.gallery-panel .g-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}
.gallery-panel .empty-gallery {
    height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
}
.gallery-panel .empty-gallery i { font-size: 4rem; margin-bottom: 12px; }
@media (max-width: 991px) {
    .gallery-panel, .gallery-panel .carousel, .gallery-panel .carousel-inner { min-height: 320px; }
    .gallery-slide, .gallery-panel .empty-gallery { height: 320px; }
}

/* Content Toolbar (sosyal paylaşım + TTS + yazı boyutu + yazdır) */
.content-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa; border-radius: 10px; border: 1px solid #e9ecef;
}
.content-toolbar-left, .content-toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tb-btn {
    background: #fff; border: 1px solid #dee2e6; color: #495057;
    padding: 6px 14px; border-radius: 6px; font-size: 0.88rem;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: all .15s;
}
.tb-btn:hover { background: #198754; color: #fff; border-color: #198754; }
.tb-btn.active { background: #dc3545; color: #fff; border-color: #dc3545; }
.tb-divider { width: 1px; height: 24px; background: #dee2e6; margin: 0 4px; }
.tb-btn-group { display: inline-flex; align-items: center; border: 1px solid #dee2e6; border-radius: 6px; background: #fff; }
.tb-btn-sm { background: none; border: none; padding: 6px 10px; cursor: pointer; color: #495057; }
.tb-btn-sm:hover { background: #f0f0f0; }
.tb-btn-sm-label { padding: 0 8px; color: #6c757d; }
.tb-share-label { color: #6c757d; font-size: 0.85rem; margin-right: 4px; }
.tb-share {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; border: none; cursor: pointer;
    transition: transform .15s, opacity .15s; font-size: 0.95rem;
}
.tb-share:hover { transform: translateY(-2px); color: #fff; opacity: 0.9; }
.tb-share-facebook { background: #1877f2; }
.tb-share-twitter { background: #000; }
.tb-share-whatsapp { background: #25d366; }
.tb-share-telegram { background: #0088cc; }
.tb-share-linkedin { background: #0a66c2; }
.tb-share-mail { background: #6c757d; }
.tb-share-copy { background: #198754; }

@media (max-width: 768px) {
    .tb-label { display: none; }
    .tb-btn { padding: 6px 10px; }
    .tb-share-label { display: none; }
}
@media print {
    .content-toolbar, .navbar, footer, .scroll-top-btn, .floating-actions,
    .cookie-consent, #cartDrawer, #cookieConsent, .breadcrumb { display: none !important; }
}

/* Detail hero (haber/duyuru/etkinlik) */
.detail-hero {
    position: relative;
    height: 380px;
    background: #2c3e50;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.detail-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 70%);
}
.detail-hero-content { position: relative; z-index: 2; padding: 32px 0; width: 100%; }
.detail-hero h1 { font-size: 2.4rem; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.6); margin: 0; }
.detail-hero .meta { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 8px; }
.detail-hero .meta i { margin-right: 4px; }
@media (max-width: 768px) {
    .detail-hero { height: 260px; }
    .detail-hero h1 { font-size: 1.6rem; }
}

.detail-body { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); margin-top: -60px; position: relative; z-index: 3; }
.content-readable { font-size: 1.05rem; line-height: 1.65; color: #2c3e50; }
.content-readable p { margin: 0 0 0.75rem; }
/* TinyMCE Enter'da ürettiği boş paragrafları yok say */
.content-readable p:empty { display: none; }
.content-readable p:has(> br:only-child) { display: none; }
.content-readable img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.content-readable h1, .content-readable h2, .content-readable h3, .content-readable h4 {
    margin-top: 1.4rem; margin-bottom: 0.6rem; color: #146c43; line-height: 1.3;
}
.content-readable h1:first-child, .content-readable h2:first-child,
.content-readable h3:first-child, .content-readable h4:first-child { margin-top: 0; }
.content-readable ul, .content-readable ol { margin: 0.4rem 0 0.9rem 1.2rem; }
.content-readable li { margin-bottom: 0.3rem; }
.content-readable blockquote {
    border-left: 4px solid #198754; padding: 10px 18px; background: #f4f9f4;
    border-radius: 0 8px 8px 0; margin: 1rem 0;
}
.content-readable table {
    border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.97rem;
}
.content-readable table th, .content-readable table td {
    border: 1px solid #d9e2dc; padding: 9px 13px; vertical-align: top;
}
.content-readable table th { background: #eafaf0; color: #0f5132; font-weight: 700; }
.content-readable table tr:nth-child(even) td { background: #fafdfb; }
.content-readable hr { border: 0; border-top: 2px solid #e6efe8; margin: 1.4rem 0; }
.content-readable strong { color: #1a2e23; }

.detail-sidebar { position: sticky; top: 90px; }
.detail-sidebar .card { margin-bottom: 16px; }

.related-card {
    display: flex; gap: 12px;
    padding: 10px; border-radius: 8px;
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.related-card:hover { background: #f8f9fa; color: inherit; }
.related-card img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; }
.related-card .title { font-size: 0.9rem; font-weight: 500; line-height: 1.3; }
.related-card .date { font-size: 0.75rem; color: #95a5a6; }

.cookie-consent {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 3px solid #198754;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1050;
}

.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform .2s;
    text-decoration: none;
}
.floating-btn:hover { transform: scale(1.08); color: #fff; }
.floating-whatsapp { background: #25d366; }
.floating-call { background: #198754; }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #e9ecef;
}
.gallery-item img, .gallery-item video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-item .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.7));
    display: flex; align-items: flex-end;
    padding: 12px;
    color: #fff;
    opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .play-icon {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    color: #fff; font-size: 3rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.event-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s;
}
.event-card:hover { transform: translateY(-4px); }
.event-date-box {
    background: #198754;
    color: #fff;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    min-width: 68px;
}
.event-date-box .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: 0.85rem; text-transform: uppercase; }

.login-card {
    max-width: 420px;
    margin: 80px auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
