/* Categories Show Post - Tema 2 - Estilos */

/* Solo aplicar estos estilos cuando el tema 2 esté activo */
.csp-theme-2 .csp-description {
    font-size: 0.8rem;
    line-height: 1.5rem;
    margin-bottom: 2rem;
}

.csp-theme-2 .csp-cta {
    padding: 20px;
    text-align: center;
}

.csp-theme-2 .csp-cta a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.csp-theme-2 .csp-cta a:hover {
    background-color: var(--accent-dark);
    color: var(--text-dark);
    opacity: 0.9;
}

/* Grid Layout */
.csp-theme-2 .csp-grid {
    display: grid;
    gap: 30px;
}

.csp-theme-2 .csp-grid.csp-columns-1 {
    grid-template-columns: 1fr;
}

.csp-theme-2 .csp-grid.csp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.csp-theme-2 .csp-grid.csp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.csp-theme-2 .csp-grid.csp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.csp-theme-2 .csp-grid-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.csp-theme-2 .csp-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Contenido de los posts - Tema 2 */
.csp-theme-2 .csp-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--gray-light);
    position: relative;
}

.csp-theme-2 .csp-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.csp-theme-2 .csp-grid-item:hover .csp-post-image img {
    transform: scale(1.1);
}

/* Contenido debajo de la imagen */
.csp-theme-2 .csp-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
}

.csp-theme-2 .csp-post-title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 12px;
}

.csp-theme-2 .csp-post-title a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
}

.csp-theme-2 .csp-post-title a:hover {
    color: var(--primary-color);
}

.csp-theme-2 .csp-post-duration {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.csp-theme-2 .csp-post-excerpt {
    color: var(--text-color-secondary);
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
    margin-bottom: 15px;
}

.csp-theme-2 .csp-post-button {
    margin-top: auto;
    padding-top: 15px;
}

.csp-theme-2 .csp-post-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.csp-theme-2 .csp-post-button a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .csp-theme-2 .csp-grid.csp-columns-4,
    .csp-theme-2 .csp-grid.csp-columns-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .csp-theme-2 .csp-grid.csp-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .csp-theme-2 .csp-post-content {
        padding: 20px;
    }
    
    .csp-theme-2 .csp-post-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .csp-theme-2 .csp-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .csp-theme-2 .csp-post-content {
        padding: 18px;
    }
    
    .csp-theme-2 .csp-post-title {
        font-size: 16px;
    }
    
    .csp-theme-2 .csp-post-excerpt {
        font-size: 13px;
    }
}
