/* =====================
   Schedules Page Styles
   ===================== */

/* Global Body Style */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFF8F2;
    color: #2D3748;
}

/* Hero Section */
.schedules-hero {
    background: linear-gradient(135deg, #FFF8F2 0%, #FAE8DC 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}

.schedules-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.schedules-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    border-radius: 2px;
}

.schedules-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 650px;
    margin: 2rem auto 0;
    line-height: 1.8;
}

/* Filter Section */
.filter-section {
    padding: 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.filter-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.filter-label i {
    color: #FF8C42;
    margin-right: 0.4rem;
}

.custom-select,
.custom-date {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #2D3748;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.custom-select:focus,
.custom-date:focus {
    border-color: #FF8C42;
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
    background-color: #fff;
}

.btn-filter-search {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-filter-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.35);
    color: #fff;
}

.btn-filter-search i {
    margin-right: 0.5rem;
}

/* Schedules Section */
.schedules-section {
    padding: 4rem 0 6rem;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
}

.results-count {
    font-size: 0.9rem;
    color: #718096;
    background: #f5f5f5;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Schedule Card */
.schedule-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF8C42 0%, #FFB347 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.schedule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 140, 66, 0.12);
    border-color: rgba(255, 140, 66, 0.2);
}

.schedule-card:hover::before {
    transform: scaleY(1);
}

/* Schedule Header */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-category {
    font-size: 0.8rem;
    font-weight: 500;
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
}

.schedule-category i {
    margin-right: 0.4rem;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.upcoming {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.15) 0%, rgba(255, 179, 71, 0.15) 100%);
    color: #FF8C42;
}

.status-badge.ongoing {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.15) 0%, rgba(72, 187, 120, 0.15) 100%);
    color: #38A169;
}

/* Course Name */
.schedule-course-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Schedule Details */
.schedule-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.schedule-detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.schedule-detail i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 8px;
    margin-right: 0.6rem;
    color: #FF8C42;
    font-size: 0.8rem;
}

/* Schedule Footer */
.schedule-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.schedule-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
}

/* Enroll Button */
.btn-enroll {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    background: transparent;
    color: #FF8C42;
    border: 2px solid #FF8C42;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-enroll:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.35);
}

/* Active Nav Link */
.nav-link.active {
    color: #FF8C42 !important;
}

.nav-link.active::after {
    width: 60%;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .schedules-title {
        font-size: 2.5rem;
    }

    .schedules-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .schedules-hero {
        padding: 4rem 0 3rem;
    }

    .filter-card {
        padding: 1.5rem;
    }

    .schedules-section {
        padding: 3rem 0 4rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

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

    .schedule-card {
        padding: 1.5rem;
    }

    .schedule-details {
        grid-template-columns: 1fr;
    }

    .schedule-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-enroll {
        text-align: center;
    }

    .filter-section {
        margin-top: -1rem;
    }
}