/* Categories Show Post - Tema 6 - 2 columnas: imagen (izq/der) + título y contenido */

/* Encabezado: div de fondo con título grande transparente + título y descripción centrados */
.csp-theme-6 .csp-theme-6-header-wrap {
    position: relative;
    padding: 0.5rem 0 1rem;
    text-align: center;
}

.csp-theme-6 .csp-theme-6-title-bg {
    position: absolute;
    top: -20px;
    width: 100%;
    max-width: 100%;
    font-weight: 700;
    line-height: 1.2;
    color: currentColor;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 6rem;
}

.csp-theme-6 .csp-theme-6-header-wrap .widget-title,
.csp-theme-6 .csp-theme-6-header-wrap .csp-description {
    position: relative;
    z-index: 1;
}

.csp-theme-6 .csp-theme-6-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.csp-theme-6 .csp-theme-6-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height:  min(60vh, 420px);
    width: 100%;
    overflow: hidden;
}

.csp-theme-6 .csp-theme-6-col-image {
    position: relative;
    overflow: hidden;
}

.csp-theme-6 .csp-theme-6-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Capa hover: hero 2 superpuesta, transparente por defecto y visible al hover */
.csp-theme-6 .csp-theme-6-image-hover {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.csp-theme-6 .csp-theme-6-item:hover .csp-theme-6-image-hover {
    opacity: 1;
}

/* Columna derecha: título y contenido */
.csp-theme-6 .csp-theme-6-col-content {
    display: flex;
    align-items: center;
    padding: 2rem 2.5rem;
    background: var(--color-bg, #f5f6f7);
    color: var(--color-text, #333);
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-content {
    width: 100%;
    max-width: 100%;
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-title {
    margin: 0 0 1rem;
    line-height: 1.3;
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-title a {
    color: inherit;
    text-decoration: none;
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-title a:hover {
    color: var(--color-accent, #155c7d);
    text-decoration: underline;
}

/* Meta (Duración, Ubicación, Tipo) debajo del título - mismos campos que tema 5 */
.csp-theme-6 .csp-theme-6-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: inherit;
    opacity: 0.85;
}

.csp-theme-6 .csp-theme-6-meta .csp-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.csp-theme-6 .csp-theme-6-meta .csp-meta-icon {
    flex-shrink: 0;
    color: currentColor;
    stroke: currentColor;
}

.csp-theme-6 .csp-theme-6-meta .csp-meta-value {
    font-size: inherit;
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-excerpt {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: inherit;
    opacity: 0.9;
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-footer a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #fdc000);
    color: #023048;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.csp-theme-6 .csp-theme-6-col-content .csp-post-footer a:hover {
    opacity: 0.9;
}

/* Alternar orden en items pares: imagen derecha, texto izquierda (opcional) */
.csp-theme-6 .csp-theme-6-item:nth-child(even) .csp-theme-6-col-image {
    order: 2;
}

.csp-theme-6 .csp-theme-6-item:nth-child(even) .csp-theme-6-col-content {
    order: 1;
}

/* Responsive: una columna, imagen arriba */
@media (max-width: 768px) {
    .csp-theme-6 .csp-theme-6-item {
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto;
        min-height: 0;
    }


    .csp-theme-6 .csp-theme-6-item:nth-child(even) .csp-theme-6-col-image,
    .csp-theme-6 .csp-theme-6-item:nth-child(even) .csp-theme-6-col-content {
        order: unset;
    }

    .csp-theme-6 .csp-theme-6-col-content {
        padding: 1.5rem 1.25rem;
    }
}
