/* ============================================
   PAGE-SPECIFIC STYLES - TIMETABLE PAGE
   Modern, responsive, eye-catching design
   ============================================ */

/* === Hero Section === */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #10b981 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-panel {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    color: var(--text-main);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-btns .btn {
    transition: all 0.3s ease;
}

.hero-btns .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* === Trust Strip === */
.trust-tile {
    transition: all 0.3s ease;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.trust-tile:hover .trust-icon {
    transform: scale(1.1);
    background: var(--primary-green);
    color: white;
}

/* === Batch Cards === */
.batch-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.batch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.batch-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.batch-card:hover::before {
    transform: scaleX(1);
}

.batch-card.featured {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.batch-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.batch-card:hover .batch-icon {
    transform: rotate(-10deg) scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-green);
    transition: all 0.2s ease;
}

.subject-tag:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* === Timetable Key === */
.timetable-key {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.timetable-key i {
    font-size: 1.5rem;
}

/* === Modern Timetable Grid (Desktop) === */
.timetable-grid-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.timetable-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.timetable-modern thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
}

.timetable-modern th {
    padding: 1.25rem 1rem;
    font-weight: 700;
    text-align: left;
    border: none;
}

.timetable-modern .day-column {
    width: 150px;
    min-width: 150px;
}

.timetable-modern tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.timetable-modern tbody tr:last-child {
    border-bottom: none;
}

.timetable-modern td {
    padding: 1.5rem 1rem;
    vertical-align: top;
}

/* Day Badges */
.day-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    color: white;
}

.day-badge.saturday {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.day-badge.sunday {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.day-badge.weekday {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Session Slots */
.session-slot {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 200px;
}

.session-slot:not(.empty):hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.session-slot.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: #f9fafb;
    border-style: dashed;
}

.session-slot.premium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
}

.session-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.session-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.session-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.session-level.gcse {
    background: #dbeafe;
    color: #1e40af;
}

.session-level.alevel {
    background: #fce7f3;
    color: #be185d;
}

.session-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.session-status.live {
    background: var(--primary-green);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.session-status.premium-badge {
    background: #fbbf24;
    color: #78350f;
}

.session-topic {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === Mobile Timetable === */
.mobile-timetable {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.day-header {
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.day-header.saturday {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.day-header.sunday {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.day-header.weekday {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.session-card {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.session-card:last-child {
    border-bottom: none;
}

.session-card.premium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.session-time-mobile {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* === Info Cards === */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--light-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* === Coverage Section === */
.coverage-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.coverage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.coverage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.coverage-icon.alevel {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.topic-item:hover {
    background: var(--light-green);
    transform: translateX(5px);
}

.topic-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* === Exam Boards === */
.exam-boards-section {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 2px solid var(--primary-green);
}

.exam-board-card {
    text-align: center;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.exam-board-card:hover {
    background: var(--light-green);
    transform: translateY(-5px);
}

/* === How It Works === */
.how-it-works-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.how-it-works-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.how-it-works-card:hover .step-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-green);
    color: white;
}

/* === Difference Section === */
.difference-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid #e5e7eb;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-green);
    border-radius: 16px;
    border: 2px solid var(--primary-green);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 80px 0;
}

.cta-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.quick-contact-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.template-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1rem;
    border: 2px dashed #d1d5db;
}

.template-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .batch-icon,
    .coverage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .difference-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575px) {
    .subject-tags {
        flex-direction: column;
    }
    
    .subject-tag {
        justify-content: center;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}