#Video {
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 280px;
    max-height: 760px;
    overflow: hidden;
    background: #111827;
}

#Video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#TextSegment {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: clamp(40px, 6vw, 88px) var(--page-gutter);
    background: rgba(211, 211, 211, 0.42);
    text-align: center;
}

#MainHeader {
    width: min(820px, 100%);
    color: var(--brand-blue);
}

#MainHeader h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2.4vw, 2.8rem);
    line-height: 1.15;
}

#Context {
    width: min(1100px, 100%);
    color: #6b7280;
}

#Context p {
    margin: 0;
    font-size: clamp(0.98rem, 1.05vw, 1.18rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

#TextSegment2 {
    position: relative;
    width: 100%;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    grid-template-areas:
        "stats stats"
        "image text";
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(42px, 5vw, 74px) var(--page-gutter) 0;
    overflow: hidden;
    background-image: url("../Image/sky.ec5f82c6e773.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#List {
    grid-area: stats;
    align-self: start;
    width: min(var(--content-max), 100%);
    margin-inline: auto;
}

#List ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 36px);
    list-style: none;
    margin: 0;
    padding: 0;
}

#List li {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(71, 85, 105, 0.26);
    text-align: center;
}

.statImage {
    width: clamp(42px, 3.2vw, 58px);
    height: clamp(42px, 3.2vw, 58px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.statImage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.statContext h2 {
    margin: 0;
    color: var(--brand-blue);
    font-size: clamp(1.7rem, 2.2vw, 2.6rem);
    line-height: 1.1;
}

.statContext p {
    margin: 5px 0 0;
    color: var(--brand-blue);
    font-size: clamp(0.95rem, 1.15vw, 1.2rem);
}

#ImageContainer {
    grid-area: image;
    justify-self: start;
    align-self: end;
    width: min(650px, 100%);
    max-height: 390px;
}

#ImageContainer img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: contain;
    object-position: left bottom;
}

#TextField {
    grid-area: text;
    align-self: center;
    width: min(520px, 100%);
    padding: 24px 0 54px;
}

#TextField p {
    margin: 0;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    #Video {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    #TextSegment2 {
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "stats"
            "text"
            "image";
        align-items: start;
        padding-bottom: 0;
    }

    #TextField {
        justify-self: center;
        width: min(760px, 100%);
        padding: 8px 0 0;
        text-align: center;
    }

    #ImageContainer {
        justify-self: center;
        width: min(600px, 90%);
    }
}

@media (max-width: 640px) {
    #TextSegment {
        min-height: 0;
        padding-block: 38px;
    }

    #List ul {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #List li {
        min-height: 112px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        padding: 18px 22px;
        text-align: left;
    }

    .statContext p {
        margin-top: 2px;
    }

    #TextSegment2 {
        gap: 30px;
        padding-top: 32px;
    }

    #ImageContainer {
        width: 100%;
    }
}
