/* ==========================================================
   HYPOTHESIS.CSS
   Styling endast för hypothesis.html
   ========================================================== */


/* ==========================================================
   1. TITLE / HERO
   ========================================================== */

.hypothesis-title {
    min-height: 360px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e4e8ec;
    padding: 90px 8% 80px;
    background:
        linear-gradient(

            to right,
            white 0%,
            rgba(255, 255, 255, 0.20),
            rgba(255, 255, 255, 0.20)
        ),
        linear-gradient(

            to left,
            white 0%,
            rgba(255, 255, 255, 0.20),
            rgba(255, 255, 255, 0.20)
        ),
        url("../images/Hypothesis.jpg");

    background-size: cover;
    background-position: center;
}
.hypothesis-section-label {
    display:inline-block;
    color: #2fa876;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 18px;
    letter-spacing: 2px;

}

.hypothesis-title h1 {
    max-width: 800px;
    margin: 0 auto 25px;
    color: #152238;
    font-size: 48px;
    line-height: 1.1;
    
}

.hypothesis-title h1 span {
    color: #2fa876;
    
    
}

.hypothesis-title p {
    max-width: 750px;
    margin: 0 auto 12px;
    color: #3e608f;
    font-size: 18px;
    
}

.hypothesis-title-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}



/* ==========================================================
   2. TITLE TEXT
   ========================================================== */

.hypothesis-title-text {
    color: #152238;

    text-align: center;

    font-size: 58px;
    line-height: 1.05;
}


/* ==========================================================
   3. MEDIA QUERY – TABLET
   ========================================================== */

@media (max-width: 900px) {

    .hypothesis-title-text {
        font-size: 46px;
    }
}


/* ==========================================================
   4. MEDIA QUERY – MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .hypothesis-title {
        min-height: 330px;
        padding: 40px 25px;
    }

    .hypothesis-title-text {
        font-size: 38px;
    }
}

.hypothesis-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 30px;
}

.hypothesis-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.hypothesis-section-number {
    color: #2fa876;
    font-size: 18px;
    font-weight: bold;
}

.hypothesis-heading h2 {
    margin-bottom: 8px;
    color: #152238;
    font-size: 32px;
}

.hypothesis-heading p {
    max-width: 650px;
    color: #5b6573;
    font-size: 17px;
}

.hypothesis-source {
    margin-top: 15px;
    color: #7b8794 !important;
    font-size: 13px !important;
    font-style: italic;
}


/* ==========================================================
   3. HEALTH CARDS
   ========================================================== */

.hypothesis-health-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hypothesis-health-card {
    padding: 30px;
    background-color: white;
    border: 1px solid #e4e8ec;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hypothesis-health-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.hypothesis-health-icon {
    width: 55px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 20px;

    background-color: #eaf5ef;
    color: #2fa876;

    border-radius: 50%;

    font-size: 26px;
    font-weight: bold;
}

.hypothesis-health-card h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.hypothesis-health-card p {
    color: #5b6573;
    font-size: 15px;
}

/* =========================
   hypothesis ENDING
========================= */

.hypothesis-ending {
    max-width: 1100px;
    margin: 80px auto;
    padding: 40px;
    background-color: #eaf6ef;
    border-left: 5px solid #2eae78;
    border-radius: 12px;
}

.hypothesis-badending {
    max-width: 1100px;
    margin: 80px auto;
    padding: 40px;
    background-color: #f6eaea;
    border-left: 5px solid #ae2e2e;
    border-radius: 12px;
}

.hypothesis-badending p {
    margin: 0;
    color: #5b6573;
    font-size: 17px;
    line-height: 1.7;
}

.hypothesis-ending h2 {
    margin-bottom: 15px;
    color: #152238;
    font-size: 32px;
}

.hypothesis-ending p {
    margin: 0;
    color: #5b6573;
    font-size: 17px;
    line-height: 1.7;
}

.hypothesis-statistics {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 25px;
}


.hypothesis-stat-card {
    padding: 35px;

    text-align: center;

    background-color: #f7f9fa;

    border: 1px solid #e4e8ec;
    border-radius: 14px;
}


.hypothesis-stat-label {
    display: block;

    margin-bottom: 15px;

    color: #7a8491;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}


.hypothesis-stat-card strong {
    display: block;

    margin-bottom: 10px;

    color: #152238;

    font-size: 48px;
}


.hypothesis-stat-card p {
    margin: 0;

    color: #5b6573;

    font-size: 14px;
    line-height: 1.6;
}


.hypothesis-stat-highlight {
    background-color: #eaf5ef;

    border-color: #c9e8d8;
}

.hypothesis-stat-wronghighlight {
    background-color: #f5eaea;

    border-color: #e8c9c9;
}

.hypothesis-stat-highlight strong {
    color: #2fa876;
}

.hypothesis-stat-wronghighlight strong {
    color: #a82f2f;
}

.hypothesis-stat-arrow {
    color: #2fa876;

    font-size: 30px;
    font-weight: 700;
}

.hypothesis-stat-wrongarrow {
    color: #a82f2f;

    font-size: 30px;
    font-weight: 700;
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 700px) {

    /* TITLE */

    .hypothesis-title {
        padding: 55px 20px;
    }


    .hypothesis-title h1 {
        font-size: 36px;
    }


    .hypothesis-title p {
        font-size: 17px;
    }


    /* SECTIONS */

    .hypothesis-section {
        padding: 55px 20px;
    }


    /* HEADINGS */

    .hypothesis-heading {
        flex-direction: column;

        gap: 8px;
    }


    .hypothesis-heading h2 {
        font-size: 27px;
    }



    /* STATISTICS */

    .hypothesis-statistics {
        grid-template-columns: 1fr;
    }


    .hypothesis-stat-arrow {
        text-align: center;

        transform: rotate(90deg);
    }

    .hypothesis-stat-wrongarrow {
        text-align: center;

        transform: rotate(90deg);
    }


    .hypothesis-stat-card strong {
        font-size: 40px;
    }


}


@media (max-width: 900px) {

    .hypothesis-statistics {
        grid-template-columns: 1fr;
    }

    .hypothesis-stat-arrow,
    .hypothesis-stat-wrongarrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .hypothesis-stat-card {
        width: 100%;
        max-width: 100%;
    }
}


@media (max-width: 700px) {

    .hypothesis-title {
        padding: 50px 20px;
    }

    .hypothesis-title h1 {
        font-size: 34px;
    }

    .hypothesis-section {
        padding: 45px 20px;
    }

    .hypothesis-heading {
        flex-direction: column;
        gap: 8px;
    }

    .hypothesis-heading h2 {
        font-size: 27px;
    }

    .hypothesis-statistics {
        gap: 18px;
    }

    .hypothesis-stat-card,
    .hypothesis-ending,
    .hypothesis-badending {
        width: 100%;
        box-sizing: border-box;
    }

    .hypothesis-stat-card {
        padding: 22px 20px;
    }

    .hypothesis-stat-card strong {
        font-size: 40px;
    }

    .hypothesis-ending,
    .hypothesis-badending {
        padding: 24px 20px;
    }
}


@media (max-width: 480px) {

    .hypothesis-title {
        padding: 40px 16px;
    }

    .hypothesis-title h1 {
        font-size: 30px;
    }

    .hypothesis-section {
        padding: 36px 16px;
    }

    .hypothesis-heading h2 {
        font-size: 24px;
    }

    .hypothesis-stat-card,
    .hypothesis-ending,
    .hypothesis-badending {
        padding: 20px 16px;
    }
}