* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222222;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.landing {
    width: 100%;

    flex: 1;
}

.hero {
    position: relative;

    width: 100%;
    height: 220px;

    background-image: url("../assets/banner.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 30%;

    overflow: hidden;
}

.hero-content {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    max-width: 1200px;

    margin: 0 auto;
}

.hero-logo {
    position: absolute;

    left: 12%;
    top: 42%;

    width: 210px;
    height: auto;

    transform: translateY(-50%);

    z-index: 2;
}

.hero-welcome {
    display: block;

    position: absolute;

    left: 12%;
    top: 58%;

    width: 390px;
    height: auto;

    transform: translateY(0);

    z-index: 2;
}

.countries-section {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 35px 30px 45px;
}

.search-container {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    margin-bottom: 30px;
}

.search-box {
    width: 300px;

    display: flex;
    align-items: center;

    border: 1px solid #d8d8d8;
    border-radius: 4px;

    background: #ffffff;

    overflow: hidden;
}

.search-icon {
    width: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 25px;

    color: #555555;
}

.search-box input {
    flex: 1;

    height: 42px;

    border: none;
    outline: none;

    padding: 0 12px;

    font-size: 14px;

    color: #333333;
}

.search-box input::placeholder {
    color: #999999;
}

.countries-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    column-gap: 55px;
    row-gap: 45px;
}

.region {
    width: 100%;
}

.region-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 12px;

    border-bottom: 2px solid #f58220;

    margin-bottom: 8px;
}

.region-header h2 {
    font-size: 18px;

    font-weight: 700;

    color: #222222;
}

.region-arrow {
    font-size: 20px;

    color: #333333;
}

.country-list {
    display: flex;

    flex-direction: column;
}

.country {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 42px;

    padding: 8px 5px;

    text-decoration: none;

    color: #333333;

    border-bottom: 1px solid #eeeeee;
}

.country-inactive {
    cursor: default;

    color: #a6a6a6;

    background-color: #ffffff;

    opacity: 0.75;
}

.country-inactive .country-name {
    color: #999999;
}

.country-inactive .country-status {
    margin-left: auto;

    font-size: 12px;

    color: #b0b0b0;

    white-space: nowrap;
}

.flag {
    width: 28px;
    height: 20px;

    min-width: 28px;

    margin-right: 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 6px;

    overflow: hidden;

    border: 1px solid #dddddd;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);

    background: #ffffff;
}

.flag img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.country-inactive .flag {
    filter: grayscale(100%);

    opacity: 0.45;

    box-shadow: none;
}

.country-name {
    flex: 1;

    font-size: 15px;
}

.country-arrow {
    font-size: 25px;

    line-height: 1;

    color: #444444;
}

.region:nth-child(4) {
    grid-column: 3;

    position: relative;

    top: -170px;
}

.footer {
    width: 100%;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    background: #000000;

    border-top: none;

    font-size: 18px;

    color: #ffffff;
}

@media (max-width: 900px) {

    .hero {
        height: 160px;

        background-position: center 30%;
    }


    .countries-grid {
        grid-template-columns: repeat(2, 1fr);

        column-gap: 35px;

        row-gap: 35px;
    }


    .region:nth-child(4) {
        grid-column: auto;

        position: static;

        top: auto;
    }


    .hero-logo {
        left: 10%;

        width: 170px;
    }


    .hero-welcome {
        left: 10%;

        width: 315px;
    }

}

@media (max-width: 600px) {

    .hero {
        height: 155px;

        background-size: cover;

        background-position: center 30%;
    }

    .hero-content {
        max-width: none;
    }

    .hero-logo {
        left: 8%;

        top: 34%;

        width: 120px;

        transform: translateY(-50%);
    }

    .hero-welcome {
        left: 8%;

        top: 55%;

        width: 265px;

        transform: none;
    }

    .countries-section {
        padding: 25px 18px 35px;
    }

    .search-container {
        justify-content: center;

        margin-bottom: 25px;
    }

    .search-box {
        width: 100%;
    }

    .countries-grid {
        display: flex;

        flex-direction: column;

        gap: 28px;
    }


    .region:nth-child(4) {
        grid-column: auto;

        position: static;

        top: auto;
    }

    .region-header h2 {
        font-size: 17px;
    }

    .country {
        min-height: 44px;
    }


    .flag {
        width: 28px;
        height: 20px;

        min-width: 28px;

        margin-right: 12px;

        border-radius: 6px;
    }


    .country-name {
        font-size: 15px;
    }


    .country-status {
        font-size: 11px;
    }

    .footer {
        height: 38px;

        padding: 0;

        font-size: 13px;
    }

}