/* Hero Section */
.hero {
    margin: 0 8.33% 4rem 8.33%;
    width: calc(100% - 16.66%);
    height: 86vh;
    position: relative;
}

#hero-video {
    position: absolute;
    top: 43vh;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #fff;
    text-align: center;
}

.hero-text {
    position: relative;
    z-index: 99;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;

    & div:first-child {
        font-family: "GintoNord-Bold";
        font-size: clamp(3.1rem, 2.8rem + 1vw, 4rem);
    }

    & p {
        font-family: "Grove";
        font-size: clamp(1.2rem, 0.933rem + 0.889vw, 2rem);
    }
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.cta-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

.cta-secondary:hover {
    background-color: var(--primary-color);
    border: 1px solid #333333;
}

/* --------------------- Why Finland --------------------- */
.why-finland {
    margin: 2rem 8.33% 6rem 8.33%;
    width: calc(100% - 16.66%);

    font-size: clamp(0.9rem, 0.686rem + 0.571vw, 1.2rem);
}

.why-finland-title {
    font-size: clamp(1.9rem, 1.471rem + 1.143vw, 2.5rem);
}

.why-finland-title::before {
    content: "";
    display: block;
    width: calc(100% - 75%);
    height: 1.4px;
    background-color: #333333;
    margin-bottom: 1rem;
}

.why-finland-content {
    margin-top: 2rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.why-finland-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    gap: 2rem;

    & p {
        max-width: 600px;
        width: 100%;
    }
}

.why-finland-img {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-finland-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scaleX(-1);
}

.why-finland-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.why-finland-img-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 1rem;

    & div {
        padding: 1rem;
        font-family: "GintoNord-Medium";
        font-size: clamp(2rem, 1.625rem + 1.25vw, 3.125rem);
    }

    & span {
        font-family: "GintoNord-Light";
        font-size: clamp(1.1rem, 0.967rem + 0.444vw, 1.5rem);
        text-align: left;
        margin-top: 1.2rem;
        max-width: 320px;
    }
}

.why-finland-img-footer {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 1rem;

    & div {
        transform: translateY(22%);
    }
}

.why-finland-img-footer i {
    margin-right: 0.5rem;
}

.why-finland-hovers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

.why-finland-hovers div:first-child {
    font-size: clamp(1.1rem, 0.904rem + 0.653vw, 1.688rem);
    font-family: "GintoNord-Medium";
}

.why-finland-hovers .hover-wide p {
    font-family: Avenir;
}

.hover-wide {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.hover-wide-item {
    position: relative;
    width: 460px;
    height: 470px;
    transition: all 0.3s ease-in-out;
}

.hover-wide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-wide-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    opacity: 1;
    transition: background 0.3s ease-in-out;
}

.hover-wide-item .overlay div {
    padding: 1rem;
    z-index: 99;
}

.hover-wide-item .overlay i {
    font-size: clamp(1.2rem, 0.933rem + 0.889vw, 2rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hover-wide-item .overlay p {
    font-size: clamp(0.8rem, 0.733rem + 0.222vw, 1rem);
}

.hover-wide-1 p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* ------------------ FINLAND GLANCE ------------------ */
.finland-glance {
    height: auto;
}

.finland-glance-title {
    margin: 4rem 8.33% 6rem 8.33%;
    width: calc(100% - 16.66%);
    font-size: clamp(1.9rem, 1.471rem + 1.143vw, 2.5rem);
    text-align: center;
    margin-bottom: 4rem;
}

.finland-glance-title::before {
    content: "";
    display: block;
    width: calc(100% - 65%);
    height: 1.4px;
    background-color: #333333;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.finland-glance-content {
    width: 100%;
    height: 100vh;

    position: relative;

    /* &::before {
        content: "";
        background-image: url('../img/home/waves.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        
        position: absolute;
        z-index: -1;
        inset: 0; 
    
        mask-image: url('../img/home/finland-flag-ice.jpg'); 
        mask-size: cover;
        mask-position: center;
        mask-repeat: no-repeat;
    } */
}

.finland-glance-facts {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('../img/home/winter-wp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 5rem;

    padding: 4rem 8.33% 6rem 8.33%;

    & .glance-fact {
        width: 280px;
        height: 280px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;

        margin: 3rem 0;

        color: white;
        backdrop-filter: blur(12px);
        border-radius: 10px;

        & i {
            color: var(--primary-color);
            font-size: clamp(1.2rem, 0.933rem + 0.889vw, 2rem);
        }

        & .glance-fact-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 1rem;

            & div {
                font-family: 'GintoNord-Medium';
                font-size: clamp(0.8rem, 0.667rem + 0.444vw, 1.2rem);
            }

            & p {
                color: rgb(231, 231, 231);
            }
        }
    }
}

.glance-fact-4 p {
    max-width: 147px;
    text-align: center;
}

.finland-glance-main {
    margin: 0 8.33%;
    width: calc(100% - 16.66%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
}

.glance-main-first {
    margin-top: 4rem;
}

.glance-main-titles {
    font-family: 'GintoNord-Medium';
    font-size: clamp(1.1rem, 0.967rem + 0.444vw, 1.5rem);
}

.glance-main-first,
.glance-main-second,
.glance-main-third {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.glance-main-first-img-container,
.glance-main-second-img-container,
.glance-main-third-img-container {
    flex: 1;
    max-width: 50%;
}

.glance-main-first-img,
.glance-main-second-img,
.glance-main-third-img {
    width: 100%;
    height: auto;
}

.glance-main-first-text,
.glance-main-second-text,
.glance-main-third-text {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
}

.glance-main-first-text p {
    max-width: 550px;
}

.glance-main-second-text>p {
    max-width: 600px;
}

.glance-main-second-ticks {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-left: 4rem;
}

.glance-main-second-tick {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.glance-main-second-tick>p {
    max-width: 600px;
}


.glance-main-third-text img {
    width: 100%;
    width: 800px;
    height: auto;
    margin-top: 1rem;
    ;
}

.glance-main-third-text img {
    max-width: 243px;
    align-self: center;
}

.glance-main-third-text p {
    max-width: 530px;
}


/* ----------------- HISTORY ---------------- */
.finland-history {
    margin: 4rem 8.33% 6rem 8.33%;
    width: calc(100% - 16.66%);
}

.finland-history-title {
    font-size: clamp(1.9rem, 1.471rem + 1.143vw, 2.5rem);
    text-align: right;
    margin-bottom: 4rem;
}

.finland-history-title::before {
    content: "";
    display: block;
    width: calc(100% - 40%);
    height: 1.4px;
    background-color: #333333;
    margin-bottom: 1rem;
    margin-left: auto;
}

.finland-history-container {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.history-titles {
    font-family: 'GintoNord-Medium';
    font-size: clamp(1.1rem, 0.967rem + 0.444vw, 1.5rem);
}

.finland-history-content {
    width: 100%;

}

.ww2-welfare-container {
    width: 100%;
}

.finland-history-content {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.prehitory-img,
.prehistory-text {
    flex: 1;
}

.prehistory-img {
    background-image: url(../img/home/cave-settlements.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;

    max-width: 735px;
    width: 100%;
    height: 700px;
}

.prehistory-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;

    & p {
        max-width: 530px;
    }
}

.sweden-img,
.sweden-text {
    flex: 1;
}

.sweden-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;

    & p {
        max-width: 530px;
    }
}

.sweden-img {
    background-image: url(../img/home/sweden-castle.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    max-width: 1050px;
    width: 100%;
    height: 700px;

    display: flex;
    flex: 1;
}


.independence-war-img,
.independence-war-text {
    flex: 1;
}

.independence-war-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;

    & p {
        max-width: 530px;
    }
}

.independence-war-img {
    background-image: url(../img/home/senate-independance.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    max-width: 1050px;
    width: 100%;
    height: 700px;
}

.winter-war-banner {
    background-image: url(../img/home/winterwar-2.webp);
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;

    width: 100%;
    aspect-ratio: 6/2;
}

.winter-war-text {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--title-font);
    font-size: clamp(5rem, 3.542rem + 4.861vw, 9.375rem);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ww2-welfare-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}


.ww2-text,
.welfare-state-text {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;

    & p {
        max-width: 530px;
    }
}

.finland-history-4, .finland-history-5 {
    flex-direction: column;
    gap: 2rem;
}

.ww2-img {
    background-image: url(../img/home/winterwar-1.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    max-width: 1050px;
    width: 100%;
    height: 700px;
}

.welfare-state-img {
    background-image: url(../img/home/finlandState.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    max-width: 1050px;
    width: 100%;
    height: 700px;
}

.finland-nowaday-text {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    & p {
        max-width: 530px;
    }
}

.finland-innovation-img {
    background-image: url(../img/home/helsinki-modern.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    height: 775px;
}


/* ----------------- MEDIA QUERIES --------------- */
@media screen and (max-width: 1466px) {
    .finland-history-content {
        flex-direction: column;
        gap: 2rem;
    }

    .finland-history-1 {
        flex-direction: column-reverse;
    }

    .prehistory-img {
        height: 500px;
        width: 100%;
        max-width: 100%;
    }

    .prehistory-text {
        & p {
            max-width: 600px;
        }
    }


    .sweden-img, .independence-war-img {
        height: 500px;
        width: 100%;
        max-width: 100%;
        min-height: 500px;
    }

    .sweden-img {
        background-position: center 60%;
    }

    .finland-history-3 {
        flex-direction: column-reverse;
    }

    .ww2-welfare-container {
        flex-direction: column;
        gap: 2rem;
    }

    .ww2-img, .welfare-state-img {
        height: 500px;
        width: 100%;
        max-width: 100%;
    }

    .welfare-state-text, .ww2-text {
        width: 100%;
        border: 1px solid white;

        justify-content: center;
        align-items: flex-start;
    }

    .finland-innovation-img {
        background-position: 60% center;
    }
    
}

@media screen and (max-width: 1460px) {

    .finland-glance-facts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .glance-fact {
        width: 100%;
        max-width: 280px;
    }
}

@media screen and (max-width: 1374px) {
    /* body {
        background-color: red;
    } */

    .finland-glance-main {
        gap: 4rem;
    }

    .glance-main-first,
    .glance-main-second,
    .glance-main-third {
        flex-direction: column;
        gap: 2rem;
    }

    .glance-main-first,
    .glance-main-third {
        flex-direction: column-reverse;
    }

    .glance-main-first-img-container,
    .glance-main-second-img-container,
    .glance-main-third-img-container {
        max-width: 100%;
    }

    .glance-main-first-img,
    .glance-main-second-img,
    .glance-main-third-img {
        width: 100%;
        height: auto;
    }

    .glance-main-first-text,
    .glance-main-second-text,
    .glance-main-third-text {
        max-width: 100%;
    }


}

@media screen and (max-width: 1256px) {

    .hover-wide {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hover-wide-item {
        width: 100%;
        height: 300px;
        margin-bottom: 0;
        transition: none;
    }

    .hover-wide-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hover-wide-item .overlay {
        background: rgba(0, 0, 0, 0.5);
        transition: none;
    }

    .hover-wide-item:hover .overlay {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media screen and (max-width: 919px) {
    /* body {
        background-color: red;
    } */

    .why-finland-content {
        flex-direction: column;
        gap: 2rem;
    }

    /* .why-finland-hovers div:first-child {
        margin-bottom: 2rem;
    } */
}

@media screen and (max-width: 705px) {
    /* body {
        background-color: red;
    } */

    .finland-glance-main {
        margin-top: 70vh;
    }
}