/* ==========================================================================
 *  style.css — Ön yüz (ziyaretçi tarafı) modern tema (yeşil)
 *  Bootstrap 5 üzerine kurulu. Mobil uyumludur.
 * ========================================================================== */

:root {
    --brand:        #2f9e44;
    --brand-dark:   #237a35;
    --brand-darker: #1b5e2a;
    --brand-light:  #e9f7ef;
    --ink:          #1f2933;
    --muted:        #6b7280;
    --bg:           #f5f7f6;
}

* { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

body {
    background-color: var(--bg);
    color: var(--ink);
}

/* ---- Bootstrap "primary" rengini markaya çek -------------------------- */
.text-primary, .text-brand { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }

.btn-primary, .btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover, .btn-brand:hover,
.btn-primary:focus, .btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-primary, .btn-outline-brand {
    color: var(--brand);
    border-color: var(--brand);
    font-weight: 600;
}
.btn-outline-primary:hover, .btn-outline-brand:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand-darker); }

.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(47, 158, 68, .15);
}

/* ---- Üst bilgi şeridi --------------------------------------------------- */
.topbar {
    background: var(--brand-darker);
    color: #d8f3df;
    padding: .4rem 0;
    font-size: .85rem;
}
.topbar a, .topbar .topbar-admin { color: #d8f3df; }
.topbar a:hover { color: #fff; }

/* ---- Navbar ------------------------------------------------------------- */
.site-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.brand-badge {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand);
    border-radius: 12px; font-size: 1.25rem;
}
.brand-badge--sm { width: 32px; height: 32px; font-size: 1rem; border-radius: 9px; }
.brand-text { font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }

.site-navbar .nav-link {
    font-weight: 600;
    color: #374151;
    padding: .5rem .9rem;
    border-radius: 8px;
}
.site-navbar .nav-link:hover { color: var(--brand); background: var(--brand-light); }
.site-navbar .nav-link.active { color: var(--brand); }

/* ---- Hero / Slider ------------------------------------------------------ */
.slider-img { height: 460px; object-fit: cover; }
@media (max-width: 768px) { .slider-img { height: 240px; } }

.hero-slider .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    left: 0; right: 0; bottom: 0; width: 100%;
    padding: 2.5rem 1.5rem 1.25rem;
    text-align: left;
}

/* ---- Hızlı erişim kartları ---------------------------------------------- */
.quick-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    background: #fff; border-radius: 16px; padding: 1.5rem 1rem;
    text-align: center; text-decoration: none; color: var(--ink);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    border: 1px solid #eef1ef;
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}
.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(47,158,68,.18);
    color: var(--brand-dark);
}
.quick-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand); font-size: 1.5rem;
}
.quick-text { font-weight: 600; font-size: .95rem; line-height: 1.25; }

/* ---- Bölüm başlığı ------------------------------------------------------ */
.section-title h1, .section-title h2 { letter-spacing: -.02em; }
.section-title { position: relative; }
.section-title::after {
    content: ""; display: block; width: 60px; height: 4px;
    background: var(--brand); border-radius: 4px; margin: .6rem auto 0;
}

/* ---- Haber kartları ----------------------------------------------------- */
.news-card {
    display: block; background: #fff; border-radius: 16px; overflow: hidden;
    text-decoration: none; color: var(--ink); height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #eef1ef;
    transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    color: var(--ink);
}
.news-thumb { position: relative; height: 190px; background: #eef1ef; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb--empty {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #c2c8c4; font-size: 2.5rem;
}
.news-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em;
}
.news-body { padding: 1.1rem 1.2rem 1.3rem; }
.news-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.news-excerpt { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.news-date { color: var(--brand-dark); font-size: .82rem; font-weight: 600; }

.info-card { border-radius: 16px; }
.card { border-radius: 14px; }

/* ---- Duyuru / sayfa içeriği --------------------------------------------- */
.announcement-content, .page-content {
    line-height: 1.85; font-size: 1.02rem; color: #374151;
}
.announcement-content img, .page-content img {
    max-width: 100%; height: auto; border-radius: .6rem; margin: .5rem 0;
}
.object-cover { height: 190px; object-fit: cover; }

/* ==========================================================================
 *  YÖNETİM ŞEMASI (ORG CHART)
 * ========================================================================== */
.org-chart-wrapper { overflow-x: auto; padding: 1rem .5rem 2rem; }
.org-chart { display: inline-block; min-width: 100%; text-align: center; }
.org-chart ul { padding-top: 22px; position: relative; display: flex; justify-content: center; list-style: none; margin: 0; }
.org-chart li {
    position: relative; padding: 22px 12px 0; list-style: none;
    display: flex; flex-direction: column; align-items: center;
}
/* Bağlantı çizgileri */
.org-chart li::before, .org-chart li::after {
    content: ""; position: absolute; top: 0; right: 50%;
    width: 50%; height: 22px; border-top: 2px solid #cdd6cf;
}
.org-chart li::after { right: auto; left: 50%; border-left: 2px solid #cdd6cf; }
.org-chart li:only-child::before, .org-chart li:only-child::after { display: none; }
.org-chart li:first-child::before, .org-chart li:last-child::after { border: 0 none; }
.org-chart li:last-child::before {
    border-right: 2px solid #cdd6cf; border-radius: 0 6px 0 0;
}
.org-chart li:first-child::after { border-radius: 6px 0 0 0; }
.org-chart ul ul::before {
    content: ""; position: absolute; top: 0; left: 50%;
    border-left: 2px solid #cdd6cf; width: 0; height: 22px;
}
.org-chart > ul { padding-top: 0; }
.org-chart > ul > li { padding-top: 0; }
.org-chart > ul > li::before, .org-chart > ul > li::after { display: none; }

/* Kart */
.org-card {
    display: inline-flex; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid #e6eae7; border-radius: 14px;
    padding: 1rem 1.25rem; min-width: 160px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}
.org-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(47,158,68,.16); }
.org-photo {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--brand-light); margin-bottom: .6rem;
}
.org-photo--empty {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand); font-size: 1.8rem;
}
.org-name { font-weight: 700; color: var(--ink); }
.org-role { font-size: .85rem; color: var(--brand-dark); margin-top: .15rem; }
/* En üst (başkan) vurgusu */
.org-chart > ul > li > .org-card {
    border-color: var(--brand); background: var(--brand);
}
.org-chart > ul > li > .org-card .org-name,
.org-chart > ul > li > .org-card .org-role { color: #fff; }
.org-chart > ul > li > .org-card .org-photo { border-color: rgba(255,255,255,.6); }

/* ---- Karşılama hero (slider yokken) ------------------------------------ */
.welcome-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
    padding: 4rem 1.5rem;
}
.welcome-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }

/* ---- Slider tıklama imleci --------------------------------------------- */
.slider-link { display: block; cursor: pointer; }
.hero-slider .carousel-caption .btn { pointer-events: auto; }

/* ---- Yönetim kurulu üye kartları (ana sayfa) --------------------------- */
.member-card {
    background: #fff; border: 1px solid #eef1ef; border-radius: 16px;
    padding: 1.5rem 1rem; text-align: center; height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(47,158,68,.16); }
.member-photo {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--brand-light); margin-bottom: .75rem;
}
.member-photo--empty {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand); font-size: 2.2rem;
}
.member-name { font-weight: 700; color: var(--ink); }
.member-role { font-size: .85rem; color: var(--brand-dark); margin-top: .15rem; }

/* ---- Alt çağrı (CTA) şeridi -------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
    padding: 3rem 1.5rem; margin-bottom: 1rem;
}
.cta-band h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---- Manşet detay sayfası ---------------------------------------------- */
.detail-hero { max-height: 440px; object-fit: cover; }
.side-news {
    display: flex; align-items: center; gap: .75rem; text-decoration: none;
    background: #fff; border: 1px solid #eef1ef; border-radius: 12px; overflow: hidden;
    color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .15s ease;
}
.side-news:hover { box-shadow: 0 8px 18px rgba(0,0,0,.1); color: var(--brand-dark); }
.side-news img { width: 84px; height: 64px; object-fit: cover; flex-shrink: 0; }
.side-news-title { font-weight: 600; font-size: .9rem; padding-right: .5rem; line-height: 1.3; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: #14211a; color: #cdd6cf; }
.site-footer h5, .site-footer h6 { color: #fff; }
.footer-muted { color: #9fb0a5; }
.footer-link { display: block; color: #cdd6cf; text-decoration: none; padding: .2rem 0; font-size: .92rem; }
.footer-link:hover { color: var(--brand); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 1.5rem 0 1rem; }
.social-btn {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #cdd6cf; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.social-btn:hover { background: var(--brand); color: #fff; }

/* IBAN kopyalandı geri bildirimi */
.copy-btn.copied i::before { content: "\F26A"; }
