/* =========================================
   menopause-and-sleep - Article-specific overrides
   Shared base styles: ../shared/blog-article.css

   RULES:
   · Only put styles HERE that differ from the shared defaults.
   · Do NOT duplicate base styles from blog-article.css.
   · Do NOT add an inline <style> for FAQ - the shared CSS handles it.
   ========================================= */

/* =========================================
   Long H1
   ========================================= */
/* Match recent articles' 48px title treatment while giving this longer H1
   enough width to stay on the two deliberate lines set in the HTML. */
@media (min-width: 769px) {
    body:has(.blog-detail-page) .blog-detail-page .part1-title {
        width: 1050px !important;
        max-width: 1050px !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================================
   Hero image
   ========================================= */
/* The hero is a wide lifestyle photo, cover-cropped to the standard 480px
   band. The subjects sit near the centre, so a centred crop preserves their
   faces on desktop and mobile. */
.part1-img {
    width: 100%;
    border-radius: 24px;
    margin-top: 32px;
    object-fit: cover;
    object-position: center 50%;
    max-height: 480px;
    display: block;
    cursor: pointer;
}

/* =========================================
   Inline sub-headings inside the how-to section
   The blog detail pages render on a light (cream) theme via style.css,
   so these lead-ins use the site's dark ink for high contrast.
   ========================================= */
body:has(.blog-detail-page) .blog-section-text strong {
    color: #191919;
    font-weight: 700;
}

/* =========================================
   Conclusion section
   ========================================= */
.part9-conclusion {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* =========================================
   FAQ question text - override shared #191919
   (shared sets color to #191919 which disappears on dark background)
   ========================================= */
.faq-q-text {
    color: #FFFFFF;
}

/* =========================================
   More articles section
   ========================================= */
.part11 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.part11-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFFFFF;
    margin: 0 0 24px 0;
    width: 100%;
}

.part11-cards {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

/* =========================================
   Mobile overrides - article-specific
   ========================================= */
@media (max-width: 768px) {

    body:has(.blog-detail-page) .blog-detail-page .part1-title {
        width: 100% !important;
        max-width: 100% !important;
    }

    .part1-img {
        border-radius: 16px;
        margin-top: 20px;
        max-height: 240px;
        object-position: center 50%;
    }

    .part11-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .part11-cards {
        flex-direction: column;
        gap: 12px;
    }

}
