@charset "UTF-8";
:root {
    --black: #212427;
    --green: #03a64a;
    --ash: #999999;
    --silver: #efefef;
    --star-size: 17px;
    --star-color: #b6b6b6;
    --star-background: #03a64a;
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--black);
}


.welcome__section {
    text-align: center;
    background-image: url(../img/home-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 110px 0;
    position: relative;
}
.welcome__section::after {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    content: '';
}
.welcome__section .container{
    position: relative;
    z-index: 1;
    color: #fff;
}
.welcome__section h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 54px;
}
.welcome__section h1 span{
    display: block;
    color: var(--green);
}
.welcome__section .subtext {
    font-size: 18px;
    text-transform: uppercase;
    width: 45%;
    margin: 0 auto;
    margin-bottom: 60px;
}
.welcome__section .subtext span{
    color: var(--green);
}
.feature__flex {
    display: flex;
    justify-content: center;
    gap: 25px;
}
.feature__box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    color: #000;
    margin: 60px 0 80px;
    padding: 20px 20px;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid var(--black);
    text-align: left;
    line-height: 19px;
    min-width: 180px;
    min-height: 96px;
}
.welcome__text {
    text-align: center;
    padding: 50px 0;
    width: 50%;
    margin: 0 auto;
}
.welcome__text h3{
    font-size: 38px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 12px;
}
.letter-p {
    display: flex;
    margin: 50px 0;
    justify-content: center;
    height: 22px;
}
.welcome__text .letter-p {
    margin-bottom: 0;
    margin-top: 35px;
}
/* ====== Cards Section ======= */
.cards__section {
    padding: 0 0 40px;
    position: relative;
}
.cards__section {
    padding: 0 0 10px;
    position: relative;
}
.card__each {
    position: relative;
    display: flex;
    background: #fff;
    padding: 30px 40px;
    justify-content: space-between;
    border: 1px solid var(--black);
    border-radius: 8px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 300ms;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 100px;
    padding-bottom: 75px;
}
.card__each:last-of-type{
    margin-bottom: 50px;
}


/* ====== Footer ======= */
footer {
    padding: 60px 0 80px;
    background-color: var(--black);
    color: var(--ash);
}
.footer__flex {
    display: flex;
    gap: 90px;
}
.logo__copyright {
    flex-basis: 20%;
    flex-shrink: 0;
}
.logo__copyright p {
    margin-top: 36px;
    font-size: 14px;
    line-height: 26px;
}
.logo__copyright > img {
    width: 214px;
}
.footer__texts {
    flex-basis: 65%;
}
.footer__menu ul {
    display: flex;
    gap: 20px;
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 0.3px;
    margin-bottom: 40px;
}
.footer__terms {
    font-size: 14px;
    line-height: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}
.footer__disclosure {
    font-size: 12px;
    line-height: 20px;
}
.footer__disclosure span {
    display: block;
    font-weight: bold;
}
.copyright__bottom {
    display: none;
}
/* ==============================
 ------- countries ----------
 ============================== */
.country__page.welcome__section {
    background-image: none;
    background-color: var(--green);
}
.country__page.welcome__section::after {
    display: none;
}
.country__page.welcome__section h1 + p{
    font-size: 18px;
    margin-top: 20px;
    text-transform: uppercase;
}
.country__grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 60px;
    margin-bottom: 70px;
}
.c__gridblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
}
.country__section {
    padding: 50px 0;
}
.cw__wrapper {
    width: 80%;
    margin: 0 auto 70px;
    text-align: center;
}
.cw__title {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    line-height: 36px;
    margin-bottom: 20px;
}

/* ============================== 
-------- Media Queris --------
 ============================== */
@media (max-width: 767px) {

    .welcome__section {
        padding: 60px 0;
        background-position: 68% 0;
    }
    .feature__flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 345px;
        margin: 50px auto 50px;
    }
    .feature__box {
        gap: 8px;
        margin: 0;
        padding: 12px 8px;
        line-height: 16px;
        min-width: auto;
        font-size: 14px;
        flex-direction: column;
        width: 105px;
        height: 105px;
        text-align: center;
        justify-content: end;
    }
    .feature__box img {
        width: 36px;
        height: 36px;
    }
    .letter-p {
        margin: 30px 0;
    }
    .welcome__section h1 {
        font-size: 30px;
        font-weight: bold;
        line-height: 34px;
    }
    .welcome__section .subtext {
        font-size: 16px;
        margin-bottom: 30px;
        width: 100%;
    }
    .welcome__text {
        width: 100%;
    }
    .welcome__text h3 {
        font-size: 30px;
    }
    .welcome__text p {
        font-size: 14px;
    }
    .welcome__text .letter-p {
        margin-bottom: 0;
        margin-top: 32px;
    }
    .card__each {
        flex-direction: column;
        width: 100%;
        padding: 30px 20px 60px;
        margin-bottom: 70px;
    }
    .cards__block {
        flex-basis: 100%;
    }
    .card__logo {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }
    .card__logo > img {
        width: 100px;
    }
    .card__deatils h3,
    .card__deatils p {
        display: none;
    }
    .card__deatils ul li {
        font-size: 12px;
        margin: 8px 0;
        gap: 4px;
    }

    .footer__flex {
        display: flex;
        gap: 20px;
        flex-direction: column;
    }
    .logo__copyright {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .logo__copyright p {
        display: none;
    }
    .footer__menu ul {
        margin-top: 20px;
        gap: 12px;
        margin-bottom: 40px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .footer__menu ul li {
        flex-basis: 40%;
    }
    .footer__terms,
    .footer__disclosure {
        text-align: center;
    }
    .copyright__bottom {
        display: block;
        text-align: center;
        margin-top: 36px;
        font-size: 14px;
        line-height: 26px;
    }
    /* ========= Country page =========== */
    .country__page.welcome__section h1 + p {
        font-size: 16px;
    }
    .cw__wrapper {
        width: 100%;
    }
    .country__grid {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 40px 20px;
        margin-bottom: 50px;
    }
    .c__gridblock {
        font-size: 12px;
    }
    .c__gridblock img{
        width: 50px;
    }
    .country__wrapper + .letter-p {
        margin-bottom: 0;
    }
    .cw__title {
        font-size: 24px;
        line-height: 32px;
    }
}

section.nation-list {
    background-image: url("../img/all-countries-hero.png");
    padding: 80px 0 110px;
}

section.nation-list::after {
    background: none;
}

h2.nation-list_subtitle {
    font-size: 18px;
    padding-top: 20px;
}

section.nation-list__content {
    padding: 40px 0;
    text-align: center;
}

.nation-list__content h1 {
    font-size: 30px;
    font-weight: bold;
}

.nation-list__content p {
    padding: 15px 0 50px;
    color: #212427;
}


.nations-flag {
    aspect-ratio: 4/3;
    width: 80px;
    background-size: contain;
    border-radius: 0.375rem;
    gap: 0.5rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.gap-1 {
    gap: 1rem;
}


@media (min-width: 1024px) {
    .nation-list__content p {
        margin: 0 30px;
    }

    .nation-list__content > .container.content {
        max-width: calc(100% - 30%);
    }

    .nation-list__content > .flag-container {
        max-width: calc(100% - 10%) !important;
    }
}

.nations-row {
    margin: 0 -5px;
    padding-bottom: 100px;
}

.nations-column {
    float: left;
    width: 16%;
    padding: 0 10px 20px;
}

@media (max-width: 768px) {
    .nation-list__content a {
        font-size: 12px;
    }

    .nation-list__content h1 {
        font-size: 24px;
    }

    .nations-flag {
        width: 50px;
    }

    .nations-column {
        width: 33%;
        padding: 0;
    }

    .nation-list__content p {
        padding-bottom: 15px;
    }
}