/* Title section styles */

#news {
    position: relative;
}

#news .title-block-section {
    text-transform: uppercase;
    color: #fff;
    font-size: 8.75rem;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #e2e2e2;
    font-weight: bold;
    position: absolute;
    right: 0rem;
    top: 6.7rem;
    box-sizing: border-box;
    z-index: -1;
}
@media screen and (max-width: 1400px) {
    #news .news-carrousel-content {
        padding-right: var(--wp--style--root--padding-right) !important;
        padding-left: var(--wp--style--root--padding-left) !important;
    }
}
@media screen and (max-width: 1280px) {
    #news .title-block-section {
        font-size: 5rem;
        top: 13rem;
    }
}
@media screen and (max-width: 980px) {
    #news .title-block-section {
        top: 23rem;
    }
    .news-carrousel {
        margin-top: 6rem !important;
    }
}
@media screen and (max-width: 700px) {
    #news .title-block-section {
        font-size: 4em;
        top: 24.2rem;
    }
}
@media screen and (max-width: 600px) {
    #news .title-block-section {
        font-size: 3rem;
        top: 24.1rem;
    }
    .news-carrousel {
        margin-top: 4rem;
    }
}

/*Red line on subheaders*/

.news-carrousel-content .red-line-subtitle img {
    margin-bottom: 0.3rem;
}

/*Text content responsive*/

@media screen and (max-width: 992px) {
    .news-content {
        flex-wrap: wrap !important;
    }
    .news-content .wp-block-group {
        flex-basis: 48% !important;
    }
}

@media screen and (max-width: 769px) {
    .news-content .wp-block-group {
        flex-basis: 100% !important;
    }
}

@media screen and (max-width: 992px) {
    .news-carrousel-content {
        flex-wrap: wrap !important;
    }
    .news-carrousel-content .wp-block-group {
        flex-basis: 100% !important;
    }
    .news-carrousel-content .wp-block-group .wp-block-group {
        width: 100%;
    }
    .news-carrousel-content .wp-block-buttons {
        float: left;
    }
}

.news-carrousel-buttons {
    position: absolute;
    left: 300px;
    z-index: 2;
}
@media screen and (max-width: 992px) {
    .news-carrousel-buttons {
        left: 54px;
    }
}

/*Slider wrapper*/

.news-carrousel {
    overflow-x: hidden;
    padding-left: 200px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}
@media screen and (max-width: 992px) {
    .news-carrousel {
        padding-left: var(--wp--style--root--padding-left);
    }
}

/*Slider content*/

.news-carrousel .wp-block-post-template-is-layout-grid {
    display: flex;
}

.news-carrousel > div,
..news-carrousel .wp-block-post-template-is-layout-grid {
    flex-wrap: nowrap;
    padding-left: 180px;
    justify-content: left !important;
    overflow-x: scroll !important;
    width: 100% !important;
    max-width: none !important;
    padding-bottom: 60px;
}
@media screen and (max-width: 992px) {
    .news-carrousel > div {
        padding-left: 23px;
    }
}

@media screen and (max-width: 992px) {
    .news-carrousel > div > div {
        border-radius: 0px 0px 4px 4px;
    }
}

.news-carrousel .wp-block-heading {
    margin-top: 0rem !important;
    padding-top: 1rem !important;
}
.news-carrousel .news-carrousel-3-lines {
    padding-top: 1rem !important;
    margin-top: 0px;
}

.news-carrousel > div > div,
.news-carrousel .wp-block-post.post.type-post {
    width: 312px !important;
    display: block;
    float: left;
    left: 0px;
    position: relative;
    flex: none;
    margin-right: 23px;
    border-radius: 0px 0px 4px 4px;
    transition: left 0.6s ease-in-out;
}
@media screen and (max-width: 769px) {
    .news-carrousel > div > div {
        background-color: white;
        width: 312px !important;
    }
}

.news-carrousel > div > div > div {
    border-radius: 0px 0px 4px 4px;
}

.news-carrousel > div > div > figure > img {
    border-radius: 4px 4px 0px 0px;
    width: 312px;
    height: 200px;
}

.news-carrousel p.news-carrousel-3-lines {
    max-height: 73px;
    overflow: hidden;
}

.wp-block-post-excerpt__more-text {
    margin-top: 0px;
}

.wp-block-post-excerpt__more-link {
    text-decoration: none !important;
}

.news-carrousel div {
    flex-wrap: nowrap;
    align-items: stretch;
}

.news-carrousel > div > div {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.smooth-transition {
    transition: transform 0.6s ease-in-out;
    /* Ajusta la duración y la función de temporización según tus preferencias */
}
