/* css/sub/pages/pharmacy.css */
/* -------------------------------------------------------------------------- */
/* PHARMACY PAGE - V7.0 (FLUID SCALE FIX)
/* Özellik: 2000px+ ekranlar için Sağlık Kütüphanesi stili birebir uygulandı.
/* -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }
main { margin-top: 0 !important; padding-top: 0 !important; }
body { font-family: 'Inter', sans-serif !important; -webkit-font-smoothing: antialiased; }

/* -------------------------------------------------------------------------- */
/* 1. HERO BANNER (BASE)
/* -------------------------------------------------------------------------- */
.editorial-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; overflow: hidden; box-sizing: border-box;
}

.ed-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Sağlık Kütüphanesi Gradienti */
    background: linear-gradient(to right, rgba(0,50,91,0.8), rgba(0,50,91,0.4)); 
    z-index: 1;
}

.ed-hero-content { 
    position: relative; z-index: 2; color: #fff; text-align: left; 
    width: 100%; max-width: 800px; 
}

/* Badge */
.ph-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;
}

.ed-hero-content h1 { 
    font-size: 48px; /* Desktop Base */
    font-weight: 700; line-height: 53px; 
    margin-bottom: 30px; color: #fff; margin-top: 0;
}

/* -------------------------------------------------------------------------- */
/* 2. CONTENT STYLES
/* -------------------------------------------------------------------------- */
.ph-intro { margin-top: 54px; margin-bottom: 30px; }
.ph-subtitle { font-size: 18px; color: #435F6C; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.ph-title { font-size: 32px; font-weight: 700; color: #00325B; margin-bottom: 20px; }
.ph-desc { font-size: 18px; color: #666; line-height: 1.5; max-width: 800px; margin-bottom: 40px; }
.ph-separator { border: none; border-top: 2px solid #00325B; width: 100%; margin-bottom: 44px; }

/* Grid */
.ph-grid-section { margin-bottom: 50px; }
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Kart */
.ph-card {
    background: #fff; border: none; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); transition: box-shadow 0.3s ease;
}
.ph-card:hover { transform: none !important; box-shadow: 0 15px 40px rgba(0, 50, 91, 0.12); }

.ph-card-header { background-color: #F8FDFF; padding: 30px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 25px; }
.ph-icon-wrap { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-icon-wrap svg { width: 100%; height: 100%; fill: #00325B; }
.ph-card-header h4 { margin: 0; font-size: 24px; font-weight: 800; color: #00325B; line-height: 1.2; }

.ph-card-body { padding: 30px; flex-grow: 1; }
.ph-info-row { margin-bottom: 20px; }
.ph-info-row:last-child { margin-bottom: 0; }
.ph-label { display: block; font-size: 12px; color: #8899A6; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
.ph-link-tel { font-size: 22px !important; color: #00325B !important; font-weight: 700 !important; text-decoration: none !important; line-height: 1.4; display: inline-block; transition: opacity 0.2s; }
a[href^="tel"] { color: inherit; text-decoration: none; }
.ph-link-tel:hover { opacity: 0.7; }
.ph-address-text { font-size: 16px; color: #333; font-weight: 500; line-height: 1.5; margin: 0; }

.ph-card-footer { padding: 20px 30px; background-color: #fff; border-top: 1px solid #f0f0f0; display: flex; gap: 15px; }
.ph-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all 0.3s; text-align: center; cursor: pointer; }
.ph-btn-call { background-color: #28a745; color: #fff !important; }
.ph-btn-call:hover { background-color: #218838; }
.ph-btn-dir { background-color: #00325B; color: #fff !important; }
.ph-btn-dir:hover { background-color: #002240; }
.ph-btn-outline { border: 2px solid #00325B; color: #00325B !important; background: transparent; font-weight: 700; padding: 12px 25px; border-radius: 8px; text-decoration: none; }
.ph-btn-outline:hover { background: #00325B; color: #fff !important; }

.ph-error-box { text-align: center; padding: 60px 20px; background: #fff5f5; border-radius: 12px; border: 1px solid #ffebeb; }
.ph-meta { margin-top: 20px; color: #999; font-size: 12px; text-align: right; }
.ph-gap-50 { height: 50px; }

/* Scroller */
.ph-more-content { padding-top: 35px; padding-bottom: 80px; background-color: #fff; overflow: hidden; position: relative; z-index: 25; }
.ph-more-header { display: block; margin-bottom: 80px; }
.ph-more-title-group h4 { font-size: 46px; font-weight: 600; color: #00325B; letter-spacing: -1.24px; line-height: 48px; margin-bottom: 20px; text-transform: none; margin-top: 0 !important; }
.ph-more-title-group p { font-size: 40px; font-weight: 600; color: #00325B; letter-spacing: -1.51px; line-height: 50px; margin: 0; margin-bottom: 100px; max-width: 800px; }
.ph-more-link { font-size: 1.1rem; font-weight: 700; color: #00325B; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; margin-bottom: 0; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.ph-more-link:hover { border-bottom-color: #00325B; }

.ph-pan-scroller { width: 100%; overflow-x: auto; overflow-y: hidden; cursor: grab; -ms-overflow-style: none; scrollbar-width: none; }
.ph-pan-scroller::-webkit-scrollbar { display: none; }
.ph-pan-track { display: flex; gap: 30px; width: max-content; }
.ph-pan-card { position: relative; width: 255px; flex-shrink: 0; text-decoration: none; display: flex; flex-direction: column; cursor: pointer; transition: box-shadow 0.3s ease; }
.ph-pan-card:hover { box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15), 5px 0 15px -5px rgba(0,0,0,0.1), -5px 0 15px -5px rgba(0,0,0,0.1); z-index: 2; }
.ph-pan-img-wrap { width: 100%; height: 160px; overflow: hidden; border-radius: 0; position: relative; }
.ph-pan-img { width: 100%; height: 100%; object-fit: cover; }
.ph-pan-text-wrap { background-color: #F0F7FA; padding: 15px 20px; height: 80px; position: relative; display: block; box-sizing: border-box; transition: box-shadow 0.3s ease; }
.ph-pan-card:hover .ph-pan-text-wrap { box-shadow: 0 10px 15px -5px rgba(0,0,0,0.05), 5px 0 15px -5px rgba(0,0,0,0.05), -5px 0 15px -5px rgba(0,0,0,0.05); }
.ph-pan-name { font-size: 18px; line-height: 1.3; font-weight: 600; color: #00325B; margin: 0; padding-right: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; white-space: normal; pointer-events: none; }
.ph-pan-arrow-icon { position: absolute; top: 22px; right: 20px; color: #00325B; opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; pointer-events: none; }
.ph-pan-card:hover .ph-pan-arrow-icon { opacity: 1; transform: translateX(0); }


/* ######################################################################
   FLUID SCALE (DEV EKRANLAR - 2000px+) - YENİ EKLENEN BÖLÜM
   Amaç: Sağlık Kütüphanesi ile aynı genişlik ve yükseklik ayarları
   ###################################################################### */
@media screen and (min-width: 2000px) {
    
    /* 1. Konteyner Sabitleme (1600px + Sıfır Padding) */
    .editorial-hero .sub-page-container,
    .sub-page-container {
        width: 1600px !important;
        max-width: 1600px !important;
        padding-left: 0 !important; 
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 2. Hero Yüksekliği (550px) */
    .editorial-hero { 
        height: 550px !important; 
        min-height: 550px !important;
        max-height: 550px !important;
    }

    /* 3. Font Boyutları (64px / 16px) */
    .ed-hero-content h1 { 
        font-size: 64px !important; 
        line-height: 1.1 !important; 
    }
    
    .ph-hero-badge { 
        font-size: 16px !important; 
        height: 45px !important; 
        padding: 0 25px !important; 
    }

    /* 4. İçerik Grid Ayarları (Daha geniş boşluk) */
    .ph-grid {
        gap: 50px !important;
    }
    
    /* Kart başlıklarını da büyütelim */
    .ph-card-header h4 {
        font-size: 28px !important;
    }
    .ph-link-tel {
        font-size: 26px !important;
    }
}


/* ######################################################################
   RESPONSIVE: TABLET & MOBILE
   ###################################################################### */
@media (max-width: 999px) {
    .ph-grid { grid-template-columns: 1fr; }
    .ph-card-header { flex-direction: column; text-align: center; gap: 15px; }
    .ph-card-body { text-align: center; }
    .ph-more-title-group h4 { font-size: 46px; }
    .ph-more-title-group p { font-size: 40px; }
    .ph-pan-track { padding-left: 40px !important; }
}

@media (max-width: 699px) {
    .editorial-hero { height: 360px !important; min-height: 360px !important; max-height: 360px !important; background-position: center 20% !important; align-items: center !important; }
    .ed-hero-content h1 { font-size: 26px !important; line-height: 34px !important; margin-bottom: 20px; }
    
    .ph-more-content { padding-top: 0 !important; }
    .ph-more-title-group h4 { font-size: 28px !important; font-weight: 600 !important; line-height: 1.2 !important; margin-top: 20px !important; margin-bottom: 15px !important; }
    .ph-more-title-group p { letter-spacing: 0.7px !important; font-size: 20px; line-height: 1.4; margin-bottom: 50px; }
    .ph-pan-track { gap: 15px !important; padding-left: 10px !important; }
    .ph-pan-text-wrap { box-shadow: none !important; }
    .ph-pan-arrow-icon { opacity: 1 !important; transform: translateX(0) !important; color: #00325B !important; }
    .ph-pan-card { width: 245px !important; box-shadow: 0 5px 10px -5px rgba(0,0,0,0.1) !important; }
    .ph-pan-img-wrap { height: 150px !important; }
    .ph-more-header { display: block; }
}