/* css/sub/pages/institutions.css */
/* =========================================
   ÖZEL ÜNYE ÇAKIRTEPE HASTANESİ
   Sayfa: Anlaşmalı Kurumlar (Institutions)
   ========================================= */

body, html {
    overflow: visible !important;
    overflow-x: clip !important;
    scroll-padding-top: 0 !important;
}

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

* {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   1. HERO SECTION (Sağlık Kütüphanesi Sablonu)
   ========================================================================== */
.inst-hero {
    position: relative; 
    width: 100%;
    height: 400px !important; 
    min-height: 400px !important; 
    max-height: 400px !important;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat; 
    display: flex;
    align-items: center !important; 
    justify-content: flex-start !important; 
    padding: 0 !important; 
    margin: 0; 
    margin-bottom: 0 !important; 
    overflow: hidden;
}

.inst-hero-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0,50,91,0.8), rgba(0,50,91,0.4));
    z-index: 1;
}

.inst-hero .sub-page-container {
    width: 100% !important;
    position: relative;
    z-index: 2;
    display: block !important;
}

.inst-hero-content {
    width: 100%;
    max-width: 800px;
    text-align: left; 
    color: #fff;
}

.inst-hero-badge {
    background-color: #fff;
    color: #00325B;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    height: 30px; 
    display: inline-flex; 
    align-items: center;  
    padding: 0 15px;      
    font-size: 12px;
    font-weight: 700;
    line-height: 1;       
    margin-bottom: 20px; 
    border-radius: 4px;
}

.inst-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px; 
    font-weight: 700;
    line-height: 53px;
    color: #fff;
    margin-bottom: 30px; 
}

/* ==========================================================================
   2. BREADCRUMB & LAYOUT
   ========================================================================== */
.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: 30px !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; }

.inst-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin-bottom: 80px;
    align-items: start;
}

/* --- INTRO --- */
.inst-intro-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 0; 
    margin-bottom: 0;
    align-items: flex-start;
}

.inst-intro-text { flex: 1; }

.inst-intro-text h2 {
    font-size: 34px;
    color: #00325B;
    font-weight: 700;
    line-height: 44px;
    margin-bottom: 20px;
    margin-top: 0; 
}

.inst-lead-text {
    font-size: 19px;
    color: #333;
    font-weight: 400;
    line-height: 29px;
    max-width: 100% !important; 
}

/* --- DIVIDER --- */
.inst-divider {
    border: 0;
    border-top: 4px solid #00325B;
    margin-top: 55px; 
    margin-bottom: 15.5px;
    width: 100%;
}

/* --- SECTION CONTENT --- */
.inst-section {
    margin-bottom: 0;
}

.inst-section-title {
    font-size: 30px;
    color: #00325B;
    font-weight: 700;
    line-height: 39px;
    margin-top: 0;
    margin-bottom: 35.5px;
}

/* --- ACCORDION --- */
.inst-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 630px;
}

.inst-acc-item { width: 100%; }

.inst-acc-header {
    background-color: #00325B;
    color: #ffffff;
    width: 100%;
    height: auto !important;
    min-height: 54px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px !important; 
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.inst-acc-header:hover { background-color: #002545; }

.inst-acc-header span {
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    padding-right: 15px;
}

.inst-acc-icon {
    width: 22px;
    height: 16px;
    flex-shrink: 0;
    transform: rotate(90deg);
    transition: transform 0.5s ease;
}

.inst-acc-item.active .inst-acc-icon { transform: rotate(270deg); }

.inst-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #F2F2F2;
}

.inst-acc-inner {
    padding: 30px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    border: none;
}

.inst-acc-inner ul {
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

.inst-acc-inner li {
    margin-bottom: 8px;
    list-style-type: disc;
}
.inst-acc-inner li:last-child { margin-bottom: 0; }

/* --- SIDEBAR --- */
.inst-sidebar {
    height: 100%;
    position: relative;
    padding-top: 0; 
}

.sidebar-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    width: 100%;
    background-color: #F2F2F2;
    padding: 40px;
    border-radius: 4px;
    z-index: 10;
}

.sidebar-section { margin-bottom: 50px; }
.sidebar-section:last-child { margin-bottom: 0; }

.sidebar-heading {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #00325B;
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.sidebar-person-block { margin-bottom: 30px; }

.sp-role {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #00325B;
    margin-bottom: 5px;
}

.sp-name {
    display: block;
    font-size: 16px;
    color: #333;
}

.sidebar-contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.inst-sc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #0071CE;
    text-decoration: none;
    font-weight: 400;
    line-height: 22px;
    transition: 0.3s ease;
}

.inst-sc-item:hover { color: #00325B; }
.inst-sc-item svg { width: 24px; height: 24px; flex-shrink: 0; }

/* --- PARALLAX BANNER --- */
.inst-parallax {
    position: relative;
    width: 100%;
    height: 600px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
}

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

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

.inst-parallax-content {
    position: relative; z-index: 3; width: 100%; padding-left: 10px; padding-right: 10px;
}

.inst-parallax-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 50px;
    color: #fff;
    max-width: 1200px;
    margin: 0;
}


/* ==========================================================================
   FLUID SCALE (DEV EKRANLAR - 2000px+)
   ========================================================================== */
@media (min-width: 2000px) {

    /* --- HERO (Sağlık Kütüphanesi Fluid) --- */
    .inst-hero { 
        height: 550px !important; 
        min-height: 550px !important;
        max-height: 550px !important;
    }
    .inst-hero-title { font-size: 64px !important; line-height: 1.1 !important; }
    .inst-hero-badge { font-size: 16px !important; height: 45px !important; padding: 0 25px !important; }

    /* --- LAYOUT & SIDEBAR --- */
    .inst-layout-grid {
        grid-template-columns: 1fr 500px !important; 
        gap: 80px !important; 
        margin-bottom: 150px !important;
    }

    /* --- INTRO --- */
    .inst-intro-wrapper { gap: 60px !important; }
    .inst-intro-text { max-width: 100% !important; flex: none !important; }
    .inst-intro-text h2 { font-size: 46px !important; line-height: 60px !important; margin-bottom: 30px !important; }
    .inst-lead-text { font-size: 28px !important; line-height: 1.5 !important; }

    /* --- DIVIDER --- */
    .inst-divider { margin-top: 70px !important; margin-bottom: 19.5px !important; }

    /* --- SECTIONS --- */
    .inst-section-title { font-size: 38px !important; line-height: 49px !important; margin-bottom: 40px !important; }
    
    .inst-accordion-wrapper { max-width: 880px !important; gap: 30px !important; }
    .inst-acc-header { min-height: 70px !important; padding: 20px 35px !important; }
    .inst-acc-header span { font-size: 26px !important; line-height: 26px !important; } 
    .inst-acc-inner { padding: 40px !important; font-size: 24px !important; line-height: 41px !important; }
    .inst-acc-inner li { margin-bottom: 12px !important; }

    /* --- SIDEBAR --- */
    .sidebar-inner { padding: 50px !important; }
    .sidebar-heading { font-size: 32px !important; margin-bottom: 30px !important; }
    .sp-role, .sp-name { font-size: 24px !important; }
    .inst-sc-item { font-size: 24px !important; gap: 15px !important; }
    .inst-sc-item svg { width: 36px !important; height: 36px !important; }

    /* --- PARALLAX --- */
    .inst-parallax { height: 800px !important; }
    .inst-parallax-content h2 { font-size: 86px !important; line-height: 103px !important; }
}

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

    /* --- HERO --- */
    .inst-hero { height: 400px !important; min-height: 400px !important; max-height: 400px !important; }
    .inst-hero-title { font-size: 34px !important; line-height: 44px !important; margin-bottom: 20px !important; }

    .inst-layout-grid { grid-template-columns: 1fr 300px !important; gap: 30px !important; margin-bottom: 80px !important; }

    .inst-intro-text h2 { font-size: 25px !important; }
    .inst-lead-text { font-size: 18px !important; }

    .inst-section-title { font-size: 25px !important; margin-bottom: 30px !important; }
    .inst-acc-header { padding: 12px 20px !important; min-height: 50px !important; }
    .inst-acc-header span { font-size: 20px !important; }
    .inst-acc-inner { padding: 25px !important; font-size: 15px !important; }

    .sidebar-inner { padding: 30px !important; }
    .sidebar-heading { font-size: 18px !important; }
    .sp-role, .sp-name, .inst-sc-item { font-size: 15px !important; }
    .inst-sc-item svg { width: 20px !important; height: 20px !important; }

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

/* ==========================================================================
   KÜÇÜK TABLET & DİKEY MOD (700px - 999px)
   ========================================================================== */
@media (min-width: 700px) and (max-width: 999px) {
    html { scroll-padding-top: 73px !important; }
    .sub-page-container { padding-left: 30px !important; padding-right: 30px !important; width: 100% !important; }

    /* --- HERO --- */
    .inst-hero { height: 400px !important; min-height: 400px !important; max-height: 400px !important; }
    .inst-hero-title { font-size: 32px !important; line-height: 40px !important; }

    .inst-layout-grid { display: flex !important; flex-direction: column !important; gap: 60px !important; margin-bottom: 80px !important; }

    .inst-intro-wrapper { display: flex !important; flex-direction: column !important; gap: 40px !important; margin-bottom: 55px !important; }
    .inst-intro-text h2 { font-size: 26px !important; }
    .inst-lead-text { font-size: 18px !important; max-width: 100% !important; }

    .inst-divider { margin-top: 55px !important; border-top: 4px solid #00325B !important; width: 100% !important; }
    .inst-section-title { font-size: 26px !important; margin-bottom: 25px !important; margin-top: 15px !important; }
    
    .inst-accordion-wrapper { width: 100% !important; margin-bottom: 85px !important; max-width: 660px !important; }
    @media (max-width: 799px) { .inst-accordion-wrapper { max-width: 610px !important; } }
    
    .inst-acc-header { padding: 12px 25px !important; min-height: 60px !important; }
    .inst-acc-header span { font-size: 20px !important; }
    .inst-acc-inner { padding: 30px !important; font-size: 16px !important; max-width: 620px !important; width: 100% !important; }

    .inst-sidebar { width: 100% !important; padding-top: 0 !important; }
    .sidebar-inner { padding: 40px !important; width: 100% !important; }
    .sidebar-heading { font-size: 22px !important; }
    .sp-role, .sp-name, .inst-sc-item { font-size: 16px !important; }

    .inst-parallax { height: 360px !important; justify-content: flex-start !important; align-items: center !important; }
    .inst-parallax-bg { height: 150% !important; top: -25% !important; }
    .inst-parallax-content { padding-left: 30px !important; width: 100% !important; max-width: 100% !important; }
    .inst-parallax-content h2 { font-size: 40px !important; line-height: 48px !important; }
}

/* ==========================================================================
   MOBİL MOD (699px ve Altı)
   ========================================================================== */
@media (max-width: 699px) {
    html { scroll-padding-top: 0px !important; }
    .sub-page-container { padding-left: 10px !important; padding-right: 10px !important; width: 100% !important; }

    /* --- HERO (Sağlık Kütüphanesi Mobil Fluid) --- */
    .inst-hero { 
        height: 360px !important; 
        min-height: 360px !important; 
        max-height: 360px !important;
        background-position: center 20% !important; 
        align-items: center !important; 
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .inst-hero .sub-page-container { padding-left: 10px !important; padding-right: 10px !important; margin: 0 !important; }
    .inst-hero-content { padding: 0 !important; width: 100% !important; }
    .inst-hero-title { font-size: 26px !important; line-height: 34px !important; margin-bottom: 20px; }

    /* --- LAYOUT --- */
    .inst-layout-grid { display: flex !important; flex-direction: column !important; gap: 0 !important; margin-bottom: 80px !important; }

    .inst-intro-wrapper { display: flex !important; flex-direction: column !important; gap: 30px !important; margin-top: 0 !important; margin-bottom: 40px !important; }
    .inst-intro-text { width: 100% !important; max-width: 100% !important; }
    .inst-intro-text h2 { font-size: 26px !important; line-height: 1.3 !important; margin-top: 0 !important; }
    .inst-lead-text { font-size: 17px !important; line-height: 1.5 !important; }

    .inst-divider { margin-top: 0 !important; border-top: 4px solid #00325B !important; width: 100% !important; }
    .inst-section-title { font-size: 26px !important; margin-top: 25px !important; margin-bottom: 20px !important; }

    .inst-accordion-wrapper { width: 100% !important; margin-bottom: 60px !important; }
    .inst-acc-header { padding: 15px 20px !important; min-height: 60px !important; }
    .inst-acc-header span { font-size: 18px !important; line-height: 1.3 !important; }
    .inst-acc-inner { padding: 25px !important; font-size: 16px !important; }

    .inst-sidebar { width: 100% !important; padding-top: 0 !important; }
    .sidebar-inner { padding: 30px 20px !important; }

    .inst-parallax { height: 480px !important; }
    .inst-parallax-content { padding-left: 10px !important; }
    .inst-parallax-content h2 { font-size: 30px !important; line-height: 1.2 !important; }
}