/* Estilos para el carrusel de cursos relacionados */

.related-courses-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.related-courses-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23e32845" stop-opacity="0.05"/><stop offset="100%" stop-color="%23e32845" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/><circle cx="400" cy="600" r="200" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.related-courses-area .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #e32845 0%, #c41e3a 100%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Estilos para las tarjetas de cursos */
.single-courses-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.single-courses-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.courses-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.courses-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-courses-card:hover .courses-img img {
    transform: scale(1.1);
}

.courses-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.courses-tag a {
    background: linear-gradient(135deg, #e32845 0%, #c41e3a 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(227, 40, 69, 0.3);
}

.courses-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.course-category,
.course-duration {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.course-category i,
.course-duration i {
    color: #e32845;
    margin-right: 6px;
    font-size: 0.9rem;
}

.courses-content h3 {
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.courses-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.courses-content h3 a:hover {
    color: #e32845;
}

.course-modality {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.course-modality i {
    color: #e32845;
    margin-right: 8px;
    font-size: 1rem;
}

.courses-btn {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.courses-btn .default-btn {
    background: linear-gradient(135deg, #e32845 0%, #c41e3a 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(227, 40, 69, 0.3);
}

.courses-btn .default-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227, 40, 69, 0.4);
    color: white;
}

/* Estilos para el carrusel */
.related-courses-slider .owl-nav {
    margin-top: 30px;
    text-align: center;
}

.related-courses-slider .owl-nav button {
    background: #fff;
    color: #e32845;
    border: 2px solid #e32845;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.related-courses-slider .owl-nav button:hover {
    background: #e32845;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(227, 40, 69, 0.3);
}

.related-courses-slider .owl-nav button:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .single-courses-card {
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    
    .courses-content {
        padding: 20px;
    }
    
    .courses-content h3 {
        min-height: 50px;
    }
    
    .courses-content h3 a {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .single-courses-card {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }
    
    .courses-content {
        padding: 15px;
    }
    
    .courses-content h3 {
        min-height: 45px;
    }
    
    .course-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
