/* =========================
   RESET & GLOBAL
========================= */
:root {
    --bg: #f4f7fb;
    --bg-soft: #eef4ff;
    --white: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --accent-soft: #fff3d6;
    --text: #0f172a;
    --text-light: #475569;
    --muted: #94a3b8;
    --line: #e2e8f0;
    --dark: #081120;
    --dark-2: #0f172a;
    --success: #22c55e;

    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 55px rgba(15, 23, 42, 0.12);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent 22%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

img,
video,
iframe {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1150px, calc(100% - 32px));
    margin: auto;
}

/* =========================
   NEWS TICKER
========================= */
.news-ticker-2 {
    margin-top: 28px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.news-ticker-2 .container {
    max-width: 1200px;
    margin: 0 auto;
}

.ticker-2 {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1220, #172554, #1e1b4b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
}

.ticker-label-2 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1f2937;
    font-weight: 800;
    padding: 15px 24px;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    border-radius: 14px;
    margin: 4px;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.28);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.ticker-move {
    display: flex;
    width: max-content;
    align-items: center;
    animation: scrollLeft 24s linear infinite;
}

.ticker-move span {
    position: relative;
    color: #f8fafc;
    font-size: 0.96rem;
    white-space: nowrap;
    padding: 16px 34px 16px 42px;
    opacity: 0.96;
}

.ticker-move span::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-move:hover {
    animation-play-state: paused;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 17, 32, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(8, 17, 32, 0.18);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-badge {
    width: 46px;
    height: 46px;
    
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.logo-badge img {
    border-radius: 5px;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    color: #dbeafe;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a {
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    transition: var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, #60a5fa, #7c3aed);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.menu-toggle {
    display: none;
    width: 26px;
    height: 20px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    color: #fff;
    padding: 84px 0 64px;
    overflow: hidden;
    background: linear-gradient(135deg, #081120, #0f172a);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    animation: slideShow 15s infinite;
}

.hero-bg img:nth-child(1) {
    animation-delay: 0s;
}

.hero-bg img:nth-child(2) {
    animation-delay: 5s;
}

.hero-bg img:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    8% {
        opacity: 1;
        transform: scale(1.05);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
    38% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8, 17, 32, 0.8), rgba(15, 23, 42, 0.72)),
        radial-gradient(circle at left top, rgba(37, 99, 235, 0.22), transparent 28%),
        radial-gradient(circle at right bottom, rgba(124, 58, 237, 0.2), transparent 26%);
    z-index: 1;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 34px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #dbeafe;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 16px;
}

.hero h1 span {
    background: linear-gradient(135deg, #93c5fd, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #dbe4f0;
    max-width: 700px;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa, #7c3aed);
    color: #fff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 15px 18px;
    border-radius: 18px;
    min-width: 150px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.hero-stat strong {
    display: block;
    color: #93c5fd;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 22px 48px rgba(8, 17, 32, 0.35);
    backdrop-filter: blur(12px);
}

.hero-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: #bfdbfe;
}

.subject-list {
    display: grid;
    gap: 12px;
}

.subject-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.subject-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.12);
}

.subject-item span:last-child {
    color: #fde68a;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================
   COMMON SECTION
========================= */
section {
    padding: 76px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head .mini {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    padding: 7px 12px;
    border-radius: 999px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 10px;
    color: var(--text);
}

.section-head p {
    color: var(--text-light);
    max-width: 760px;
    margin: auto;
}

/* =========================
   CLASS / QUICK ACCESS
========================= */
.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.class-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #7c3aed, #f59e0b);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.class-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.class-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.class-card p {
    color: var(--text-light);
    margin-bottom: 18px;
}

.class-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
    color: #334155;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.class-card .link {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.class-card .link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.3);
}

/* =========================
   FEATURES
========================= */
#features {
    background:
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #e7edf5;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
}

.feature-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe, #c4b5fd);
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1rem;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.12);
}

.feature-card h3 {
    margin: 12px 0 6px;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-light);
}

/* =========================
   RESOURCES
========================= */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8eef6;
    border-radius: 22px;
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.resource-card .num {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--primary-dark);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.1);
}

.resource-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.resource-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================
   FAQ
========================= */
.faq-list {
    max-width: 900px;
    margin: auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e7edf5;
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.faq-question span {
    font-size: 1.4rem;
    font-weight: bold;
    transition: var(--transition);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--text-light);
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 18px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    color: var(--secondary);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

/* =========================
   TEACHER SECTION
========================= */
.teacher-section {
    padding: 76px 0;
    background:
        linear-gradient(135deg, #f8fbff, #f5f3ff, #fffdf6);
}

.teacher-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e7edf5;
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow-lg);
}

.teacher-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
    border: 5px solid #fff;
    transition: 0.4s ease;
}

.teacher-image img:hover {
    transform: scale(1.03);
}

.teacher-content .mini {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 10px;
    background: rgba(37, 99, 235, 0.08);
    padding: 7px 12px;
    border-radius: 999px;
}

.teacher-content h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--text);
    margin-bottom: 6px;
}

.teacher-content h3 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 14px;
}

.teacher-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.teacher-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.teacher-point {
    background: linear-gradient(135deg, #f8fbff, #f8faff);
    border: 1px solid #e5edf8;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    transition: var(--transition);
}

.teacher-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.teacher-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.teacher-skills span {
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
}

.teacher-btn {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #16a34a);
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.24);
}

.teacher-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.34);
}

/* =========================
   FOOTER
========================= */
.footer {
    background:
        linear-gradient(135deg, #081120, #0f172a, #111827);
    color: #e2e8f0;
    margin-top: 40px;
}

.footer-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 46px 0;
}

.footer-about h3 {
    color: #93c5fd;
    margin-bottom: 10px;
}

.footer-about p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: linear-gradient(135deg, #60a5fa, #7c3aed);
    color: #fff;
    transform: translateY(-2px);
}

.footer-section h4 {
    margin-bottom: 10px;
    color: #bfdbfe;
}

.footer-section a {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #dbe4f0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: #93c5fd;
    padding-left: 4px;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-section span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* =========================
   RESPONSIVE - LARGE
========================= */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid,
    .cta-band,
    .class-grid,
    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   RESPONSIVE - TABLET
========================= */
@media (max-width: 900px) {
    .teacher-wrap {
        grid-template-columns: 250px 1fr;
        gap: 20px;
        padding: 24px;
    }

    .teacher-highlights {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 82px;
        background: linear-gradient(135deg, #0b1220, #172554);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        display: none;
        box-shadow: 0 20px 40px rgba(8, 17, 32, 0.25);
    }

    .nav-links.show {
        display: flex;
    }

    .hero-grid,
    .cta-band {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE - MOBILE
========================= */
@media (max-width: 768px) {
    .news-ticker-2 {
        margin-top: 22px;
        padding: 0 15px;
    }

    .ticker-2 {
        flex-direction: column;
        align-items: stretch;
        border-radius: 14px;
    }

    .ticker-label-2 {
        width: calc(100% - 8px);
        text-align: center;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 12px 12px 0 0;
    }

    .ticker-move span {
        font-size: 0.9rem;
        padding: 13px 24px 13px 34px;
    }

    .ticker-move span::before {
        left: 14px;
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 50px 0;
    }

    .container {
        width: min(100%, calc(100% - 20px));
    }

    .hero {
        padding: 44px 0 36px;
    }

    .hero-badge {
        font-size: 0.76rem;
        padding: 6px 10px;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .hero-card {
        display: none;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-stat {
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .hero-stat strong {
        font-size: 1rem;
    }

    .hero-stat span {
        font-size: 0.8rem;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section-head .mini {
        font-size: 0.72rem;
        margin-bottom: 6px;
    }

    .section-head h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .section-head p {
        font-size: 0.9rem;
    }

    .class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .class-card {
        padding: 14px;
        border-radius: 18px;
    }

    .class-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .class-card h3 {
        font-size: 0.98rem;
        margin-bottom: 6px;
    }

    .class-card p {
        font-size: 0.82rem;
        margin-bottom: 10px;
    }

    .class-card ul {
        gap: 5px;
        font-size: 0.76rem;
        margin-bottom: 12px;
    }

    .class-card .link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.78rem;
        border-radius: 999px;
    }

    .feature-grid,
    #resources .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .feature-card,
    #resources .resource-card {
        padding: 14px;
        border-radius: 16px;
    }

    .feature-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .feature-card h3 {
        font-size: 0.82rem;
        margin: 8px 0 5px;
        line-height: 1.3;
    }

    .feature-card p {
        font-size: 0.68rem;
        line-height: 1.45;
    }

    #resources .resource-card .num {
        width: 38px;
        height: 38px;
        margin: 0 auto 10px;
        border-radius: 10px;
        font-size: 0.75rem;
    }

    #resources .resource-card h3 {
        font-size: 0.78rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    #resources .resource-card p {
        font-size: 0.62rem;
        line-height: 1.4;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .chapter-item,
    .chapters-wrap,
    .cta-band {
        padding: 18px;
        border-radius: 20px;
    }

    .search-box {
        padding: 14px;
        border-radius: 16px;
    }

    .search-box input,
    .search-box button {
        font-size: 0.92rem;
    }

    .teacher-section {
        padding: 48px 0;
    }

    .teacher-wrap {
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-areas:
            "image content"
            "highlight highlight"
            "skills skills"
            "button button";
        gap: 14px;
        padding: 16px;
        border-radius: 22px;
        align-items: start;
    }

    .teacher-image {
        grid-area: image;
    }

    .teacher-content {
        grid-area: content;
    }

    .teacher-highlights {
        grid-area: highlight;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .teacher-skills {
        grid-area: skills;
        gap: 6px;
    }

    .teacher-btn {
        grid-area: button;
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
        padding: 10px;
    }

    .teacher-image img {
        height: 140px;
        object-fit: cover;
        border-radius: 16px;
    }

    .teacher-content h2 {
        font-size: 1.2rem;
    }

    .teacher-content h3 {
        font-size: 0.8rem;
    }

    .teacher-content p {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    .teacher-point {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .teacher-skills span {
        font-size: 0.68rem;
        padding: 6px 10px;
    }

    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
        padding: 24px 0;
    }

    .footer-about h3 {
        font-size: 1.2rem;
    }

    .footer-about p {
        font-size: 0.85rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .footer-section a {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .footer-section p {
        font-size: 0.85rem;
    }

    .footer-section span {
        font-size: 0.75rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .news-ticker-2 {
        margin-top: 18px;
        padding: 0 12px;
    }

    .ticker-2 {
        border-radius: 12px;
    }

    .ticker-label-2 {
        font-size: 0.85rem;
        padding: 11px 12px;
    }

    .ticker-move {
        animation: scrollLeft 18s linear infinite;
    }

    .ticker-move span {
        font-size: 0.84rem;
        padding: 12px 18px 12px 30px;
    }

    .ticker-move span::before {
        left: 12px;
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 1.55rem;
    }

    .class-card {
        padding: 12px;
    }

    .class-card h3 {
        font-size: 0.92rem;
    }

    .class-card p {
        font-size: 0.78rem;
    }

    .class-card ul {
        font-size: 0.72rem;
    }

    .class-card .link {
        font-size: 0.74rem;
        padding: 7px 8px;
    }
}

@media (max-width: 400px) {
    .feature-card h3 {
        font-size: 0.8rem;
    }

    .feature-card p {
        font-size: 0.68rem;
    }
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #0b1220;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #7c3aed);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #6d28d9);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}