.section.home-hero-section {
    padding-top: 74px;
}

.home-registration-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.home-registration-popup.is-hidden {
    display: none;
}

.home-registration-popup__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.home-registration-popup__content {
    position: relative;
    width: min(460px, 100%);
    background: var(--text-color-light);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 1.75rem;
    text-align: center;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.home-registration-popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--primary);
}

.home-registration-popup h3 {
    margin: 0 0 1rem;

}


.home-hero-section__video {
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;

    & video {
        width: 100%;
        height: auto;
        object-fit: cover;
        position: relative;
    }
}

/** hero content **/

.home-hero-section__content {
    margin-top: -10%;
    position: relative;
}

.home-hero-section__down-chevron {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -26px;
    width: 52px;
    height: 52px;
    border-radius: 100px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    flex-shrink: 0;

    & svg {
        width: 24px;
        height: 24px;
    }

    & path,
    & circle,
    & rect,
    & polygon {
        fill: var(--primary);
    }
}

.home-hero-section__content .home-hero-section__content-container {
    width: 100%;
    position: relative;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2.5rem 2.5rem 2.5rem;
    box-sizing: border-box;
    gap: 1.2rem;
    text-align: left;
    color: var(--text-color-light);
}

.home-hero-section__content-titles {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 0;

    & h1,
    & h2,
    & h3,
    & p {
        margin: 0;
        margin-bottom: 0.75em;
        line-height: 1.1;
        text-align: center;
        color: var(--text-color-light);
    }

    & h1 {
        font-size: 1.3rem;
        margin-bottom: 0.35rem;
        text-transform: uppercase;
        font-weight: 800;
    }

    & h2 {
        font-size: 1.15rem;
        text-transform: uppercase;
        font-weight: 800;
    }

    & h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent-light-2);
    }

    & .pre-congress-course-title {
        font-size: 1rem;
        font-weight: 800;
        color: var(--secondary-light);
        text-transform: uppercase;
        margin-top: 0;
    }
}

.home-hero-section__content-dates {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;

    & svg {
        width: 24px;
        height: 24px;

        & path,
        & circle,
        & rect,
        & polygon {
            fill: var(--secondary);
        }
    }

    & p {
        font-weight: 700;
        text-align: center;
        color: var(--text-color-light);
        line-height: 1.1;
        margin: 0;
        display: grid;
        flex-direction: column;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.5rem;
    }

    & .home-hero-section__event-place {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    & .home-hero-section__event-date {
        font-size: 1.2rem;
    }
}

.home-hero-section__content-organization {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    & p {
        font-size: var(--font-size-small);
        font-weight: 700;
        color: var(--text-color-light);
        line-height: 1.1;
        margin: 0;
        text-align: center;
    }

    & img {
        width: 90px;
        height: auto;
    }
}


/**** welcome letter ****/

.home-welcome-date-section__background-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    margin-top: 4rem;

    & img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

.home-welcome-date-section {
    z-index: 10;
    position: relative;
}

.home-welcome-letter {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;

    & .home-welcome-letter__content {
        flex: 1;
    }

    & .home-welcome-letter__aside {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex-shrink: 0;

        & .home-welcome-letter__aside-image {
            width: 195px;
            height: 185px;
            object-fit: cover;
            object-position: center;
            margin-bottom: 1rem;
        }

        & .home-welcome-letter__aside-logo {
            width: 90px;
            height: auto;
            object-fit: contain;
            object-position: center;
        }
    }
}




/* section uruguay */

.country-info__grid {
    background-color: var(--primary);
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;

    & h2 {
        font-size: 2rem;
        color: var(--text-color-light);
        margin: 0;
    }
}

.country-info__grid .container {
    display: grid;
    max-width: var(--max-width);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.country-info__grid .country-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    min-width: 0;

    & h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-color-light);
    }
}

/** country info buttons **/

.country-info__buttons {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
}

.country-info__buttons-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    height: 100%;
    width: 100%;
    min-height: 390px;
}

.country-info__buttons-item {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    & a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-color-light);
        font-size: var(--font-size-medium);
        font-weight: 800;
        text-align: center;

        &:hover {
            background-color: var(--primary-50);
        }
    }



    &.country-info__como-llegar {
        position: relative;
        background-color: var(--secondary-dark);

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('../images/home/how-to-get-bg.jpg') center / cover no-repeat;
            opacity: 0.1;
            pointer-events: none;
        }
    }

    &.country-info__visas {
        position: relative;
        background-color: var(--accent-1-dark);

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url('../images/home/visa-bg.jpg') center / cover no-repeat;
            opacity: 0.2;
            pointer-events: none;
        }
    }
}


/* media queries */

@media (min-width: 768px) {
    .section.home-hero-section {
        padding-top: 165px;
    }

    .home-hero-section__video {
        height: auto;
        max-height: 525px;
    }

    .home-hero-section__content .home-hero-section__content-container {
        flex-direction: row;
        gap: 2rem;
    }

    .home-hero-section__content-titles {
        max-width: 380px;
        justify-content: flex-start;
        align-items: flex-start;

        & h1,
        & h2,
        & h3,
        & p {
            margin-bottom: 1em;
            text-align: left;
        }

        & h1 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        & h2 {
            font-size: 1.3rem;
        }

        & h3 {
            font-size: 1.2rem;
        }

        & .pre-congress-course-title {
            font-size: 1.1rem;
            margin: 0;
        }
    }

    .home-hero-section__content-dates {
        flex-direction: column;

        & p {
            grid-template-columns: 24px 1fr;
            gap: 0.5rem;
            text-align: left;
            justify-items: start;
        }

        & .home-hero-section__event-place {
            font-size: 1.5rem;
        }

        & .home-hero-section__event-date {
            font-size: 1.8rem;
        }
    }

    .home-hero-section__content-organization {
        max-width: 160px;

        & img {
            width: 90px;
            height: auto;
        }
    }

    /**** welcome letter ****/
    .home-welcome-letter {
        flex-direction: row;
    }

    .home-welcome-letter {
        & .home-welcome-letter__aside {
            flex-direction: column;
            justify-content: center;
            width: 200px;
        }
    }


    /**** country info ****/
    .country-info__buttons-inner {
        min-height: auto;
    }

}