/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ruby: #a22135;
    --ruby-dark: #8D1D2C;
    --ruby-deeper: #6B1522;
    --ruby-light: #c4334a;
    --ruby-pale: #fdf2f4;
    --ruby-glow: rgba(162, 33, 53, 0.15);

    --white: #ffffff;
    --cream: #f4f0e7;
    --cream-soft: #faf7f0;
    --gray-50: #f4f0e7;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --gold: #f5a623;
    --gold-dark: #e09000;
    --gold-light: #fdf0d5;

    --section-py: 120px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.06), 0 4px 10px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.08);
    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Premium heading typography */
.hero-brand,
.hero-title-bold,
.section-header h2,
.faq-left h2,
.mock-left h2,
.cta-content h2,
.qa-contact-text h3,
.guarantee-banner h3,
.teacher-info-modern h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    letter-spacing: -0.3px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.section { padding: var(--section-py) 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ruby);
    color: var(--white);
    border-color: var(--ruby);
}
.btn-primary:hover {
    background: var(--ruby-dark);
    border-color: var(--ruby-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(162, 33, 53, 0.25);
}

.btn-hero {
    background: var(--gold);
    color: var(--gray-900);
    border-color: var(--gold);
    padding: 16px 36px;
    font-size: 0.938rem;
    border-radius: 14px;
    font-weight: 700;
}
.btn-hero:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

.btn-white {
    background: var(--white);
    color: var(--ruby);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--ruby-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.btn-card {
    width: 100%;
    background: var(--gray-900);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 10px;
}
.btn-card:hover {
    background: var(--ruby);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 33, 53, 0.25);
}

.btn-lg { padding: 16px 36px; font-size: 0.938rem; border-radius: 12px; }

/* ===== Enroll Button ===== */
.btn-enroll {
    background: #ffffff;
    color: var(--ruby);
    border-color: #ffffff;
    padding: 13px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 14px rgba(255,255,255,0.25), inset 0 1px 0 rgba(255,255,255,1);
}
.btn-enroll:hover {
    background: #f5f0f0;
    color: var(--ruby-dark);
    border-color: #f5f0f0;
    box-shadow: 0 4px 20px rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

/* ===== Navbar (Glassmorphism) ===== */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(162, 33, 53, 0.92), rgba(141, 29, 44, 0.92));
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(107, 21, 34, 0.28);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(141, 29, 44, 0.95), rgba(107, 21, 34, 0.95));
    box-shadow: 0 10px 36px rgba(107, 21, 34, 0.4);
    top: 10px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 24px;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.logo-wordmark { display: flex; flex-direction: column; }

.logo-name {
    font-weight: 800;
    font-size: 1.063rem;
    color: var(--white);
    letter-spacing: -0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.813rem;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    padding: 3px;
    border-radius: 8px;
}

.lang-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.lang-btn.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero (Full-screen) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 70px;
    background: var(--ruby);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.25) 50%,
        rgba(0,0,0,0.6) 100%
    );
    z-index: 2;
}

.hero-bg-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ruby) 0%, #7a1828 40%, var(--ruby) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-bg-logo {
    position: absolute;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    opacity: 0.55;
    filter: none;
}

/* Hero Shine Effect */
.hero-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.02) 35%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        rgba(255, 255, 255, 0.02) 65%,
        transparent 80%
    );
    animation: hero-shimmer 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes hero-shimmer {
    0% { transform: translateX(-120%); }
    60% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

/* Hero floating particles effect */
.hero-bg-placeholder::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 8s ease-in-out infinite;
    z-index: 1;
}
.hero-bg-placeholder::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 6s ease-in-out 2s infinite;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(20px);
    animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-brand {
    display: block;
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1.5px;
    line-height: 1.08;
    opacity: 0;
    transform: translateY(36px);
    animation: hero-entrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-title-bold {
    display: block;
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -1px;
    line-height: 1.12;
    opacity: 0;
    transform: translateY(36px);
    animation: hero-entrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    max-width: 500px;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(28px);
    animation: hero-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn-hero {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(24px);
    animation: hero-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}
.hero-trust svg {
    flex-shrink: 0;
    color: var(--gold);
    background: rgba(245, 166, 35, 0.15);
    border-radius: 50%;
    padding: 4px;
    width: 26px;
    height: 26px;
}

@keyframes hero-entrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat { text-align: center; }

.hero-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
}

.hero-phone {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}
.hero-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ===== Results / Proof Section ===== */
.results { background: var(--white); }

.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
    padding: 36px 32px;
    background: linear-gradient(135deg, var(--ruby-pale), #fff7f8);
    border: 1px solid rgba(162, 33, 53, 0.12);
    border-radius: var(--radius-xl);
}
.result-stat {
    text-align: center;
    position: relative;
}
.result-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 1px;
    background: rgba(162, 33, 53, 0.15);
}
.result-stat-num {
    display: block;
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--ruby);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.result-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.4;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.testimonial-stars {
    color: var(--gold);
    font-size: 1.05rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.testimonial-quote {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-700);
    flex: 1;
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--ruby), var(--ruby-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.063rem;
}
.testimonial-author-info strong {
    display: block;
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}
.testimonial-author-info span {
    font-size: 0.813rem;
    color: var(--ruby);
    font-weight: 500;
}

/* ===== Section Headers ===== */
.section-label {
    font-size: 0.688rem;
    font-weight: 700;
    color: var(--ruby);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-label.light { color: rgba(255,255,255,0.5); }
.section-label.revealed { opacity: 1; transform: translateY(0); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.section-header h2.revealed { opacity: 1; transform: translateY(0); }
.section-header p {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.section-header p.revealed { opacity: 1; transform: translateY(0); }

/* ===== Courses ===== */
.courses { background: var(--gray-50); }

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

.course-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Subject-themed background motif (watermark) */
.course-card::after {
    content: '';
    position: absolute;
    right: -14px;
    bottom: -14px;
    width: 132px;
    height: 132px;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    opacity: 0.16;
    z-index: -1;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.course-card:hover::after {
    opacity: 0.28;
    transform: scale(1.08) rotate(-3deg);
}
[data-color="math"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M6 16c3-1 4-6 6-8s4-2 6 1'/%3E%3C/svg%3E"); }
[data-color="physics"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3'%3E%3Cellipse cx='12' cy='12' rx='10' ry='4'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='12' rx='10' ry='4' transform='rotate(120 12 12)'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23a22135'/%3E%3C/svg%3E"); }
[data-color="chem"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L5 19a1 1 0 0 0 .9 1.5h12.2A1 1 0 0 0 19 19l-5-10V3'/%3E%3Cpath d='M7.5 14h9'/%3E%3C/svg%3E"); }
[data-color="bio"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M8 2c0 6 8 8 8 14M16 2c0 6-8 8-8 14'/%3E%3Cpath d='M9 5h6M9.5 8h5M9.5 16h5M9 19h6'/%3E%3C/svg%3E"); }
[data-color="cs"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4M13 5l-2 14'/%3E%3C/svg%3E"); }
[data-color="english"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h7a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H3z'/%3E%3Cpath d='M21 4h-7a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h8z'/%3E%3C/svg%3E"); }
[data-color="gov"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 5H3z'/%3E%3Cpath d='M5 9v8M9 9v8M15 9v8M19 9v8'/%3E%3Cpath d='M3 20h18'/%3E%3C/svg%3E"); }
[data-color="econ"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3Cpath d='M19 11V8h-3'/%3E%3C/svg%3E"); }
.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ruby);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.course-card:hover::before { transform: scaleX(1); }

.course-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.course-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.course-card:hover .course-icon-wrap {
    transform: scale(1.1) rotate(-3deg);
}
/* Subject icons — all ruby */
.icon-math,
.icon-physics,
.icon-chem,
.icon-bio,
.icon-cs,
.icon-english,
.icon-gov,
.icon-econ {
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark));
    color: var(--white);
}

.course-card h3 {
    font-size: 1.063rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.course-features {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}
.course-features li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.838rem;
    color: var(--gray-500);
    line-height: 1.5;
}
.course-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.course-badge {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-mode {
    background: var(--gold-light);
    color: var(--gold-dark);
}
.badge-online {
    background: #e0f2fe;
    color: #0369a1;
}

/* New card button style */
.btn-card-new {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.838rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    background: var(--gray-900);
    color: var(--white);
}
.btn-card-new:hover {
    background: var(--ruby);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(162, 33, 53, 0.25);
}
/* All card buttons hover → ruby (base .btn-card-new:hover handles this) */
/* All card accent lines → ruby (base .course-card::before handles this) */

/* ===== Teachers ===== */
.teachers { background: var(--white); }

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

.teacher-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.teacher-photo {
    height: 300px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.teacher-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-photo-placeholder {
    color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-info {
    padding: 24px;
}
.teacher-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.teacher-subject {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ruby);
    background: var(--ruby-pale);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.teacher-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Teacher Cards Modern */
.teachers-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.teacher-card-modern {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    position: relative;
}
.teacher-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ruby), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.teacher-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(162, 33, 53, 0.06);
    border-color: transparent;
}
.teacher-card-modern:hover::before {
    transform: scaleX(1);
}

.teacher-photo-modern {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}
.teacher-photo-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.teacher-card-modern:hover .teacher-photo-modern img {
    transform: scale(1.04);
}
.teacher-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}
/* Brighten darker portrait photos so the face reads clearly */
.photo-brighten {
    filter: brightness(1.28) contrast(1.08) saturate(1.05);
}

.teacher-info-modern {
    padding: 28px 28px 32px;
}
.teacher-info-modern h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.teacher-role-modern {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--ruby);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.teacher-subjects-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.teacher-subjects-modern span {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--ruby-pale);
    color: var(--ruby);
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}
.teacher-card-modern:hover .teacher-subjects-modern span {
    background: var(--ruby);
    color: var(--white);
}

.teacher-info-modern p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Teachers Coming Soon */
.teachers-coming {
    margin-top: 32px;
}
.teachers-coming-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-500);
}
.teachers-coming-inner svg {
    flex-shrink: 0;
    color: var(--gray-400);
}
.teachers-coming-inner strong {
    display: block;
    color: var(--gray-700);
    font-size: 0.938rem;
    margin-bottom: 2px;
}
.teachers-coming-inner p {
    font-size: 0.813rem;
    line-height: 1.5;
}

/* ===== Why Us / Pricing ===== */
.why-us { background: var(--gray-50); }

.guarantee-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 36px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}
.guarantee-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--gold);
    color: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
}
.guarantee-banner h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.guarantee-banner p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pricing-card-header {
    padding: 32px 32px 28px;
    text-align: center;
    color: var(--white);
}
.pricing-gold {
    background: linear-gradient(135deg, #f59e0b, #eab308, #f59e0b);
}
.pricing-ruby {
    background: linear-gradient(135deg, var(--ruby), var(--ruby-light), var(--ruby));
}

.pricing-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
}
.pricing-amount {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}
.pricing-amount span {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.8;
}
.pricing-gold .pricing-amount { color: var(--gray-900); }
.pricing-gold .pricing-label { color: var(--gray-800); }
.pricing-gold .pricing-sublabel { color: var(--gray-700); }
.pricing-sublabel {
    font-size: 0.813rem;
    opacity: 0.7;
}

.pricing-card-body {
    padding: 28px 32px 32px;
}

.pricing-mode {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
.pricing-mode-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--gold-light);
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features {
    margin-bottom: 28px;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(162, 33, 53, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23a22135' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}
.pricing-feature-unlock {
    align-items: center;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.6;
}
.unlock-badge {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    margin: 0 3px;
    box-shadow: 0 1px 4px rgba(226, 98, 44, 0.35);
}

.pricing-cta {
    width: 100%;
}

/* Why Us CTA */
.why-us-cta {
    text-align: center;
    margin-top: 48px;
    margin-bottom: 8px;
}
.why-us-cta .btn {
    padding: 18px 48px;
    font-size: 1rem;
    border-radius: 14px;
    animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 16px rgba(162, 33, 53, 0.25); }
    50% { box-shadow: 0 8px 32px rgba(162, 33, 53, 0.45), 0 0 0 4px rgba(162, 33, 53, 0.1); }
}

/* Animated Guarantee Banner */
.guarantee-banner {
    position: relative;
    overflow: hidden;
}
.guarantee-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(0deg); }
}

/* Animated Pricing Cards */
.pricing-card {
    position: relative;
}
.pricing-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 40%, rgba(245, 166, 35, 0.2) 50%, transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.pricing-card:hover::after {
    opacity: 1;
}

/* Offer Contact Bar */
.offer-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    padding: 24px 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.offer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
}
.offer-contact-item svg {
    flex-shrink: 0;
    color: var(--ruby);
}
.offer-contact-label {
    display: block;
    font-size: 0.688rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.offer-contact-item a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: color var(--transition);
}
.offer-contact-item a:hover {
    color: var(--ruby);
}
.offer-contact-divider {
    width: 1px;
    height: 36px;
    background: var(--gray-200);
}

/* ===== AP Mock ===== */
.ap-mock {
    background: var(--ruby-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mock-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mock-left h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}
.mock-desc {
    font-size: 1.063rem;
    opacity: 0.85;
    margin-bottom: 36px;
    line-height: 1.75;
}
.mock-features { margin-bottom: 40px; }
.mock-feature {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.mock-feature-num {
    font-size: 0.813rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    min-width: 28px;
    padding-top: 3px;
}
.mock-feature strong {
    display: block;
    font-size: 1.063rem;
    margin-bottom: 6px;
}
.mock-feature p {
    font-size: 0.938rem;
    opacity: 0.72;
    line-height: 1.65;
}

.mock-right {
    display: flex;
    justify-content: center;
}
.mock-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 100%;
    max-width: 480px;
}
.mock-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.mock-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
}
.mock-card-date { font-weight: 700; font-size: 0.938rem; }
.mock-card-subjects {
    margin-bottom: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}
.mock-subject {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 2px;
    font-size: 0.938rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}
.mock-subject::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.mock-subject:hover {
    padding-left: 6px;
    color: #fff;
}
.mock-new-tag {
    margin-left: 7px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gold);
    color: #1a1310;
    padding: 2px 7px;
    border-radius: 100px;
}
.mock-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.813rem;
}
.mock-badge {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== News ===== */
.news { background: var(--white); }

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-card-featured {
    grid-row: span 2;
}

.news-image {
    position: relative;
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card-featured .news-image {
    height: 100%;
    min-height: 280px;
}
.news-image-placeholder { color: var(--gray-300); }

/* Video embed for featured news */
.news-video {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    background: var(--gray-900);
}
.news-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Enrollment Card (redesigned) */
.news-card-enrollment {
    background:
        radial-gradient(circle at 100% 0%, rgba(162, 33, 53, 0.08) 0%, transparent 38%),
        linear-gradient(160deg, #fdf2f4 0%, #ffffff 55%);
    border: 1px solid rgba(162, 33, 53, 0.16);
    color: var(--gray-700);
    position: relative;
    overflow: hidden;
}
.news-card-enrollment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--ruby) 0%, var(--ruby-light) 100%);
}
.news-card-enrollment:hover {
    border-color: rgba(162, 33, 53, 0.32);
    box-shadow: 0 16px 36px rgba(162, 33, 53, 0.12);
}
.news-enrollment-content {
    position: relative;
    padding: 36px 32px 36px 38px;
    z-index: 1;
}
.news-date-inline {
    display: inline-block;
    background: rgba(162, 33, 53, 0.08);
    color: var(--ruby);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.news-card-enrollment .news-tag {
    color: var(--ruby);
    display: block;
    margin-bottom: 10px;
}
.news-card-enrollment h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.news-card-enrollment p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}
.news-enrollment-highlights {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.news-highlight {
    text-align: center;
    flex: 1;
    position: relative;
}
.news-highlight:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 1px;
    background: var(--gray-200);
}
.news-highlight-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ruby);
    letter-spacing: -0.5px;
}
.news-highlight span:last-child {
    font-size: 0.688rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.news-card-enrollment .btn-hero {
    width: 100%;
    background: var(--ruby);
    color: var(--white);
    border-color: var(--ruby);
}
.news-card-enrollment .btn-hero:hover {
    background: var(--ruby-dark);
    border-color: var(--ruby-dark);
    box-shadow: 0 8px 24px rgba(107, 21, 34, 0.35);
}

.news-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ruby);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-body { padding: 24px; }

.news-tag {
    display: inline-block;
    font-size: 0.688rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ruby);
    margin-bottom: 8px;
}

.news-body h4 {
    font-size: 1.063rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.35;
}

.news-body p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--ruby);
    transition: gap var(--transition);
}
.news-link:hover { gap: 10px; }

/* ===== Career ===== */
.career { background: var(--gray-50); }

.career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.career-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.career-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px 34px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ruby), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.career-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}
.career-card:hover::before { transform: scaleX(1); }

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.career-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(162, 33, 53, 0.07);
    color: var(--ruby);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.career-card:hover .career-icon {
    background: var(--ruby);
    color: var(--white);
    transform: scale(1.06) rotate(-3deg);
}
.career-tag {
    font-size: 0.688rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ruby);
}
.career-card h4 {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.career-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 22px;
}

.career-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.career-req {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    color: var(--gray-600);
    transition: all 0.2s ease;
}
.career-card:hover .career-req {
    border-color: rgba(162, 33, 53, 0.2);
}

.career-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.813rem;
    color: var(--gray-500);
    font-weight: 500;
}
.career-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.career-footer span:first-child::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ruby);
}
.career-footer span:not(:first-child)::before {
    content: '·';
    color: var(--gray-300);
    margin-right: 6px;
}

.career-apply-note {
    text-align: center;
    margin-top: 32px;
    padding: 22px 28px;
    background: var(--ruby);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(162, 33, 53, 0.25);
}
.career-apply-note p {
    font-size: 0.938rem;
    color: var(--white);
    line-height: 1.6;
}
.career-apply-note a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.career-apply-note a:hover {
    color: var(--gold-light);
}

/* ===== FAQ ===== */
.faq { background: var(--white); }

.faq-layout {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 80px;
    align-items: flex-start;
}
.faq-left {
    position: sticky;
    top: 120px;
}
.faq-left h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 14px;
    letter-spacing: -1px;
    line-height: 1.15;
}
.faq-left p {
    font-size: 0.938rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
}
.faq-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    background: var(--gray-50);
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-item.active {
    border-color: var(--ruby);
    box-shadow: 0 0 0 1px var(--ruby);
}
.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    gap: 16px;
}
.faq-icon {
    width: 20px; height: 20px;
    position: relative;
    flex-shrink: 0;
}
.faq-icon span {
    position: absolute;
    background: var(--gray-400);
    border-radius: 1px;
    transition: all var(--transition);
}
.faq-icon span:first-child {
    width: 14px; height: 2px;
    top: 9px; left: 3px;
}
.faq-icon span:last-child {
    width: 2px; height: 14px;
    top: 3px; left: 9px;
}
.faq-item.active .faq-icon span:last-child {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-item.active .faq-icon span { background: var(--ruby); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; }

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 0 0 var(--section-py);
    background: var(--white);
}
.cta-inner {
    background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-dark) 55%, var(--ruby-deeper) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.cta-content { position: relative; }
.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -1px;
    line-height: 1.2;
}
.cta-content p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}
.cta-banner .btn-hero {
    position: relative;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-950);
    color: var(--gray-400);
    padding: 72px 0 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-logo .logo-img { filter: brightness(0) invert(1); }
.footer-logo .logo-name { color: var(--white); }
.footer-brand p {
    margin-top: 16px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-500);
}
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}
.social-link {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--ruby);
    color: var(--white);
    transform: translateY(-2px);
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}
.footer-contact-list svg { flex-shrink: 0; opacity: 0.4; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.813rem;
    color: var(--gray-600);
}
.footer-bottom a:hover { color: var(--white); }

/* ===== Counter Animation (for stats) ===== */
@keyframes count-up-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Smooth section transitions ===== */
.section {
    position: relative;
}

/* ===== Pricing Urgent ===== */
.pricing-urgent {
    opacity: 1 !important;
    color: var(--gray-900) !important;
    font-weight: 700;
    background: rgba(0,0,0,0.12);
    padding: 4px 14px;
    border-radius: 100px;
    display: inline-block;
    margin-top: 4px;
    font-size: 0.75rem;
    animation: urgent-pulse 2s ease-in-out infinite;
}
@keyframes urgent-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Q&A Contact Section ===== */
.qa-contact {
    background: var(--gray-50);
}
.qa-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 48px;
}
.qa-contact-text {
    flex: 1;
}
.qa-contact-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 28px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}
.qa-form {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qa-input {
    padding: 14px 20px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: var(--gray-50);
    outline: none;
    transition: all var(--transition);
    width: 180px;
}
.qa-input:focus {
    border-color: var(--ruby);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--ruby-glow);
}
.qa-input::placeholder {
    color: var(--gray-400);
}
.qa-submit {
    white-space: nowrap;
    flex-shrink: 0;
}
.qa-contact-illustration {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.qa-bubble {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
}
.qa-bubble-q {
    top: 0;
    left: 0;
    background: var(--gray-900);
    border-bottom-left-radius: 6px;
}
.qa-bubble-a {
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gold), #e09000);
    border-top-right-radius: 6px;
    animation: qa-float 3s ease-in-out infinite;
}
@keyframes qa-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== Footer Red ===== */
.footer-red {
    background: var(--ruby);
    color: rgba(255, 255, 255, 0.8);
}
.footer-red .footer-brand p {
    color: rgba(255, 255, 255, 0.65);
}
.footer-red .social-link {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}
.footer-red .social-link:hover {
    background: var(--white);
    color: var(--ruby);
}
.footer-red .footer-col a {
    color: rgba(255, 255, 255, 0.65);
}
.footer-red .footer-col a:hover {
    color: var(--white);
}
.footer-red .footer-contact-list svg {
    opacity: 0.6;
}
.footer-red .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}
.footer-red .footer-bottom a:hover {
    color: var(--white);
}

/* ===== Mock Subject Icons ===== */
.mock-subject-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: inline-block;
    flex-shrink: 0;
}
.icon-math-sm { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-physics-sm { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-chem-sm { background: linear-gradient(135deg, #10b981, #059669); }
.icon-bio-sm { background: linear-gradient(135deg, #22c55e, #16a34a); }
.icon-cs-sm { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* ===== Scroll Reveal (UI/UX Pro Max) ===== */
@media (prefers-reduced-motion: no-preference) {
    .js-reveal {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }
    .js-reveal.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* Slide from left variant */
    .js-reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }
    .js-reveal-left.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Scale up variant */
    .js-reveal-scale {
        opacity: 0;
        transform: scale(0.92);
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        will-change: opacity, transform;
    }
    .js-reveal-scale.visible {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero background parallax layer */
.hero-bg-placeholder {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Floating animation for decorative elements */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(-4px) rotate(-1deg); }
}

/* Premium button micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn:hover::after {
    transform: translateX(100%);
}

/* ===== CREAM PREMIUM HERO THEME ===== */
.hero {
    background: var(--cream);
}
.hero-overlay { display: none; }
.hero-bg-placeholder {
    background: radial-gradient(circle at 72% 42%, #fbf6ea 0%, var(--cream) 60%);
}
.hero-bg-pattern {
    background-image: radial-gradient(rgba(162, 33, 53, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.6;
}
.hero-shine { display: none; }
.hero-bg-placeholder::before {
    background: none;
}
.hero-bg-placeholder::after { display: none; }
.hero-bg-logo {
    opacity: 0.13;
    filter: none;
    width: 480px;
    height: 480px;
    right: 14%;
}
.hero-eyebrow {
    color: var(--ruby);
    border-color: rgba(162, 33, 53, 0.22);
    background: rgba(162, 33, 53, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.hero-brand {
    color: #1a1310;
    font-size: 3.75rem;
    font-family: 'Poppins', var(--font-body);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -1px;
}
.hero-title-bold {
    color: var(--ruby);
    font-style: normal;
    font-weight: 500;
    font-size: 3.75rem;
    font-family: 'Poppins', var(--font-body);
    letter-spacing: -1px;
}
.hero-subtitle { color: var(--gray-600); }
.hero-trust { color: var(--gray-600); }
.hero-trust svg {
    color: var(--ruby);
    background: rgba(162, 33, 53, 0.1);
}

/* Hero split layout */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.hero-content {
    max-width: none;
    flex: 0 0 52%;
}

/* Hero perks row */
.hero-perks {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hero-perk {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--gray-600);
}
.hero-perk svg { color: var(--ruby); flex-shrink: 0; }

/* Hero visual panel (right side) */
.hero-visual-panel {
    flex: 0 0 42%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 4;
}

/* Guarantee widget card */
.hero-guarantee-widget {
    background: var(--white);
    border: 1px solid rgba(162, 33, 53, 0.14);
    border-radius: 28px;
    padding: 36px 36px 32px;
    width: 100%;
    max-width: 390px;
    box-shadow:
        0 32px 72px rgba(162, 33, 53, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(162, 33, 53, 0.06);
    position: relative;
    overflow: hidden;
}
.hero-guarantee-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ruby), var(--ruby-light), var(--gold));
    border-radius: 28px 28px 0 0;
}

.hgw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.hgw-header-text {}
.hgw-tag {
    display: block;
    font-size: 0.688rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ruby);
    margin-bottom: 4px;
}
.hgw-title {
    font-size: 1.063rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-display);
    letter-spacing: -0.3px;
}
.hgw-score-badge {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark));
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 900;
    font-family: var(--font-display);
    letter-spacing: -2px;
    box-shadow: 0 10px 28px rgba(162, 33, 53, 0.4);
    flex-shrink: 0;
}

.hgw-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}
.hgw-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.4;
}
.hgw-feat-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(162, 33, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ruby);
}
.hgw-feat-check svg { width: 12px; height: 12px; }

.hgw-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hgw-price-group {}
.hgw-price-main {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.hgw-price-num {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -1.5px;
    font-family: var(--font-display);
}
.hgw-price-unit {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}
.hgw-urgency {
    font-size: 0.688rem;
    color: var(--ruby);
    font-weight: 600;
    margin-top: 2px;
}
.hgw-cta {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--ruby);
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition);
    text-decoration: none;
}
.hgw-cta:hover {
    background: var(--ruby-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(162, 33, 53, 0.35);
}

/* ===== Teacher Photo — Blurred Background Fill ===== */
/* For portrait/headshot photos that don't fill the frame:
   a blurred zoomed copy of the same photo fills the card background */
.teacher-photo-blurbg::before {
    content: '';
    position: absolute;
    top: -12%;
    left: -12%;
    right: -12%;
    bottom: -12%;
    background-image: var(--blur-bg);
    background-size: cover;
    background-position: center top;
    filter: blur(22px) brightness(0.8) saturate(1.2);
    z-index: 0;
}
.teacher-photo-blurbg img:not(.teacher-photo-overlay *) {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center top;
}
.teacher-photo-blurbg .teacher-photo-overlay {
    z-index: 2;
}

.hero .btn-hero {
    background: #9B111E;
    color: #ffffff;
    border-color: #9B111E;
}
.hero .btn-hero:hover {
    background: #7d0e18;
    border-color: #7d0e18;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 17, 30, 0.35);
}

/* ===== Teacher Photo Placeholder (no photo available) ===== */
.teacher-photo-placeholder-bg {
    background: linear-gradient(135deg, #f4e8ea 0%, #eddde0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.teacher-initials-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-body);
    letter-spacing: -1px;
}

/* ===== Teacher Roster Grid ===== */
.teachers-roster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.teacher-roster-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.teacher-roster-card:hover {
    border-color: rgba(162, 33, 53, 0.25);
    box-shadow: 0 8px 24px rgba(162, 33, 53, 0.08);
    transform: translateY(-3px);
}
.teacher-roster-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-display);
}
.teacher-roster-info {}
.teacher-roster-info h5 {
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}
.teacher-roster-subject {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ruby);
    display: block;
    margin-bottom: 3px;
}
.teacher-roster-cred {
    font-size: 0.688rem;
    color: var(--gray-500);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== Why Us Feature Grid ===== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 22px;
    margin-top: 16px;
}
.why-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all var(--transition);
}
.why-card:hover {
    border-color: rgba(162, 33, 53, 0.2);
    box-shadow: 0 12px 32px rgba(162, 33, 53, 0.07);
    transform: translateY(-4px);
}
.why-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.4px;
}
.why-card p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}
.why-card-center {
    background: var(--cream-soft);
    border-color: rgba(162, 33, 53, 0.1);
}
.etc-photo-hero {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.etc-photo-hero img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 220px;
    object-position: center top;
}
.why-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon-ruby { background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark)); color: #fff; }
.why-icon-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; }
.why-icon-green { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.why-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ruby);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.why-link:hover { text-decoration: underline; }

/* Platform mockup */
.why-platform-screenshot {
    background: #12121f;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.platform-bar {
    background: #1e1e30;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.platform-dots { display: flex; gap: 5px; }
.platform-dots span {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: block;
}
.platform-url {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
}
.why-platform-img {
    width: 100%;
    display: block;
    max-height: 190px;
    object-fit: cover;
    object-position: top center;
}

/* ===== Expert Teachers Cluster — Dribbble quality ===== */
.etc-cluster {
    position: relative;
    width: 310px;
    height: 300px;
    margin: 0 auto 24px;
}
/* Blue gradient glow behind center */
.etc-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: linear-gradient(145deg, #93c5fd 0%, #3b82f6 55%, #1e40af 100%);
    box-shadow: 0 12px 40px rgba(59,130,246,0.45);
    z-index: 1;
    animation: etc-float-c 3.8s ease-in-out infinite;
}
/* Center: Artem */
.etc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2;
    animation: etc-float-c 3.8s ease-in-out infinite;
}
.etc-center img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Bubble wrapper */
.etc-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 4;
}
/* Coloured outer ring */
.etc-img-outer {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
/* White-bordered photo */
.etc-img-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
}
.etc-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Checkmark icon (BR) */
.etc-check {
    position: absolute;
    top: 3px; right: 3px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #1f2937;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
/* AP 5 badge */
.etc-badge {
    background: var(--ruby);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(162,33,53,0.3);
    letter-spacing: 0.3px;
}
/* Corner positions */
.etc-tl { top: 6px;    left: 6px;   animation: etc-float-a 3.2s ease-in-out infinite; }
.etc-tr { top: 6px;    right: 6px;  animation: etc-float-b 4.1s ease-in-out infinite 0.6s; }
.etc-bl { bottom: 6px; left: 6px;   animation: etc-float-a 3.9s ease-in-out infinite 1.1s; }
.etc-br { bottom: 6px; right: 6px;  animation: etc-float-b 3.5s ease-in-out infinite 0.3s; }
@keyframes etc-float-a {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes etc-float-b {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes etc-float-c {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%       { transform: translate(-50%, -50%) translateY(-6px); }
}

/* Expert teachers group photo */
.etc-group-photo {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.etc-group-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 160px;
    object-position: center top;
}

/* Platform card small variant (row 2) */
.why-platform-screenshot-sm .why-platform-img {
    max-height: 130px;
}

/* Why Us — corner fly-in animations */
.why-from-tl.js-reveal { transform: translate(-100px, -60px) !important; }
.why-from-tc.js-reveal { transform: translate(0, -80px) !important; }
.why-from-tr.js-reveal { transform: translate(100px, -60px) !important; }
.why-from-bl.js-reveal { transform: translate(-100px, 60px) !important; }
.why-from-bc.js-reveal { transform: translate(0, 80px) !important; }
.why-from-br.js-reveal { transform: translate(100px, 60px) !important; }
.why-from-tl.js-reveal.visible,
.why-from-tc.js-reveal.visible,
.why-from-tr.js-reveal.visible,
.why-from-bl.js-reveal.visible,
.why-from-bc.js-reveal.visible,
.why-from-br.js-reveal.visible { transform: translate(0, 0) !important; opacity: 1; }

/* Support teachers cluster */
.why-teachers-cluster {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}
.why-teacher-main img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.why-teacher-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.why-teacher-chip {
    display: flex;
    align-items: center;
    gap: 8px;
}
.why-teacher-chip img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.why-teacher-score {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ruby);
    background: var(--ruby-pale);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Responsive why grid */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root { --section-py: 80px; }
    .hero-container { flex-direction: column; gap: 40px; }
    .hero-content { flex: none; max-width: 640px; }
    .hero-visual-panel { flex: none; width: 100%; max-width: 480px; }
    .hero-brand { font-size: 3.5rem; }
    .hero-title-bold { font-size: 3.5rem; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .results-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .result-stat:nth-child(2)::after { display: none; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .teachers-grid-modern { grid-template-columns: repeat(2, 1fr); }
    .teachers-roster { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .mock-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card-featured { grid-row: span 1; }
    .career-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .faq-left { position: static; text-align: center; }
    .faq-left .btn { display: none; }
    .cta-inner { flex-direction: column; text-align: center; padding: 48px 32px; }
    .qa-form { flex-direction: column; }
    .qa-input { width: 100%; }
    .qa-contact-inner { flex-direction: column; text-align: center; padding: 36px 28px; }
    .qa-contact-illustration { margin: 0 auto; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .offer-contact-bar { flex-direction: column; gap: 20px; }
    .offer-contact-divider { width: 100%; height: 1px; }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 24px);
        border-radius: 14px;
    }
    .nav-menu {
        display: none;
        position: fixed;
        top: 90px;
        left: 12px; right: 12px;
        background: rgba(20,20,20,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.08);
        z-index: 100;
    }
    .nav-menu.active { display: flex; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 0.875rem; }
    .nav-right { display: none; }
    .hamburger { display: flex; }

    .hero { min-height: 100vh; padding-bottom: 40px; }
    .hero-container { flex-direction: column; gap: 32px; }
    .hero-content { flex: none; max-width: 100%; }
    .hero-visual-panel { display: none; }
    .hero-brand { font-size: 2.6rem; }
    .hero-title-bold { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-perks { gap: 14px; }
    .hero-stats-bar { flex-wrap: wrap; gap: 20px; }
    .hero-stat-divider { display: none; }
    .hero-bg-logo { width: 250px; height: 250px; }

    .section-header h2 { font-size: 1.75rem; }
    .section-header { margin-bottom: 40px; }

    .courses-grid, .teachers-grid, .career-grid, .career-grid-2 {
        grid-template-columns: 1fr;
    }
    .results-stats { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
    .result-stat::after { display: none !important; }
    .result-stat:not(:last-child) { padding-bottom: 28px; border-bottom: 1px solid rgba(162,33,53,0.12); }
    .teachers-grid-modern { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .teachers-roster { grid-template-columns: 1fr; }
    .teacher-photo-modern { height: 260px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .guarantee-banner { flex-direction: column; text-align: center; }
    .career-grid-2 { max-width: 100%; }
    .mock-left h2, .faq-left h2 { font-size: 1.75rem; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-brand { font-size: 2.5rem; }
    .hero-title-bold { font-size: 2.5rem; }
    .course-card { padding: 24px 20px; }
    .cta-inner { padding: 36px 24px; }
    .cta-content h2 { font-size: 1.5rem; }
    .nav-container { padding: 0 16px; }
}
