/* ==========================================================
   AYUNTAMIENTO DE FUENTES DE EBRO
   CSS PERSONALIZADO - PLANTILLA WESTAND
   VERSIÓN CONSOLIDADA
   ========================================================== */


/* ==========================================================
   01. TIPOGRAFÍA GENERAL DE LA WEB
   ========================================================== */

h2 {
    font-size: 38px !important;
}

h3 {
    font-size: 30px !important;
}

h4 {
    font-size: 24px !important;
}

h5 {
    font-size: 20px !important;
}


/* ==========================================================
   02. SERVICIOS Y MÓDULOS DE PORTADA
   ========================================================== */

.services article .text h2 a {
    font-size: 18px !important;
    line-height: 24px !important;
}

.services article .text {
    padding: 0 0 12px 16px;
}

.services article .text h2 {
    line-height: 0.5;
}

.services {
    margin-bottom: 0;
}

.services.border-bottom::before {
    border: none;
}

.caption h2 {
    font-size: 24px !important;
}

.left-timeline-sec h2 {
    font-size: 18px !important;
}

.home-info h5 {
    font-size: 18px !important;
}

.cs-post-title {
    font-size: 16px !important;
}

.cs-section-title {
    font-size: 20px !important;
}


/* ==========================================================
   03. MENÚ DE NAVEGACIÓN
   ========================================================== */

.navigation ul ul {
    width: 232px;
}

/* Menú principal */
#header .navigation > ul > li > a {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

/* Interacción con el menú principal */
#header .navigation > ul > li:hover > a,
#header .navigation > ul > li > a:focus-visible {
    color: #ca0000 !important;
}

/* Apartado activo */
#header .navigation > ul > li.current-menu-item > a,
#header .navigation > ul > li.current-menu-ancestor > a,
#header .navigation > ul > li.current_page_item > a {
    color: #ca0000 !important;
}

/* Contenedor de los submenús */
#header .navigation ul ul {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Tipografía de los submenús */
#header .navigation ul ul li a {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

/* Interacción con los submenús */
#header .navigation ul ul li:hover > a,
#header .navigation ul ul li > a:focus-visible {
    background-color: #ca0000 !important;
    color: #ffffff !important;
}

/* Apartado activo del submenú */
#header .navigation ul ul li.current-menu-item > a {
    background-color: #ca0000 !important;
    color: #ffffff !important;
}


/* ==========================================================
   04. CABECERAS Y MIGAS DE PAN
   ========================================================== */

.breadcrumbs {
    display: none;
}

.breadcrumb-inner {
    background: none;
}


/* ==========================================================
   05. CARRUSELES Y DIAPOSITIVAS
   ========================================================== */

.cs-carousel-control {
    font-size: 24px;
    line-height: 28px;
}

#sliderbanner {
    max-height: 600px;
}

.cs-blog figure figcaption .btn {
    display: none;
}

.cs-blog.blog-grid.blog-carousel-view article .post-options {
    border-bottom: 0 solid #c30217;
}

.cs-blog.blog-grid.blog-carousel-view article.featured-slide {
    width: 197px;
}

.cs-blog.blog-grid.blog-carousel-view article figure {
    height: 202px;
    overflow: hidden;
    position: relative;
}

.cs-blog.blog-grid.blog-carousel-view article figure img {
    position: absolute;
    transform: translate(-50%, -50%);
    height: 200% !important;
    width: auto !important;
}


/* ==========================================================
   06. PIE DE PÁGINA Y BOLETÍN DE NOTICIAS
   ========================================================== */

#footer-widgets .widget header.cs-heading-title h2 {
    font-size: 18px !important;
}

#footer-widgets {
    margin-top: 60px;
}

.tnp-widget {
    color: white;
}


/* ==========================================================
   07. ELEMENTOS ADICIONALES DE LAS NOTICIAS
   ========================================================== */

.share-post {
    display: none;
}

.about-author {
    display: none;
}


/* ==========================================================
   08. GALERÍAS FOTOGRÁFICAS
   ========================================================== */

.gallery {
    float: none;
}


/* ==========================================================
   09. FORMULARIOS DE CONTACTO
   ========================================================== */

.wpcf7-textarea {
    border: 1px solid #acacac;
    padding: 4px 30px;
    border-radius: 0;
    height: 200px;
}


/* ==========================================================
   10. ANCHO EDITORIAL DE LAS NOTICIAS
   ========================================================== */

.single-post .cs-blog.blog_detail {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.single-post .cs-blog.blog_detail article {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* ==========================================================
   11. FRANJA ROJA DEL TITULAR PRINCIPAL
   ========================================================== */

.single-post .breadcrumb {
    background-color: #ca0000 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 0 !important;
    box-sizing: border-box !important;
}

.single-post .breadcrumb .container {
    width: 100% !important;
    max-width: 930px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

.single-post .breadcrumb-inner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    text-align: left !important;
}

.single-post .breadcrumb-inner h1,
.single-post .breadcrumb-inner h2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 28px !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Titular principal en ordenador */

@media (min-width: 992px) {

    .single-post .breadcrumb-inner h1,
    .single-post .breadcrumb-inner h2 {
        font-size: 30px !important;
        line-height: 1.3 !important;
    }

}


/* ==========================================================
   12. SEPARACIÓN ENTRE CABECERA Y CONTENIDO
   ========================================================== */

.single-post #main {
    padding-top: 24px !important;
}


/* ==========================================================
   13. ESTRUCTURA INTERNA DE LA NOTICIA
   Orden visual:
   1. Fecha y categorías
   2. Imagen destacada
   3. Cuerpo de la noticia
   ========================================================== */

.single-post .cs-blog.blog_detail article > .cs-blog-panel {
    order: -2;
}

.single-post .cs-blog.blog_detail article > figure.detail_figure {
    order: -1;
}

.single-post .cs-blog.blog_detail article > .detail_text {
    order: 0;
}


/* ==========================================================
   14. FECHA Y CATEGORÍAS
   ========================================================== */

.single-post .cs-blog.blog_detail .cs-blog-panel {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.single-post .cs-blog.blog_detail .cs-blog-panel time,
.single-post .cs-blog.blog_detail .cs-blog-panel li,
.single-post .cs-blog.blog_detail .cs-blog-panel span,
.single-post .cs-blog.blog_detail .cs-blog-panel a,
.single-post .cs-blog.blog_detail .cs-blog-panel i {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
}

.single-post .cs-blog.blog_detail .cs-blog-panel a:hover,
.single-post .cs-blog.blog_detail .cs-blog-panel a:focus-visible {
    color: #ca0000 !important;
}

.single-post .cs-blog.blog_detail .cs-blog-panel .post-options {
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================
   15. IMAGEN DESTACADA DE LA NOTICIA
   Ancho editorial completo.
   Sin recortes ni deformaciones.
   ========================================================== */

.single-post .cs-blog.blog_detail article > figure.detail_figure {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.single-post .cs-blog.blog_detail article > figure.detail_figure img {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================
   16. CUERPO DE TEXTO DE LAS NOTICIAS
   ========================================================== */

.single-post .detail_text.rich_editor_text {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #000000 !important;
}

.single-post .detail_text.rich_editor_text p {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #000000 !important;
    margin-top: 0;
    margin-bottom: 18px !important;
    text-align: left;
}

.single-post .detail_text.rich_editor_text strong,
.single-post .detail_text.rich_editor_text b {
    font-weight: 700 !important;
}


/* ==========================================================
   17. TITULARES INTERIORES DE LAS NOTICIAS
   ========================================================== */

.single-post .detail_text.rich_editor_text h2,
.single-post .detail_text.rich_editor_text h3,
.single-post .detail_text.rich_editor_text h4,
.single-post .detail_text.rich_editor_text h5 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: left;
}

.single-post .detail_text.rich_editor_text h2 {
    font-size: 26px !important;
    line-height: 1.3 !important;
    color: #ca0000 !important;
    margin-top: 30px !important;
    margin-bottom: 14px !important;
}

.single-post .detail_text.rich_editor_text h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    color: #ca0000 !important;
    margin-top: 26px !important;
    margin-bottom: 12px !important;
}

.single-post .detail_text.rich_editor_text h4 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
}

.single-post .detail_text.rich_editor_text h5 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    color: #ca0000 !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
}


/* ==========================================================
   18. ENLACES DEL INTERIOR DE LAS NOTICIAS
   Rojo corporativo por defecto.
   Negro al pasar el cursor.
   ========================================================== */

.single-post .detail_text.rich_editor_text a {
    color: #ca0000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.single-post .detail_text.rich_editor_text a:visited {
    color: #ca0000 !important;
}

.single-post .detail_text.rich_editor_text a:hover,
.single-post .detail_text.rich_editor_text a:focus-visible {
    color: #000000 !important;
    text-decoration: underline !important;
}

.single-post .detail_text.rich_editor_text a:focus-visible {
    outline: 2px solid #ca0000;
    outline-offset: 3px;
}


/* ==========================================================
   19. LISTADOS Y ENUMERACIONES
   ========================================================== */

/* Configuración original de listados generales */

.detail_inner .text ul li {
    font-size: 1.5rem !important;
}

/* Listados del interior de las noticias */

.single-post .detail_text.rich_editor_text ul,
.single-post .detail_text.rich_editor_text ol {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 24px;
}

.single-post .detail_text.rich_editor_text ul li,
.single-post .detail_text.rich_editor_text ol li {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #000000 !important;
    margin-bottom: 8px;
}

.single-post .detail_text.rich_editor_text li::marker {
    color: #ca0000;
}


/* ==========================================================
   20. IMÁGENES INTERIORES Y PIES DE FOTOGRAFÍA
   ========================================================== */

.single-post .detail_text.rich_editor_text img {
    max-width: 100%;
    height: auto;
}

.single-post .detail_text.rich_editor_text .wp-caption {
    max-width: 100% !important;
}

.single-post .wp-caption-text,
.single-post .detail_text.rich_editor_text p.wp-caption-text,
.single-post .detail_text.rich_editor_text figcaption {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    margin-top: 8px !important;
}


/* ==========================================================
   21. BOTONES PARA COMPARTIR
   ========================================================== */

.single-post .sharedaddy {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
}

.single-post .sharedaddy h3.sd-title {
    font-family: 'Roboto Slab', serif !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #ca0000 !important;
    text-transform: none !important;
    margin-bottom: 12px !important;
}

.single-post .sharedaddy ul {
    margin: 0 !important;
    padding: 0 !important;
}

.single-post .sharedaddy a {
    text-decoration: none !important;
}

.single-post .sharedaddy a.sharing-anchor {
    text-decoration: underline !important;
}


/* ==========================================================
   22. NOTICIAS RELACIONADAS - JETPACK
   ========================================================== */

.single-post #jp-relatedposts {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 36px 0 24px 0 !important;
    padding: 24px 0 0 0 !important;
    border-top: 1px solid #dddddd !important;
    box-sizing: border-box !important;
}


/* Encabezado de noticias relacionadas */

.single-post #jp-relatedposts h3.jp-relatedposts-headline {
    display: block !important;
    float: none !important;
    width: 100% !important;
    font-family: 'Roboto Slab', serif !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: none !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}

.single-post #jp-relatedposts h3.jp-relatedposts-headline em {
    font-style: normal !important;
    font-weight: 700 !important;
}

.single-post #jp-relatedposts h3.jp-relatedposts-headline em::before {
    display: none !important;
}


/* Cuadrícula de noticias relacionadas */

.single-post #jp-relatedposts .jp-relatedposts-items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-post #jp-relatedposts .jp-relatedposts-items::before,
.single-post #jp-relatedposts .jp-relatedposts-items::after {
    display: none !important;
}

.single-post #jp-relatedposts .jp-relatedposts-post {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}


/* Miniaturas de noticias relacionadas */

.single-post #jp-relatedposts img.jp-relatedposts-post-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    margin: 0 0 10px 0 !important;
    opacity: 1 !important;
}


/* Titulares de noticias relacionadas */

.single-post #jp-relatedposts .jp-relatedposts-post-title {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #ca0000 !important;
    text-transform: none !important;
    margin: 10px 0 8px 0 !important;
    padding: 0 !important;
}

.single-post #jp-relatedposts .jp-relatedposts-post-title a {
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #ca0000 !important;
    text-decoration: none !important;
}

.single-post #jp-relatedposts .jp-relatedposts-post-title a:hover,
.single-post #jp-relatedposts .jp-relatedposts-post-title a:focus-visible {
    color: #000000 !important;
    text-decoration: underline !important;
}


/* Fecha de las noticias relacionadas */

.single-post #jp-relatedposts .jp-relatedposts-post-date {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
    margin-top: 8px !important;
}


/* Ocultar contexto y extractos */

.single-post #jp-relatedposts .jp-relatedposts-post-context,
.single-post #jp-relatedposts .jp-relatedposts-post-excerpt {
    display: none !important;
}


/* ==========================================================
   23. ETIQUETAS DE LAS NOTICIAS
   ========================================================== */

.single-post .post-tags {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.single-post .post-tags a {
    font-size: 12px !important;
    line-height: 1.5 !important;
}


/* ==========================================================
   24. ADAPTACIÓN A TABLETAS
   ========================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .single-post .cs-blog.blog_detail {
        max-width: 100% !important;
    }

    .single-post .breadcrumb-inner h1,
    .single-post .breadcrumb-inner h2 {
        font-size: 26px !important;
    }

    .single-post #jp-relatedposts .jp-relatedposts-items {
        gap: 15px !important;
    }

}


/* ==========================================================
   25. ADAPTACIÓN A DISPOSITIVOS MÓVILES
   ========================================================== */

@media (max-width: 767px) {

    /* Cabecera de la noticia */

    .single-post .breadcrumb {
        padding: 20px 0 !important;
    }

    .single-post .breadcrumb .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .single-post .breadcrumb-inner {
        text-align: left !important;
    }

    .single-post .breadcrumb-inner h1,
    .single-post .breadcrumb-inner h2 {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }


    /* Contenido principal */

    .single-post #main {
        padding-top: 20px !important;
    }

    .single-post .cs-blog.blog_detail {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* Imagen destacada */

    .single-post .cs-blog.blog_detail article > figure.detail_figure {
        margin-bottom: 18px !important;
    }

    .single-post .cs-blog.blog_detail article > figure.detail_figure img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }


    /* Fecha y categorías */

    .single-post .cs-blog.blog_detail .cs-blog-panel {
        margin-bottom: 12px !important;
    }


    /* Párrafos y listados */

    .single-post .detail_text.rich_editor_text,
    .single-post .detail_text.rich_editor_text p,
    .single-post .detail_text.rich_editor_text ul li,
    .single-post .detail_text.rich_editor_text ol li {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    .single-post .detail_text.rich_editor_text p {
        margin-bottom: 18px !important;
    }


    /* Titulares interiores */

    .single-post .detail_text.rich_editor_text h2 {
        font-size: 24px !important;
    }

    .single-post .detail_text.rich_editor_text h3 {
        font-size: 22px !important;
    }

    .single-post .detail_text.rich_editor_text h4,
    .single-post .detail_text.rich_editor_text h5 {
        font-size: 20px !important;
    }


    /* Pies de fotografía */

    .single-post .wp-caption-text,
    .single-post .detail_text.rich_editor_text p.wp-caption-text,
    .single-post .detail_text.rich_editor_text figcaption {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }


    /* Noticias relacionadas */

    .single-post #jp-relatedposts .jp-relatedposts-items {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px !important;
    }

    .single-post #jp-relatedposts .jp-relatedposts-post-title,
    .single-post #jp-relatedposts .jp-relatedposts-post-title a {
        font-size: 16px !important;
    }

    .single-post #jp-relatedposts h3.jp-relatedposts-headline {
        font-size: 22px !important;
    }

}


/* ==========================================================
   26. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .single-post .detail_text.rich_editor_text a,
    #header .navigation a {
        transition: none !important;
    }

}

/* ==========================================================
   FIN DEL CSS PERSONALIZADO
   AYUNTAMIENTO DE FUENTES DE EBRO
   ========================================================== */