/* 1rem = 1em = 16px */
/* 1344px/16px = 84rem or em */

/**********************************/
/* BELOW 1344px (smaller desktops)*/
/**********************************/
@media (max-width: 84em) {
    html {
        font-size: 60%;
    }
    .header {
        padding: 0 3.2rem;
    }
    .heading-primary {
        font-size: 3rem;
    }
    .heading-secondary--programs {
        font-size: 3rem;
    }
    .news-data {
        font-size: 3rem;
    }
    .subheading {
        font-size: 2rem;
    }
    .hero {
        gap: 2.4rem;
    }
    .section-hero {
        height: 70rem;
        clip-path: none;
    }
    .section-news {
        margin-top: 0vh;
        padding: 4.8rem 0 4.8rem 0;
    }
    .link.link,
    .link:visited {
        font-size: 2.5rem;
    }
    .countries-imgs img {
        height: 4rem;
        width: 4rem;
    }
    .countries-text {
        font-size: 1.6rem;
        font-weight: 500;
    }
    .countries-text span {
        font-weight: 600;
    }
    .btn,
    .btn:link,
    .btn:visited {
        font-size: 1.6rem;
        padding: 1.4rem 2.8rem;
    }
    .margin-right-sm {
        margin-right: 1rem !important;
    }
}

/**********************************/
/* BELOW 1200px (Landscape Tablets)*/
/**********************************/
@media (max-width: 75em) {
    html {
        font-size: 56%;
    }
    .hero {
        gap: 1.4rem;
    }
    .section-hero {
        height: 65rem !important;
    }
    .heading-secondary {
        font-size: 2.4rem;
    }
    .heading-tertiary {
        font-size: 2.4rem;
    }
    .header {
        padding: 0 3.2rem;
    }

    .main-nav-list {
        gap: 2.2rem;
    }
    .countries-imgs img {
        height: 3.5rem;
        width: 3.5rem;
    }
    .countries-text {
        font-size: 1.4rem;
        font-weight: 400;
    }
    .countries-text span {
        font-weight: 500;
    }
    .section-hero {
        height: 65rem !important;
    }
    .btn,
    .btn:link,
    .btn:visited {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }
    .margin-right-sm {
        margin-right: 0.6rem !important;
    }
    .news-video {
        height: auto;
        margin-top: 2rem;
    }
}

/**********************************/
/* BELOW 1000px (Tablets)*/
/**********************************/
@media (max-width: 62.5em) {
    html {
        font-size: 50%;
    }
    .main-nav-list {
        gap: 1.6rem;
    }
    .section-hero {
        height: 60rem !important;
    }
    .main-nav-list {
        gap: 1.5rem;
    }
    .hero-slider img {
        width: 95% !important;
        border-radius: 35px !important;
    }
    .news-video {
        height: auto;
        width: 60% !important;
        margin-top: 2rem;
        border-radius: 20px !important;
    }
    .news-img {
        border-radius: 20px !important;
    }
    .donate-img {
        border-radius: 20px !important;
    }

    .grid--4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/**********************************/
/* BELOW 919px (Tablets)*/
/**********************************/
@media (max-width: 57.43em) {
    html {
        font-size: 50%;
    }
    .main-nav-list {
        gap: 1.2rem;
    }
    .section-hero {
        height: 90rem !important;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 0 15rem;
    }
    .hero-slider img {
        width: 75% !important;
        border-radius: 25px !important;
        margin: auto auto;
        margin-top: 3rem;
    }
    .hero-text-box {
        text-align: center;
    }
    .african-countries {
        justify-content: center;
    }
    .news-description {
        font-size: 1.6rem;
        line-height: 1.8;
    }

    .news-video {
        height: auto;
        margin-top: 2rem;
        border-radius: 20px !important;
    }
    .news-img {
        border-radius: 20px !important;
    }
    .donate-img {
        border-radius: 20px !important;
    }
    #section-form {
        padding: 9.6rem 4rem 15.6rem 4rem;
    }

    /* form .card-details .card-box {
        width: calc(100%);
        margin-bottom: 1.5rem;
    } */

    /* MOBILE NAV */

    .btn-mobile-nav {
        display: block;
        z-index: 9999 !important;
    }

    .main-nav {
        z-index: 9999 !important;
        background-color: rgba(28, 113, 70, 0.961);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(100%);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease-in;

        /* Hide navigation */
        /* Not allow transitions */
        /* display: none; */

        /* 1- Hide it visually */
        opacity: 0;

        /* 2 - Make it unaccessible to mouse and keyboard */
        pointer-events: none;

        /* 3- Hide it from screen readers */
        visibility: hidden;
    }

    .nav-open .main-nav {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-open .icon-mobile-nav[name='close-outline'] {
        display: block;
    }

    .nav-open .icon-mobile-nav[name='menu-outline'] {
        display: none;
    }

    .main-nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav-link:link,
    .main-nav-link:visited {
        font-size: 4.4rem;
        color: rgb(211, 209, 209);
    }
}

/**********************************/
/* BELOW 704px (Smaller Tablets)*/
/**********************************/
@media (max-width: 44em) {
    html {
        font-size: 45%;
    }
    #section-form {
        padding: 0rem 4rem 20.6rem 4rem !important;
        height: 600px;
        clip-path: none;
        margin-bottom: 20rem;
    }

    form .card-details .card-box {
        width: calc(100%);
        margin-bottom: 1.5rem;
    }
    .footer {
        padding: 6rem 0;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 0 10rem;
    }
    .container-specific {
        max-width: 85%;
    }
}

/**********************************/
/* BELOW 600px (Phones)*/
/**********************************/

@media (max-width: 37.5em) {
    .hero-slider img {
        width: 95% !important;
        border-radius: 25px !important;
    }

    .footer-logo {
        scale: 0.8;
    }
    .social-links {
        gap: 2rem;
    }
}

/**********************************/
/* BELOW 544px (Phones)*/
/**********************************/

@media (max-width: 34em) {
    .section-hero {
        height: 80rem !important;
    }
    .heading-primary {
        font-size: 2rem;
    }
    .heading-secondary--programs {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1.4rem;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 0 6rem;
    }

    .heading-secondary {
        font-size: 2rem;
    }
    .heading-tertiary {
        font-size: 2rem;
    }
    .news-data {
        font-size: 2rem;
    }
    .specific-img {
        width: 110% !important;
        border-radius: 25px !important;
    }
    .container-specific {
        max-width: 85%;
    }
    .specific-description {
        font-size: 1.4rem;
    }
    .hero-slider img {
        width: 100% !important;
        border-radius: 20px !important;
    }
    .grid {
        row-gap: 6rem;
    }
    .grid--2-cols {
        grid-template-columns: 1fr;
    }

    /* .grid--4-cols {
        grid-template-columns: 1fr;
    } */

    .invert-1 {
        order: 2 !important;
    }

    .invert-2 {
        order: 1 !important;
    }

    .invert-3 {
        order: 3 !important;
    }

    .footer-logo {
        scale: 0.8;
    }
    .social-links {
        gap: 2rem;
    }
    /* .news-description {
        font-size: 2rem;
    } */
    .grid--footer {
        grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    }

    .container-form .heading-form {
        font-size: 1.8rem;
        font-weight: 400;
    }

    .card-details .card-box .details {
        font-weight: 400;
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }

    .message-details .message-box .details {
        font-weight: 400;
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    .message-details .message-box input {
        height: 2rem;
        border-radius: 10px;
    }
    .card-details .card-box input {
        height: 3rem;
        border-radius: 10px;
    }
    #section-form {
        padding: 4rem 0 4rem 0;
        height: 500px;
        margin-bottom: 15rem;
    }

    form .button-form input {
        border-radius: 5px;
    }
    .main-nav {
        height: 100vh;
    }
    .main-nav-link:link,
    .main-nav-link:visited {
        font-size: 3rem;
    }

    .main-nav-list {
        gap: 4rem;
    }
}

/**********************************/
/* BELOW 400px (Phones)*/
/**********************************/

@media (max-width: 25em) {
    .footer-logo {
        scale: 0.5;
    }
    .social-links {
        gap: 1rem;
    }
}
