/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    font-size: 14px; /* Base font size for mobile */
}

/* Header Image Styles */
img {
    display: block;
    width: 100%;
    height: auto;
    /* margin-bottom: 20px; */
}

/* Container for content */
.section1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
}

.section-bg{
    background: url(../img/bg1.png);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.aneuploidy-chart-wrap {
    width: 100%;
    max-width: 1400px;
    background: transparent;
    border-radius: 20px;
    padding: 18px 20px 8px;
}

.chart-pill-title {
    display: inline-block;
    background: #e13990;
    color: #ffffff;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    padding: 14px 36px;
    border-radius: 999px;
    margin: 0 auto 18px;
    text-align: center;
}

#aneuploidyChart {
    width: 100%;
}

.pcos-split-charts .aneuploidy-chart-wrap {
    min-height: 420px;
}

/* Keep chart x-axis labels centered when they wrap to multiple lines */
.apexcharts-xaxis-texts-g text,
.apexcharts-xaxis-texts-g tspan {
    text-anchor: middle !important;
}

/* Mobile Responsive Typography */
@media (max-width: 768px) {
    /* Main title heading - make smaller on mobile */
    h2[style*="color: #503291"] {
        font-size: 1.4rem !important;
        padding: 15px !important;
        line-height: 1.3;
    }
    
    /* Citation heading - make smaller on mobile */
    h3[style*="color: #503291"] {
        font-size: 1rem !important;
        padding: 10px 15px !important;
        line-height: 1.4;
    }
    
    /* Bootstrap styled heading - make smaller on mobile */
    h2.mb-0.fw-semibold {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }

    .chart-pill-title {
        font-size: 24px;
        padding: 12px 20px;
        margin-bottom: 12px;
    }

    .aneuploidy-chart-wrap {
        padding: 12px 10px 4px;
    }

    h2.hypo-title {
        font-size: 1.05rem !important;
        line-height: 1.25;
        padding: 0 !important;
    }

    .hypo-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - even smaller fonts */
    h2[style*="color: #503291"] {
        font-size: 1.2rem !important;
        padding: 10px !important;
        line-height: 1.2;
    }
    
    h3[style*="color: #503291"] {
        font-size: 0.9rem !important;
        padding: 8px 10px !important;
        line-height: 1.3;
    }
    
    /* Bootstrap styled heading - extra small screens */
    h2.mb-0.fw-semibold {
        font-size: 1.1rem !important;
        line-height: 1.2;
    }

    h2.hypo-title {
        font-size: 0.95rem !important;
        line-height: 1.2;
        padding: 0 !important;
    }

    .hypo-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }
}

