/* ===== COURSES HERO ===== */
.page-hero {
    padding: 150px 0 80px;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.courses-hero {
    background: linear-gradient(rgba(26, 35, 126, 0.9), rgba(40, 53, 147, 0.9)), 
                url('../images/courses-bg.jpg') center/cover no-repeat;
}

.page-title {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.search-box {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    animation: fadeInUp 1s ease 0.4s both;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.search-box button:hover {
    background: #ffc107;
}

/* ===== COURSES FILTER ===== */
.courses-filter {
    background: var(--white);
    padding: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 999;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--light-color);
    border: none;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== COURSES GRID ===== */
.courses-grid-section {
    padding: 80px 0;
    background: var(--light-color);
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition);
}

.play-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
}

.course-category {
    display: inline-block;
    background: rgba(255, 214, 0, 0.1);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta i {
    color: var(--accent-color);
}

.course-actions {
    display: flex;
    gap: 10px;
}

.btn-watch {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ff0000;
    color: var(--white);
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-watch:hover {
    background: #cc0000;
    color: var(--white);
}

.btn-details {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-nav,
.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--white);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.page-nav:hover,
.page-number:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-number.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* ===== COURSE DETAILS PAGE ===== */
.course-details {
    padding: 100px 0;
}

.course-header {
    margin-bottom: 40px;
}

.course-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.course-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.course-info {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.course-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.course-lessons {
    margin-top: 30px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.lesson-item:hover {
    background: var(--light-color);
}

.lesson-number {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* ===== RESPONSIVE COURSES ===== */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .courses-container {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .course-actions {
        flex-direction: column;
    }
}
