/* css/sub/pages/open-positions.css */
/* =========================================
   ÖZEL ÜNYE ÇAKIRTEPE HASTANESİ
   Sayfa: Açık Pozisyonlar (open-positions.css)
   Versiyon: 52.3 (MOBİL LIST-VIEW KUSURSUZ GRID FİX)
   Revizyon:
   1. Fluid Scale eşiği 2000px yapıldı (1920px ekranlar için düzeltme).
   2. Kod yapısı genişletildi (Beautified).
   3. Tablet ve Mobil List-View taşma sorunları kapsülleme ile çözüldü.
   4. Mobil List-View Başlık boşluğu ve İkon hizalaması Grid ile sabitlendi.
   ========================================= */

/* ============================================================
   GLOBAL AYARLAR
   ============================================================ */

/* Mobildeki Master Filtre butonu masaüstü ve tablette varsayılan olarak gizli olsun */
.mobile-master-filter-btn {
    display: none;
}

/* --- 1. HERO ALANI --- */
.jobs-hero-section {
    padding-top: 100px; 
    padding-bottom: 30px;
    background-color: #fff;
    width: 100%;
}

.jobs-container {
    width: 100%;
    margin: 0 auto;
    padding: 0; 
    box-sizing: border-box;
    max-width: 1200px;
}

/* Geri Dön Linki */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #00325B;
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.3s ease; 
}

.back-link:hover {
    color: #0071CE;
    transform: none !important;
}

.back-link svg {
    width: 24px;
    height: 14px;
    stroke-width: 2;
    transform: rotate(180deg) !important;
}

/* Başlıklar */
.jobs-titles-wrapper { 
    margin-bottom: 30px; 
}

.jobs-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 40px;
    color: #00325B;
    margin-bottom: 0 !important; 
}

.jobs-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 300; 
    line-height: 47px;
    color: #00325B;
    margin-top: 5px; 
    margin-bottom: 0;
}

/* Metin Blokları */
.jobs-text-block p, 
.jobs-warning-box {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 33px;
    color: #00325B; 
    margin-bottom: 20px;
}

.spontan-link {
    color: #0071CE; 
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spontan-link svg { 
    width: 30px; 
    height: 25px; 
}

.jobs-warning-box {
    background-color: #F5F7F9;
    border-left: 4px solid #888;
    padding: 25px;
    margin-top: 30px;
}

/* --- FILTRE AYIRMA ÇİZGİSİ --- */
.filter-separator {
    width: 100%;
    height: 2px;
    background-color: #00325B;
    margin-top: 70px; 
    margin-bottom: 5px;
}

/* --- 2. FİLTRELEME ÇUBUĞU --- */
.jobs-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent; 
    padding: 15px 0;
    margin-top: 0; 
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-left-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Görünüm Butonları */
.view-toggle-btn {
    background-color: #F2F2F2 !important; 
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; 
    transition: all 0.3s;
    padding: 0; 
    flex-shrink: 0;
    width: 50px; 
    height: 50px;
    color: #cbd5e1; 
    outline: none !important;
}

.view-toggle-btn:focus { 
    outline: none !important; 
}

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

.view-toggle-btn.active {
    background-color: #F2F2F2 !important; 
    opacity: 1;
    color: #0071CE !important;
}

.filter-dropdowns {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    margin: 0 20px;
}

/* --- CUSTOM DROPDOWN --- */
.custom-dropdown {
    position: relative;
    width: 100%;
    min-width: 250px;
}

.dropdown-trigger {
    width: 100%;
    height: 50px;
    background-color: #F2F2F2;
    color: #00325B; 
    border: none;
    border-radius: 0; 
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 18px; 
    font-weight: 600; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-transform: none; 
    transition: none; 
    outline: none !important;
}

/* OK İKONU (CSS ÜÇGEN) */
.filter-arrow-icon { 
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #00325B; 
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.custom-dropdown.open .dropdown-trigger .filter-arrow-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background-color: #00325B; 
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 0;
    margin-top: 0; 
    max-height: none; 
    overflow: visible; 
}

.custom-dropdown.open .dropdown-content { 
    display: block; 
}

.item.single-item {
    padding: 20px 25px; 
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 18px; 
    font-weight: 500;
    line-height: 27px;
}

.item.single-item:hover { 
    background-color: rgba(255,255,255,0.1); 
}

.dropdown-category { 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.cat-header {
    padding: 20px 25px; 
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-size: 18px; 
    font-weight: 500;
    line-height: 27px;
}

.cat-header:hover { 
    background-color: rgba(255,255,255,0.1); 
}

/* KATEGORİ OKU */
.cat-arrow-icon { 
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #ffffff; 
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.dropdown-category.active .cat-arrow-icon { 
    transform: rotate(180deg); 
}

.cat-body { 
    display: none; 
    background-color: #F2F2F2; 
}

.dropdown-category.active .cat-body { 
    display: block; 
}

.sub-item {
    padding: 20px 25px 20px 50px; 
    color: #00325B;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 18px; 
    font-weight: 500;
    line-height: 27px;
}

.sub-item:hover { 
    background-color: #e3e8ee; 
}

.clear-filter-btn {
    background: #F2F2F2;
    border: none;
    height: 50px;
    padding: 0 25px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #00325B;
    border-radius: 0;
    cursor: pointer;
    text-transform: none; 
    outline: none !important;
}

.clear-filter-btn:hover { 
    background-color: #e0e0e0; 
}

.jobs-count-label {
    font-family: 'Inter', sans-serif;
    font-size: 36px; 
    font-weight: 600; 
    line-height: 47px; 
    color: #00325B;
    margin-top: 50px;      
    margin-bottom: 50px; 
    display: block;
}

/* --- 3. İLAN KARTLARI (GRID GÖRÜNÜMÜ - VARSAYILAN) --- */
.jobs-list-wrapper { 
    position: relative; 
    min-height: 400px; 
}

/* REVİZE V52: SOL/SAĞ HİZALAMA GARANTİSİ (SPACE-BETWEEN) + 75PX DİKEY BOŞLUK */
.jobs-grid {
    display: grid;
    /* 3 Adet 350px'lik Sabit Sütun */
    grid-template-columns: repeat(3, 350px);
    /* Space-Between: 1. Kart En Sola, 3. Kart En Sağa yapışır. Ortadaki ortalanır. */
    /* Bu, site hizasını %100 korur. */
    justify-content: space-between;
    /* Bu dizilimde yatay boşluk otomatik 75px olur. Dikey boşluğu da 75px yapıyoruz. */
    gap: 75px 0; /* Satır Boşluğu: 75px | Sütun Boşluğu: 0 (Space-Between halleder) */
    padding-bottom: 60px;
}

/* REVİZE: Box-Shadow kaldırıldı ve Boyutlar Sabitlendi */
/* !important kullanımı, 1366px altındaki çatışmaları önlemek için güçlendirildi */
.job-card {
    background: #fff;
    border: none; 
    width: 350px !important; /* KESİN SABİT */
    height: 430px !important; /* KESİN SABİT */
    display: flex;
    flex-direction: column;
    position: relative; 
    box-shadow: none !important; /* Flat Design */
    transition: background-color 0.3s ease; 
    margin: 0; /* Auto margin iptal edildi, Space-Between hizalayacak */
    text-decoration: none; 
    outline: none !important;
}

.job-card:hover { 
    box-shadow: none !important; 
}

.job-card-img-area {
    width: 100%;
    height: 155px; 
    position: relative;
    overflow: hidden;
}

.job-card-img-area img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

.job-card:hover .job-card-img-area img { 
    transform: scale(1.05); 
}

/* BADGE: Varsayılan (Grid) */
.job-badge {
    background-color: #00325B; 
    color: #ffffff; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    padding: 0 15px; 
    height: 35px;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0; 
    left: 0; 
    z-index: 10;
}

.job-card-body {
    padding: 30px; 
    padding-bottom: 80px; /* Footer için ayrılan sabit alan */
    display: flex; 
    flex-direction: column; 
    flex-grow: 1;
    position: relative; 
    background-color: #F2F2F2; 
}

.job-card-title {
    font-size: 22px; 
    font-weight: 600; 
    line-height: 29px; 
    color: #00325B;
    margin-top: 0; 
    margin-bottom: 25px; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; /* 3 satır sınırı */
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.job-card-employment {
    font-size: 22px; 
    font-weight: 400; 
    line-height: 33px; 
    color: #00325B; 
    margin-bottom: auto;
}

/* Footer Hizalama Garantisi: Absolute Position */
.job-hospital-name {
    font-size: 16px; 
    font-weight: 400; 
    line-height: 19px; 
    color: #000000; 
    position: absolute; 
    bottom: 50px; 
    left: 30px; 
}

.job-link-icon {
    position: absolute; 
    bottom: 50px; 
    right: 30px; 
}

.job-link-icon svg { 
    fill: #0071CE; 
    transition: fill 0.3s ease; 
}

.job-card:hover .job-link-icon svg { 
    fill: #00325B !important; 
}


/* --- LISTE GÖRÜNÜMÜ (LIST VIEW) - ÖZEL KURALLAR --- */
.jobs-grid.list-view {
    display: flex; 
    flex-direction: column;
    gap: 15px;
}

.jobs-grid.list-view .job-card {
    width: 100% !important; 
    max-width: 100%; 
    height: 100px !important; /* Liste modunda yükseklik */
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-start;
    padding: 0; 
    gap: 0; 
    background-color: #F2F2F2 !important; 
    box-shadow: none !important; 
    border: none !important; 
    border-radius: 4px; 
    transform: none !important;
}

.jobs-grid.list-view .job-card:hover {
    background-color: #F2F2F2 !important; 
    box-shadow: none !important; 
    transform: none !important;
}

.jobs-grid.list-view .job-card-img-area { 
    display: none; 
}

.jobs-grid.list-view .job-badge {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 19px;
}

.jobs-grid.list-view .job-card-body {
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-start;
    width: 100%; 
    padding: 0; 
    background: transparent; 
    flex-grow: 1;
    padding-right: 20px; 
}

.jobs-grid.list-view .job-card-title {
    margin: 0; 
    font-size: 22px; 
    font-weight: 600; 
    line-height: 29px; 
    padding-left: 25px; 
    flex: 1;
    min-width: 0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    text-align: left;
    margin-right: 30px; 
}

.jobs-grid.list-view .job-card-employment {
    margin: 0; 
    font-size: 20px; 
    font-weight: 400; 
    line-height: 30px;
    color: #00325B; 
    flex-shrink: 0;
    width: 80px; 
    text-align: right; 
    margin-right: 40px; 
}

.jobs-grid.list-view .job-card-footer {
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin: 0; 
    padding: 0;
    position: static; 
    flex-shrink: 0;
    width: auto;
}

.jobs-grid.list-view .job-hospital-name {
    position: static; 
    color: #000; 
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    text-align: right;
}

.jobs-grid.list-view .job-link-icon { 
    position: static; 
    margin: 0; 
}


/* --- 5. DİĞER BÖLÜMLER --- */
.jobs-loader-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); z-index: 50;
    display: flex; justify-content: center; align-items: flex-start;
    padding-top: 100px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.jobs-loader-overlay.active { opacity: 1; visibility: visible; }
.loader-icon { width: 50px; height: 50px; }

/* BANNER - DESKTOP DEFAULT */
.full-width-banner {
    width: 100%; 
    height: 100vh !important; 
    background-color: #c7eafb; 
    display: flex; align-items: center; justify-content: center; margin-top: 80px; cursor: default;
}

.banner-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    text-align: left; 
    width: 100%; 
}

.banner-link {
    font-family: 'Inter', sans-serif; 
    font-size: 60px; 
    font-weight: 700; 
    line-height: 78px; 
    color: #00325B; 
    max-width: 900px; 
    text-decoration: none; 
    transition: opacity 0.3s ease; 
    display: block;
}

.banner-link:hover { 
    opacity: 0.7; 
}

.teaser-section { padding: 60px 0 100px 0; margin-top: 0; }
.teaser-title { font-size: 34px; font-weight: 700; color: #00325B; margin-bottom: 30px; }
.career-bottom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; }
.media-card-wrapper { display: flex; flex-direction: column; cursor: pointer; }
.img-wrap { display: block; overflow: hidden; margin-bottom: 20px; }
.img-wrap img { width: 100%; height: 160px; object-fit: cover; background-color: #eee; transition: transform 0.5s ease; }
.media-card-wrapper:hover .img-wrap img { transform: scale(1.05); }
.mc-title { font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 600; color: #00325B; margin: 0 0 25px 0; line-height: 1.2; }
.mc-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #0071CE; text-decoration: none; transition: gap 0.3s ease; }
.mc-link svg { width: 24px; height: 14px; }
.media-card-wrapper:hover .mc-link, .mc-link:hover { gap: 0.8rem; color: #00325B; }

/* =========================================================
   TABLET (11 INCH & STANDART TABLET) - 1024px ve Altı
========================================================= */
@media screen and (max-width: 1024px) {
    .jobs-text-block { display: none; }
    .jobs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; justify-content: normal !important; }
    .jobs-grid .job-card { width: 100% !important; height: auto !important; }
    .career-bottom-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .jobs-grid { grid-template-columns: 1fr; }
    .job-card { max-width: 100%; height: auto; }
    .filter-left-controls { display: none; } 
    .banner-link { font-size: 32px; line-height: 1.3; }
    .jobs-page-subtitle { font-size: 24px; line-height: 1.2; }
    .career-bottom-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   FLUID SCALE (FULL SCREEN / 2K / 4K) - 2000px+
   Revizyon: 1920px ekranlar için düzeltme (Eşik 2000px yapıldı).
========================================================= */
@media screen and (min-width: 2000px) {
    
    /* 1. Hizalama Sabitlendi: Orijinal 1650px'e dönüldü */
    .jobs-container, .banner-inner { max-width: 1650px !important; } 
    
    .jobs-page-subtitle { max-width: 900px; }
    .jobs-text-block { max-width: 900px; }
    .jobs-text-block p, .jobs-warning-box { font-size: 28px; line-height: 42px; }
    
    .jobs-page-title { font-size: 52px; line-height: 60px; }
    .jobs-page-subtitle { font-size: 48px; line-height: 60px; }
    .jobs-count-label { font-size: 46px; margin-top: 70px; margin-bottom: 70px; }

    .dropdown-trigger, .clear-filter-btn { height: 70px; font-size: 22px; }
    .view-toggle-btn { width: 70px; height: 70px; }
    .view-toggle-btn svg { width: 45px; height: 45px; }

    .filter-arrow-icon, .cat-arrow-icon {
        border-left-width: 9px;
        border-right-width: 9px;
        border-top-width: 16px; 
    }

    .jobs-grid { 
        /* Sütunlar 520px sabit */
        grid-template-columns: repeat(3, 520px) !important; 
        
        /* REVİZE: (3x520) + (2x45) = 1650px. Tam oturur. */
        /* Hem dikey hem yatay boşluk 45px */
        gap: 45px !important; 
        
        /* Hizayı korumak için iki yana yasla */
        justify-content: space-between !important; 
    }

    /* Kart Boyutları: 520x510px */
    .job-card { 
        width: 520px !important; 
        height: 510px !important; 
        margin: 0 !important;
    } 

    .job-card-img-area { height: 220px; }
    .job-badge { height: 40px; padding: 0 20px; font-size: 13px; font-weight: 600; line-height: 19px; }
    .job-card-body { padding: 40px; }
    .job-card-title { font-size: 30px; line-height: 40px; margin-bottom: 20px; }
    .job-card-employment { font-size: 28px; margin-top: 0; margin-bottom: auto; }
    .job-hospital-name { font-size: 20px; bottom: 45px; left: 40px; }
    .job-link-icon { bottom: 45px; right: 40px; }
    .job-link-icon svg { width: 36px; height: 30px; }

    .jobs-grid.list-view { gap: 25px; }
    .jobs-grid.list-view .job-card { height: 140px !important; border-radius: 8px; width: 100% !important; } 
    .jobs-grid.list-view .job-card-title { font-size: 26px; font-weight: 600; line-height: 34px; padding-left: 35px; margin-bottom: 0 !important; }
    .jobs-grid.list-view .job-card-employment { font-size: 26px; font-weight: 400; line-height: 34px; margin-right: 60px; width: 140px; margin-bottom: 0; }
    .jobs-grid.list-view .job-badge { font-size: 13px; font-weight: 600; line-height: 19px; padding: 6px 15px; }
    .jobs-grid.list-view .job-hospital-name { font-size: 20px; font-weight: 400; line-height: 24px; position: static; }
    .jobs-grid.list-view .job-link-icon { position: static; }
    .jobs-grid.list-view .job-link-icon svg { width: 32px; height: 26px; }

    .teaser-title { font-size: 46px; }
    .mc-title { font-size: 2rem; }
    .mc-link { font-size: 1.4rem; }
    .img-wrap img { height: 240px; }
    
    .banner-link { font-size: 86px; font-weight: 700; line-height: 112px; max-width: 1400px; }
    
    .full-width-banner { height: 100vh !important; }
}

/* =========================================================
   TABLET 13 INCH & LAPTOP (1025px - 1366px) - KAPSÜLLEME
========================================================= */
@media screen and (max-width: 1366px) {

    .jobs-container, .banner-inner { max-width: 96%; }
    .jobs-page-title { font-size: 26px; font-weight: 600; line-height: 29px; }
    .jobs-page-subtitle { font-size: 26px; font-weight: 300; line-height: 34px; max-width: 100%; margin-top: 10px; }
    .jobs-titles-wrapper { margin-bottom: 40px; }
    .jobs-count-label { font-size: 26px; font-weight: 600; line-height: 34px; margin-top: 30px; margin-bottom: 30px; }
    .job-badge { font-size: 13px; font-weight: 600; line-height: 19px; padding: 4px 10px; }

    .jobs-grid.list-view .job-card-title { font-size: 22px; font-weight: 600; line-height: 29px; padding-left: 20px; }
    .jobs-grid.list-view .job-card-employment { font-size: 22px; font-weight: 400; line-height: 33px; margin-right: 30px; width: auto; }
    .jobs-grid.list-view .job-hospital-name { font-size: 16px; font-weight: 400; line-height: 19px; }
    
    /* LAPTOP MODUNDA GAP AYARI */
    .jobs-grid:not(.list-view) { gap: 40px 0; }
    
    .jobs-grid:not(.list-view) .job-card-title { font-size: 20px; } 

    .full-width-banner {
        height: 100vh !important; 
        padding: 0;
    }
    
    .banner-link { font-size: 40px; font-weight: 700; line-height: 52px; }
}

/* =========================================================
   TABLET ÖZEL HİZALAMA (BIÇAK SIRTI & LIST VIEW LAYOUT) - [SAFE LOCK]
   Aralık: 769px ile 1200px arası (iPad Pro Dikey & Diğer Tabletler)
========================================================= */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    
    .jobs-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 40px !important; 
        padding-right: 40px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .back-link { margin-left: 0 !important; }

    .jobs-grid.list-view .job-card {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 25px !important; 
        height: 140px !important;   
        gap: 0 !important;
    }

    .jobs-grid.list-view .job-card-body {
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 0 !important;
        height: 100% !important;
    }

    .jobs-grid.list-view .job-card-title {
        flex: 1 !important; 
        width: auto !important; 
        max-width: none !important; 
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important; 
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        text-overflow: ellipsis !important;
        margin-right: 15px !important; 
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
        margin-top: 0 !important;
    }

    .jobs-grid.list-view .job-card-employment {
        width: auto !important;
        margin-right: 15px !important; 
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        text-align: right !important;
    }

    .jobs-grid.list-view .job-card-footer {
        flex: 0 0 auto !important; 
        width: auto !important;
        display: flex !important;
        justify-content: flex-end !important; 
        align-items: center !important;
        gap: 15px !important;
        position: static !important;
        margin-left: 0 !important; 
    }

    .jobs-grid.list-view .job-hospital-name {
        text-align: right !important;
        white-space: nowrap !important;
        display: block !important;
        position: static !important;
        font-size: 15px !important;
    }

    .jobs-grid.list-view .job-link-icon {
        position: static !important;
        margin: 0 !important;
    }
}

/* SADECE 11 INCH VE ALTI TABLETLER (DİKEY MOD) */
@media only screen and (max-width: 960px) and (orientation: portrait) {
    .jobs-grid.list-view .job-card .job-hospital-name {
        display: none !important;
    }
}

/* TABLET (11", iPad Air, iPad Mini) - DİKEY (PORTRAIT) MOD GENEL HİZALAMA */
@media only screen and (max-width: 960px) and (orientation: portrait) {
    .sub-page-container,
    .banner-inner {
        width: 93% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* TABLET (Mini, Air, 11") - DİKEY MOD FİLTRE DÜZENİ */
@media only screen and (max-width: 960px) and (orientation: portrait) {
    .jobs-filter-bar {
        display: flex !important;
        flex-wrap: wrap !important; 
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }
    .filter-left-controls {
        display: flex !important;
        flex: 0 0 auto !important;
        margin-right: 5px !important;
    }
    .filter-dropdowns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; 
        flex: 1 !important;
        gap: 10px !important;
        width: auto !important;
        margin: 0 !important;
    }
    .custom-dropdown {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        margin-bottom: 0 !important;
    }
    .dropdown-trigger .selected-text {
        font-size: 18px !important;     
        font-weight: 600 !important;    
        line-height: 21px !important;   
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; 
    }
    .clear-filter-btn {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 5px !important;
        order: 99 !important;
    }
}

/* ============================================================
   MOBİL CİHAZLAR (767px ve altı - Telefonlar) - SEE-SPITAL AKORDEON STYLE (REVIZE)
   ============================================================ */
@media only screen and (max-width: 767px) {

    /* --- 1. GENEL YERLEŞİM --- */
    .sub-page-container,
    .banner-inner {
        width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* --- 2. FİLTRE KONTEYNERİ (Dikey ve Bitişik) --- */
    .jobs-filter-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        height: auto !important;
        gap: 0 !important; 
        padding: 10px 0 !important;
    }

    .filter-left-controls {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-bottom: 10px !important;
    }

    /* --- 3. MASTER BUTON (GRİ RENKLİ) --- */
    .mobile-master-filter-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 50px !important;
        background-color: #F2F2F2 !important; /* Buton Rengi */
        color: #00325B !important;
        border: none !important;
        padding: 0 20px !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
    }

    .mobile-master-filter-btn .filter-arrow-icon {
        width: 0; height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 12px solid #00325B;
        transition: transform 0.3s ease;
    }
    
    .mobile-master-filter-btn.open .filter-arrow-icon {
        transform: rotate(180deg) !important;
    }

    /* --- 4. LACİVERT AÇILIR PANEL (Filter Dropdowns) --- */
    .filter-dropdowns {
        display: none !important; /* Varsayılan Gizli */
        flex-direction: column !important;
        width: 100% !important;
        background-color: #00325B !important; /* LACİVERT ZEMİN */
        margin: 0 !important;
        gap: 0 !important; 
    }

    .filter-dropdowns.mobile-visible {
        display: flex !important; /* JS ile açılır */
    }

    /* --- 5. İÇERİDEKİ LİSTE BAŞLIKLARI (BEYAZ METİN) --- */
    .custom-dropdown {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important; 
    }

    /* Tetikleyici Buton (Şeffaf Arkaplan, Beyaz Yazı) */
    .custom-dropdown .dropdown-trigger {
        background-color: transparent !important; 
        color: #ffffff !important; 
        border: none !important;
        width: 100% !important;
        height: 50px !important;
        border-radius: 0 !important;
        justify-content: space-between !important;
        padding: 0 20px !important;
    }

    /* Ok İkonunu Beyaz Yap */
    .custom-dropdown .dropdown-trigger .filter-arrow-icon {
        border-top-color: #ffffff !important; 
    }

    /* --- 6. GRİMSİ ALT SEÇENEKLER (AKORDEON İÇERİĞİ) --- */
    .custom-dropdown .dropdown-content {
        position: static !important; /* Akordeon gibi davranması için */
        width: 100% !important;
        background-color: #F2F2F2 !important; /* GRİMSİ ZEMİN */
        box-shadow: none !important;
        border-top: none !important;
    }
    
    /* Alt Menü Elemanları */
    .item.single-item, 
    .cat-header {
        color: #00325B !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    }
    
    .item.single-item:hover,
    .cat-header:hover {
        background-color: #e0e0e0 !important;
    }

    /* Kategori Okları (Koyu) */
    .cat-arrow-icon {
        border-top-color: #00325B !important;
    }

    /* 3. Seviye Alt Menü */
    .cat-body {
        background-color: #e6e6e6 !important; 
    }

    /* Temizle Butonu */
    .clear-filter-btn {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* --- 7. DİĞER MOBİL AYARLAR --- */
    .jobs-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* YENİ: MOBİLDE LİSTE GÖRÜNÜMÜ DÜZELTMESİ (GRID İLE KUSURSUZ HİZALAMA) */
    .jobs-grid.list-view .job-card {
        flex-direction: column !important; 
        align-items: flex-start !important;
        height: auto !important; 
        padding: 15px !important; 
        width: 100% !important;
        position: relative !important;
    }
    .jobs-grid.list-view .job-badge {
        top: 0 !important;
        left: 0 !important;
        border-bottom-right-radius: 4px !important;
    }
    /* Kartın içini Grid yapıyoruz: 2 Satır, 2 Sütun */
    .jobs-grid.list-view .job-card-body {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        width: 100% !important;
        padding: 0 !important;
        gap: 15px 10px !important; /* Satır ve Sütun boşluğu */
    }
    /* 1. SATIR: Başlık tam genişliğe yayılır ve Badge'den aşağı itilir */
    .jobs-grid.list-view .job-card-title {
        grid-column: 1 / -1 !important; /* Tüm satırı kaplar */
        width: 100% !important;
        margin: 0 !important;
        margin-top: 30px !important; /* YENİ: Başlığı Badge'den Kurtaran Boşluk */
        padding: 0 !important;
        white-space: normal !important; /* YENİ: Uzun başlıklar alt satıra geçer */
        text-align: left !important;
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    /* İnce ayırma çizgisi (Başlığın altına eklenir) */
    .jobs-grid.list-view .job-card-title::after {
        content: "" !important;
        display: block !important;
        width: 100% !important;
        height: 1px !important;
        background-color: #ddd !important;
        margin-top: 15px !important;
    }
    /* 2. SATIR SOL: İstihdam Türü */
    .jobs-grid.list-view .job-card-employment {
        grid-column: 1 / 2 !important;
        width: 100% !important;
        text-align: left !important;
        margin: 0 !important;
        font-size: 16px !important;
        align-self: center !important;
    }
    /* 2. SATIR SAĞ: Footer (İkonun olduğu alan) */
    .jobs-grid.list-view .job-card-footer {
        grid-column: 2 / 3 !important;
        width: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important; /* Eski çizgiyi kaldırdık */
        align-self: center !important;
    }
    /* Mobilde hastane ismini gizle, sadece ikon kalsın */
    .jobs-grid.list-view .job-hospital-name {
        display: none !important; 
    }
    .jobs-grid.list-view .job-link-icon {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    .jobs-grid.list-view .job-link-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Daha Fazla İçerik: KESİN ALT ALTA */
    .career-bottom-grid {
        display: flex !important;
        flex-direction: column !important; 
        gap: 40px !important;
    }
    .media-card-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .media-card-wrapper .img-wrap {
        margin-bottom: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    .media-card-wrapper .img-wrap img {
        width: 100% !important;
        height: auto !important;
    }
    .mc-title {
        font-size: 22px !important;
        font-weight: 600 !important;
        line-height: 29px !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }
    .mc-link {
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: normal !important;
        display: inline-block !important;
    }
    .back-link {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 23px !important;
    }
    .jobs-page-title {
        font-size: 26px !important;
        font-weight: 600 !important;
        line-height: 29px !important;
    }
    .jobs-page-subtitle {
        font-size: 26px !important;
        font-weight: 300 !important;
        line-height: 34px !important;
    }
    .jobs-count-label {
        font-size: 26px !important;
        font-weight: 600 !important;
        line-height: 34px !important;
    }
    .job-card-title {
        font-size: 22px !important;
        font-weight: 600 !important;
        line-height: 29px !important;
    }
    .banner-link {
        font-size: 30px !important;
        font-weight: 700 !important;
        line-height: 39px !important;
    }
    
    /* MOBİLDE DE TAM EKRAN (100vh) */
    .full-width-banner {
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .jobs-grid:not(.list-view) .job-card {
        height: 385px !important;
        min-height: 385px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; 
    }
}