.title-blog-custom{
    font-family: "Harvest";
}

.madeco-single-post{
    margin: 0 !important;
    padding-top: 20px;
}

.title-blog-post-custom a{
    font-size: 36px !important;
}

.wp-block-post-terms a {
    color: #ED952C;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Oculta enlaces de categoría que superan el límite de 40 caracteres */
.madeco-category-link-hidden {
    display: none !important;
}

.wp-block-post-terms .madeco-category-dots,
.madeco-ajax-container .madeco-category-dots {
    cursor: pointer;
    color: #ED952C;
    font-weight: bold;
    user-select: none;
    margin-left: 2px;
}
.wp-block-post-terms .madeco-category-dots:hover,
.madeco-ajax-container .madeco-category-dots:hover {
    text-decoration: underline;
}

.wp-block-post-title a {
    text-decoration: none !important;
    color: #000000;
    font-weight: 800;
    line-height: normal;
    font-size: 24px;
}
.wp-block-post-title a:hover {
    color: #004B8D;
}

.blog-card-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.blog-card-item .wp-block-post-featured-image {
    margin-bottom: 0;
}
.wp-block-post-featured-image :where(img) {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 15px;
}

.main-height-img-block-custom img{
   height: 504px !important; 
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wp-block-post-excerpt__more-link {
    font-weight: bold;
    color: #004B8D;
    text-decoration: none !important;
    margin-top: auto;
}

.wp-block-query-pagination {
    width: 100%;
    margin-top: 40px;
}

.wp-block-query-pagination-next, 
.madeco-load-more-btn {
    display: block;
    width: 100%;
    background-color: #f0f2f5;
    color: #333;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.wp-block-query-pagination-next:hover,
.madeco-load-more-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.remove-row-grap{
    row-gap: 0px !important;
}

.madeco-load-more-wrapper {
    margin: 40px 0;
    padding: 0 20px;
    padding-bottom: 30px;
}

#madeco-load-more {
    width: 100%;
    background: transparent;
    border: 2px solid #CCD3DE;
    color: #00225B;
    padding: 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#madeco-load-more:hover {
    background: #00225B;
    color: #ffffff;
}

.madeco-ajax-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 20px;
}

/* Categorías en una sola línea con "…" cuando son largas (solo dentro de .madeco-ajax-container o contenedor del blog) */
.madeco-ajax-container .taxonomy-category.madeco-category-truncated,
.madeco-ajax-container .wp-block-post-terms.madeco-category-truncated {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    max-width: 100%;
}

.madeco-ajax-container .taxonomy-category.madeco-category-truncated .madeco-category-inner,
.madeco-ajax-container .wp-block-post-terms.madeco-category-truncated .madeco-category-inner {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 40ch !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: inline-block !important;
    vertical-align: bottom;
}

.madeco-ajax-container .taxonomy-category.madeco-category-truncated .madeco-category-inner a,
.madeco-ajax-container .wp-block-post-terms.madeco-category-truncated .madeco-category-inner a {
    white-space: nowrap !important;
}

.madeco-ajax-container .taxonomy-category .madeco-category-dots,
.madeco-ajax-container .wp-block-post-terms .madeco-category-dots {
    flex: 0 0 auto !important;
    cursor: pointer;
    color: #ED952C;
    font-weight: bold;
    user-select: none;
    margin-left: 2px;
}

.madeco-ajax-container .taxonomy-category .madeco-category-dots:hover,
.madeco-ajax-container .wp-block-post-terms .madeco-category-dots:hover {
    text-decoration: underline;
}

/* Mismo comportamiento si el contenedor es el fallback (área del blog con #madeco-load-more) */
main .wp-block-post-terms.madeco-category-truncated,
[class*="query"] .wp-block-post-terms.madeco-category-truncated,
.wp-block-post-terms.madeco-category-truncated {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    max-width: 100%;
}

main .wp-block-post-terms.madeco-category-truncated .madeco-category-inner,
[class*="query"] .wp-block-post-terms.madeco-category-truncated .madeco-category-inner,
.wp-block-post-terms.madeco-category-truncated .madeco-category-inner {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 40ch !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: inline-block !important;
    vertical-align: bottom;
}

main .wp-block-post-terms .madeco-category-dots,
[class*="query"] .wp-block-post-terms .madeco-category-dots,
.wp-block-post-terms .madeco-category-dots {
    flex: 0 0 auto !important;
    cursor: pointer;
    color: #ED952C;
    font-weight: bold;
    user-select: none;
    margin-left: 2px;
}

@media (max-width: 921px) {
    .wp-container-core-post-template-is-layout-572542b5{
        grid-template-columns:none !important;
    }
}