html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

body {
    margin: 0;
    background: #f7f7f7;
    color: #222;
}

.gm-header {
    background: #003b7a;
    color: white;
    padding: 16px 24px;
}

.gm-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gm-logo-area {
    margin-bottom: 12px;
}

.gm-logo-text {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.gm-top-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .gm-top-nav-list li a {
        color: white;
        text-decoration: none;
        font-weight: 600;
    }

        .gm-top-nav-list li a:hover {
            text-decoration: underline;
        }

/* CTA slider */
#ctaCarousel .carousel-item {
    padding: 0.25rem 0;
}

#ctaCarousel .carousel-control-prev,
#ctaCarousel .carousel-control-next {
    width: 48px;
}

#ctaCarousel .carousel-control-prev-icon,
#ctaCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, .35);
    border-radius: 50%;
    background-size: 60% 60%;
    width: 42px;
    height: 42px;
}

#ctaCarousel .carousel-indicators {
    position: static;
    margin-top: 1rem;
    justify-content: center;
}

    #ctaCarousel .carousel-indicators [data-bs-target] {
        background-color: #b71c1c;
    }

/* CTA slider sabit yükseklik */
#ctaCarousel .cta-card {
    height: auto;
    min-height: 360px;
    /* cta.css'teki 0 30px 70px rgba(0,0,0,.25) golgesi kartin altinda genis bir
       koyu hale birakiyor, yuvarlak koselerin disinda birikip tasma gibi
       gorunuyordu. Slider icin daha hafif bir golge. */
    box-shadow: 0 10px 30px rgba(17, 24, 39, .10);
    /* Icerik kendi padding'ini veriyor; cta.css'teki 56/60px padding
       ustune binince icerik kartin disina tasiyor ve kirpiliyordu. */
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

#ctaCarousel .carousel-item {
    height: auto;
    min-height: 360px;
}

#ctaCarousel .cta-card-bg {
    background-color: transparent !important;
}

#ctaCarousel .cta-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .45) 48%, rgba(0, 0, 0, .18) 100% );
}

#ctaCarousel .cta-content {
    height: auto;
    min-height: 360px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 56px;
}

/* Flex kolonu cocuklari sikistirmasin: basligi ezince kendi
   overflow:hidden'i ikinci satiri kesiyordu. */
#ctaCarousel .cta-content > * {
    flex-shrink: 0;
}

#ctaCarousel .cta-eyebrow {
    max-width: 520px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: normal;
    line-height: 1.35;
}

#ctaCarousel .cta-title {
    min-height: auto;
    max-width: 680px;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#ctaCarousel .cta-text {
    max-width: 620px;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#ctaCarousel .cta-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    #ctaCarousel .cta-card,
    #ctaCarousel .carousel-item,
    #ctaCarousel .cta-content {
        height: auto;
        min-height: 320px;
    }

    #ctaCarousel .cta-content {
        padding: 30px 24px;
    }

    #ctaCarousel .cta-title {
        -webkit-line-clamp: 3;
    }

    #ctaCarousel .cta-text {
        -webkit-line-clamp: 3;
    }
}

/* =========================================================
   FEDERASYON INDEX - MEGA CARD GÖRÜNÜMÜ
   Mevcut index card yapısını korur.
========================================================= */

.federasyon-page {
    position: relative;
}

.federasyon-select {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, .10);
    font-weight: 600;
    color: #374151;
}

.federasyon-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.federasyon-mega-card {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
    border-radius: 20px;
    min-height: 155px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    transition: .22s ease;
    appearance: none;
    -webkit-appearance: none;
}

    .federasyon-mega-card:hover {
        transform: translateY(-3px);
        border-color: rgba(220, 53, 69, .22);
        box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
    }

    .federasyon-mega-card:focus {
        outline: none;
        border-color: rgba(220, 53, 69, .35);
        box-shadow: 0 0 0 4px rgba(220, 53, 69, .08);
    }

.federasyon-mega-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid rgba(17, 24, 39, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .federasyon-mega-logo img {
        width: auto;
        height: auto;
        max-width: 54px;
        max-height: 54px;
        object-fit: contain;
        display: block;
    }

.federasyon-mega-title {
    display: block;
    min-height: 42px;
    font-size: .96rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
}

.federasyon-card-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: .82rem;
    font-weight: 800;
    color: var(--gsb-red, #dc3545);
}

@media (max-width: 1199.98px) {
    .federasyon-mega-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .federasyon-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .federasyon-mega-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FEDERASYON MODAL - SIMPLE MODAL
   Sadece modalı etkiler, index card görünümüne dokunmaz.
========================================================= */

.federasyon-modal .modal-dialog {
    max-width: 520px;
}

.fed-simple-modal {
    position: relative;
    border: 0;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
    animation: fedModalFadeDown .35s ease both;
}

@keyframes fedModalFadeDown {
    from {
        opacity: 0;
        transform: translateY(-22px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fed-simple-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background-color: #f8f9fa;
    opacity: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
}

.fed-simple-header {
    justify-content: center;
    border-bottom: none;
    padding: 34px 24px 8px;
}

.fed-simple-logo {
    width: 106px;
    height: 106px;
    border-radius: 26px;
    background: #f9fafb;
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fedLogoBounce .45s ease both;
}

@keyframes fedLogoBounce {
    0% {
        opacity: 0;
        transform: scale(.78);
    }

    70% {
        opacity: 1;
        transform: scale(1.06);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fed-simple-logo img {
    width: 82px;
    height: 82px;
    max-width: 82px;
    max-height: 82px;
    object-fit: contain;
    display: block;
}

.fed-simple-body {
    padding: 8px 34px 14px;
}

.fed-simple-title {
    text-align: center;
    margin: 10px 0 0;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 900;
    color: #111827;
    animation: fedContentFade .45s ease both;
    animation-delay: .08s;
}

@keyframes fedContentFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fed-simple-hr {
    margin: 22px 0 18px;
    border: 0;
    border-top: 1px solid rgba(17, 24, 39, .12);
}

.fed-simple-contact {
    text-align: center;
    margin-top: 15px;
    display: grid;
    gap: 8px;
}

    .fed-simple-contact p {
        margin: 0;
        color: #374151;
        font-weight: 700;
        line-height: 1.55;
    }

    .fed-simple-contact i {
        color: var(--gsb-red, #dc3545);
        margin-right: 7px;
    }

    .fed-simple-contact a {
        color: #374151;
        text-decoration: none;
        word-break: break-word;
    }

        .fed-simple-contact a:hover {
            color: var(--gsb-red, #dc3545);
        }

.fed-simple-footer {
    justify-content: center;
    border-top: none;
    padding: 12px 24px 30px;
    gap: 10px;
}

.fed-simple-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-weight: 850;
    text-decoration: none;
    transition: .2s ease;
}

    .fed-simple-action i {
        color: var(--gsb-red, #dc3545);
    }

    .fed-simple-action:hover {
        color: var(--gsb-red, #dc3545);
    }

.fed-simple-separator {
    margin: 0 4px;
    color: #9ca3af;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .federasyon-modal .modal-dialog {
        margin: 14px;
    }

    .fed-simple-header {
        padding: 34px 20px 8px;
    }

    .fed-simple-body {
        padding: 8px 22px 14px;
    }

    .fed-simple-title {
        font-size: 1.18rem;
    }

    .fed-simple-footer {
        flex-direction: column;
        padding: 10px 22px 28px;
    }

    .fed-simple-separator {
        display: none;
    }

    .fed-simple-action {
        width: 100%;
        justify-content: center;
        border: 1px solid rgba(220, 53, 69, .18);
        border-radius: 999px;
        padding: 10px 14px;
    }
}

/* =========================================================
   FEDERASYON İÇERİK LİSTE
========================================================= */

.federasyon-desc {
    color: #374151;
    line-height: 1.75;
}

.federasyon-content-item.disabled {
    opacity: .65;
    pointer-events: none;
}




/* İçerikte açıklama + dosya linki olan bloklar */
.sayfa-html-content .content-doc-item-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 22px;
    padding: 24px;
    margin: 0 0 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.sayfa-html-content .content-doc-item-body {
    display: grid;
    gap: 12px;
}

.sayfa-html-content .content-doc-item-title {
    font-size: 1.22rem;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    margin: 0;
}

.sayfa-html-content .content-doc-item-desc {
    color: #374151;
    line-height: 1.75;
    margin: 0;
}

.sayfa-html-content .content-doc-item-files {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.sayfa-html-content .content-doc-file-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.45;
    transition: .2s ease;
}

    .sayfa-html-content .content-doc-file-link:hover {
        background: rgba(220, 53, 69, .08);
        color: var(--gsb-red, #dc3545);
    }

    .sayfa-html-content .content-doc-file-link span {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

        .sayfa-html-content .content-doc-file-link span i {
            color: var(--gsb-red, #dc3545);
            font-size: 1.1rem;
            flex-shrink: 0;
        }

    .sayfa-html-content .content-doc-file-link > i {
        flex-shrink: 0;
        font-size: 1rem;
    }

/* İçerik HTML içindeki otomatik doküman listesi */
.sayfa-html-content .proje-docs-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 22px;
    padding: 24px;
    margin: 0 0 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

    .sayfa-html-content .proje-docs-card.mt-5 {
        margin-top: 24px !important;
    }

.sayfa-html-content .proje-docs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    margin: 0 0 16px;
}

    .sayfa-html-content .proje-docs-title i {
        color: var(--gsb-red, #dc3545);
    }

.sayfa-html-content .proje-docs-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

    .sayfa-html-content .proje-docs-list li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .sayfa-html-content .proje-docs-list li a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 13px 15px;
            border-radius: 16px;
            background: #f9fafb;
            color: #1f2937;
            text-decoration: none !important;
            font-weight: 800;
            line-height: 1.45;
            transition: .2s ease;
            word-break: break-word;
        }

            .sayfa-html-content .proje-docs-list li a:hover {
                background: rgba(220, 53, 69, .08);
                color: var(--gsb-red, #dc3545);
            }

            .sayfa-html-content .proje-docs-list li a span {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                min-width: 0;
            }

                .sayfa-html-content .proje-docs-list li a span i {
                    color: var(--gsb-red, #dc3545);
                    font-size: 1.12rem;
                    flex-shrink: 0;
                }

            .sayfa-html-content .proje-docs-list li a > i {
                flex-shrink: 0;
                color: #9ca3af;
            }

            .sayfa-html-content .proje-docs-list li a:hover > i {
                color: var(--gsb-red, #dc3545);
            }

@media (max-width: 575.98px) {
    .sayfa-html-content .proje-docs-card {
        padding: 20px;
        border-radius: 18px;
    }

    .sayfa-html-content .proje-docs-list li a {
        padding: 12px 14px;
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .sayfa-html-content .content-doc-item-card {
        padding: 20px;
        border-radius: 18px;
    }

    .sayfa-html-content .content-doc-file-link {
        padding: 12px 14px;
        border-radius: 14px;
    }
}


/* Eski içerikteki başlıklı sayfa linkleri: Olimpiyatlar, Paralimpik Oyunlar vb. */
.sayfa-html-content .legacy-link-section-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 22px;
    padding: 24px;
    margin: 0 0 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.sayfa-html-content .legacy-link-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    margin: 0 0 16px;
}

    .sayfa-html-content .legacy-link-section-title i {
        color: var(--gsb-red, #dc3545);
    }

.sayfa-html-content .legacy-link-section-list {
    display: grid;
    gap: 10px;
}

.sayfa-html-content .legacy-page-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    background: #f9fafb;
    color: #1f2937;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.45;
    transition: .2s ease;
}

    .sayfa-html-content .legacy-page-link:hover {
        background: rgba(220, 53, 69, .08);
        color: var(--gsb-red, #dc3545);
    }

    .sayfa-html-content .legacy-page-link span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

        .sayfa-html-content .legacy-page-link span i {
            color: var(--gsb-red, #dc3545);
            font-size: .9rem;
            flex-shrink: 0;
        }

    .sayfa-html-content .legacy-page-link > i {
        flex-shrink: 0;
        color: #9ca3af;
    }

    .sayfa-html-content .legacy-page-link:hover > i {
        color: var(--gsb-red, #dc3545);
    }

@media (max-width: 575.98px) {
    .sayfa-html-content .legacy-link-section-card {
        padding: 20px;
        border-radius: 18px;
    }

    .sayfa-html-content .legacy-page-link {
        padding: 12px 14px;
        border-radius: 14px;
    }
}





/* =========================================================
   FEDERASYON DUYURU / MEVZUAT / İHALE ACCORDION
========================================================= */

.federasyon-section-heading {
    margin: 0 0 18px;
}

    .federasyon-section-heading h2 {
        font-size: 1.55rem;
        line-height: 1.3;
        font-weight: 900;
        color: #111827;
        margin: 0;
    }

.federasyon-section-heading-passive {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid rgba(17, 24, 39, .10);
}

.federasyon-year-accordion {
    display: grid;
    gap: 14px;
}

.federasyon-year-accordion-item {
    border: 1px solid rgba(17, 24, 39, .08) !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.federasyon-year-accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
}

    .federasyon-year-accordion-button::after {
        margin-left: 14px;
    }

.federasyon-year-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #111827;
}

.federasyon-year-count {
    margin-left: auto;
    font-size: .84rem;
    font-weight: 800;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 12px;
}

.federasyon-year-accordion-button:not(.collapsed) {
    border-bottom: 1px solid rgba(17, 24, 39, .08);
}

    .federasyon-year-accordion-button:not(.collapsed) .federasyon-year-title {
        color: var(--gsb-red, #dc3545);
    }

.federasyon-year-accordion-body {
    padding: 18px;
    background: #fff;
}

.federasyon-doc-list {
    display: grid;
    gap: 10px;
}

.federasyon-doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid rgba(17, 24, 39, .05);
    color: #1f2937;
    text-decoration: none;
    transition: .2s ease;
}

    .federasyon-doc-link:hover {
        background: rgba(220, 53, 69, .08);
        color: var(--gsb-red, #dc3545);
    }

    .federasyon-doc-link.disabled {
        opacity: .65;
        pointer-events: none;
    }

.federasyon-doc-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

    .federasyon-doc-main > i {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        background: rgba(220, 53, 69, .08);
        color: var(--gsb-red, #dc3545);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

.federasyon-doc-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

    .federasyon-doc-text strong {
        color: #111827;
        font-weight: 850;
        line-height: 1.4;
    }

.federasyon-doc-link:hover .federasyon-doc-text strong {
    color: var(--gsb-red, #dc3545);
}

.federasyon-doc-text small {
    color: #4b5563;
    line-height: 1.55;
}

.federasyon-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .federasyon-doc-meta em {
        font-style: normal;
        color: #6b7280;
        font-size: .82rem;
        font-weight: 700;
    }

.federasyon-doc-open-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.federasyon-doc-link:hover .federasyon-doc-open-icon {
    color: var(--gsb-red, #dc3545);
}

@media (max-width: 575.98px) {
    .federasyon-year-accordion-button {
        padding: 16px;
    }

    .federasyon-year-title {
        font-size: 1.1rem;
    }

    .federasyon-year-count {
        font-size: .76rem;
        padding: 5px 10px;
    }

    .federasyon-year-accordion-body {
        padding: 14px;
    }

    .federasyon-doc-link {
        padding: 13px;
        align-items: flex-start;
    }

    .federasyon-doc-main > i {
        width: 34px;
        height: 34px;
    }
}



/* =========================================================
   FOTOĞRAF GALERİSİ - NET / ÇAKIŞMASIZ
========================================================= */

/* INDEX - 4 KOLON KÜÇÜK KART */
.fg-list-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100%;
}

.fg-list-card {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    transition: .22s ease;
}

    .fg-list-card:hover {
        transform: translateY(-3px);
        border-color: rgba(220, 53, 69, .20);
        box-shadow: 0 16px 34px rgba(15, 23, 42, .11);
    }

.fg-list-img {
    position: relative;
    display: block;
    height: 145px;
    background: #f3f4f6;
    overflow: hidden;
}

    .fg-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: .25s ease;
    }

.fg-list-card:hover .fg-list-img img {
    transform: scale(1.06);
    filter: brightness(.82);
}

.fg-list-count {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(220, 53, 69, .96);
    color: #fff;
    font-size: .76rem;
    font-weight: 850;
}

.fg-list-body {
    display: grid;
    gap: 8px;
    padding: 13px 14px 14px;
}

    .fg-list-body strong {
        color: #111827;
        font-size: .98rem;
        line-height: 1.35;
        font-weight: 900;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.fg-list-card:hover .fg-list-body strong {
    color: var(--gsb-red, #dc3545);
}

.fg-list-body em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-style: normal;
    font-size: .78rem;
    font-weight: 750;
}

/* DETAIL - KÜÇÜK FOTO GRID */
.fg-detail-wrapper {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.fg-detail-head {
    margin-bottom: 18px;
}

    .fg-detail-head h2 {
        margin: 0;
        color: #111827;
        font-size: 1.35rem;
        line-height: 1.3;
        font-weight: 900;
    }

    .fg-detail-head p {
        margin: 8px 0 0;
        color: #6b7280;
        line-height: 1.65;
    }

.fg-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100%;
}

.fg-photo-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 3;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 15px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

    .fg-photo-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        transition: .25s ease;
    }

    .fg-photo-card:hover img {
        transform: scale(1.07);
        filter: brightness(.72);
    }

.fg-photo-plus {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, .18);
    opacity: 0;
    transition: .22s ease;
}

    .fg-photo-plus i {
        width: 46px;
        height: 46px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .20);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        font-weight: 900;
        backdrop-filter: blur(4px);
    }

.fg-photo-card:hover .fg-photo-plus {
    opacity: 1;
}

/* LIGHTBOX */
body.fg-lightbox-open {
    overflow: hidden;
}

.fg-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2050 !important;
    background: rgba(3, 7, 18, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

    .fg-lightbox.is-open {
        display: flex !important;
    }

.fg-lightbox-content {
    max-width: min(1040px, 92vw);
    max-height: 88vh;
    text-align: center;
}

    .fg-lightbox-content img {
        max-width: 100%;
        max-height: 78vh;
        object-fit: contain;
        border-radius: 16px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    }

    .fg-lightbox-content p {
        margin: 12px 0 0;
        color: #fff;
        font-weight: 750;
    }

.fg-lightbox-close,
.fg-lightbox-nav {
    position: fixed;
    border: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

    .fg-lightbox-close:hover,
    .fg-lightbox-nav:hover {
        background: rgba(255, 255, 255, .25);
    }

.fg-lightbox-close {
    top: 22px;
    right: 22px;
}

.fg-lightbox-prev {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.fg-lightbox-next {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1199.98px) {
    .fg-list-grid,
    .fg-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .fg-list-grid,
    .fg-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .fg-list-img {
        height: 135px;
    }
}

@media (max-width: 480px) {
    .fg-list-grid,
    .fg-photo-grid {
        grid-template-columns: 1fr !important;
    }

    .fg-detail-wrapper {
        padding: 16px;
        border-radius: 18px;
    }

    .fg-lightbox {
        padding: 14px;
    }

    .fg-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .fg-lightbox-prev {
        left: 10px;
    }

    .fg-lightbox-next {
        right: 10px;
    }
}

/*Yurt Müdürlükleri*/

/* =========================================================
   YURT MÜDÜRLÜKLERİ - HARİTA + LİSTE + DETAY + GALERİ
========================================================= */

/* Harita alanı: sağ panel yok, tam genişlik */
#yurtHarita .harita-layout,
.yurt-harita-layout {
    display: block !important;
    grid-template-columns: none !important;
}

#yurtHarita .harita-map-container,
.yurt-harita-map-container {
    width: 100%;
    max-width: 100%;
}

#yurtHarita .harita-map-svg-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG üzerindeki yurt sayısı */
.kyk-map-count-label {
    pointer-events: none;
    font-size: 9px;
    font-weight: 900;
    fill: #111827;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* Liste alanı */
.yurt-liste-alani {
    margin-top: 28px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    min-height: 160px;
}

.yurt-liste-placeholder {
    min-height: 180px;
    border: 1.5px dashed var(--gsb-border, #e5e7eb);
    border-radius: 18px;
    background: var(--gsb-gray, #f9fafb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
    gap: 8px;
    padding: 32px;
}

    .yurt-liste-placeholder i {
        font-size: 2.4rem;
        opacity: .25;
    }

    .yurt-liste-placeholder p {
        margin: 0;
        color: #6b7280;
        font-weight: 800;
    }

    .yurt-liste-placeholder span {
        font-size: .82rem;
        max-width: 320px;
    }

/* İl başlığı */
.yurt-liste-baslik {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

    .yurt-liste-baslik h3 {
        margin: 0;
        color: var(--gsb-dark, #111827);
        font-size: 1.25rem;
        font-weight: 900;
        letter-spacing: -.4px;
    }

.yurt-liste-count {
    background: var(--gsb-red, #dc3545);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Liste kartları */
.yurt-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.yurt-card {
    background: #fff;
    border: 1.5px solid var(--gsb-border, #e5e7eb);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

    .yurt-card:hover {
        border-color: var(--gsb-red, #dc3545);
        box-shadow: 0 8px 24px rgba(227, 0, 27, .09);
        transform: translateY(-2px);
    }

.yurt-card-img-wrap {
    position: relative;
    width: 100%;
    height: 170px;
    background: #f3f4f6;
    overflow: hidden;
}

.yurt-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yurt-card-img-placeholder {
    height: 170px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2.2rem;
}

.yurt-card-body {
    padding: 15px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.yurt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.yurt-card-title {
    font-size: .96rem;
    font-weight: 900;
    color: var(--gsb-dark, #111827);
    line-height: 1.35;
}

.yurt-card-type {
    font-size: .68rem;
    font-weight: 850;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

    .yurt-card-type.erkek {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .yurt-card-type.kiz,
    .yurt-card-type.kız {
        background: #ec4899;
        color: #fff;
    }

    .yurt-card-type.karisik {
        background: #d1fae5;
        color: #065f46;
    }

.yurt-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.yurt-card-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.45;
}

    .yurt-card-meta-row i {
        color: var(--gsb-red, #dc3545);
        font-size: .78rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

.yurt-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--gsb-border, #e5e7eb);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.yurt-card-detail-btn {
    border: 0;
    background: var(--gsb-red, #dc3545);
    color: #fff;
    font-size: .75rem;
    font-weight: 850;
    border-radius: 9px;
    padding: 7px 12px;
    transition: .15s;
}

    .yurt-card-detail-btn:hover {
        background: #b91c1c;
    }

/* Detay modal */
.yurt-detay-modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 0;
}

    .yurt-detay-modal-content .modal-header {
        background: var(--gsb-dark, #111827);
        color: #fff;
    }

    .yurt-detay-modal-content .btn-close {
        filter: invert(1);
    }

/* Detay içindeki foto galeri */
.yurt-inline-galeri {
    margin-top: 24px;
}

    .yurt-inline-galeri .proje-galeri-head {
        margin-bottom: 18px;
    }

    .yurt-inline-galeri .proje-galeri-title {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 900;
        color: var(--gsb-dark, #111827);
        letter-spacing: -0.4px;
    }

    .yurt-inline-galeri .proje-galeri-sub {
        margin: 5px 0 0;
        color: #6b7280;
        font-size: .86rem;
    }

.yurt-galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 12px;
}

    .yurt-galeri-grid .gallery-item {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        cursor: pointer;
        background: #f3f4f6;
        border: 1px solid var(--gsb-border, #e5e7eb);
    }

    .yurt-galeri-grid .gallery-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .yurt-galeri-grid .gallery-img {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: transform .25s ease;
    }

    .yurt-galeri-grid .gallery-overlay {
        position: absolute;
        inset: 0;
        background: rgba(17, 24, 39, .32);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.8rem;
        opacity: 0;
        transition: opacity .2s ease;
    }

    .yurt-galeri-grid .gallery-item:hover .gallery-img {
        transform: scale(1.06);
    }

    .yurt-galeri-grid .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

.yurt-photo-thumb-btn {
    cursor: pointer;
}

/* Foto viewer modal */
#yurtFotoViewerModal {
    z-index: 1070;
}

.yurt-foto-viewer-dialog {
    max-width: min(1180px, calc(100vw - 32px));
}

.yurt-foto-viewer-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #111827;
}

#yurtFotoViewerModal .modal-body {
    position: relative !important;
    overflow: hidden !important;
}

/* Sabit foto sahnesi */
.yurt-foto-stage {
    width: 100%;
    height: 72vh;
    min-height: 520px;
    max-height: 760px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#yurtFotoViewerImage.yurt-viewer-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
}

/* Foto sayaç */
.yurt-photo-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 99999;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .8rem;
    font-weight: 800;
}

/* Sağ-sol oklar */
#yurtFotoViewerModal .yurt-photo-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 58px !important;
    height: 58px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, .70) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

    #yurtFotoViewerModal .yurt-photo-nav span {
        display: block;
        color: #fff;
        font-size: 54px;
        font-weight: 300;
        line-height: 42px;
        margin-top: -4px;
    }

#yurtFotoViewerModal .yurt-photo-nav-prev {
    left: 18px !important;
}

#yurtFotoViewerModal .yurt-photo-nav-next {
    right: 18px !important;
}

#yurtFotoViewerModal .yurt-photo-nav:hover {
    background: rgba(227, 0, 27, .92) !important;
}

#yurtFotoViewerModal .yurt-photo-nav.d-none {
    display: flex !important;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .yurt-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .yurt-galeri-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }

    .yurt-foto-stage {
        height: 64vh;
        min-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .yurt-card-grid {
        grid-template-columns: 1fr;
    }

    .yurt-card-img-wrap,
    .yurt-card-img-placeholder {
        height: 150px;
    }
}

@media (max-width: 575.98px) {
    .yurt-galeri-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 190px;
    }

        .yurt-galeri-grid .gallery-item-large {
            grid-column: span 1;
            grid-row: span 1;
        }

    .yurt-foto-stage {
        height: 58vh;
        min-height: 320px;
    }

    #yurtFotoViewerModal .yurt-photo-nav {
        width: 48px !important;
        height: 48px !important;
    }

        #yurtFotoViewerModal .yurt-photo-nav span {
            font-size: 44px;
            line-height: 34px;
        }

    #yurtFotoViewerModal .yurt-photo-nav-prev {
        left: 10px !important;
    }

    #yurtFotoViewerModal .yurt-photo-nav-next {
        right: 10px !important;
    }
}

.sayfa-html-content .legacy-mevzuat-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 20px;
    padding: 18px 20px;
    margin: 0 0 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

    .sayfa-html-content .legacy-mevzuat-card:hover {
        border-color: rgba(220, 53, 69, .18);
        box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
    }

.sayfa-html-content .legacy-mevzuat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    color: #111827;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 900;
    word-break: break-word;
}

    .sayfa-html-content .legacy-mevzuat-title:hover {
        color: var(--gsb-red, #dc3545);
    }

.sayfa-html-content .legacy-mevzuat-title-main {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

    .sayfa-html-content .legacy-mevzuat-title-main i {
        color: var(--gsb-red, #dc3545);
        font-size: 1.05rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

.sayfa-html-content .legacy-mevzuat-title > i {
    color: #9ca3af;
    flex-shrink: 0;
}

.sayfa-html-content .legacy-mevzuat-title:hover > i {
    color: var(--gsb-red, #dc3545);
}

.sayfa-html-content .legacy-mevzuat-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.sayfa-html-content .legacy-mevzuat-meta-row {
    color: #374151;
    font-size: .86rem;
    line-height: 1.55;
}

    .sayfa-html-content .legacy-mevzuat-meta-row.full {
        grid-column: 1 / -1;
    }

    .sayfa-html-content .legacy-mevzuat-meta-row strong {
        color: #111827;
        font-weight: 900;
    }

@media (max-width: 575.98px) {
    .sayfa-html-content .legacy-mevzuat-card {
        padding: 16px;
        border-radius: 16px;
    }

    .sayfa-html-content .legacy-mevzuat-meta {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SAYFA İÇERİĞİ - ACCORDION
   ========================================================= */

#sayfaHtmlIcerik p:has(> .accordion) {
    margin: 0 0 12px 0;
}

#sayfaHtmlIcerik p:has(> .accordion.active) {
    margin-bottom: 0;
}

#sayfaHtmlIcerik .accordion {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 16px;
    background: #fff;
    color: #111827;
    padding: 16px 18px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    /* Hover */
    #sayfaHtmlIcerik .accordion:hover {
        background: rgba(220, 53, 69, .04);
        color: var(--gsb-red, #dc3545);
        border-color: rgba(220, 53, 69, .18);
    }

    /* Sağ ok */
    #sayfaHtmlIcerik .accordion::after {
        content: "\F282";
        font-family: "bootstrap-icons";
        font-size: 15px;
        color: #9ca3af;
        flex-shrink: 0;
        margin-left: auto;
        transition: transform .2s ease, color .2s ease;
    }

    /* Hover ok */
    #sayfaHtmlIcerik .accordion:hover::after {
        color: var(--gsb-red, #dc3545);
    }

    /* Açık accordion */
    #sayfaHtmlIcerik .accordion.active {
        background: rgba(220, 53, 69, .06);
        color: var(--gsb-red, #dc3545);
        border-color: rgba(220, 53, 69, .18);
        border-radius: 16px 16px 0 0;
        box-shadow: none;
    }

        #sayfaHtmlIcerik .accordion.active::after {
            color: var(--gsb-red, #dc3545);
            transform: rotate(180deg);
        }


/* =========================================================
   PANEL
   ========================================================= */

#sayfaHtmlIcerik .panel {
    display: none;
    background: #fff;
    border: 1px solid rgba(220, 53, 69, .18);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 12px 18px 14px;
    margin: 0 0 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

    #sayfaHtmlIcerik .panel.show {
        display: block;
    }


    /* =========================================================
   PANEL DOSYA LİSTESİ
   ========================================================= */

    #sayfaHtmlIcerik .panel ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        gap: 8px;
    }

    #sayfaHtmlIcerik .panel li {
        padding: 0;
        margin: 0;
        border: 0;
    }

        #sayfaHtmlIcerik .panel li a {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 12px 14px;
            border-radius: 14px;
            background: #f9fafb;
            color: #1f2937;
            text-decoration: none !important;
            font-size: .95rem;
            font-weight: 800;
            line-height: 1.45;
            transition: background-color .2s ease, color .2s ease, transform .2s ease;
        }

            /* Link hover - diğer sayfalarla aynı kırmızı */
            #sayfaHtmlIcerik .panel li a:hover {
                background: rgba(220, 53, 69, .08);
                color: var(--gsb-red, #dc3545);
            }


            /* Dosya ikonu */
            #sayfaHtmlIcerik .panel li a::before {
                content: "\F63E";
                font-family: "bootstrap-icons";
                font-size: 1.1rem;
                color: var(--gsb-red, #dc3545);
                flex: 0 0 auto;
            }


            /* Sağdaki dış bağlantı ikonu */
            #sayfaHtmlIcerik .panel li a::after {
                content: "\F1C5";
                font-family: "bootstrap-icons";
                margin-left: auto;
                font-size: .95rem;
                color: #9ca3af;
                flex: 0 0 auto;
                transition: color .2s ease;
            }

            #sayfaHtmlIcerik .panel li a:hover::after {
                color: var(--gsb-red, #dc3545);
            }


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 767.98px) {

    #sayfaHtmlIcerik .accordion {
        padding: 14px 15px;
        border-radius: 14px;
        font-size: 1rem;
    }

        #sayfaHtmlIcerik .accordion.active {
            border-radius: 14px 14px 0 0;
        }

    #sayfaHtmlIcerik .panel {
        padding: 10px 14px 12px;
        border-radius: 0 0 14px 14px;
        margin-bottom: 12px;
    }

        #sayfaHtmlIcerik .panel li a {
            padding: 11px 12px;
            border-radius: 12px;
            font-size: .9rem;
        }
}
/* =========================================================
   TEŞKİLAT ŞEMASI
   Scroll yok - üst birimler yatay, alt birimler dikey
   ========================================================= */

#sayfaHtmlIcerik .org-chart {
    width: 100%;
    max-width: 100%;
    padding: 24px 4px 36px;
    overflow: visible;
}


    /* =========================================================
   RESET
   ========================================================= */

    #sayfaHtmlIcerik .org-chart ul,
    #sayfaHtmlIcerik .org-chart li {
        list-style: none !important;
        margin: 0 !important;
        padding-left: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    #sayfaHtmlIcerik .org-chart a::before,
    #sayfaHtmlIcerik .org-chart a::after {
        content: none !important;
        display: none !important;
    }


    /* =========================================================
   ROOT
   ========================================================= */

    #sayfaHtmlIcerik .org-chart > .org-tree {
        display: block !important;
        width: 100%;
        padding: 0 !important;
    }

    #sayfaHtmlIcerik .org-chart .org-root {
        position: relative;
        width: 100%;
        padding: 0 !important;
        text-align: center;
    }


    /* Eski tree çizgileri kalmasın */
    #sayfaHtmlIcerik .org-chart li::before,
    #sayfaHtmlIcerik .org-chart li::after {
        content: none !important;
        display: none !important;
    }


    /* =========================================================
   GENEL MÜDÜR
   ========================================================= */

    #sayfaHtmlIcerik .org-chart .org-card {
        position: relative;
        z-index: 2;
        background: #fff;
        border: 1px solid rgba(17, 24, 39, .10);
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .055);
        overflow: hidden;
        transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }

        #sayfaHtmlIcerik .org-chart .org-card > a {
            display: flex !important;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 11px 12px !important;
            color: #1f2937 !important;
            text-decoration: none !important;
            font-size: .82rem;
            font-weight: 800;
            line-height: 1.35;
            white-space: normal;
            overflow-wrap: break-word;
        }


    /* Genel Müdür */
    #sayfaHtmlIcerik .org-chart .org-card-root {
        width: 205px;
        margin: 0 auto;
        background: var(--gsb-red, #dc3545);
        border-color: var(--gsb-red, #dc3545);
        box-shadow: 0 10px 26px rgba(220, 53, 69, .17);
    }

        #sayfaHtmlIcerik .org-chart .org-card-root > a {
            min-height: 66px;
            color: #fff !important;
            font-size: .98rem;
            font-weight: 900;
            flex-direction: column;
            gap: 3px;
        }


        /* Genel Müdürden aşağı inen ana çizgi */
        #sayfaHtmlIcerik .org-chart .org-card-root::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 100%;
            width: 2px;
            height: 38px;
            background: #cfd5dd;
            transform: translateX(-50%);
        }


/* =========================================================
   DAİRE BAŞKANLIKLARI
   ========================================================= */

#sayfaHtmlIcerik .org-root > ul {
    position: relative;
    display: grid !important;
    /*
       5 birim varsa beşi de yan yana.
       Daha azsa alanı eşit paylaşır.
    */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    padding: 38px 0 0 !important;
    margin-top: 0 !important;
}


    /* Daire başkanlıklarını bağlayan yatay hat */
    #sayfaHtmlIcerik .org-root > ul::before {
        content: "";
        position: absolute;
        top: 37px;
        left: 7%;
        right: 7%;
        height: 2px;
        background: #cfd5dd;
    }


    /* Her üst birim */
    #sayfaHtmlIcerik .org-root > ul > li {
        position: relative;
        min-width: 0;
        padding-top: 30px !important;
    }


        /* Yatay hattan karta inen dikey çizgi */
        #sayfaHtmlIcerik .org-root > ul > li::before {
            content: "" !important;
            display: block !important;
            position: absolute;
            top: 0;
            left: 50%;
            width: 2px;
            height: 30px;
            background: #cfd5dd;
            transform: translateX(-50%);
        }


/* Başkanlık kartı */
#sayfaHtmlIcerik .org-chart .org-card-manager {
    width: 100%;
    max-width: 175px;
    margin: 0 auto;
    border-top: 4px solid var(--gsb-red, #dc3545);
}

    #sayfaHtmlIcerik .org-chart .org-card-manager > a {
        min-height: 64px;
        padding: 10px 10px !important;
        font-size: .78rem;
        line-height: 1.32;
    }


/* =========================================================
   ŞUBE LİSTELERİ
   Başkanlığın altında ALT ALTA
   ========================================================= */

#sayfaHtmlIcerik .org-root > ul > li > ul {
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 11px;
    width: 100%;
    margin-top: 20px !important;
    padding: 4px 0 0 22px !important;
}


    /*
   Başkanlıktan aşağı devam eden dikey omurga
*/
    #sayfaHtmlIcerik .org-root > ul > li > ul::before {
        content: "";
        position: absolute;
        top: -20px;
        bottom: 28px;
        left: 14px;
        width: 2px;
        background: #d5dae1;
    }


    /* Şube */
    #sayfaHtmlIcerik .org-root > ul > li > ul > li {
        position: relative;
        width: 100%;
        padding: 0 !important;
    }


        /* Dikey omurgadan şube kartına giden yatay çizgi */
        #sayfaHtmlIcerik .org-root > ul > li > ul > li::before {
            content: "" !important;
            display: block !important;
            position: absolute;
            left: -8px;
            top: 50%;
            width: 18px;
            height: 2px;
            background: #d5dae1;
            transform: translateY(-50%);
        }


/* Şube kartları */
#sayfaHtmlIcerik .org-chart .org-card-unit {
    width: calc(100% - 6px);
    max-width: 165px;
    margin-left: auto;
    margin-right: auto;
    background: #f9fafb;
}

    #sayfaHtmlIcerik .org-chart .org-card-unit > a {
        min-height: 52px;
        padding: 9px 10px !important;
        font-size: .75rem;
        font-weight: 750;
        line-height: 1.3;
    }


/* =========================================================
   4. SEVİYE VE DAHA ALT SEVİYELER
   Örn: Şube -> Büro
   ========================================================= */

#sayfaHtmlIcerik .org-chart
.org-root > ul > li > ul > li > ul {
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 0 18px !important;
    margin: 0 !important;
}


    #sayfaHtmlIcerik .org-chart
    .org-root > ul > li > ul > li > ul::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 25px;
        left: 8px;
        width: 1px;
        background: #d5dae1;
    }


    #sayfaHtmlIcerik .org-chart
    .org-root > ul > li > ul > li > ul > li {
        position: relative;
        padding: 0 !important;
    }


        #sayfaHtmlIcerik .org-chart
        .org-root > ul > li > ul > li > ul > li::before {
            content: "" !important;
            display: block !important;
            position: absolute;
            top: 50%;
            left: -10px;
            width: 16px;
            height: 1px;
            background: #d5dae1;
        }


/* =========================================================
   HOVER
   ========================================================= */

#sayfaHtmlIcerik .org-chart .org-card:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 53, 69, .25);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

    #sayfaHtmlIcerik .org-chart .org-card:hover > a {
        color: var(--gsb-red, #dc3545) !important;
    }

#sayfaHtmlIcerik .org-chart .org-card-root:hover > a {
    color: #fff !important;
}


/* =========================================================
   4 ÜST BİRİM
   ========================================================= */

#sayfaHtmlIcerik .org-root > ul:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* 3 üst birim */
#sayfaHtmlIcerik .org-root > ul:has(> li:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 2 üst birim */
#sayfaHtmlIcerik .org-root > ul:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* 1 üst birim */
#sayfaHtmlIcerik .org-root > ul:has(> li:first-child:last-child) {
    grid-template-columns: 1fr;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    /*
       5 birimi tek satıra sıkıştırmak yerine
       3 + 2 şeklinde aşağı kır.
       Scroll çıkmaz.
    */
    #sayfaHtmlIcerik .org-root > ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        #sayfaHtmlIcerik .org-root > ul::before {
            display: none;
        }

        #sayfaHtmlIcerik .org-root > ul > li {
            padding-top: 24px !important;
        }

            #sayfaHtmlIcerik .org-root > ul > li::before {
                top: 0;
                height: 24px;
            }

    #sayfaHtmlIcerik .org-chart .org-card-manager {
        max-width: 190px;
    }
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 767.98px) {

    #sayfaHtmlIcerik .org-chart {
        padding: 18px 0 30px;
    }

    /*
       Mobilde Başkanlıklar alt alta.
       Böylece yatay scroll kesinlikle olmaz.
    */
    #sayfaHtmlIcerik .org-root > ul,
    #sayfaHtmlIcerik .org-root > ul:has(> li:nth-child(4):last-child),
    #sayfaHtmlIcerik .org-root > ul:has(> li:nth-child(3):last-child),
    #sayfaHtmlIcerik .org-root > ul:has(> li:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        gap: 22px;
    }

        #sayfaHtmlIcerik .org-root > ul::before {
            display: none;
        }

        #sayfaHtmlIcerik .org-root > ul > li {
            padding-top: 0 !important;
        }

            #sayfaHtmlIcerik .org-root > ul > li::before {
                display: none !important;
            }

    #sayfaHtmlIcerik .org-chart .org-card-manager {
        width: 100%;
        max-width: 260px;
    }

    #sayfaHtmlIcerik .org-root > ul > li > ul {
        max-width: 260px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #sayfaHtmlIcerik .org-chart .org-card-unit {
        max-width: 220px;
    }
}

/* =========================================================
   GM ERROR PAGE
========================================================= */

.gm-error-page {
    padding: 80px 0 100px;
}

.gm-error-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .08);
}

.gm-error-code {
    margin-bottom: 12px;
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: var(--gsb-red, #dc3545);
    letter-spacing: -6px;
}

.gm-error-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gsb-dark, #111827);
}

.gm-error-text {
    max-width: 540px;
    margin: 18px auto 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.gm-error-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gm-error-home-btn,
.gm-error-back-btn {
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    transition: .2s ease;
}

.gm-error-home-btn {
    border: 1px solid var(--gsb-red, #dc3545);
    background: var(--gsb-red, #dc3545);
    color: #fff;
}

    .gm-error-home-btn:hover {
        background: #b91c1c;
        border-color: #b91c1c;
        color: #fff;
    }

.gm-error-back-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

    .gm-error-back-btn:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

@media (max-width: 767.98px) {

    .gm-error-page {
        padding: 50px 0 70px;
    }

    .gm-error-card {
        padding: 40px 22px;
        border-radius: 18px;
    }

    .gm-error-code {
        font-size: 5rem;
        letter-spacing: -4px;
    }

    .gm-error-title {
        font-size: 1.55rem;
    }

    .gm-error-actions {
        flex-direction: column;
    }

    .gm-error-home-btn,
    .gm-error-back-btn {
        width: 100%;
    }
}

/* ==========================================================================
   ICERIK ICINDEKI DOKUMAN KARTLARI - kutu icinde kutu duzeltmesi

   Icerigi saran .event-content-card zaten beyaz, cerceveli bir kart.
   Icine ayni gorunumde (beyaz + cerceve + golge + padding) ikinci bir kart
   girince ust uste iki kutu olusuyordu. Bu kartlar duzlestirildi; dosya
   linkleri kendi cip gorunumunu koruyor.

   Dosyanin sonunda duruyor ki @media icindeki eski padding/radius
   tanimlarini da ezebilsin.
   ========================================================================== */
.sayfa-html-content .proje-docs-card,
.sayfa-html-content .content-doc-item-card,
.sayfa-html-content .legacy-link-section-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
