/* Premium Pages Styles */
:root {
    /* Theme Colors */
    --theme-video: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    /* Blue */
    --theme-live: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
    /* Red */
    --theme-test: linear-gradient(135deg, #004d40 0%, #00897b 100%);
    /* Teal */
}

/* --- Shared Hero Section --- */
.page-hero {
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.hero-video {
    background: var(--theme-video);
}

.hero-live {
    background: var(--theme-live);
}

.hero-test {
    background: var(--theme-test);
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Modern Filter Bar --- */
.modern-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.modern-filter-btn {
    background: white;
    color: #555;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    cursor: pointer;
}

.modern-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Active States by Theme */
.video-page .modern-filter-btn.active {
    background: #0d47a1;
    color: white;
}

.live-page .modern-filter-btn.active {
    background: #c62828;
    color: white;
}

.test-page .modern-filter-btn.active {
    background: #00695c;
    color: white;
}

/* --- Live Class Cards --- */
.live-class-card {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.live-class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.class-time-col {
    background: #f8f9fa;
    color: #333;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    text-align: center;
    border-right: 1px solid #eee;
}

.class-time-col.live-now {
    background: #ffebee;
    color: #c62828;
}

.class-time-col h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.class-time-col span {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 5px;
}

.class-info-col {
    padding: 25px;
    flex: 1;
}

/* --- Mock Test Cards --- */
.test-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border-top: 6px solid var(--accent-color);
    position: relative;
    padding: 20px;
    /* Internal Padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-card[data-type="jee"] {
    border-top-color: #f57c00;
}

/* Orange for JEE */
.test-card[data-type="science"] {
    border-top-color: #00897b;
}

/* Teal for Science */

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

.test-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.test-meta i {
    color: #00897b;
    margin-right: 5px;
}

/* --- Responsive Grid Layout --- */
.premium-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
    grid-template-columns: 1fr;
    /* Mobile default */
}

@media (min-width: 768px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 per row on tablets */
    }
}

@media (min-width: 1024px) {
    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 per row on desktop */
    }
}