/* css/sub/pages/health-first.css */
/* ============================================================
   HEALTH FIRST (ÖNCE SAĞLIK) - V10.1 (BREADCRUMB FIXED)
   Prefix: .hf-
   Reference: lifestyle-detail.css
   Updates:
   - Breadcrumb styling exactly matched to detail page.
   - Spacing aligned.
   ============================================================ */

/* ============================================================
   1. GLOBAL & RESET
   ============================================================ */
body,
html {
    overflow-x: clip;
    background-color: #fafafa !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
    margin-top: 0;
    margin-bottom: 0;
}

/* ============================================================
   2. DESKTOP BASE (Standard)
   ============================================================ */

/* --- Main Container --- */
.hf-main-container {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* --- Hero Section --- */
.hf-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: visible !important;
    z-index: 20;
}

.hf-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;
}

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

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

.hf-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;
}

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

/* --- Search Box --- */
.hf-search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 60px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.hf-search-input {
    flex: 1;
    border: none;
    background: transparent;
    height: 100%;
    padding: 0 25px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #333;
    outline: none;
}

.hf-search-btn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00325B;
    transition: all 0.3s ease;
}

.hf-search-btn:hover {
    background-color: #f0f0f0;
    color: #0071CE;
}

/* --- Autocomplete --- */
.hf-suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 999;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-top: none;
}

.hf-suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.hf-suggestions-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.hf-suggestions-list li {
    border-bottom: 1px solid #f5f5f5;
    margin: 0;
}

.hf-suggestions-list li:last-child {
    border-bottom: none;
}

.hf-suggestions-list a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.hf-suggestions-list a:hover {
    background-color: #f9f9f9;
    color: #00325B;
}

.hf-suggestions-list a b {
    color: #00325B;
    font-weight: 700;
}

@media screen and (min-width: 600px) {
    .hf-suggestions-list {
        display: none !important;
    }
}

/* --- BREADCRUMB (BİREBİR EŞLEŞTİRİLDİ) --- */
.page-breadcrumb {
    padding: 1.5rem 0; /* Detay sayfasıyla aynı padding */
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    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;
}

/* --- Social Icons --- */
.info-social-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 50px !important;
    margin-top: 15px; /* Detay sayfasındaki hizaya göre ayarlandı */
}

.info-social-top a {
    color: #00325B;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    transition: color 0.3s ease;
}

.info-social-top a:hover {
    color: #0071CE;
}

.info-social-top a svg {
    width: 100%;
    height: 100%;
}

/* --- Filter Section --- */
.hf-filter-container {
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.hf-filter-btn {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #00325B;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hf-filter-btn:hover,
.hf-filter-btn.active {
    background-color: #00325B;
    color: #fff;
    border-color: #00325B;
}

.hf-filter-btn.all {
    width: auto;
    padding: 0 20px;
}

/* --- Grid & Cards --- */
.hf-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

/* --- Group Separator --- */
.hf-group-separator {
    grid-column: 1 / -1;
    width: 100%;
    height: 30px;
    visibility: hidden;
    margin: 0;
    padding: 0;
}

.hf-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hf-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cce4f7;
}

.hf-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
}

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

.hf-card-img-wrap:hover img {
    transform: scale(1.05);
}

.hf-card-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00325B;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hf-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.hf-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.hf-card-title a {
    color: #00325B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hf-card:hover .hf-card-title a {
    color: #0071CE;
}

/* --- Load More --- */
.hf-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 230px !important;
    width: 100%;
}

.hf-load-more-btn {
    background-color: transparent;
    border: 2px solid #00325B;
    color: #00325B;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hf-load-more-btn:hover {
    background-color: #00325B;
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- 2000px+ (Large Screens) --- */
@media screen and (min-width: 2000px) {
    .hf-hero {
        height: 550px !important;
        max-height: 550px !important;
    }

    .hf-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }

    .hf-hero-title {
        font-size: 64px !important;
        line-height: 1.1 !important;
    }

    .hf-hero-badge {
        font-size: 16px !important;
        height: 45px !important;
        padding: 0 25px !important;
    }

    .hf-card-title {
        font-size: 22px !important;
    }

    .hf-card-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .hf-card-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .hf-search-box {
        max-width: 900px;
        height: 80px;
        border-radius: 40px;
    }

    .hf-search-input {
        font-size: 24px;
    }

    .hf-search-btn {
        width: 70px;
        height: 70px;
    }
}

/* --- 1200px - 1399px (Standard Laptop) --- */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .hf-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
}

/* --- 900px - 1199px (Tablet Landscape) --- */
@media screen and (min-width: 900px) and (max-width: 1199px) {
    .hf-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* --- 600px - 899px (Tablet Portrait) --- */
@media screen and (min-width: 600px) and (max-width: 899px) {
    .hf-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* --- Max 599px (Mobile) --- */
@media screen and (max-width: 599px) {
    .hf-main-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hf-hero .sub-page-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hf-hero {
        height: 360px !important;
        min-height: 360px !important;
        overflow: visible !important;
        background-image: url('../../../images/healthlibrary/health-first.jpg') !important; 
    }

    .hf-hero-title {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .hf-search-box {
        height: 50px !important;
    }

    .hf-search-input {
        font-size: 16px !important;
        padding: 0 15px !important;
    }

    .hf-search-btn {
        width: 50px !important;
        height: 50px !important;
    }

    .hf-search-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Grid Gap: 15px (Standardized with diseases.php) */
    .hf-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .hf-card {
        flex-direction: row !important;
        align-items: center !important;
        height: 100px !important;
    }

    .hf-card-img-wrap {
        width: 100px !important;
        height: 100px !important;
        flex: 0 0 100px !important;
    }

    .hf-card-body {
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
    }

    .hf-card-title {
        font-size: 17px !important;
        margin: 0 !important;
    }

    .hf-card-icon {
        width: 24px !important;
        height: 24px !important;
        top: 5px !important;
        left: 5px !important;
    }

    .hf-card-icon svg {
        width: 14px !important;
    }

    .hf-filter-container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        margin-right: -10px !important;
        padding-right: 10px !important;
    }

    .hf-filter-container::-webkit-scrollbar {
        display: none;
    }

    .hf-filter-btn {
        flex: 0 0 auto !important;
        font-size: 13px !important;
        min-width: 37px !important;
    }

    /* Social Icons: Fixed to 18px (Standardized) */
    .info-social-top {
        gap: 20px !important;
        margin-bottom: 40px !important;
    }

    .info-social-top a {
        width: 18px !important;
        height: 18px !important;
    }

    .info-social-top svg {
        width: 100% !important;
        height: 100% !important;
    }
}