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


/* ==========================================================
   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;
}


/* ==========================================================
   02A. PORTADA - JERARQUÍA TIPOGRÁFICA Y CONTRASTE
   ========================================================== */

.home .cs-section-title,
.home .cs-section-title h2,
.home .cs-section-title h3,
.home .cs-section-title a,
.home .cs-section-title span,
.home #main .cs-heading-title h2 {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111111 !important;
}

.home .cs-blog .cs-post-title,
.home .cs-blog .cs-post-title a,
.home .cs-blog article h2 a {
    font-weight: 700 !important;
    color: #111111 !important;
}

.home .cs-blog .cs-post-title a:hover,
.home .cs-blog article h2 a:hover,
.home .cs-blog .cs-post-title a:focus-visible,
.home .cs-blog article h2 a:focus-visible {
    color: #ca0000 !important;
}

.home .cs-blog article p {
    color: #333333 !important;
    font-weight: 400 !important;
}

.home .cs-blog .post-options,
.home .cs-blog .post-options li,
.home .cs-blog .post-options time,
.home .cs-blog article time {
    color: #666666 !important;
    font-weight: 400 !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;
}


/* Ajustes de navegación en escritorio */
@media (min-width: 992px) {
    #header .navigation > ul > li > a {
        border-bottom: 2px solid transparent !important;
    }
    #header .navigation > ul > li:hover > a,
    #header .navigation > ul > li > a:focus-visible,
    #header .navigation > ul > li.current-menu-item > a,
    #header .navigation > ul > li.current-menu-ancestor > a,
    #header .navigation > ul > li.current_page_item > a {
        border-bottom: 2px solid #ca0000 !important;
        text-decoration: none !important;
    }
    #header .navigation > ul > li > a::before,
    #header .navigation > ul > li > a::after {
        border-bottom-style: solid !important;
    }
    #header .navigation ul ul {
        width: 260px !important;
        padding: 12px 10px !important;
        box-sizing: border-box;
    }
    #header .navigation ul ul li a {
        font-weight: 400 !important;
        line-height: 1.5 !important;
        padding: 8px 12px !important;
        letter-spacing: normal !important;
    }
}


/* Menú móvil */
@media (max-width: 991px) {
    #header .navigation .cs-click-menu { background: #ca0000 !important; color: #fff !important; border-radius: 5px !important; }
    #header .navigation .cs-click-menu i { color: #fff !important; }
    #header .navigation #menus { background: #fff !important; border: 1px solid #e5e5e5 !important; border-radius: 6px !important; padding: 12px 16px !important; box-sizing: border-box !important; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
    #header .navigation #menus > li { border-bottom: 1px solid #e5e5e5 !important; }
    #header .navigation #menus > li:last-child { border-bottom: none !important; }
    #header .navigation #menus > li > a { color: #111 !important; background: transparent !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.4 !important; padding: 12px 8px !important; min-height: 44px; box-sizing: border-box; text-decoration: none !important; border: none !important; }
    #header .navigation #menus > li:hover > a, #header .navigation #menus > li.current-menu-item > a, #header .navigation #menus > li.current-menu-ancestor > a { color: #ca0000 !important; }
    #header .navigation #menus > li > a::after, #header .navigation #menus > li > a i { color: #111 !important; }
    #header .navigation #menus .sub-menu { background: #f6f6f6 !important; width: 100% !important; padding: 5px 10px !important; margin: 0 0 8px !important; border: none !important; border-radius: 4px !important; box-shadow: none !important; box-sizing: border-box !important; }
    #header .navigation #menus .sub-menu li { border-bottom: 1px solid #e5e5e5 !important; }
    #header .navigation #menus .sub-menu li:last-child { border-bottom: none !important; }
    #header .navigation #menus .sub-menu li a { color: #222 !important; background: transparent !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.5 !important; padding: 11px 10px !important; min-height: 44px; box-sizing: border-box; text-transform: none !important; letter-spacing: normal !important; border: none !important; }
    #header .navigation #menus .sub-menu li:hover > a, #header .navigation #menus .sub-menu li.current-menu-item > a { color: #ca0000 !important; background: #eee !important; }
    #header .navigation a:focus:not(:focus-visible) { outline: none !important; }
    #header .navigation a:focus-visible { outline: 2px solid #ca0000 !important; outline-offset: 2px; }
}


/* ==========================================================
   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 { margin-top: 60px; background-color: #242424 !important; border-top: 4px solid #ca0000 !important; padding-top: 45px !important; padding-bottom: 30px !important; }
#footer-widgets .widget header.cs-heading-title h2, #footer-widgets .widget header.cs-heading-title h3, #footer-widgets .cs-heading-title { color: #fff !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.3 !important; text-transform: none !important; }
#footer-widgets .cs-heading-title { position: relative; padding-bottom: 14px !important; }
#footer-widgets .cs-heading-title::before { border-color: #ca0000 !important; }
#footer-widgets .cs-heading-title::after { content: ""; display: block; position: absolute; bottom: 0; left: 0; width: 30px !important; height: 2px !important; background-color: #ca0000 !important; border: none !important; }
#footer-widgets p, #footer-widgets .textwidget, #footer-widgets .textwidget li, #footer-widgets .home-info li { color: #ccc !important; font-size: 14px !important; line-height: 1.6 !important; }
#footer-widgets .home-info h5, #footer-widgets .home-info h6 { color: #fff !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.5 !important; }
#footer-widgets a { color: #eee !important; transition: color .2s ease; }
#footer-widgets a:hover { color: #ff6666 !important; }
#footer-widgets .home-info ul li { margin-bottom: 10px !important; font-size: 14px !important; color: #ccc !important; line-height: 1.7 !important; }
#footer-widgets .home-info ul li i { color: #eee !important; }
#footer-widgets .widget-recent-blog a { color: #eee !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.5 !important; }
#footer-widgets .widget-recent-blog a:hover { color: #ff6666 !important; }
#footer-widgets .widget-recent-blog article { margin-bottom: 18px !important; padding-bottom: 0 !important; }
#footer-widgets .widget-recent-blog .post-options { margin: 4px 0 0 !important; }
#footer-widgets .widget-recent-blog .post-options, #footer-widgets .widget-recent-blog .post-options li, #footer-widgets .widget-recent-blog .post-options li i, #footer-widgets .widget-recent-blog .post-options li span, #footer-widgets .widget-recent-blog time, #footer-widgets .widget-recent-blog .post-date, #footer-widgets .widget-recent-blog .date { color: #aaa !important; font-size: 12px !important; }
/* Buscador: distribución final comprobada */
#footer-widgets .widget_search #searchform { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; position: relative !important; width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; box-sizing: border-box !important; }
#footer-widgets #searchform label { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
#footer-widgets #searchform #searchinput { flex: 1 1 0% !important; display: block !important; position: static !important; float: none !important; width: 0 !important; min-width: 0 !important; max-width: none !important; height: 38px !important; margin: 0 !important; padding: 0 10px !important; box-sizing: border-box !important; background-color: #fff !important; color: #222 !important; font-size: 13px !important; border: 1px solid #ddd !important; border-radius: 3px 0 0 3px !important; }
#footer-widgets .widget_search input::placeholder { color: #666 !important; }
#footer-widgets #searchform #searchsubmit { flex: 0 0 72px !important; position: static !important; float: none !important; width: 72px !important; height: 38px !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; background-color: #ca0000 !important; color: #fff !important; border: none !important; border-radius: 0 3px 3px 0 !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; cursor: pointer; }
#footer-widgets #searchsubmit:hover { background-color: #a50000 !important; }
#footer-widgets .followus a { display: inline-block; background: transparent !important; margin-right: 5px !important; }
#footer-widgets .widget-socialnetwork .followus a i { display: inline-flex !important; align-items: center; justify-content: center; width: 36px !important; height: 36px !important; background-color: #404040 !important; color: #fff !important; font-size: 17px !important; border-radius: 4px !important; transition: background-color .2s ease; }
#footer-widgets .widget-socialnetwork .followus a:hover i { background-color: #ca0000 !important; }
#footer { background-color: #191919 !important; padding: 22px 0 !important; border-top: 1px solid #383838 !important; color: #aaa !important; }
#footer p, #footer span, #footer a { color: #aaa !important; font-size: 12px !important; line-height: 1.5 !important; }
#footer a:hover { color: #fff !important; }
/* Cuatro columnas alineadas con las cajas de portada */
@media (min-width: 992px) {
    #footer-widgets .container > .row { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 34px !important; width: 100% !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; align-items: start !important; }
    #footer-widgets .container > .row::before, #footer-widgets .container > .row::after { content: none !important; display: none !important; }
    #footer-widgets .container > .row > .widget { width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; float: none !important; box-sizing: border-box !important; grid-row: 1 !important; }
    #footer-widgets .container > .row > .widget_text { grid-column: 1 !important; }
    #footer-widgets .container > .row > .widget-recent-blog { grid-column: 2 !important; }
    #footer-widgets .container > .row > .widget_search { grid-column: 3 !important; }
    #footer-widgets .container > .row > .widget-socialnetwork { grid-column: 4 !important; }
}
@media (max-width: 767px) {
    #footer-widgets { padding-top: 30px !important; padding-bottom: 20px !important; }
    #footer-widgets .widget { margin-bottom: 30px !important; }
    #footer-widgets .widget-socialnetwork, #footer-widgets .followus { text-align: left !important; }
    #footer-widgets #searchform #searchinput, #footer-widgets #searchform #searchsubmit { height: 44px !important; }
    #footer-widgets .widget-socialnetwork .followus a i { width: 44px !important; height: 44px !important; }
}
.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;
    }

}

/* Portada: evitar cursor de texto y contorno al pulsar con ratón.
   Se conserva el indicador de enfoque por teclado. */
.home .cs-blog article { caret-color: transparent; }
.home .cs-blog article a:focus:not(:focus-visible) { outline: none !important; }
.home .cs-blog article a:focus-visible { outline: 2px solid #ca0000 !important; outline-offset: 2px; }

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