/* Estils per als Cursos */

/* Grid de cursos */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Targeta de curso */
.curso-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Thumbnail del curso */
.curso-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.curso-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.curso-card:hover .curso-thumbnail img {
    transform: scale(1.05);
}

/* Contingut del curso */
.curso-content {
    padding: 1.5rem;
}

.curso-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.curso-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.curso-title a:hover {
    color: #0073aa;
}

/* Categories del curso */
.curso-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #666;
    transition: background 0.3s ease;
}

.category-badge:hover {
    background: #e0e0e0;
}

/* Excerpt del curso */
.curso-excerpt {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Link del curso */
.curso-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.curso-link:hover {
    background: #005a87;
}

/* Single curso */
.single-monlau_cursos .entry-header {
    margin-bottom: 2rem;
}

.single-monlau_cursos .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-monlau_cursos .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-monlau_cursos .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-monlau_cursos .entry-content {
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-monlau_cursos .entry-title {
        font-size: 2rem;
    }
}