/* Frontend Courses CSS */


/* ====================
   COURSES PAGE LAYOUT
==================== */

.courses-page {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}


/* ====================
   1. FILTERS SECTION
==================== */

.filters-section {
    margin-bottom: 2rem;
}

.filters-card {
    background: white;
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.form-group {
    height: 100%;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    height: 50px;
}

.form-control:focus,
.form-select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.15);
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    height: 100%;
    align-items: flex-end;
}

.btn-filter,
.btn-clear {
    height: 50px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 0.9rem;
}

.btn-filter {
    background: #4a6cf7;
    border: none;
    color: white;
}

.btn-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.btn-clear {
    border: 2px solid #e5e7eb;
    color: #6b7280;
    background: white;
}

.btn-clear:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}


/* ====================
   2. COURSES GRID
==================== */

.courses-grid {
    margin-bottom: 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    width: 100%;
}

.col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    display: flex;
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .courses-grid .row {
        justify-content: flex-start;
    }
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    margin-bottom: 20px;
    width: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


/* Course Image */

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
    width: 100%;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-level {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.badge-featured {
    background-color: #4a6cf7;
    color: white;
}


/* Course Content */

.course-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.course-category {
    margin-bottom: 0.4rem;
}

.course-category a {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-category a:hover {
    color: #1d4ed8;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.course-title a:hover {
    color: #4a6cf7;
}

.course-instructor {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    background: #f8fafc;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.8rem;
}

.info-item i {
    color: #4a6cf7;
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.original-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stars {
    color: #f59e0b;
    font-size: 0.85rem;
}

.rating-text {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}


/* ====================
   EMPTY STATE
==================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.empty-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ====================
   3. RESULTS FOOTER
==================== */

.results-footer {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #2563eb;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.count-number {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.4rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.95rem;
}


/* ====================
   PAGINATION
==================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}


/* ====================
   RESPONSIVE DESIGN
==================== */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .courses-page {
        padding: 1.5rem 0;
    }
    .filters-card {
        padding: 1rem;
    }
    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .courses-grid .row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 0;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .filter-buttons {
        flex-direction: column;
    }
    .course-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .course-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
    }
    .courses-grid .row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .filters-card {
        padding: 0.75rem;
    }
    .results-footer {
        padding: 0.75rem;
    }
    .course-content {
        padding: 0.75rem;
    }
    .empty-state {
        padding: 1.5rem 0.75rem;
    }
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
    }
    .courses-grid .row {
        justify-content: center;
    }
}