/* DS Core - Blog artículos relacionados en página de producto
   Rediseñado para coincidir con el estilo del bloque phblogcustomblock (simpleblog cardblog)
*/

.ds-blog-related-posts {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 3px solid #5ca60d;
    clear: both;
}

.ds-blog-related-header {
    margin-bottom: 1.5rem;
}

.ds-blog-related-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    padding: 0;
    border: none;
    text-transform: none;
    letter-spacing: 0;
}

.ds-blog-related-title a {
    color: #5ca60d;
    text-decoration: none;
}

.ds-blog-related-title a:hover {
    color: #148d00;
    text-decoration: none;
}

.ds-blog-related-row {
    margin-left: -10px;
    margin-right: -10px;
}

.ds-blog-related-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Card — clon del cardblog de simpleblog */
.ds-blog-related-card {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.18s ease;
}

.ds-blog-related-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

/* Imagen destacada — grande como en simpleblog */
.ds-blog-related-thumb-link {
    display: block;
    overflow: hidden;
}

.ds-blog-related-thumb-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ds-blog-related-card:hover .ds-blog-related-thumb-img {
    transform: scale(1.03);
}

/* Contenido — igual que card-block de simpleblog */
.ds-blog-related-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ds-blog-related-post-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

.ds-blog-related-post-title a {
    color: #222;
    text-decoration: none;
}

.ds-blog-related-post-title a:hover {
    color: #5ca60d;
    text-decoration: none;
}

.ds-blog-related-excerpt {
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 1rem;
    line-height: 1.55;
    flex: 1;
}

.ds-blog-related-footer {
    margin-top: auto;
}

.ds-blog-related-btn {
    border-radius: 4px !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 767px) {
    .ds-blog-related-col {
        margin-bottom: 14px;
    }
    .ds-blog-related-thumb-img {
        height: 180px;
    }
}
