/* css/sub/pages/doctors.css */

/* ==========================================================================
   ÖZEL ÜNYE ÇAKIRTEPE HASTANESİ
   Sayfa: Hekimlerimiz
   Versiyon: V104.5 (EXTENDED FULL VERSION - UX FIXES)
   ========================================================================== */

/* !!! KRİTİK: SADECE OVERFLOW AYARI !!! */
body, 
html {
    overflow: visible !important;
    overflow-x: clip !important;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- YENİ EKLENEN KOD: MASAÜSTÜ HİZA DÜZELTMESİ (GLOBAL) --- */
.sub-page-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   1. MASAÜSTÜ (BASE) - 1201px ve Üzeri
   ========================================================================== */

/* --- HERO SECTION --- */
.stay-hero {
    position: relative;
    width: 100%;
    height: 232px !important;
    min-height: 232px !important;
    background-color: #F2F2F2 !important;
    display: flex;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
    margin: 0;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.stay-hero .sub-page-container {
    width: 100% !important;
    display: block !important;
}

.stay-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.stay-hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0 !important;
    line-height: 1.1;
    color: #00325B !important;
}

.stay-subtitle {
    display: none !important;
}

/* --- BREADCRUMB --- */
.page-breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.page-breadcrumb a {
    color: #00325B;
    text-decoration: none;
    font-weight: 600;
}

.page-breadcrumb span {
    margin: 0 0.5rem;
    color: #ccc;
}

.page-breadcrumb strong {
    color: #666;
    font-weight: 700;
}

/* --- INTRO --- */
.stay-intro {
    margin-top: 26px !important;
    margin-bottom: 50px;
}

.stay-intro-sub {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #435F6C;
    line-height: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.stay-intro-title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #00325B;
    line-height: 46px;
    max-width: 100%;
}

/* --- FILTER BAR --- */
.doctor-filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 0;
}

.filter-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ev-view-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
}

.view-toggle-btn {
    background-color: #fafafa !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: none !important;
    padding: 0;
    width: 50px;
    height: 50px;
    color: #cbd5e1;
    outline: none !important;
}

.view-toggle-btn:hover {
    color: #cbd5e1 !important;
    background-color: #fafafa !important;
}

.view-toggle-btn.active {
    background-color: #fafafa !important;
    opacity: 1;
    color: #0071CE !important;
    border: 1px solid #fafafa !important;
}

.view-toggle-btn svg {
    display: block;
    margin: 0 auto;
    fill: currentColor;
    width: 35px;
    height: 35px;
}

.branch-select-wrapper {
    position: relative;
    width: 300px;
}

.branch-select {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #555;
    background-color: #fafafa;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.branch-select:focus {
    outline: none;
    background-color: #fafafa;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


/* ==========================================================================
   KONSEPT 2: GRID VIEW
   ========================================================================== */
#departmentsGrid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.c2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 0 !important;
    padding-bottom: 100px !important;
}

.c2-card, 
.c2-card * {
    transition: none !important;
    animation: none !important;
}

.c2-card {
    background: #ffffff;
    border-radius: 0 !important;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    position: relative;
    transform: none !important;
}

.c2-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: #eee !important;
    z-index: 2;
    transform: none !important;
}

.c2-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.c2-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f7ff;
    flex-shrink: 0;
    margin-bottom: 25px;
    margin-right: 0;
    transition: none !important;
}

.c2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease !important;
}

.c2-card:hover .c2-img img {
    transform: scale(1.1);
}

.c2-info {
    width: 100%;
}

.c2-name {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #00325B;
    margin: 0 0 15px 0;
    line-height: 24px;
    min-height: 48px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.c2-branch {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin: 0;
    text-transform: none;
    text-align: center;
}

.c2-summary {
    display: none;
}

.c2-footer {
    display: flex;
    border-top: 1px solid #f1f1f1;
    background: #fafafa;
    margin-top: auto;
}

.c2-btn {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
    border-radius: 0 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.c2-btn.ghost {
    background: transparent;
    color: #555;
    border-right: 1px solid #f1f1f1;
}

.c2-btn.ghost:hover {
    background: #fff;
    color: #0071CE;
}

.c2-btn.primary {
    background: #ffffff;
    color: #0071CE;
    font-weight: 700;
}

.c2-btn.primary:hover {
    background: #0071CE;
    color: #fff;
}

.c2-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* ==========================================================================
   YENİ LIST VIEW TASARIMI
   ========================================================================== */
.c2-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
}

.c2-grid.list-view .c2-card {
    flex-direction: row;
    align-items: stretch;
    text-align: left;
    height: auto;
    min-height: 150px !important; 
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    background: #fff;
    padding: 0;
    border-left: none !important;
    border-radius: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.c2-grid.list-view .c2-card:hover {
    transform: none !important; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 5;
    border: none !important;
}

.c2-grid.list-view .c2-body {
    flex-direction: row;
    padding: 20px; 
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    width: auto;
    gap: 25px;
    transition: none !important;
}

.c2-grid.list-view .c2-img {
    width: 110px;
    height: 110px;
    margin: 0;
    border-radius: 0 !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: none !important;
}

.c2-grid.list-view .c2-info {
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    justify-content: center;
    transition: none !important;
}

.c2-grid.list-view .c2-name {
    order: 2; 
    font-size: 20px;
    margin-bottom: 0;
    margin-top: 5px; 
    text-align: left;
    display: block;
    min-height: auto;
    color: #00325B;
    line-height: 1.2;
}

.c2-grid.list-view .c2-branch {
    order: 1; 
    font-size: 12px;
    font-weight: 700;
    color: #0071CE;
    background: #f0f7ff;
    padding: 4px 10px;
    border-radius: 0 !important;
    display: inline-block;
    margin-bottom: 0;
    text-align: left;
    letter-spacing: 0.5px;
}

.c2-grid.list-view .c2-summary {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    order: 3; 
}

.c2-grid.list-view .c2-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 200px; 
    background: transparent; 
    border-top: none;
    border-left: 1px solid #f1f1f1;
    padding: 20px;
    gap: 8px;
    margin-top: 0;
    transition: none !important;
}

.c2-grid.list-view .c2-btn {
    width: 100%;
    flex: none;
    border-radius: 0 !important;
    padding: 10px; 
    font-size: 13px; 
    transition: none !important;
}

.c2-grid.list-view .c2-btn.ghost {
    background: #f9f9f9;
    border: 1px solid #eee;
    color: #555;
    transition: color 0.3s ease, background-color 0.3s ease !important;
}

.c2-grid.list-view .c2-btn.ghost:hover {
    border-color: #eee; 
    color: #0071CE; 
    background: #fff;
}

/* --- PARALLAX --- */
.stay-parallax {
    height: 600px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.stay-parallax-bg {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.stay-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,50,91,0.65);
    z-index: 2;
}

.stay-parallax-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 10px;
}

.stay-parallax-content h2 {
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    max-width: 1200px;
    margin: 0;
}

/* --- DİĞER BİLEŞENLER --- */
.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 60px 0;
}

.btn-load-more {
    background: #00325B !important;
    border: 2px solid #00325B !important;
    color: #fff !important;
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 0 !important;
    cursor: pointer;
    transition: 0.3s;
}

.btn-load-more:hover {
    background: #002240 !important;
    color: #fff !important;
    border-color: #002240 !important;
}

.doc-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.doc-loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loader-bg {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.loader-icon {
    width: 75px;
    height: 75px;
    display: block;
    object-fit: contain;
}

/* --- MODAL --- */
.doc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.doc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.doc-modal-container {
    width: 950px !important;
    height: 480px !important;
    background: #fff;
    border-radius: 0 !important;
    position: relative;
    display: flex;
    overflow: hidden;
    transform: scale(0.95);
    transition: 0.3s;
}

.doc-modal-overlay.active .doc-modal-container {
    transform: scale(1);
}

.doc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F4F6F8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border: none;
    transition: 0.2s;
}

.doc-modal-close:hover {
    background: #E21E26;
    color: #fff;
}

.doc-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.doc-modal-left {
    background: #eee;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.doc-modal-img-wrap {
    width: 100%;
    height: 100%;
}

.doc-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* KESİN ÇÖZÜM: SCROLL BLEED İÇİN OVERSCROLL-BEHAVIOR EKLENDİ */
.doc-modal-right {
    padding: 30px !important;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.modal-branch-tag {
    display: inline-block;
    background: #EBF5FF;
    color: #0071CE;
    padding: 5px 10px;
    border-radius: 0 !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    align-self: flex-start;
}

.modal-doc-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #00325B;
    margin-bottom: 20px;
}

.btn-appointment-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0071CE !important;
    color: #fff;
    padding: 0 30px;
    height: 48px;
    border-radius: 0 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 30px;
    align-self: flex-start;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
}

.modal-section h4 {
    font-size: 18px;
    color: #00325B;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-list {
    list-style: disc;
    padding-left: 20px;
    color: #555;
    margin-bottom: 10px;
}

/* ==========================================================================
   2. FLUID SCALE (2000px ve Üzeri)
   ========================================================================== */
@media (min-width: 2000px) {
    
    .sub-page-container {
        max-width: 1600px !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .stay-hero {
        height: 350px !important;
        min-height: 350px !important;
    }

    .stay-hero-content h1 {
        font-size: 3.75rem !important;
        line-height: 1.1 !important;
    }

    .stay-intro {
        margin-top: 50px !important;
        margin-bottom: 80px !important;
    }

    .stay-intro-sub {
        font-size: 30px !important; 
        line-height: 40px !important;
        font-weight: 700 !important;
        color: #435F6C !important;
        margin-bottom: 30px !important;
    }

    .stay-intro-title {
        font-size: 56px !important;   
        font-weight: 600 !important;  
        line-height: 73px !important; 
        color: #00325B !important;
        max-width: 100% !important;
    }

    .view-toggle-btn {
        width: 60px !important;
        height: 60px !important;
    }
    
    .view-toggle-btn svg {
        width: 40px !important;
        height: 40px !important;
    }

    .branch-select {
        height: 60px !important;
        font-size: 18px !important;
    }
    
    .branch-select-wrapper {
        width: 400px !important;
    }

    .c2-grid {
        gap: 40px !important;
        padding-bottom: 120px !important;
    }

    .c2-card {
        border-radius: 0 !important;
    }

    .c2-body {
        padding: 40px 25px !important;
    }

    .c2-img {
        width: 130px !important;
        height: 130px !important;
        margin-bottom: 30px !important;
    }

    .c2-name {
        font-size: 22px !important;
        line-height: 1.3 !important;
        min-height: 60px !important;
        margin-bottom: 15px !important;
    }

    .c2-branch {
        font-size: 16px !important;
    }

    .c2-grid.list-view {
        gap: 20px !important;
    }

    .c2-grid.list-view .c2-card {
        min-height: 180px !important;
        border-radius: 0 !important;
    }

    .c2-grid.list-view .c2-body {
        padding: 25px !important;
        gap: 35px !important;
    }

    .c2-grid.list-view .c2-img {
        width: 130px !important;
        height: 130px !important;
        border-radius: 0 !important;
        box-shadow: 0 5px 12px rgba(0,0,0,0.06) !important;
    }

    .c2-grid.list-view .c2-name {
        font-size: 26px !important;
        margin-top: 8px !important;
    }

    .c2-grid.list-view .c2-branch {
        font-size: 15px !important;
        padding: 5px 12px !important;
    }

    .c2-grid.list-view .c2-summary {
        font-size: 16px !important;
        line-height: 1.6 !important;
        max-width: 900px !important;
        margin-top: 10px !important;
    }

    .c2-footer {
        background: #fafafa !important; 
    }

    .c2-btn {
        font-size: 16px !important;
        padding: 18px 10px !important;
    }

    .c2-grid.list-view .c2-footer {
        width: 260px !important;
        padding: 25px !important;
        gap: 12px !important;
    }

    .c2-grid.list-view .c2-btn {
        padding: 12px !important;
        font-size: 15px !important;
        border-radius: 0 !important;
    }

    .c2-btn.ghost {
        background: transparent !important;
        color: #555 !important;
    }

    .c2-btn.primary {
        background: #ffffff !important;
        color: #0071CE !important;
        font-weight: 700 !important;
    }

    .stay-parallax {
        height: 750px !important;
    }

    .stay-parallax-content h2 {
        font-size: 72px !important;
        max-width: 1400px !important;
    }

    .doc-modal-container {
        width: 1200px !important;
        height: 600px !important;
        border-radius: 0 !important;
    }

    .doc-modal-right {
        padding: 50px !important;
    }

    .modal-doc-name {
        font-size: 24px !important;
        margin-bottom: 30px !important;
    }

    #modalAbout {
        font-size: 22px !important;    
        font-weight: 400 !important;   
        line-height: 1.5 !important;   
    }

    .modal-branch-tag {
        font-size: 16px !important;
        padding: 6px 15px !important;
        margin-bottom: 15px !important;
    }

    .btn-appointment-modal {
        height: 60px !important;
        font-size: 16px !important;
        padding: 0 40px !important;
        margin-bottom: 40px !important;
    }

    .modal-section h4 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
    }

    .modal-list {
        padding-left: 25px !important;
        margin-bottom: 15px !important;
    }

    .modal-list li {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .doc-modal-close {
        width: 50px !important;
        height: 50px !important;
        top: 20px !important;
        right: 20px !important;
    }
    
    .doc-modal-close svg {
        width: 30px !important;
        height: 30px !important;
    }
    
    .btn-load-more {
        padding: 20px 50px !important;
        font-size: 18px !important;
        border-radius: 0 !important;
    }
    
    .load-more-container {
        margin: 40px 0 100px 0 !important;
    }
}

/* ==========================================================================
   3. TABLET & KÜÇÜK LAPTOP (1000px - 1200px)
   ========================================================================== */
@media (min-width: 1000px) and (max-width: 1200px) {
    
    .sub-page-container {
        width: 100% !important;
        max-width: 100% !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        box-sizing: border-box !important;
    }

    .stay-hero {
        height: 200px !important;
        min-height: 200px !important;
    }

    .stay-hero-content h1 {
        font-size: 38px !important;
        font-weight: 700 !important;
        line-height: 44px !important;
    }

    .stay-parallax {
        height: 400px !important;
    }

    .stay-parallax-content h2 {
        font-size: 40px !important;
        line-height: 48px !important;
    }

    .c2-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important; 
    }

    .c2-grid.list-view .c2-card {
        min-height: 150px !important;
    }
    
    .c2-grid.list-view .c2-footer {
        width: 180px !important;
        padding: 15px !important;
    }
    
    .doctor-filter-bar {
        padding-left: 0 !important;
    }

    .doc-modal-container {
        width: 90% !important;
        max-width: 900px !important;
        height: 480px !important;
    }

    .doc-modal-body {
        grid-template-columns: 45% 55% !important;
    }
    
    .c2-footer {
        background: #fafafa !important; 
    }

    .c2-btn.ghost {
        background: transparent !important;
        color: #555 !important;
    }

    .c2-btn.primary {
        background: #ffffff !important;
        color: #0071CE !important;
        font-weight: 700 !important;
    }

    .c2-card, 
    .c2-btn, 
    .btn-load-more, 
    .doc-modal-container {
        border-radius: 0 !important;
    }
}

/* ==========================================================================
   4. TABLET 11 INCH (768px - 999px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 999px) {

    .sub-page-container {
        width: 100% !important;
        max-width: 960px !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }

    .stay-hero {
        height: 180px !important;
        min-height: 180px !important;
    }

    .stay-hero-content h1 {
        font-size: 35px !important;
        font-weight: 700 !important;
        line-height: 42px !important;
    }

    .stay-intro-sub {
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 23px !important;
    }

    .stay-intro-title {
        font-size: 26px !important;
        font-weight: 600 !important;
        line-height: 34px !important;
    }

    .stay-parallax {
        height: 360px !important;
    }

    .stay-parallax-content h2 {
        font-size: 37px !important;
        font-weight: 600 !important;
        line-height: 44px !important;
    }

    .c2-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .c2-grid.list-view {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .c2-body {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 20px !important;
        text-align: left !important;
    }

    .c2-img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0 !important;
        margin-right: 15px !important;
        border-width: 2px !important;
    }

    .c2-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: auto !important;
    }

    .c2-name {
        font-size: 16px !important;
        margin-bottom: 5px !important;
        min-height: auto !important;
        text-align: left !important;
        display: block !important;
    }

    .c2-branch {
        text-align: left !important;
        font-size: 13px !important;
    }

    .c2-footer {
        flex-direction: row !important;
        padding: 0 !important;
        background-color: #fafafa !important;
        height: 50px !important;
        width: 100% !important;
    }

    .c2-btn {
        flex: 1 !important;
        padding: 0 !important;
        height: 100% !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .c2-btn:first-child {
        background: transparent !important;
        color: #555 !important;
        border-right: 1px solid #eee !important;
    }

    .c2-btn:last-child {
        background-color: #ffffff !important;
        color: #0071CE !important;
        font-weight: 700 !important;
    }
    
    .c2-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .doc-modal-container {
        width: 720px !important;
        height: 500px !important;
    }
    
    .doc-modal-body {
        grid-template-columns: 40% 60% !important;
    }

    .doc-modal-right {
        padding: 30px 40px 30px 20px !important;
    }

    .c2-card, 
    .c2-btn, 
    .btn-load-more, 
    .doc-modal-container {
        border-radius: 0 !important;
    }
}

/* ==========================================================================
   5. MOBİL CİHAZLAR (0px - 699px)
   ========================================================================== */
@media (max-width: 699px) {

    .sub-page-container {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .stay-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: 130px !important;
        min-height: 130px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .stay-hero-content {
        padding: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }

    .stay-hero-content h1 {
        font-size: 26px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        width: 100% !important;
    }

    .stay-intro {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .stay-intro-sub { 
        display: none !important; 
    }

    .stay-intro-title { 
        font-size: 22px !important; 
        line-height: 30px !important; 
        margin-top: 0 !important; 
    }

    .doctor-filter-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
        padding-left: 0 !important;
    }
    
    .filter-left-group, 
    .branch-select-wrapper { 
        width: 100% !important; 
    }
    
    .ev-view-controls { 
        display: none !important; 
    }

    .c2-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        padding-bottom: 60px !important;
    }

    .c2-card {
        flex-direction: column !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important; 
        border: 1px solid #eee !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
        border-radius: 0 !important;
        background: #fff;
    }
    
    .c2-body {
        flex-direction: row !important;
        padding: 22px 15px !important; 
        align-items: center !important; 
        justify-content: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
        border-bottom: 1px solid #f1f1f1 !important;
        box-sizing: border-box !important;
    }

    .c2-img {
        width: 80px !important;
        height: 80px !important;
        margin: 0 !important;
        border: 2px solid #f0f7ff !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
    }

    .c2-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: auto !important;
        flex: 1 !important;
    }

    .c2-name {
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        text-align: left !important;
        display: block !important;
        min-height: auto !important;
    }

    .c2-branch {
        text-align: left !important;
        font-size: 13px !important;
        color: #0071CE !important;
        margin-bottom: 0 !important;
        display: block !important;
        font-weight: 600 !important;
    }

    .c2-footer {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: #fafafa !important;
        height: 45px !important;
    }

    .c2-btn {
        flex: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        gap: 8px !important;
    }

    .c2-btn.ghost { 
        color: #555 !important; 
        background: transparent !important; 
        border-right: 1px solid #eee !important; 
    }
    
    .c2-btn.primary { 
        color: #0071CE !important; 
        font-weight: 700 !important; 
        background: #ffffff !important; 
    }
    
    .doctor-link { 
        position: static !important; 
        width: auto !important; 
        height: auto !important; 
    }

    .stay-parallax { 
        height: 250px !important; 
        padding-left: 10px !important; 
    }
    
    .stay-parallax-content h2 { 
        font-size: 26px !important; 
        line-height: 34px !important; 
    }

    .doc-modal-overlay { 
        align-items: flex-end !important; 
        padding: 0 !important; 
    }

    .doc-modal-container {
        width: 100% !important;
        max-width: none !important;
        height: 85vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        flex-direction: column !important;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    .doc-modal-overlay.active .doc-modal-container { 
        transform: translateY(0); 
    }
    
    .doc-modal-body { 
        display: flex !important; 
        flex-direction: column !important; 
        height: 100% !important; 
        width: 100% !important; 
        overflow: hidden !important; 
    }

    .doc-modal-left {
        width: 100% !important;
        height: 300px !important;
        min-height: 300px !important;
        flex-shrink: 0 !important;
        order: -1 !important;
        background: #eee;
    }
    
    .doc-modal-img-wrap { 
        height: 100% !important; 
    }

    /* KESİN ÇÖZÜM UYGULANAN ALAN (Boşluk + Scroll Koruması) */
    .doc-modal-right { 
        width: 100% !important; 
        /* Alttan 90px boşluk (Kapsül menü engellemesin diye) */
        padding: 25px 25px 90px 25px !important; 
        flex: 1 !important; 
        overflow-y: auto !important; 
        background: #fff;
        /* Scroll Sızıntısını (Arka plan kaymasını) engeller */
        overscroll-behavior: contain; 
    }

    .modal-branch-tag { 
        margin-bottom: 10px !important; 
        font-size: 14px !important; 
        padding: 4px 10px !important; 
    }
    
    .modal-doc-name { 
        font-size: 22px !important; 
        margin-top: 0 !important; 
        margin-bottom: 30px !important; 
        line-height: 1.3 !important; 
    }

    .modal-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        flex-wrap: nowrap !important;
    }

    .btn-appointment-modal {
        width: auto !important;
        flex: 1 !important;
        margin-bottom: 0 !important;
        height: 50px !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        padding: 0 10px !important;
        justify-content: center !important;
    }
    
    .doc-modal-close {
        top: 15px !important;
        right: 15px !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .load-more-container { 
        margin-bottom: 60px !important; 
    }
}