/* ====== Health A-Z Directory Styles ====== */
/* Unique classes - no conflict with Medicine A-Z */
/* Questrial Font Applied Everywhere */

/* ====== Google Font Import ====== */
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

/* ====== Global Questrial Font ====== */
.health-directory,
.health-directory *,
.health-detail-content,
.health-detail-content * {
    font-family: "Questrial", sans-serif !important;
}

/* ====== Global container ====== */
.health-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
    background: #F7F9FC;
}

/* ====== Search bar ====== */
#healthSearch {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    font-family: "Questrial", sans-serif !important;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 32px 0 24px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s ease;
}

#healthSearch:focus {
    border-color: #0E264B;
}

/* ====== Health list - single column ====== */
.health-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ====== Individual health card ====== */
.health-card {
    padding: 20px;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.health-card:hover {
    background-color: #E7F2FE;
}

/* ====== Health Badge ====== */
.health-badge {
    display: inline-block;
    background: #0E264B;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Typography */
.health-title {
    color: #0E264B;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.health-title a {
    color: #0E264B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.health-title a:hover {
    color: #1a4a8a;
    text-decoration: underline;
}

.health-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444444;
}

/* ====== Health Detail Page Styles ====== */
.health-detail-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    color: #333;
}

.health-back-link {
    margin-bottom: 24px;
}

.health-back-link a {
    color: #0E264B;
    font-weight: 600;
    text-decoration: none;
}

.health-back-link a:hover {
    text-decoration: underline;
}

.health-detail-content h1 {
    font-size: 36px;
    color: #0E264B;
    margin-bottom: 20px;
}

.health-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.health-section:hover {
    background-color: #E7F2FE;
}

.health-section h2 {
    color: #0E264B;
    font-size: 22px;
    margin-bottom: 12px;
    border-bottom: 2px solid #0E264B;
    display: inline-block;
    padding-bottom: 4px;
}

.health-section p {
    line-height: 1.7;
    font-size: 16px;
    color: #444;
}

/* ====== Responsive design ====== */
@media(max-width: 768px) {
    .health-directory {
        padding: 0 12px 40px;
    }

    .health-card {
        padding: 16px;
    }

    .health-title {
        font-size: 20px;
    }

    .health-desc {
        font-size: 14px;
    }

    .health-detail-content {
        margin: 20px auto;
    }

    .health-detail-content h1 {
        font-size: 28px;
    }

    .health-section {
        padding: 16px;
    }

    .health-section h2 {
        font-size: 18px;
    }
}

@media(max-width: 480px) {
    .health-card {
        padding: 12px;
    }

    .health-title {
        font-size: 18px;
    }

    .health-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .health-detail-content h1 {
        font-size: 24px;
    }

    .health-section h2 {
        font-size: 16px;
    }
}