* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e8f0ea;
    color: #222;
    font-size: 14px;
}

a {
    color: #1a5c2e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #c8973a;
}

/* ── WRAPPER ── */
.site-wrapper {
    max-width: 1000px;
    margin: 16px auto;
    background: #fff;
    border: 1px solid #b6d4bf;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── HEADER ── */
.site-header {
    background: linear-gradient(135deg, #1a5c2e 0%, #2d7a46 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.site-header-text h1 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

.site-header-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
}

/* ── NAVIGATION ── */
.site-nav {
    background: #174f27;
    border-bottom: 3px solid #c8973a;
    position: relative;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 10px 16px;
    cursor: pointer;
    line-height: 1;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.nav-links > a,
.nav-links > .nav-dropdown > a {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    padding: 9px 10px;
    display: block;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-links > a:hover,
.nav-links > a.active {
    background: #c8973a;
    color: #fff;
    text-decoration: none;
}

/* ── DROPDOWN ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: ' ▾';
    font-size: 9px;
    opacity: 0.7;
}

.nav-dropdown > a:hover,
.nav-dropdown > a.active {
    background: #c8973a;
    color: #fff;
    text-decoration: none;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a5c2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 2px solid #c8973a;
    min-width: 160px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

.nav-dropdown-menu a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 14px;
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #c8973a;
    color: #fff;
    text-decoration: none;
}

/* ── MOBİL MENÜ ── */
@media (max-width: 860px) {
    .nav-hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
    }

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

    .nav-links > a,
    .nav-links > .nav-dropdown > a {
        font-size: 14px;
        padding: 11px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: normal;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        background: #1e6e35;
        display: none;
    }

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

    .nav-dropdown-menu a {
        padding-left: 28px;
        font-size: 13px;
    }

    /* Mobilde hover yerine click ile açılır (JS) */
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
}

/* ── BISMILLAH BANNER ── */
.bismillah-banner {
    background: #f5faf6;
    border-bottom: 1px solid #c3dfc9;
    text-align: center;
    padding: 8px;
    font-size: 16px;
    color: #1a5c2e;
    letter-spacing: 1px;
}

/* ── MAIN LAYOUT ── */
.main-layout {
    display: grid;
    grid-template-columns: 190px 1fr 190px;
}

/* ── SIDEBARS ── */
.sidebar-left {
    border-right: 1px solid #dceee0;
    padding: 12px;
    background: #fafcfa;
}

.sidebar-right {
    border-left: 1px solid #dceee0;
    padding: 12px;
    background: #fafcfa;
}

.sidebar-box {
    border: 1px solid #b6d4bf;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.sidebar-box-header {
    background: #1a5c2e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-box-header::before {
    content: '●';
    font-size: 8px;
    color: #c8973a;
}

.sidebar-box-body {
    padding: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #444;
}

.arabic-quote {
    direction: rtl;
    font-size: 14px;
    text-align: center;
    color: #1a5c2e;
    font-weight: 600;
    padding: 6px;
    background: #f0f7f2;
    border-radius: 4px;
    margin-bottom: 6px;
    line-height: 2;
}

.sidebar-ref {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 1px dashed #dceee0;
}

.link-item:last-child {
    border-bottom: none;
}

.link-item::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #2d7a46;
    border-radius: 50%;
    flex-shrink: 0;
}

.link-item a {
    font-size: 11px;
    color: #1a5c2e;
}

/* ── CONTENT AREA ── */
.content-area {
    padding: 16px;
}

.content-section {
    border: 1px solid #dceee0;
    border-radius: 5px;
    margin-bottom: 16px;
    overflow: hidden;
}

.content-section-header {
    background: #f0f7f2;
    border-bottom: 2px solid #1a5c2e;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1a5c2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section-header .icon {
    font-size: 16px;
}

.content-section-body {
    padding: 14px;
    color: #333;
    line-height: 1.8;
    font-size: 13px;
}

.content-section-body p {
    margin-bottom: 10px;
}

.content-section-body p:last-child {
    margin-bottom: 0;
}

/* ── PAGE TITLE ── */
.page-title {
    font-size: 20px;
    color: #1a5c2e;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c8973a;
}

/* ── SILSILE INDEX LIST ── */
.silsile-list {
    columns: 2;
    column-gap: 24px;
    list-style: decimal;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1;
}

.silsile-list li {
    padding: 5px 0 5px 4px;
    border-bottom: 1px dashed #dceee0;
    break-inside: avoid;
    color: #2a4a30;
}

.silsile-list li:last-child {
    border-bottom: none;
}

.silsile-list-son {
    font-weight: 700;
    color: #1a5c2e !important;
    background: #f0f7f2;
    border-radius: 3px;
    padding: 6px 6px !important;
    border-bottom: none !important;
    border-top: 2px solid #c8973a !important;
}

.silsile-ra {
    font-size: 10px;
    color: #888;
    font-style: italic;
}

.silsile-ks {
    font-size: 10px;
    color: #1a5c2e;
    font-style: italic;
}

@media (max-width: 600px) {
    .silsile-list {
        columns: 1;
    }
}

/* ── SILSILE ÖZET (anasayfa) ── */
.silsile-ozet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.silsile-ozet-item {
    background: #f0f7f2;
    border: 1px solid #b6d4bf;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 12px;
    color: #1a5c2e;
    text-align: center;
    min-width: 260px;
    max-width: 320px;
}

.silsile-ozet-ok {
    color: #1a5c2e;
    font-size: 14px;
    line-height: 1.2;
    padding: 1px 0;
}

.silsile-ozet-son {
    background: #1a5c2e;
    color: #fff !important;
    border-color: #c8973a;
    font-weight: 600;
    border-width: 2px;
}

/* ── SILSILE TREE ── */
.silsile-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px;
}

.silsile-node {
    background: #1a5c2e;
    color: #fff;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 4px;
    text-align: center;
    min-width: 220px;
}

.silsile-node.gold {
    background: #c8973a;
}

.silsile-connector {
    width: 2px;
    height: 14px;
    background: #1a5c2e;
}

.silsile-connector.gold {
    background: #c8973a;
}

/* ── SOHBET INDEX ── */
.sohbet-index {
    border: 1px solid #b6d4bf;
    border-radius: 5px;
    margin-bottom: 16px;
    overflow: hidden;
}

.sohbet-index-baslik {
    background: #1a5c2e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
}

.sohbet-index-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: #f5faf6;
}

.sohbet-index-link {
    background: #fff;
    border: 1px solid #b6d4bf;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 12px;
    color: #1a5c2e;
    text-decoration: none;
    transition: background 0.15s;
}

.sohbet-index-link:hover {
    background: #1a5c2e;
    color: #fff;
    text-decoration: none;
    border-color: #1a5c2e;
}

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-card {
    background: #f0f7f2;
    border: 1px solid #b6d4bf;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
}

.stat-card .num {
    font-size: 20px;
    font-weight: 700;
    color: #1a5c2e;
}

.stat-card .label {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* ── PHOTO GRID ── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-card {
    border: 1px solid #b6d4bf;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}

.photo-card .photo-placeholder {
    background: #f0f7f2;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1a5c2e;
}

.photo-card .photo-caption {
    font-size: 11px;
    padding: 6px;
    color: #555;
    background: #fafcfa;
    border-top: 1px solid #dceee0;
}

/* ── GALERİ KATEGORİ ── */
.galeri-kategori-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.galeri-kategori-kart {
    display: block;
    border: 1px solid #b6d4bf;
    border-radius: 6px;
    padding: 24px 16px;
    text-align: center;
    background: #f5faf6;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.galeri-kategori-kart:hover {
    background: #e8f4ec;
    border-color: #1a5c2e;
    text-decoration: none;
}

.galeri-kategori-ikon {
    font-size: 36px;
    margin-bottom: 10px;
}

.galeri-kategori-baslik {
    font-size: 14px;
    font-weight: 600;
    color: #1a5c2e;
    margin-bottom: 6px;
}

.galeri-kategori-sayi {
    font-size: 12px;
    color: #888;
}

/* ── GALERİ GRID ── */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.galeri-kart {
    position: relative;
    cursor: pointer;
    border: 1px solid #b6d4bf;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f7f2;
    aspect-ratio: 1;
}

.galeri-kart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.galeri-kart:hover img {
    opacity: 0.85;
}

.galeri-no {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.4);
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── LİGHTBOX ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lb-icerik {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90vw;
    max-height: 90vh;
}

.lb-icerik img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.lb-kapat {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
}

.lb-kapat:hover { opacity: 1; }

.lb-onceki, .lb-sonraki {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 36px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.lb-onceki:hover, .lb-sonraki:hover {
    background: rgba(255,255,255,0.3);
}

.lb-sayac {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .galeri-grid { grid-template-columns: repeat(3, 1fr); }
    .galeri-kategori-grid { grid-template-columns: 1fr; }
}

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

/* ── WORKS LIST ── */
.works-list {
    list-style: none;
}

.works-list li {
    padding: 10px 12px;
    border-bottom: 1px solid #dceee0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.works-list li:last-child {
    border-bottom: none;
}

.works-list li::before {
    content: '📖';
    font-size: 16px;
    flex-shrink: 0;
}

.works-list .work-title {
    font-weight: 600;
    color: #1a5c2e;
    font-size: 13px;
}

.works-list .work-desc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* ── TALKS LIST ── */
.talks-list {
    list-style: none;
}

.talks-list li {
    padding: 10px 12px;
    border-bottom: 1px solid #dceee0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.talks-list li:last-child {
    border-bottom: none;
}

.talks-list .talk-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.talks-list .talk-title {
    font-weight: 600;
    color: #1a5c2e;
    font-size: 13px;
}

.talks-list .talk-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── CONTACT FORM ── */
.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1a5c2e;
    margin-bottom: 4px;
    margin-top: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #b6d4bf;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fafcfa;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1a5c2e;
    background: #fff;
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

.btn-submit {
    margin-top: 14px;
    background: #1a5c2e;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #c8973a;
}

/* ── INFO BOX ── */
.info-box {
    background: #f0f7f2;
    border: 1px solid #b6d4bf;
    border-left: 4px solid #1a5c2e;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #2a4a30;
}

/* ── YUKARI ÇIK ── */
#yukariCik {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: #1a5c2e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 500;
    line-height: 1;
}

#yukariCik.gorunsun { opacity: 1; }
#yukariCik:hover { background: #c8973a; }

/* ── FOOTER ── */
.site-footer {
    background: #174f27;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 12px;
    font-size: 11px;
    border-top: 3px solid #c8973a;
}

.site-footer a {
    color: #c8973a;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-left,
    .sidebar-right {
        border: none;
        border-bottom: 1px solid #dceee0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-header-text h1 {
        font-size: 15px;
    }
}

/* Mevcut yeşil/altın kimliği koruyan okunabilirlik ve mobil düzen. */
.site-header { justify-content:center; padding:18px 12px; }
.site-brand { display:block; width:100%; max-width:960px; }
.site-brand img { display:block; width:100%; height:auto; }
.main-layout { grid-template-columns:190px minmax(0,1fr) 190px; }
.content-area, .sidebar-left, .sidebar-right { min-width:0; overflow-wrap:anywhere; }
.content-section-header { margin:0; }
.content-section-body { font-size:15px; line-height:1.9; }
.content-area img, .content-area iframe { max-width:100%; }
.content-area ul, .content-area ol { padding-left:22px; }
.silsile-ozet-item, .silsile-node { min-width:0; width:100%; max-width:320px; }
.nav-links { flex-wrap:wrap; }
.nav-dropdown:focus-within .nav-dropdown-menu { display:block; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline:3px solid #b77913; outline-offset:3px; }
.skip-link { position:absolute; left:12px; top:-100px; padding:12px; background:#fff; z-index:2000; }
.skip-link:focus { top:12px; }
#yukariCik { visibility:hidden; }
#yukariCik.gorunsun { visibility:visible; }
.contact-form input, .contact-form textarea { font-size:16px; min-height:44px; }
.form-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.galeri-kart { padding:0; font:inherit; }
.gallery-summary { margin:0 0 12px; color:#444; line-height:1.7; }
.gallery-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:12px 0 16px; }
.gallery-pagination a, .gallery-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:8px 12px; border:1px solid #b6d4bf; border-radius:4px; background:#f5faf6; }
.gallery-pagination [aria-current="page"] { color:#fff; background:#1a5c2e; border-color:#1a5c2e; }
.gallery-pagination a:hover { background:#e8f4ec; color:#174f27; }
.lb-icerik { width:min(92vw,1000px); justify-content:center; }
.lb-icerik img { max-width:calc(92vw - 132px); }
.lb-kapat, .lb-onceki, .lb-sonraki { min-width:44px; min-height:44px; }
@media (max-width:960px) and (min-width:769px) {
    .main-layout { grid-template-columns:160px minmax(0,1fr); }
    .sidebar-right { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
}
@media (max-width:860px) {
    .nav-dropdown:focus-within .nav-dropdown-menu { display:none; }
    .nav-dropdown.open .nav-dropdown-menu { display:block; }
    .nav-dropdown-menu a { white-space:normal; min-height:44px; }
    .nav-hamburger { min-height:48px; min-width:48px; }
    /* JavaScript kapalıysa bağlantılar erişilebilir kalır. */
    .no-js .nav-links, .no-js .nav-dropdown-menu { display:flex; flex-direction:column; }
}
@media (max-width:768px) {
    .site-wrapper { margin:0; border-radius:0; }
    .main-layout { grid-template-columns:minmax(0,1fr); }
    .content-area { grid-row:1; padding:16px 12px; }
    .sidebar-left { grid-row:2; }
    .sidebar-right { grid-row:3; }
    .content-section-body { padding:12px; }
    .page-title { font-size:22px; line-height:1.5; }
    .sidebar-box-body, .link-item a { font-size:14px; }
    .link-item a { display:block; padding:7px 0; }
    .silsile-list { font-size:14px; line-height:1.6; }
    .sohbet-index-link { min-height:44px; display:inline-flex; align-items:center; }
    .site-footer { font-size:13px; line-height:1.8; }
    .site-footer a { display:inline-block; padding:8px 4px; }
}
@media (max-width:400px) {
    .stats-grid { grid-template-columns:1fr !important; }
    .content-section-header { flex-wrap:wrap; }
    .lb-onceki, .lb-sonraki { position:absolute; bottom:4px; z-index:1; }
    .lb-onceki { left:0; } .lb-sonraki { right:0; }
    .lb-icerik img { max-width:92vw; }
}
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; }
}
