
/* Hormonal Balance — page-specific styling only */

.hb-page {
    --hb-navy: #142b49;
    --hb-pink: #ae236b;
    --hb-rose: #fbf0f6;
    --hb-text: #33445a;
    --hb-line: #eadde5;
    color: var(--hb-text);
    font-size: 16px;
    line-height: 1.75;
}

.hb-page,
.hb-page * {
    box-sizing: border-box;
}

.hb-page .hb-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.hb-page h1,
.hb-page h2,
.hb-page h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    color: var(--hb-navy);
}

.hb-page h1 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    margin: 14px 0 22px;
}

.hb-page h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    margin: 12px 0 22px;
}

.hb-page h3 {
    font-size: 1.45rem;
    margin: 0 0 14px;
}

.hb-page p {
    margin: 0 0 18px;
    line-height: 1.8;
}

.hb-page a:not(.hb-btn) {
    color: var(--hb-pink);
    text-underline-offset: 3px;
}

.hb-page .hb-kicker {
    display: inline-block;
    color: var(--hb-pink);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hb-page .hb-section {
    padding-block: 65px;
}

.hb-page .hb-tint {
    background: #fcf7fa;
}

.hb-page .hb-section-heading {
    max-width: 850px;
    margin: 0 auto 32px;
    text-align: center;
}

/* Hero: image appears in full, never cropped */

.hb-page .hb-hero {
    background: #fbf5f8;
    padding: 58px 0 46px;
    min-height: 0;
    color: var(--hb-text);
}

.hb-page .hb-hero .hb-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hb-page .hb-hero-copy {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.hb-page .hb-hero-copy p {
    font-size: 1.1rem;
    max-width: 760px;
    margin-inline: auto;
}

.hb-page .hb-hero .hb-actions {
    justify-content: center;
}

/* All infographics retain their original proportions */

.hb-page .hb-image-frame,
.hb-page .hb-full-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 24px auto;
    overflow: visible;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    aspect-ratio: auto;
}

.hb-page .hb-image-frame img,
.hb-page .hb-full-image img,
.hb-page .hb-story img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    aspect-ratio: auto;
    border-radius: 16px;
}

.hb-page figcaption {
    padding: 12px 4px;
    font-size: .88rem;
    color: #64748b;
    text-align: center;
}

/* Buttons */

.hb-page .hb-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hb-page .hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 28px;
    text-decoration: none;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.hb-page .hb-btn-primary {
    background: var(--hb-pink);
    color: #fff;
}

.hb-page .hb-btn-outline {
    background: #fff;
    border-color: var(--hb-pink);
    color: var(--hb-pink);
}

.hb-page .hb-btn:hover {
    filter: brightness(.95);
}

/* Breadcrumb and jump navigation */

.hb-page .hb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-block: 20px;
    font-size: .87rem;
}

.hb-page .hb-jump {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
}

.hb-page .hb-jump strong {
    color: var(--hb-navy);
}

.hb-page .hb-jump a {
    font-size: .9rem;
}

/* Topic cards */

.hb-page .hb-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 30px 0;
}

.hb-page .hb-topic-grid article {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--hb-line);
    border-radius: 16px;
    background: #fff;
}

.hb-page .hb-topic-grid article p:last-child {
    margin-bottom: 0;
}

/* Vertical infographic stories */

.hb-page .hb-vertical-stories {
    display: flex;
    flex-direction: column;
    gap: 42px;
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
}

.hb-page .hb-story {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 0 24px;
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgb(20 43 73 / 5%);
}

.hb-page .hb-story .hb-image-frame {
    margin: 0;
    border-radius: 0;
}

.hb-page .hb-story img {
    border-radius: 0;
}

.hb-page .hb-story-content {
    padding: 26px 32px 4px;
}

.hb-page .hb-story-content p {
    margin-bottom: 17px;
}

/* Symptom checklist */

.hb-page .hb-check-card {
    padding: 30px;
    margin-top: 38px;
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: 18px;
}

.hb-page .hb-checks {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.hb-page .hb-checks label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fbf7fa;
    cursor: pointer;
}

.hb-page .hb-checks input {
    width: 18px;
    height: 18px;
    accent-color: var(--hb-pink);
}

.hb-page .hb-status {
    min-height: 24px;
    margin-top: 14px;
    color: var(--hb-pink);
}

/* Diagnosis and treatment copy */

.hb-page .hb-care-copy {
    max-width: 920px;
    margin: 44px auto 0;
}

/* FAQs */

.hb-page .hb-faq {
    max-width: 880px;
    margin-inline: auto;
}

.hb-page .hb-faq details {
    margin: 12px 0;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
}

.hb-page .hb-faq summary {
    font-weight: 700;
    color: var(--hb-navy);
    cursor: pointer;
}

.hb-page .hb-faq details p {
    margin: 16px 0 0;
}

/* Consultation section */

.hb-page .hb-consult {
    background: #f9eef4;
}

.hb-page .hb-consult .hb-actions {
    justify-content: center;
}

.hb-page .hb-consult .hb-image-frame {
    max-width: 960px;
}

/* Responsive layout */

@media (max-width: 767px) {
    .hb-page .hb-container {
        width: calc(100% - 28px);
    }

    .hb-page .hb-section {
        padding-block: 40px;
    }

    .hb-page .hb-hero {
        padding: 35px 0;
    }

    .hb-page .hb-topic-grid {
        grid-template-columns: 1fr;
    }

    .hb-page .hb-topic-grid article {
        padding: 20px;
    }

    .hb-page .hb-vertical-stories {
        gap: 26px;
    }

    .hb-page .hb-story-content {
        padding: 22px 20px 4px;
    }

    .hb-page .hb-check-card {
        padding: 20px;
    }

    .hb-page .hb-actions {
        flex-direction: column;
    }

    .hb-page .hb-actions .hb-btn {
        width: 100%;
    }

    .hb-page .hb-jump {
        gap: 10px 14px;
    }
}
