/* Uterine Fibroids page overrides and layout tweaks */

/* ==========================================================================
   HEADER OVERRIDES
   ========================================================================== */

/* Scope using body.uterine-fibroids to avoid leaking styles */
body.uterine-fibroids .header.has-subnav {
    height: 150px;
}

body.uterine-fibroids .header.has-subnav .header-container {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

body.uterine-fibroids .header-top {
    height: 96px;
}

body.uterine-fibroids .header-nav {
    height: 96px;
    gap: 36px;
}

/* ==========================================================================
   HERO SECTION - IMAGE-BASED DESIGN
   ========================================================================== */

.uterine-fibroids-hero {
    margin-top: 145px; /* Account for fixed header height */
    position: relative;
    overflow: unset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uterine-fibroids-hero-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

.uterine-fibroids-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

/* Picture tag handles image selection based on media queries */

.uterine-fibroids-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 38px;
    background: var(--text-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 2;
}

/* ==========================================================================
   FIBROIDS INFO SECTION
   ========================================================================== */

.fibroids-info-section {
    padding: 10px 0 60px 0;
    background: var(--text-white);
    text-align: center;
}

.fibroids-info-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 12px;
}

html[lang="fr"] .fibroids-info-container {
    max-width: 941px;
}

/* Disclaimer */
.fibroids-disclaimer {
    font-size: calc(20px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    text-align: center;
    margin: 0 auto 30px auto;
    line-height: 36px;
    width: 99%;
}

.fibroids-info-title {
    font-size: calc(42px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-bottom: 60px;
    position: relative;
    line-height: 50px;
}

.fibroids-info-text {
    font-size: calc(20px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    line-height: 36px;
    margin-bottom: 40px;
}

.fibroids-info-title::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(151, 44, 140, 0) 100%);
}

/* Main Illustration */
.fibroids-illustration {
    position: relative;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fibroids-main-image {
    max-width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
}

html[lang="fr"] .fibroids-main-image {
    max-width: 58%;
}

.illustration-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-text {
    font-size: calc(14px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.label-line {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
}

.uterus-label {
    top: 30%;
    left: 45%;
}

.fibroids-label {
    top: 20%;
    left: 60%;
}

.ovary-label {
    top: 25%;
    right: 20%;
}

/* Call-Out Box */
.fibroids-callout {
    background: #972C8C;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
    width: 95%;
    margin: 0 auto;
}

html[lang="fr"] .fibroids-callout {
    width: 75%;
}

.callout-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 100%;
}

.callout-icon {
    flex-shrink: 0;
}

.woman-icon {
    width: 100px;
    height: 100px;
    filter: brightness(0) invert(1);
}

.callout-text {
    flex: 1;
    text-align: left;
}

.callout-title {
    font-size: calc(30px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-black);
    color: var(--text-white);
    margin: 0 0 8px 0;
}

.callout-fact {
    font-size: calc(18px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-normal);
    color: var(--text-white);
    margin: 0;
    line-height: 1.4;
}

/* Concluding Text */
.fibroids-concluding-text {
    font-size: calc(var(--font-size-lg) * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 70px 0 0 0;
}

html[lang="fr"] .fibroids-concluding-text {
    width: 85%;
    margin: 50px auto 0 auto;
}

/* ==========================================================================
   SYMPTOMS SECTION
   ========================================================================== */

.fibroids-symptoms {
    background: linear-gradient(130deg, #f6dbe3 50% 0%, #972c8c4f 85% 0%);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.symptoms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.symptoms-title {
    font-size: calc(30px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.symptoms-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin: 0 auto;
}

.symptoms-left-column {
    flex:  1;
    text-align: left;
}

.symptoms-right-column {
    flex: 1;
    text-align: left;
}

.symptoms-intro {
    font-size: calc(18px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    line-height: 27px;
    margin-bottom: 0px;
}

.symptoms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 10px;
}

.symptoms-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0px;
    font-size: calc(18px * var(--base-font-scale, 1));
    line-height: 27px;
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

.symptoms-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================================================
   CAUSES SECTION
   ========================================================================== */

.fibroids-causes {
    background: var(--text-white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.causes-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0px;
}

.causes-title {
    font-size: calc(30px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    line-height: 40px;
}

.causes-text {
    font-size: calc(18px * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    line-height: 27px;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   LIFESTYLE TIPS SECTION
   ========================================================================== */

.lifestyle-tips {
    background: linear-gradient(180deg, #f6dbe3 50% 0%, #ffffff00 85% 0%);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.lifestyle-tips-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 74px;
}

.lifestyle-tips-title {
    font-size: calc(30px * var(--base-font-scale, 1));
    line-height: 40px;
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    margin-bottom: var(--spacing-xxl);
    text-align: center;
}

.lifestyle-tips-list {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    margin: 0 auto;
}

.lifestyle-tip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 280px;
    opacity: 0;
    animation: slideInUp 0.8s ease-out both;
    transition: var(--transition-normal);
    padding: 0;
    border-radius: var(--radius-md);
    flex: 1;
}

.lifestyle-tip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.lifestyle-tip-divider {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(92, 6, 140, 0) 100%);
    opacity: 0;
    animation: expandWidth 0.6s ease-out 1s both;
    margin: 0;
}

.lifestyle-tip-item:hover {
    transform: translateY(-8px);
}

.lifestyle-tip-item:nth-child(1) {
    animation-delay: 0.2s;
}

.lifestyle-tip-item:nth-child(2) {
    animation-delay: 0.4s;
}

.lifestyle-tip-item:nth-child(3) {
    animation-delay: 0.6s;
}

.lifestyle-tip-item:nth-child(4) {
    animation-delay: 0.8s;
}

.lifestyle-tip-icon {
    width: 100px;
    height: 100px;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(92, 6, 140, 0.2));
}

.lifestyle-tip-item:hover .lifestyle-tip-icon {
    transform: scale(1.1) rotate(5deg);
}

.lifestyle-tip-text {
    font-size: calc(20px * var(--base-font-scale, 1));
    line-height: 30px;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    text-align: center;
    transition: var(--transition-normal);
    max-width: 100%;
    margin-bottom: 12px;
    margin: 0 auto;
}

.lifestyle-tip-item:hover .lifestyle-tip-text {
    color: var(--color-primary-dark);
}

.lifestyle-tip-description-text {
    font-size: calc(16px * var(--base-font-scale, 1));
    line-height: 24px;
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
    text-align: center;
    margin: 20px 0 0 0;
}

.lifestyle-tip-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

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

/* Tablet screens (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .uterine-fibroids-hero {
        margin-top: 150px; /* Account for fixed header height on tablet */
    }
    
    .uterine-fibroids-hero-image {
        width: 100%;
    }
    
    .uterine-fibroids-hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Picture tag handles image selection automatically */
}

/* Large screens (1200px and below) */
@media (max-width: 1200px) {
    .symptoms-container {
        padding: 0 40px;
    }

    .symptoms-list {
        gap: 30px;
    }

    .symptom-item {
        max-width: 100%;
    }
}

/* Medium screens (900px and below) */
@media (max-width: 900px) {
    body.uterine-fibroids .myfembree-usage .usage-points-container {
        grid-template-columns: 1fr;
    }
}

/* Tablet screens (1130px and below) */
@media (max-width: 1130px) {

    /* Header adjustments */
    body.uterine-fibroids .header.has-subnav {
        height: 120px;
    }

    body.uterine-fibroids .header-nav {
        height: 80px;
        gap: 20px;
    }

    /* Hero section mobile layout */
    .uterine-fibroids-hero {
        margin-top: 100px; /* Account for fixed header height on mobile */
    }
    
    .uterine-fibroids-hero-image {
        width: 100%;
    }
    
    .uterine-fibroids-hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Picture tag handles image selection automatically */

    .uterine-fibroids-hero::after {
        width: 100%;
        max-width: 1000px;
        height: 30px;
        border-radius: 20px 20px 0 0;
    }

    /* Fibroids info section */
    .fibroids-info-section {
        padding: 30px 0;
    }

    .fibroids-info-title::after {
        width: 100%;
    }

    .fibroids-info-container {
        padding: 0 var(--spacing-sm);
    }

    /* Disclaimer */
    .fibroids-disclaimer {
        font-size: calc(15px * var(--base-font-scale, 1));
        margin-bottom: 20px;
        width: 95%;
    }

    /* Main Illustration */
    .fibroids-illustration {
        margin: 20px auto;
    }

    .label-text {
        font-size: calc(12px * var(--base-font-scale, 1));
        padding: 3px 6px;
    }

    .label-line {
        width: 15px;
        height: 1px;
    }

    /* Call-Out Box */
    .fibroids-callout {
        padding: 20px 35px;
        margin: 30px 0;
    }

    .callout-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .woman-icon {
        width: 80px;
        height: 80px;
    }

    .callout-text {
        text-align: center;
    }

    .callout-title {
        font-size: calc(26px * var(--base-font-scale, 1));
    }

    .callout-fact {
        font-size: calc(18px * var(--base-font-scale, 1));
    }

    /* Concluding Text */
    .fibroids-concluding-text {
        margin: 30px 0 0 0;
        font-size: calc(16px * var(--base-font-scale, 1));
    }

    /* Symptoms section */
    .fibroids-symptoms {
        padding: 60px 0;
    }

    .symptoms-container {
        padding: 0 40px;
    }

    .symptoms-title {
        font-size: calc(28px * var(--base-font-scale, 1));
        font-weight: 1000;
        color: var(--color-primary);
        margin-bottom: 40px;
    }

    .symptoms-content {
        flex-direction: column;
        gap: 30px;
    }

    .symptoms-left-column,
    .symptoms-right-column {
        flex: none;
        width: 100%;
    }

    .symptoms-intro {
        font-size: calc(15px * var(--base-font-scale, 1));
        margin-bottom: 15px;
    }

    .symptoms-list li {
        font-size: calc(14px * var(--base-font-scale, 1));
        margin-bottom: 0px;
    }

    /* Causes section */
    .fibroids-causes {
        padding: 60px 0;
    }

    .causes-container {
        padding: 0 40px;
    }

    .causes-title {
        font-size: calc(28px * var(--base-font-scale, 1));
        font-weight: 1000;
        color: var(--color-primary);
        margin-bottom: 30px;
    }

    .causes-text {
        font-size: calc(16px * var(--base-font-scale, 1));
    }

    /* Lifestyle Tips section */
    .lifestyle-tips {
        padding: 60px 0;
    }

    .lifestyle-tips-container {
        padding: 0 40px;
    }

    .lifestyle-tips-title {
        font-size: calc(28px * var(--base-font-scale, 1));
        font-weight: 1000;
        color: var(--color-primary);
        margin-bottom: 40px;
    }

    .lifestyle-tips-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        max-width: 1000px;
    }

    .lifestyle-tip-item {
        max-width: 100%;
        gap: 15px;
    }

    .lifestyle-tip-content {
        gap: 15px;
        width: 100%;
    }

    .lifestyle-tip-icon {
        width: 100px;
        height: 100px;
    }

    .lifestyle-tip-divider {
        width: 120px;
        height: 4px;
        margin: 0;
    }

    .lifestyle-tip-text {
        font-size: calc(18px * var(--base-font-scale, 1));
        line-height: 26px;
        color: var(--color-primary);
        font-weight: 700;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .lifestyle-tip-description-text {
        font-size: calc(15px * var(--base-font-scale, 1));
        line-height: 1.4;
    }
}

/* Mobile screens (480px and below) */
@media (max-width: 480px) {

    /* Header adjustments */
    body.uterine-fibroids .header.has-subnav {
        height: 100px;
    }

    body.uterine-fibroids .header-nav {
        height: 72px;
        gap: 14px;
    }

    body.uterine-fibroids .header-top {
        height: 0;
    }

    .uterine-fibroids-hero {
        margin-top: 100px; /* Account for fixed header height on small mobile */
    }
    
    .uterine-fibroids-hero-image {
        width: 100%;
    }
    
    .uterine-fibroids-hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .uterine-fibroids-hero::after {
        width: 100%;
        max-width: 1000px;
        height: 30px;
        border-radius: 20px 20px 0 0;
    }

    /* Fibroids info section */
    .fibroids-info-section {
        padding: 0 0 20px 0;
    }

    .fibroids-info-text {
        font-size: calc(18px * var(--base-font-scale, 1));
        line-height: 27px;
        margin-bottom: 20px;
    }

    .fibroids-info-title::after {
        width: 100%;
    }

    /* Disclaimer */
    .fibroids-disclaimer {
        font-size: calc(18px * var(--base-font-scale, 1));
        margin-bottom: 15px;
        width: 100%;
        line-height: 27px;
    }

    .fibroids-info-title {
        font-size: calc(25.5px * var(--base-font-scale, 1));
    }

    /* Main Illustration */
    .fibroids-illustration {
        margin: 20px auto;
        max-width: 100%;
    }

    .label-text {
        font-size: calc(10px * var(--base-font-scale, 1));
        padding: 2px 4px;
    }

    .label-line {
        width: 12px;
        height: 1px;
    }

    /* Call-Out Box */
    .fibroids-callout {
        padding: 20px 35px;
        margin: 20px 0;
        width: 100%;
    }

    .callout-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .fibroids-main-image {
        max-width: 95%;
    }

    html[lang="fr"] .fibroids-main-image {
        max-width: 95%;
    }

    .woman-icon {
        width: 80px;
        height: 80px;
    }

    .callout-text {
        text-align: center;
    }

    .callout-title {
        font-size: calc(24px * var(--base-font-scale, 1));
    }

    .callout-fact {
        font-size: calc(16px * var(--base-font-scale, 1));
        width: 90%;
        margin: 0 auto;
    }

    html[lang="fr"] .fibroids-callout {
        width: 100%;
    }

    /* Concluding Text */
    .fibroids-concluding-text {
        margin: 30px auto 20px auto;
        font-size: calc(16px * var(--base-font-scale, 1));
        font-weight: var(--font-weight-medium);
        line-height: 24px;
        width: 100%;
    }

    html[lang="fr"] .fibroids-concluding-text {
        width: 100%;
    }

    /* Symptoms section */
    .fibroids-symptoms {
        padding: 50px 0;
    }

    .symptoms-container {
        padding: 0 22px;
    }

    .symptoms-title {
        font-size: calc(23px * var(--base-font-scale, 1));
        font-weight: 1000;
        color: var(--color-primary);
        margin-bottom: 35px;
    }

    .symptoms-content {
        flex-direction: column;
        gap: 25px;
    }

    .symptoms-left-column,
    .symptoms-right-column {
        flex: none;
        width: 100%;
    }

    .symptoms-intro {
        font-size: calc(18px * var(--base-font-scale, 1));
        font-weight: var(--font-weight-medium);
        line-height: 27px;
        margin-bottom: 0px;
    }

    .symptoms-list li {
        font-size: calc(18px * var(--base-font-scale, 1));
        font-weight: var(--font-weight-medium);
        line-height: 27px;
        margin-bottom: 0px;
    }

    /* Causes section */
    .fibroids-causes {
        padding: 50px 0;
    }

    .causes-container {
        padding: 0 15px;
    }

    .causes-title {
        font-size: calc(23px * var(--base-font-scale, 1));
        font-weight: 900;
        line-height: 33px;
        color: var(--color-primary);
        margin-bottom: 25px;
    }

    .causes-text {
        font-size: calc(16px * var(--base-font-scale, 1));
        font-weight: var(--font-weight-medium);
        line-height: 24px;
    }

    /* Lifestyle Tips section */
    .lifestyle-tips {
        padding: 50px 0;
    }

    .lifestyle-tips-container {
        padding: 0 20px;
    }

    .lifestyle-tips-title {
        font-size: calc(23px * var(--base-font-scale, 1));
        font-weight: 1000;
        color: var(--color-primary);
        margin-bottom: 35px;
    }

    .lifestyle-tips-list {
        gap: 60px;
        max-width: 100%;
    }

    .lifestyle-tip-item {
        max-width: 100%;
        gap: 12px;
    }

    .lifestyle-tip-content {
        gap: 12px;
        width: 100%;
    }

    .lifestyle-tip-icon {
        width: 100px;
        height: 100px;
    }

    .lifestyle-tip-divider {
        width: 120px;
        height: 4px;
        margin: 0;
    }

    .lifestyle-tip-text {
        font-size: calc(16px * var(--base-font-scale, 1));
        line-height: 22px;
        color: var(--color-primary);
        font-weight: 700;
        max-width: 100%;
        margin-bottom: 8px;
        text-align: left;
        margin: 0 0;
    }

    .lifestyle-tip-description-text {
        font-size: calc(16px * var(--base-font-scale, 1));
        line-height: 24px;
        text-align: left;
        margin: 0 0;    
    }
}