/* Courses Page Specific Styles */

.course-interaction-area {
    width: 100%;
    margin-top: 2rem;
}

.course-selector-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.course-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #003399;
    /* var(--color-primary) */
    background: transparent;
    color: #003399;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-btn:hover {
    background: rgba(0, 51, 153, 0.1);
    transform: translateY(-2px);
}

.course-btn.active {
    background: #003399;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.4);
    transform: scale(1.05);
}

/* Base state: Hidden */
.course-detail-card {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    width: 100%;
    border: 1px solid #e2e8f0;
}

/* Active state: Visible */
.course-detail-card.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header-course {
    background: #003399;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-course h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.badge-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-body-course {
    padding: 2rem;
}

.detail-row {
    display: flex;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    width: 150px;
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
}

.detail-row .value {
    color: #333;
    font-weight: 500;
}

.fee-info {
    margin-top: 1.5rem;
    background: #f0fdf4;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid #bbf7d0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .detail-row {
        flex-direction: column;
    }

    .detail-row .label {
        width: 100%;
        margin-bottom: 0.3rem;
        color: #003399;
    }

    .course-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}