/* Global Fitness Courses Styles */

.courses-section {
    padding: 40px 0;
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 0 15px;
}

.section-title h3 {
    color: #00bcd4;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.section-title h2 {
    color: #1a1a1a;
    font-size: 32px;
    margin: 0;
    font-weight: 700;
}

.view-all-btn {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.view-all-btn:hover {
    color: #008ba3;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(50, 50, 50, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    display: inline-block;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category {
    color: #00bcd4;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.4;
    font-weight: 700;
    flex-grow: 1;
}

.card-meta {
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.instructor-img {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-footer {
    margin-top: auto;
}

.btn-card {
    display: block;
    width: 100%;
    background-color: #01579b !important;
    /* Celeste Oscuro (Dark Sky Blue) */
    color: #fff !important;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    background-color: #014377 !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}