

:root {
    --header-bg-main: #0066cc;   
    --header-bg-dark: #0052a5;   
    --tab-bg: #0056b3;           /* Menü Bant Arka Planı */
    --tab-active-bg: #ffffff;    /* Aktif Menü Arka Planı */
    --tab-active-text: #0056b3;  /* Aktif Menü Yazı Rengi */
    --page-bg: #f8fafc;          
}

body {
    background-color: var(--page-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
@media (min-width: 992px) {
    body { zoom: 90%; }
}

/* --- ÜST BANNER WRAPPER --- */
.top-header-wrapper {
    /* position: sticky buradan kaldırıldı, böylece banner normal akışta kaybolacak */
    width: 100%;
}

.top-banner {
    width: 100%;
    background-color: #004a99; /* Fallback renk */
    background: linear-gradient(135deg, #004a99 0%, #007bff 100%);
    color: #ffffff;
    padding: 18px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}



.header-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-title-main {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #ffffff;
}

.brand-title-sub {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-top: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.brand-location {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- MENÜ BANT YAPISI VE SABİTLEME (STICKY) --- */
.tab-navbar {
    position: sticky; /* Menünün tepeye gelince sabitlenmesini sağlar */
    top: 0;            /* Ekranın en üstüne yapışacağı nokta */
    z-index: 1030;     /* Diğer içeriklerin üstünde kalması için */
    width: 100%;
    background-color: var(--tab-bg);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Gölge efekti menüye taşındı */
}

.tab-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-tabs-custom {
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.nav-tabs-custom .nav-item {
    margin-bottom: 0;
    position: relative;
}

/* Bootstrap'in otomatik eklediği ok simgesini (::after) gizle */
.nav-tabs-custom .dropdown-toggle::after {
    display: none !important;
}

/* Seçilmemiş/Standart Menü Öğeleri */
.nav-tabs-custom .nav-link,
.nav-tabs-custom .dropdown-toggle {
    border: none !important;
    background-color: transparent !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 22px;
    margin-top: 6px;
    margin-right: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: none !important;
}

/* Üzerine Gelindiğinde (Hover) */
.nav-tabs-custom .nav-link:hover,
.nav-tabs-custom .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

/* Sadece Seçili (Active) Olan Menü Öğesi */
.nav-tabs-custom .nav-link.active,
.nav-tabs-custom .dropdown-toggle.active {
    background-color: var(--tab-active-bg) !important;
    color: var(--tab-active-text) !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.08) !important;
}

/* --- HOVER DROPDOWN MENÜ KUTUSU --- */
.nav-tabs-custom .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    margin-top: 0;
    min-width: 210px;
    background-color: #ffffff;
}

@media (min-width: 992px) {
    .nav-tabs-custom .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-tabs-custom .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.nav-tabs-custom .dropdown-item:last-child {
    border-bottom: none;
}

.nav-tabs-custom .dropdown-item:hover {
    background-color: #f0f9ff;
    color: var(--tab-bg);
    padding-left: 22px;
}

/* --- ANA İÇERİK ALANI --- */
.main-content {
    max-width: 1366px;
    margin: 25px auto;
    padding: 0 20px;
    min-height: 60vh;
    transition: opacity 0.2s ease-in-out;
}

.main-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --- FOOTER --- */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-top: 40px;
    color: #64748b;
    font-size: 0.88rem;
}
/* --- İLETİŞİM SAYFASI STİLLERİ --- */
.page-header {
    background-color: #0d6e8d; 
    color: #ffffff;
    text-align: center;
    padding: 14px 10px;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.section-title {
    color: #0d6e8d;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box-gray {
    background-color: #f1f4f8;
    border-radius: 6px;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 15px;
}

.phone-badge {
    background-color: #17a2b8;
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.phone-badge:hover {
    background-color: #138496;
    color: white;
}

.dahili-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dahili-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.dahili-card .name {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333333;
}

.dahili-badge {
    background-color: #d0e8f8;
    color: #085a8a;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

/* --- YÖNETİCİ GİRİŞ İKONU (EN SAĞ) --- */
.admin-icon-btn {
    color: #ffffff;
    font-size: 1.15rem;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}
.admin-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
/* --- SLİDER YÜKSEKLİK AYARI (400px) --- */
.asm-slider, 
.asm-slider .carousel-item, 
.asm-slider img { 
    height: 400px !important; 
}

.asm-slider { 
    border-radius: 10px; 
    overflow: hidden; 
}

.asm-slider img { 
    object-fit: cover; 
}

.doctor-img, 
    .doctor-placeholder-icon {
        width: 90px !important;
        height: 110px !important;
        object-fit: cover !important;
        border-radius: 8px !important; /* Köşelerin yumuşaklığı için (istediğiniz gibi artırıp azaltabilirsiniz) */
    }

/* ===== MOBİL UYUMLU MENÜ ===== */

/* Mobil üst çubuk (Menü yazısı + admin ikonu + hamburger) */
.tab-navbar .navbar-brand { color: #fff !important; }
.tab-navbar .navbar-toggler { color: #fff; }
.tab-navbar .navbar-toggler .fa-bars { color: #fff !important; }

.tab-navbar .nav-link .fa-chevron-down { transition: transform .2s ease; }
.tab-navbar .dropdown-toggle.show .fa-chevron-down { transform: rotate(180deg); }

@media (max-width: 991.98px) {

    .tab-navbar .d-lg-none { min-height: 56px; }

    /* Açılan menü: ekrana sığmazsa kendi içinde kaysın */
    #mainNavbarContent {
        max-height: calc(100dvh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Dikey liste */
    .nav-tabs-custom {
        flex-direction: column !important;
        flex-wrap: nowrap;
        padding: .25rem 0;
    }
    .nav-tabs-custom .nav-item { width: 100%; }

    .nav-tabs-custom .nav-link,
    .nav-tabs-custom .dropdown-toggle {
        display: flex !important;
        width: 100%;
        align-items: center;
        gap: 10px;
        margin: 0 !important;
        padding: 14px 20px;
        min-height: 48px;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
    .nav-tabs-custom .nav-link .fa-chevron-down { margin-left: auto; }

    /* Alt menü: masaüstündeki gizleme kurallarını mobilde iptal et,
       Bootstrap'in .show sınıfıyla akordeon gibi açılsın */
    .nav-tabs-custom .dropdown-menu {
        display: none;
        position: static !important;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        transition: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: #f1f5f9;
    }
    .nav-tabs-custom .dropdown-menu.show { display: block; }

    .nav-tabs-custom .dropdown-item {
        padding: 13px 20px 13px 42px;
        min-height: 48px;
        white-space: normal;
    }
    .nav-tabs-custom .dropdown-item:hover { padding-left: 42px; }

    /* Banner küçültme */
    .top-banner { padding: 10px 0; }
    .header-container { padding: 0 12px; }
    .sb-logo { width: 48px; height: 48px; }
    .brand-title-sub { font-size: .65rem; letter-spacing: .5px; }
    .brand-title-main { font-size: 1.05rem; line-height: 1.2; }

    /* İçerik ve footer */
    .main-content { padding: 0 12px; margin: 15px auto; }
    .asm-slider,
    .asm-slider .carousel-item,
    .asm-slider img { height: 220px !important; }
    .footer .header-container { justify-content: center !important; text-align: center; }
}

/* Masaüstünde alt menüler üstte kalsın */
@media (min-width: 992px) {
    .tab-navbar .dropdown-menu { z-index: 1040; }
}