/*
Theme Name: News site
Author: Malak
Description: Template to sites that news tematic 
Version: 1.0
Requires at least: 6.6.0
Tested up to: 6.6.2
Requires PHP: 7.4
*/
.header-opinion {
    font-size: x-large;
    color: #000;
    margin-top: 10px;
    margin-bottom: 10px;
}
h2.not-highlight > a {
    text-decoration: none;
}
h2.header-line-bottom {
    display: inline-block; 
    border-bottom: 4px solid #861500; 
    margin: 0!important;
}
h5.header-5-link:hover {
    transition: .3s;
    color: #8c0a0f !important;
}
div.header-line-bottom {
    display: inline-block; 
    border-bottom: 2px solid #861500; 
    margin-top: 20px!important;
    margin-bottom: 20px!important;
}
div.short-new-line-bottom {
    display: inline-block; 
    border-bottom: 1px solid #a5a5a5; 
    margin-bottom: 0!important;
    margin-top: 10px!important;
}
.mbnot-antes-del-contenido {
    margin-bottom: 1.5rem;
}
.separetor {
    padding: 0.4rem!important;
}
#header-type-3 {
    padding-bottom: 0.4rem!important;
}
.no-much-margin-for-text {
    margin-top: 5px; 
    margin-bottom: 5px
}
.justity-text {
    text-align: justify;
}
/* Contenedor general minuto a minuto */
/* .home-noticias-container { */
    /* display: flex; */
    /* gap: 20px; */
    /* flex-wrap: nowrap; */
/* } */
/* Noticia grande (izquierda) */
/* .noticia-grande { */
    /* flex: 0 0 66%; */
    /* box-sizing: border-box; */
/* } */
/* .noticia-grande .imagen-grande img { */
    /* width: 100%; */
    /* height: auto; */
    /* display: block; */
/* } */
/* Grid 2x2 (derecha) */
.noticias-pequenas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    box-sizing: border-box;
}
/* Cada noticia pequeña */
.noticia-pequena {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.noticia-pequena .imagen-pequena img {
    width: 100%;
    height: 200px; /* misma altura */
    object-fit: cover; /* recorta centrado para mantener proporción */
    display: block;
}
img.img-fluid {
    height: 100%!important;
    width: 100%!important;
    display: block!important;
    object-fit: contain;
}
img.img-principal {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
div.col-margin {
    margin: 8px;
}
div.col-large-new {
    height: 300px;
}
div.col-medium-new {
    height: 160px;
}
a.reference_link {
    color: #000!important;
}
.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.notas-destacadas {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.nota-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}
.nota-item h3 {
    font-size: 16px;
    margin-top: 10px;
}
.notas-destacadas-wrapper{
    display:flex;
    align-items:center;
}
.notas-destacadas-carousel{
    display:flex;
    gap:20px;
    overflow:hidden;
}
.nota-item{
    min-width:200px;
}
.carousel-prev,
.carousel-next{
    cursor:pointer;
    font-size:30px;
    background:none;
    border:none;
}
/* Tipografía noticia grande */
/* .titulo-grande { font-size: 24px; margin: 10px 0 5px; }
.extracto-grande { font-size: 16px; color: #555; } */
/* Responsive tablets */
@media (max-width: 781px) {
    .home-noticias-container {
        flex-wrap: wrap;
    }
    .noticia-grande, .noticias-pequenas-grid {
        flex: 0 0 100%;
    }
    .noticias-pequenas-grid {
        grid-template-columns: 1fr 1fr;
    }
    .noticia-pequena .imagen-pequena img {
        height: 180px;
    }
    .ad-banner {
        height: auto;
    }
    .column-journalist.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:first-child {
        flex-basis: 60% !important;
    }
    .column-journalist.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:last-child {
        flex-basis: 30% !important;
    }
}
/* Responsive móviles */
@media (max-width: 480px) {
    .ad-banner {
        height: auto;
        /* height: 120px; */
    }
    .nota-item-grid {
        grid-template-columns: 1fr;
    }
    .noticia-pequena .imagen-pequena img {
        height: 160px;
    }
    .row-phone {
        display: block!important;
    }
    .municipio-phone ul {
        grid-template-columns:repeat(2,1fr)!important;
    }
    .journalist img {
        border-radius:8px;
    }
    .column-journalist{
        flex-wrap: nowrap !important;
    }
    .column-journalist .wp-block-column:first-child{
        flex-basis: 60% !important;
    }
    .column-journalist .wp-block-column:last-child{
        flex-basis: 20% !important;
    }
    .column-journalist img{
        width:100%;
        height:auto;
    }
}
