/*
Theme Name: Bibliotecas Child

*/


/* Banner Noticias */

.news-banner {
    max-width: var(--container-w);
    background: radial-gradient(circle, #6b8edf 0%, #395a9d 50%, #1b3369 100%);
    color: #fff;
    padding: 54px 0 48px 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 32px rgba(34,68,136,0.10);
    margin: auto !important;
    border-radius: 5px;
}

.banner {
    margin-top: 10px !important;
}

.news-banner-content {
    max-width: 700px;
    text-align: center;
}

.news-banner-title {
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
    color: #fff;
    text-shadow: 0 2px 12px rgba(44,62,80,0.06);
}

.news-banner-desc {
    font-size: 1.18em;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 !important;
    color: #e2e6ee;
}

@media (max-width: 600px) {
    .news-banner {
        padding: 26px 0 22px 0 !important;
    }
    .news-banner-title {
        font-size: 1.45em;
    }
    .news-banner-content {
        max-width: 98vw;
    }
    .news-banner-desc {
        font-size: 1em;
    }
}

/* Limita el ancho máximo de imágenes, videos y iframes en las entradas */

.post-category {
    font-size: 0.85em;
    color: var(--foreground);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 11px !important;
    display: inline-block;
    padding: 0px 16px !important;
}


.latest-post-category {
    font-size: 0.75em;
    color: var(--foreground);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px !important;
    display: inline-block;
}

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

.limited-width {
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0px 16px !important;
}

.limited-width img,
.limited-width video,
.limited-width iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Centra el texto y los elementos */
.centered-content,
.centered-content * {
    text-align: left;
    max-width: 1200px;
    margin:auto !important;
    border-radius: 10px;
    padding-top: 10px !important;
}

.centered-content p{
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    font-size: 1.125rem;
}

/* Estilos opcionales para mejorar el aspecto */
.entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0px 0px 16px 0px !important;
    padding: 0px 16px !important;
}

.entry-subtitle {
    font-size: 1.4em;
    color: #555;
    margin-bottom: 0.4em !important;
    font-weight: normal;
    padding: 0px 16px !important;
}

.entry-date {
    display: block;
    font-size: 1em;
    color: #888;
    margin-bottom: 1em;
    padding: 0px 16px !important;
}

.entry-header{
    margin-bottom:30px !important;
}
    
    
/* Latest 5 post */
    
.latest-posts-list {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.latest-posts-list h3{
    margin-bottom: 40px !important;
    font-size: 1.5rem;
    color: #216196 !important;
    
}

.latest-post-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px !important;
    padding-bottom: 18px !important;
}
.latest-post-info {
    flex: 1 1 70%;
    margin-right: 20px !important;
}
.latest-post-title {
    font-size: 1.35em;
    font-weight: bold;
    color: #1a222f;
    text-decoration: none;
    display: block;
    margin-bottom: 4px !important;
}
.latest-post-title:hover {
    color: #3366cc;
}
.latest-post-excerpt {
    color: var(--foreground);
    font-size: 1em;
    margin-bottom: 0 !important;
    margin-top: 3px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    max-height: calc(1.35em* 2);
}
.latest-post-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 8px;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* Page Noticias de Todas las entradas */

.news-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 16px !important;
}

.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 8px 24px rgb(12 35 90 / 16%);
    background: var(--background-card);
    border-radius: var(--radius);
}

.news-thumb-link {
    display: block;
    width: 90%;
    height: 210px !important;
    overflow: hidden;
    border-radius: 10px;
    margin: 10px auto 10px !important;
    padding: 0 !important;
}
.news-thumb {
    width: 100% !important;
    height: 210px !important;
    object-fit: cover;
    border-radius: 12px 12px 0 0 !important;
    display: block;
    transition: transform 0.2s;
    margin: 0 !important;
    padding: 0 !important;
}
.news-card:hover .news-thumb {
    transform: scale(1.04);
}
.news-card-body {
    padding: 22px 18px 16px 18px !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
}
.news-date {
    font-size: 0.83em;
    color: #8a94a6;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px !important;
    display: block;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}
.news-title {
    font-size: 1.18em;
    font-weight: bold;
    color: var(--foreground);
    text-decoration: none;
    margin-bottom: 8px !important;
    display: block;
    line-height: 1.22;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}
.news-title:hover {
    color: #3366cc;
}
.news-excerpt {
    color: var(--foreground);
    font-size: 1em;
    margin-top: 4px !important;
    margin-bottom: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    max-height: calc(1.35em* 2);
    
}
.shadow {
    box-shadow: 0 0 #0000,0 0 #0000,0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);
}


/* 404 */

.notfound-banner {
    width: 100%;
    background: radial-gradient(circle, #6b8edf 0%, #395a9d 50%, #1b3369 100%);
    color: #fff;
    padding: 54px 0 30px 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0 !important;
}

.notfound-content {
    max-width: 600px;
    text-align: center;
}

.notfound-title {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
    color: #fff;
    text-shadow: 0 2px 12px rgba(44,62,80,0.06);
}

.notfound-desc {
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 !important;
    color: #e2e6ee;
}

.notfound-link {
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.15s;
}
.notfound-link:hover {
    color: #ffd700 !important;
}

/* Reutiliza estilos de news-cards-container, news-card, news-thumb, news-title, news-excerpt, news-date, news-readmore-btn, etc. */

@media (max-width: 600px) {
    .notfound-banner {
        padding: 32px 0 16px 0 !important;
    }
    .notfound-title {
        font-size: 1.3em;
    }
    .notfound-content {
        max-width: 98vw;
    }
    .notfound-desc {
        font-size: 1em;
    }
}