/* Estructura principal */
.post-main {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 130px var(--section-padding);
}

/* Breadcrumb */
.breadcrumb-list {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 50px;
}

.breadcrumb-list li a,
.breadcrumb-list a {
    color: white;
    font-size: 12px;
}

/* Meta y título */
.post-single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 720px;
    margin-bottom: 8vh;
}

.post-single-meta span {
    color: var(--color-primary-light);
    font-size: 12px;
}

.entry-title {
    font-size: 42px;
    line-height: 1.2em;
    margin-bottom: 2rem;
    max-width: 560px;
}

/* Contenido */
.entry-content {
    margin-bottom: 3rem;
    max-width: 1200px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content .especial {
    color: var(--color-secondary);
    font-family: var(--ff-secondary);
    font-weight: 400 !important;
    margin-bottom: 2rem;
    line-height: 1.3em;
}

.entry-content h2 {
    font-size: 24px;
    max-width: 536px;
}

.entry-content h3 {
    font-size: 20px;
    max-width: 536px;
}

.entry-content h4,
.entry-content .especial {
    font-size: 18px;
    max-width: 536px;
}

.entry-content p {
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 1rem;
}

.wp-block-list {
    margin-bottom: 2rem;
    margin-left: 1rem;
}

.wp-block-list li {
    list-style: inside;
}

/* Imagen */
.post-image {
    max-width: 649px;
    float: right;
    height: auto;
    border-radius: 15px;
    margin-left: 70px;
    margin-bottom: 10vh;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
}

/* Grid para reordenar elementos */
.post-single-article {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
}

/* Noticias relacionadas */
.related-posts {
    padding-bottom: 4rem;
    padding-inline: 0;
    margin: 100px 0;
}

.related-posts__title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: white;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .5rem;
    justify-content: center;
}

.related-posts__grid .blog-card {
    min-height: auto;
    height: 100%;
}

/* Media Queries */
@media screen and (max-width: 1269px) {
    .post {
        display: grid;
        grid-template-rows: auto auto 1fr auto;
    }
    
    .post-image {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-bottom: 2rem;
        grid-row: 3;
        object-fit: cover;
        object-position: center center;
        max-width: unset;
    }
    
    .post-image img {
        border-radius: 15px;
        width: 100%;
        object-fit: cover;
        object-position: center center;
        height: 600px;
    }
    :root {
        --section-padding: 20px;
    }
    .blog-card__title a {
        color: #fff;
        font-size: 19px;
        margin: 0 0 1rem 0;
        font-weight: 400;
        line-height: 1.2em;
        display: inline-block;
    }
    
}

@media screen and (max-width: 992px) {
    .post-image img {
        height: auto;
    }
    
    .entry-title {
        font-size: 32px;
    }
    .related-posts__grid {
        grid-template-columns: 1fr;
        max-width: 750px;
        margin: 0 auto;
        gap: 1rem;
    }
}


/* Blog Card Excerpt */
.blog-card__slot p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}