.page-container {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* min-height: 100vh; */
}

.main-panel {
    margin-top: 0px;
}

.page-header {
    height: 10vh;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
}

.page-header h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077ff, #00a8ff);
    margin: 15px auto;
    border-radius: 2px;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 400;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: none; /* Initially hide all cards */
}

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

.course-card.visible {
    display: block;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

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

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

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

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.8), rgba(0, 168, 255, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.overlay-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.course-content {
    padding: 20px;
}

.course-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}

.course-card h3:hover {
    color: #0077ff;
    text-decoration: none;
}

.course-card a {
    text-decoration: none;
    color: inherit;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.price {
    font-weight: 700;
    color: #0077ff;
    font-size: 1.3rem;
}

.price::before {
    content: '₹';
    font-size: 1rem;
    margin-right: 2px;
}

.enroll-btn {
    background: linear-gradient(135deg, #0077ff, #00a8ff);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #0066cc, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.4);
    color: #fff;
    text-decoration: none;
}

.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.3);
}

.load-more-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover:before {
    left: 100%;
}

.courses-count {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 1rem;
}

.no-more-courses {
    text-align: center;
    color: #95a5a6;
    font-size: 1.1rem;
    margin-top: 30px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }

    .page-header h2 {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-card {
        margin: 0 auto;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.8rem;
    }

    .course-content {
        padding: 15px;
    }

    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .enroll-btn {
        width: 100%;
        text-align: center;
    }
}