﻿.programs-page {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.programs-header {
    background: linear-gradient(135deg, #8f1828 0%, #a51c30 50%, #8f1828 100%);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
}

    .programs-header h1 {
        color: #ffffff;
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .programs-header p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.7;
    }

.programs-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filter Section */
.filter-section {
    margin-bottom: 40px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: #ffffff;
    border: 1.5px solid #a51c30;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a51c30;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .filter-btn:hover {
        background: #a51c30;
        color: #ffffff;
    }

    .filter-btn.active {
        background: #a51c30;
        border-color: #a51c30;
        color: #ffffff;
    }

/* Discover Course Section - Same as Home Page */
.discover-course-section {
    text-align: center;
    padding: 4rem 5%;
    background-color: #FDF5F5;
}

.discover-content {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

.discover-title {
    font-size: 3.35rem;
    font-weight: 700;
    color: #a51c30;
    font-style: italic;
    margin-bottom: 1rem;
}

.discover-subtitle {
    font-size: 1.25rem;
    color: #4a4a4a;
    line-height: 1.8;
}

.filter-buttons-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level-filters,
.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
    width: auto;
}

/* Course Modal Styles - Exactly Same as Home Page */
.course-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

    .course-modal-overlay.active {
        display: flex;
    }

.course-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 60%;
    width: 100%;
    max-height: none;
    overflow: visible;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    margin: 40px auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

    .modal-close-btn:hover {
        color: #6b7280;
    }

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 100%;
    max-height: 90%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
}

.modal-header-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-level-badge {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.modal-price {
    color: #a51c30;
    font-size: 28px;
    font-weight: 700;
}

.modal-course-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.25;
    text-align: left;
}

.modal-short-description {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.modal-stats-row {
    display: flex;
    justify-content: space-around;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 32px;
}

.modal-stat-item {
    text-align: center;
    flex: 1;
}

.modal-stat-icon {
    color: #a51c30;
    font-size: 26px;
    margin-bottom: 8px;
}

.modal-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.modal-stat-label {
    display: block;
    font-size: 16px;
    color: #9ca3af;
    margin-top: 4px;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    text-align: left;
}

    .modal-section-title i {
        color: #a51c30;
        font-size: 22px;
    }

        .modal-section-title i.fa-check-circle,
        .modal-section-title .outcome-icon {
            color: #16a34a;
        }

.modal-description-section {
    margin-bottom: 32px;
}

.modal-description-text {
    color: #374151;
    font-size: 18px;
    line-height: 1.75;
    text-align: left;
}

.modal-outline-section {
    margin-bottom: 32px;
}

.modal-outline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-outline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 8px;
}

.outline-number {
    width: 32px;
    height: 32px;
    background: #a51c30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.outline-text {
    color: #1f2937;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}

.modal-outcomes-section {
    margin-bottom: 32px;
}

.modal-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdf4;
    padding: 14px 16px;
    border-radius: 8px;
}

.outcome-check {
    color: #16a34a;
    font-size: 22px;
    margin-top: 0;
    flex-shrink: 0;
}

.outcome-text {
    color: #374151;
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
}

.modal-modules-section {
    margin-bottom: 24px;
}

    .modal-modules-section h3.modal-section-title {
        font-size: 22px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 14px;
    }

        .modal-modules-section h3.modal-section-title i {
            display: none;
        }

.modal-modules-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-module-tag {
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0 0 12px 12px;
    width: 96%;
}

.modal-footer-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.modal-footer-price {
    color: #a51c30;
    font-size: 28px;
    font-weight: 700;
}

.modal-footer-duration {
    color: #6b7280;
    font-size: 17px;
    margin-top: 2px;
}

.modal-enroll-btn {
    background: #a51c30;
    color: #fff;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

    .modal-enroll-btn:hover {
        background: #b91c1c;
        color: #fff;
    }

/* No Courses Message */
.no-courses {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

    .no-courses i {
        font-size: 48px;
        color: #a51c30;
        margin-bottom: 16px;
    }

    .no-courses h3 {
        font-size: 20px;
        color: #374151;
        margin-bottom: 8px;
    }

/* Responsive */
@media (max-width: 992px) {
    .discover-title {
        font-size: 2.65rem;
    }
}

@media (max-width: 768px) {
    .programs-header h1 {
        font-size: 32px;
    }

    .discover-course-section {
        padding: 3rem 4%;
    }

    .discover-title {
        font-size: 2.15rem;
    }

    .discover-subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 700px) {
    .modal-content {
        padding: 24px 20px 20px;
    }

    .modal-outcomes-grid {
        grid-template-columns: 1fr;
    }

    .modal-stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }

    .modal-footer-info {
        text-align: center;
    }

    .modal-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal-course-title {
        font-size: 28px;
    }

    .course-modal {
        max-width: 95%;
    }
}