:root {
    --primary-blue: #3498db;
    --light-blue: #ebf5fb;
    --primary-orange: #f39c12;
    --light-orange: #fef5e7;
    --dark-blue: #2c3e50;
    --text-color: #2c3e50;
    --white: #ffffff;
    --gray: #95a5a6;
    --success: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-blue);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 50px;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: -5px;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-blue);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.real-time-clock {
    background-color: var(--light-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--light-blue);
    transform: skewY(-2deg);
    z-index: 3;
}

/* Hero Background Slideshow */
.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 6s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.55) 100%);
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
    position: relative;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--gray);
    font-weight: 500;
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 4px;
    background-color: var(--primary-orange);
    transform: translateX(-50%);
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-info h3 {
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Ongoing Lessons Section */
.ongoing-lessons-section {
    background-color: var(--white);
    padding: 40px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.live-badge {
    background-color: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

.ongoing-ticker-wrapper {
    background-color: var(--light-blue);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.ongoing-ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 1.1rem;
    color: var(--dark-blue);
    position: relative;
}

.ticker-item::after {
    content: '|';
    position: absolute;
    right: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.ticker-item .class-badge {
    background-color: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
    vertical-align: middle;
}

.ticker-item b {
    color: var(--primary-blue);
}
