/* ===== Courses List Page Styles ===== */

/* Hero Section */
.courses-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgb(233 77 35 / 16%) 0%, #e278780a 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item a {
    color: #f43a09;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #d63002;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    color: #5a6c7d;
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f43a09;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-badge {
    position: absolute;
    bottom: -10px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgb(244 58 9 / 32%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge i {
    color: #f43a09;
    font-size: 1.25rem;
}

.hero-badge span {
    font-weight: 600;
    color: #2c3e50;
}

/* Course Filters */
.course-filters {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 25px;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #f43a09;
    color: #f43a09;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #f43a09;
    color: white;
    border-color: #f43a09;
}

/* Courses Grid */
.courses-grid {
    padding: 60px 0;
    background: #f8f9fa;
}

.course-item {
    transition: all 0.5s ease;
    opacity: 1;
    transform: scale(1);
}

.course-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-badge.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.course-badge.registration {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.btn-view-course {
    padding: 12px 25px;
    background: #f43a09;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.course-card:hover .btn-view-course {
    transform: translateY(0);
}

.btn-view-course:hover {
    background: #d63002;
    color: white;
}

.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-tag,
.format-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.format-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

.course-title {
    margin-bottom: 15px;
}

.course-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

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

.course-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item i {
    color: #f43a09;
    font-size: 0.875rem;
}

.course-action {
    margin-top: auto;
}

.course-action .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.course-action .btn-primary {
    background: #f43a09;
    border: none;
}

.course-action .btn-primary:hover {
    background: #d63002;
    transform: translateY(-2px);
}

.spots-left {
    display: block;
    text-align: center;
    margin-top: 8px;
    color: #dc3545;
    font-weight: 600;
}

.no-results {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Static Courses Section */
.static-courses {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    /* display: inline-block; */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f43a09;
}

.specialty-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.specialty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.specialty-icon i {
    font-size: 2rem;
    color: white;
}

.specialty-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.specialty-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.specialty-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.specialty-features li {
    padding: 8px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialty-features i {
    color: #28a745;
    font-size: 0.875rem;
}

/* Benefits Section */
.course-benefits {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f43a09 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 1.75rem;
    color: white;
}

.benefit-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: -webkit-center;
}

/* FAQ Section */
.courses-faq {
    padding: 80px 0;
    background: white;
}

.custom-accordion .accordion-item {
    border: none;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: transparent;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.125rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: #f43a09c7;
    color: white;
}

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f43a09'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-body {
    padding: 20px 25px;
    color: #495057;
    line-height: 1.7;
}

/* CTA Section */
.courses-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f43907e3 0%, #ff9e54d1 100%);
}

.cta-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
}

.courses-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.courses-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.courses-cta .btn-light {
    background: white;
    color: #f43a09;
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.courses-cta .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .filter-wrapper {
        justify-content: flex-start;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .filter-wrapper {
        gap: 20px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

    .course-filters {
        position: relative;
        top: 0;
    }

    .cta-wrapper {
        padding: 30px;
    }

    .courses-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
    }

    .specialty-card {
        padding: 25px;
    }

    .section-title {
        font-size: 2rem;
    }
}