@import "sections/what-we-do.css";
@import "sections/our-focus-areas.css";
@import "sections/impact.css";
@import "sections/contact-us.css";
@import "sections/publications.css";
@import "sections/strategic-partners.css";

.slider-global-home {
    display: flex;
    justify-content: space-between;
    gap: 32px 60px;

    header {
        flex: 0 0 auto;
        position: relative;
        width: 100%;
        max-width: 384px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 32px;

        h2 {
            font-family: var(--font-family-primary);
            font-weight: 700;
            font-size: 40px;
            color: var(--color-primary-500);
            margin-bottom: 16px;
        }

        p {
            font-family: var(--font-family-primary);
            font-weight: 400;
            font-size: 16px;
            letter-spacing: 0%;
            margin-bottom: 24px;
        }
    }

    header a,
    .data-mobile a {
        font-family: var(--font-family-secondary);
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0%;
        text-decoration: underline;
        text-decoration-style: solid;
        text-decoration-thickness: 0%;
        text-decoration-skip-ink: auto;
        color: #000000;
    }

    .swiper {
        padding-bottom: 0;
        width: 100%;
    }

    .data-mobile {
        display: none;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    @media (max-width: 768px) {
        flex-direction: column;
        gap: 24px;

        header {
            width: 100%;
            max-width: unset;
            padding-bottom: 0;

            h2 {
                font-size: 32px;
            }

            p {
                margin-bottom: 0;
            }

            a {
                display: none;
            }

            .arrows-buttons-wrapper {
                display: none;
            }
        }

        .data-mobile {
            display: flex;
        }
    }
}

.arrows-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;

    .divider {
        width: 1px;
        height: auto;
        background-color: #000;
        opacity: 0.3;
    }

    .swiper-button-next,
    .swiper-button-prev {
        position: initial;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        margin: 0;
        border: none;
        border-radius: 100px;
        background-color: var(--color-primary-500);
        color: var(--color-neutral-50);

        svg {
            width: 32px;
            height: 32px;
        }

        &::after {
            content: none;
        }
    }
}

.container-translated {
    display: grid;
    padding-right: 0;
}

.slider-publicaciones,
.slider-agenda {
    display: flex;
    margin-top: 120px;
    gap: 22px;

    header {
        width: 100%;
        max-width: 486px;
    }

    .card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 282px;
        overflow: hidden;

        .title-wrapper {
            display: flex;
            flex-direction: column;
            gap: 18px;
            width: 100%;
            height: 280px;
            padding: 16px 20px;
            border-radius: 24px;
            background-color: #D66078;
            color: #fff;

            .badgets {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;

                span {
                    font-family: var(--font-family-tertiary);
                    border-radius: 100px;
                    padding-top: 4px;
                    padding-right: 8px;
                    padding-bottom: 4px;
                    padding-left: 8px;
                    font-weight: 400;
                    font-size: 12px;
                    line-height: 100%;
                    letter-spacing: 0%;

                    &.date {
                        background-color: #96CAFF;
                        color: #000000;
                    }

                    &.category {
                        background-color: #000000;
                        color: #fff;
                    }
                }
            }

            h2 {
                font-family: var(--font-family-secondary);
                font-weight: 700;
                font-size: 25px;
                letter-spacing: -2%;
            }
        }

        .content {
            display: flex;
            flex-direction: column;
            gap: 8px;

            .text {
                font-family: var(--font-family-secondary);
                font-weight: 400;
                font-size: 14px;
                letter-spacing: 0%;
            }

            a {
                font-family: var(--font-family-tertiary);
                font-weight: 700;
                font-size: 14px;
                letter-spacing: 0%;
                vertical-align: middle;
                text-decoration: underline;
                text-decoration-style: solid;
                text-decoration-thickness: 0%;
                text-decoration-skip-ink: auto;
                color: #000;
            }
        }
    }

    .data-mobile {
        padding-right: var(--padding);
    }

    @media (max-width: 768px) {
        margin-top: 64px;
    }
}

@media (max-width: 768px) {
    .container-medium {
        --padding: 24px;
    }

    .container-translated {
        display: block;

        header {
            padding-right: var(--padding);
        }
    }
}