﻿.courses-container {

}

.nw_contact_us_form_mycourses {
    padding: 3px 20px 170px 20px;
}

/* --- טאבים (אותו עיצוב כמו קודם) --- */
.tabs-wrapper {
    position: relative;
    margin-bottom: 20px;
}

    .tabs-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 30px;
        background: linear-gradient(to right, #ffffff, rgba(248, 249, 250, 0));
        pointer-events: none;
        z-index: 2;
    }

.tabs-header {
    display: flex;
    overflow-x: auto;
    padding: 5px 5px 14px 30px;
    gap: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .tabs-header::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    flex: 0 0 auto;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 50px;
    background-color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .tab-btn:hover {
        color: #00bfa5;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .tab-btn.active {
        background-color: #00bfa5;
        color: white;
        box-shadow: 0 4px 15px rgba(0, 191, 165, 0.4);
        transform: translateY(-1px);
    }

/* --- כרטיסי הקורס --- */
.tab-content {
    display: none;
    animation: slideUp 0.4s ease-out;
}

    .tab-content.active {
        display: block;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eef2f3;
}

@media (min-width: 700px) {
    .course-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    /* אזור המידע יתפוס את רוב המקום */
    .course-info-wrapper {
        flex: 2;
    }
    /* הכפתורים יישארו בגודל קבוע */
    .course-actions {
        flex: 1;
        max-width: 300px;
    }
}

.course-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2c3e50;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 6px;
}

/* --- עיצוב מד התקדמות (Progress Bar) --- */
.progress-container {
    width: 100%;
    max-width: 400px; /* שלא יהיה רחב מדי במסך גדול */
    margin-bottom: 15px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-highlight {
    color: #00bfa5;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bfa5, #008f7a);
    border-radius: 10px;
    transition: width 1s ease-in-out; /* אנימציית מילוי חלקה */
}

/* --- כפתורים --- */
.course-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn {
    padding: 10px 0;
    flex: 1;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-align: center;
    border:none;
}

.btn-primary {
    background: linear-gradient(135deg, #00bfa5, #008f7a);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(0, 191, 165, 0.5);
    }

.btn-outline {
    border: 1px solid #dce4e6;
    color: #008f7a;
    background: white;
}

    .btn-outline:hover {
        border-color: #00bfa5;
        background: #f0fdfc;
    }
