.home-container {
    width: 100%;
    /* background-color: blueviolet; */
}

.home-bento {
    height: 58vh;
    padding: 3% 4%;
    display: flex;
    justify-content: space-between;
    gap: 28px;

    .home-bento-left {
        width: 56%;
        height: 100%;
        border-radius: 15px;
        border: 1px solid #929C9F;
        background-size: cover;
        background-image: url(../images/townillustration.png);
        padding: 0 5%;
        color: #24689F;
        position: relative;
        overflow: hidden;

        div {
            display: flex;
            flex-direction: column;

            .main-home-title {
                font-size: var(--fs-5xl-2);
                font-family: 'Poppins-ExtraBold';
                padding-top: 4%;
                width: 70%;
                font-size: 28px;
            }

            .main-home-text {
                padding: 1% 0 2% 0;
                font-size: var(--fs-base);
            }

            .call-to-action-button {
                font-weight: bold;
                color: white;
                background-color: #24689F;
                border: none;
                border-radius: 5px;
                font-size: var(--fs-xl);
                padding: 1.4% 3.4%;
                transition: all 0.1s ease-in-out;
                width: fit-content;

                &:hover {
                    background-color: black;
                    cursor: pointer;
                    scale: 1.05;
                }
            }
        }

        .banner-home {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;

            .red,
            .blue {
                color: white;
                text-align: center;
                font-family: "Poppins-Bold";
                font-size: 14px;
                padding: 6px 0;
            }

            .red {
                background-color: #ED1F24;
            }

            .blue {
                background-color: #24689F;
            }
        }
    }

    .home-bento-right {
        width: 38%;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;

        .top-home-bento-pop-up,
        .bottom-home-bento-pop-up {
            height: 100%;
            border-radius: 15px;

            img {
                transition: all 0.3s ease-in-out;
            }

            &:hover {
                img {
                    scale: 1.2;
                }
            }
        }

        .top-home-bento-pop-up {
            border: 1px solid #D9D9D9;
            display: flex;
            align-items: end;
            justify-content: space-between;
            padding: 0 0 0 8%;
            width: 92%;
            overflow: hidden;

            .top-bento-text {
                height: 100%;
                font-size: var(--fs-2xl);
                font-family: 'Poppins-ExtraBold';
                color: #24689F;
                display: flex;
                align-items: center;
            }
        }

        .bottom-home-bento-pop-up {
            background-image: url(../images/bluebackground.png);
            background-size: cover;
            display: flex;
            align-items: center;
            width: 84%;
            font-size: (--text-medium);
            font-family: 'Poppins-ExtraBold';
            padding: 0 8% 0 8%;

            .bottom-bento-text {
                color: white;
            }
        }
    }
}

.home-map {
    width: 84%;
    height: auto;
    min-height: 480px;
    /* background-image: url(../images/globebackground.png); */
    background-image: url(../images/globe.png);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8% 8%;
    position: relative;
    justify-content: space-between;

    .big-globe-text {
        font-size: var(--fs-5xl-2);
        font-family: 'Poppins-ExtraBold';
        color: black;
    }

    .little-globe-text {
        font-size: var(--fs-4xl);
        font-weight: bold;
        padding: 4% 0 5% 0;
    }

    .globe-button {
        /* background-color: brown; */
        background: linear-gradient(to right, #EF686D, #ED1F24);
        padding: 2% 9%;
        font-size: (--text-medium);
        font-family: 'Poppins-ExtraBold';
        color: white;
        border: none;
        border-radius: 50px;
        transition: all 0.1s ease-in-out;
        text-decoration: none;

        &:hover {
            background: linear-gradient(to right, #222222, #222222);
            cursor: pointer;
            scale: 1.1;
        }
    }

    a:hover {
        scale: 1.05;
    }

    .member-mini-flag-container {
        .miniflag {
            position: absolute;
            display: block;
            opacity: 0;
            transform: translateY(30px) scale(0.8);
            transition: opacity 1s ease, transform 1s ease, scale 0.2s ease-in-out;

            &:hover {
                scale: 1.1;
            }
        }

        .miniflag.show {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .miniflag.hide {
            opacity: 0;
            transform: translateY(30px) scale(0.8);
        }

    }

    #spain {
        margin: -9% 0 0 -50%;
    }

    #italy {
        margin: -9% 0 0 -44.5%;
    }

    #switzerland {
        margin: -11% 0 0 -45.5%;
    }

    #states {
        margin: -20% 0 0 -80%;
    }

    #austria {
        margin: -11% 0 0 -43%;
    }

    #colombia {
        margin: -10% 0 0 -18%;
        opacity: 0;
    }

    #croatia {
        margin: -10% 0 0 -42%;
    }

    #georgia {
        margin: -9.5% 0 0 -35.5%;
    }

    #greece {
        margin: -8.5% 0 0 -41%;
    }

    #india {
        margin: -2% 0 0 -23%;
    }

    #macedonia {
        margin: -11% 0 0 -40%;
    }

    #malta {
        margin: -6.5% 0 0 -44%;
    }

    #mexico {
        margin: -16% 0 0 -34%;
        opacity: 0;
    }

    #pakistan {
        margin: -4% 0 0 -26%;
    }

    #portugal {
        margin: -7.5% 0 0 -51%;
    }

    #thailand {
        margin: -1% 0 0 -16%;
    }

    #tunisia {
        margin: -4.5% 0 0 -44.5%;
    }

    #ukraine {
        margin: -13% 0 0 -38%;
    }
}

.block-info-list {
    display: flex;
    padding: 4% 8%;
    width: 84%;
    justify-content: space-between;

    .info-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* border: 1px solid #929C9F; */
        border-radius: 15px;
        padding: 0.4%;
        gap: 36px;
        transition: all 0.1s ease-in-out;

        &:hover {
            scale: 1.078;
            cursor: pointer;
        }

        img {
            width: 90%;
            border-radius: 15px;
            /* border: 1px solid #929C9F; */
        }

        .info-block-text {
            font-family: 'Poppins-ExtraBold';
            line-height: 20px;
            color: black;
        }
    }

    a {
        text-decoration: none;
    }

    &:hover {
        a {
            text-decoration: underline;
            color: black;
        }
    }
}

.home-events {
    display: flex;
    flex-direction: column;
    padding: 0 8%;
    gap: 16px;
    padding-bottom: 4%;

    .home-events-top {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .show-all-events {
            font-size: var(--fs-md);
            color: #BB1A21;
            transition: all 0.1s ease-in-out;

            &:hover {
                color: #222222;
                cursor: pointer;
                text-decoration: underline;
            }
        }
    }

    .home-events-container {
        /* height: 516px; */
        width: 92%;
        padding: 5% 4%;
        /* height: 52vh; */
        border: 1px solid #DDDDDD;
        display: flex;
        justify-content: space-between;

        .date-container {
            height: 100%;
            width: 178px;
            margin-right: 32px;

            .date {
                display: flex;
                flex-direction: column;
                align-items: center;
                border: 1px solid black;

                .monthyear {
                    width: 100%;
                    display: flex;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: #BB1A21;
                    color: white;
                    text-wrap: nowrap;
                    font-family: 'Poppins-Bold';
                    padding: 12px 0;
                    font-size: 13px;
                }

                .day {
                    width: 100%;
                    display: flex;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 18px;
                    font-weight: 700;
                    color: black;
                    padding: 12px 0;
                }
            }
        }

        .home-events-info {
            width: 30%;
            margin-right: 32px;
            /* background-color: #929C9F; */

            .home-events-title {
                font-size: var(--fs-3xl);
                line-height: 24px;
                font-weight: bold;
                color: black;
                padding: 0 0 5% 0;
            }

            .home-events-text {
                font-size: var(--fs-sm);
                color: black;
            }

            .home-events-infos {
                display: flex;
                flex-direction: column;
                padding: 5% 0;
                gap: 10px;

                .home-events-infos-line {
                    display: flex;
                    align-items: center;
                    gap: 16px;

                    .home-events-infos-text {
                        font-size: var(--fs-md);
                        color: black;
                    }
                }
            }

        }

        .home-events-image {
            width: 64%;
            height: 320px;
            object-fit: contain;
            object-position: center;
            transition: all 0.1s ease-in-out;
            background: #f6f6f6;
            border-radius: 10px;
            display: block;

            &:hover {
                scale: 1.02;

            }
        }

        .home-events-image-placeholder {
            width: 64%;
            height: 320px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f6f6f6;
            border-radius: 10px;
            color: #888;
            font-size: 18px;
            font-family: 'Poppins-SemiBold';
        }
    }
}

.home-news {
    height: 80vh;
    border-top: 1px solid #5555557e;
    border-bottom: 1px solid #5555557e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4% 8%;

    .home-news-main {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .home-events-top {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .more-news {
            font-size: var(--fs-md);
            color: #BB1A21;
            transition: all 0.1s ease-in-out;

            &:hover {
                color: #222222;
                cursor: pointer;
                text-decoration: underline;
            }
        }
    }

    .home-news-list {
        display: flex;
        justify-content: space-between;
    }

    .home-news-block {
        width: 30%;
        display: flex;
        flex-direction: column;
        transition: all 0.1s ease-in-out;

        &:hover {
            img {
                scale: 1.05;
            }
        }

        img {
            width: 100%;
            height: 272px;
            border-radius: 10px;
            object-fit: cover;
            transition: all 0.1s ease-in-out;
        }
    }

    .home-news-info {
        width: 100%;
        gap: 12px;
        display: flex;
        align-items: center;

        .home-news-infos {
            display: flex;
            align-items: center;
            gap: 4px;

            img {
                width: 20px;
                height: 20px;
            }

            p {
                font-size: var(--fs-sm);
            }
        }

        .separation-mini-line {
            width: 1px;
            height: 10px;
            background-color: #555555;
        }
    }

    .home-news-title {
        display: flex;

        .news-title {
            font-weight: bolder;
            color: #222222;
            font-size: (--text-medium);
        }

        button {
            background-color: transparent;
            border: none;
            cursor: pointer;
            height: 20px;
            width: 20px;
            padding: 0;
        }

        img {
            width: 20px;
            height: 20px;
        }
    }

    .news-events-archive {
        height: 48px;
        padding: 0 1.5% 0 2.5%;
        display: flex;
        border: 1px solid black;
        border-radius: 50px;
        justify-content: space-between;
        align-items: center;

        font-weight: bolder;
        font-size: var(--fs-md);
        color: black;
        transition: all 0.1s ease-in-out;

        &:hover {
            background-color: black;
            color: white;
            scale: 1.03;
            cursor: pointer;

            img {
                filter: brightness(0) invert(1);
            }
        }

        button {
            width: fit-content;
            height: fit-content;
            background-color: transparent;
            border: none;
        }
    }
}

@media (max-width: 991px) {
    .home-bento {
        .home-bento-left {
            background-position: bottom;

            .main-home-title {
                padding-top: 10%;
                width: 100%;
            }
        }
    }

    .home-news {
        .home-news-info {
            gap: 6px;
        }
    }
}

@media (max-width: 480px) {
    .home-bento {
        height: 72vh;
        flex-direction: column;

        .home-bento-left {
            width: 90%;
            padding-bottom: 8%;

            .call-to-action-button {
                padding: 12px 20px;
            }
        }

        .home-bento-right {
            width: 100%;
            flex-direction: row;

            .top-home-bento-pop-up {
                padding: 0 0 0 5%;
            }

            .bottom-home-bento-pop-up {
                padding: 0 5%;
            }
        }
    }

    .home-map {
        .member-mini-flag-container {
            display: none;
        }

        .globe-text {
            .globe-button {
                padding: 16px 28px;
                margin-top: 32px;
            }
        }
    }

    .block-info-list {
        display: flex;
        flex-direction: column;

        .info-block {
            margin-top: 64px;

            div {
                font-size: 22px;
                text-decoration: underline;
            }
        }
    }

    .home-events {
        margin-top: 64px;

        .home-events-container {
            display: flex;
            align-items: center;
            flex-direction: column;

            width: fit-content;
            padding: 54px 32px;

            .date-container {
                margin: 0;
                padding: 0;
            }

            .home-events-info {
                margin: 0;
                padding: 32px 0;
                width: 100%;
            }

            .home-events-image {
                display: none;
            }
        }
    }

    .home-news {
        height: fit-content;
        padding-bottom: 64px;

        .home-news-main {
            height: fit-content;
            padding-bottom: 64px;

            .home-news-list {
                display: flex;
                flex-direction: column;
                gap: 48px;
                /* background-color: #24689F; */

                .home-news-block {
                    width: 100%;
                }
            }
        }

        .news-events-archive {
            padding-left: 24px;
            padding-right: 24px;
        }
    }
}