:root {
    --site-ink: #172033;
    --site-muted: #64748b;
    --site-paper: #f7f9fc;
    --site-surface: #ffffff;
    --site-line: #dbe4ef;
    --site-brand: #0f766e;
    --site-brand-dark: #115e59;
    --site-accent: #f59e0b;
    --site-shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--site-paper) !important;
    background-image: radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.09), transparent 28rem), radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.1), transparent 24rem) !important;
    color: var(--site-ink) !important;
    font-family: "Poppins", "Segoe UI", sans-serif !important;
    line-height: 1.65;
    padding: 0 !important;
}

header {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--site-line);
    border-radius: 0 !important;
    box-shadow: 0 4px 24px rgba(23, 32, 51, 0.07) !important;
    color: var(--site-ink) !important;
    padding: 16px 5vw !important;
    position: relative !important;
    top: auto;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

header .logo {
    color: var(--site-brand-dark) !important;
    font-size: 1.15rem !important;
    letter-spacing: 0.01em;
    margin-bottom: 10px !important;
}

header nav ul {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px !important;
    justify-content: center !important;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

header nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

header nav ul li a {
    border-radius: 8px !important;
    color: var(--site-muted) !important;
    display: block;
    font-size: 0.9rem;
    min-height: 36px;
    padding: 7px 11px !important;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

header nav ul li a:hover,
header nav ul li a:focus-visible {
    background: #e6f4f1 !important;
    color: var(--site-brand-dark) !important;
    transform: translateY(-1px);
}

.subject-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 34px;
}

.subject-nav a {
    display: inline-flex;
    justify-content: center;
    min-height: 36px;
    text-align: center;
}

main {
    margin: 0 auto;
    max-width: 1120px;
}

.hero {
    background: linear-gradient(135deg, #e7f6f2 0%, #fff8e8 100%) !important;
    border-bottom: 1px solid #cfe9e3;
    color: var(--site-ink) !important;
    min-height: 500px;
    padding: clamp(80px, 12vw, 150px) 24px !important;
    position: relative;
    text-align: left !important;
    overflow: hidden;
}

.hero::after {
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 50%;
    content: "";
    height: 360px;
    position: absolute;
    right: -110px;
    top: -100px;
    width: 360px;
}

.hero-content {
    margin: 0 auto;
    max-width: 1120px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--site-ink) !important;
    font-size: clamp(2.25rem, 6vw, 4.5rem) !important;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px !important;
    max-width: 800px;
    text-align: left !important;
    text-shadow: none !important;
}

.hero p {
    color: var(--site-muted) !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    margin-bottom: 30px !important;
    max-width: 660px;
}

.cta-button,
.a,
.explore-link,
.banner-btn,
.contact-form button {
    background: var(--site-brand) !important;
    border: 0;
    border-radius: 8px !important;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    padding: 11px 17px !important;
    text-decoration: none;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible,
.a:hover,
.a:focus-visible,
.explore-link:hover,
.explore-link:focus-visible,
.banner-btn:hover,
.banner-btn:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
    background: var(--site-brand-dark) !important;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
    transform: translateY(-2px);
}

.biography,
.features,
.teaching-style,
.achievements,
.app-info,
.app-features,
#other-educators {
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding: clamp(56px, 8vw, 92px) 0 !important;
}

section h2,
main h1,
.contact-section h1,
.privacy-content h1 {
    color: var(--site-ink) !important;
    font-size: clamp(1.7rem, 4vw, 2.55rem) !important;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 28px !important;
    text-shadow: none !important;
}

.biography .container,
.features .container,
.teaching-style .container,
.achievements .container,
.app-info .container,
.app-features .container,
#other-educators .container,
.contact-section,
.privacy-content {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.biography img {
    border: 5px solid #b8e3dc !important;
    box-shadow: var(--site-shadow);
}

.biography p,
.app-features p,
.achievements p,
.app-info li {
    color: var(--site-muted) !important;
}

.animated-list {
    gap: 18px !important;
}

.animated-item,
.teacher-info {
    background: var(--site-surface) !important;
    border: 1px solid var(--site-line);
    border-radius: 14px !important;
    box-shadow: var(--site-shadow);
    color: var(--site-ink) !important;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.animated-item:hover,
.teacher-info:hover {
    border-color: #8acfc5;
    box-shadow: 0 22px 50px rgba(15, 118, 110, 0.14) !important;
    transform: translateY(-4px);
}

.animated-item i,
.teacher-name {
    color: var(--site-brand) !important;
}

.animated-item span,
.teacher-description {
    color: var(--site-muted) !important;
}

.teacher-img {
    border-color: #b8e3dc !important;
}

footer {
    background: #172033 !important;
    border-radius: 0 !important;
    color: #dce6f0 !important;
    margin-top: 0 !important;
    padding: 28px 24px !important;
}

footer a {
    color: #a7e4db !important;
}

.contact-section,
.privacy-content {
    background: var(--site-surface) !important;
    border: 1px solid var(--site-line);
    border-radius: 18px !important;
    box-shadow: var(--site-shadow);
    color: var(--site-ink) !important;
    margin-top: 48px !important;
    padding: clamp(28px, 6vw, 64px) !important;
}

.contact-section p,
.contact-methods p,
.privacy-content p,
.privacy-content li {
    color: var(--site-muted) !important;
}

.contact-section h2,
.contact-methods h2,
.contact-form-container h2,
.privacy-content h2 {
    border: 0 !important;
    color: var(--site-ink) !important;
}

.contact-methods a,
.social-links a,
.privacy-content a {
    color: var(--site-brand) !important;
}

.contact-form-container {
    background: #f7f9fc !important;
    border: 1px solid var(--site-line);
    border-radius: 14px !important;
    box-shadow: none !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: #fff !important;
    border: 1px solid var(--site-line) !important;
    color: var(--site-ink) !important;
    width: 100% !important;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--site-brand) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

@media (max-width: 640px) {
    header {
        padding: 14px 16px !important;
    }

    header nav ul {
        justify-content: center !important;
        max-width: 100%;
    }

    header nav ul li a {
        font-size: 0.82rem;
        padding: 6px 8px !important;
    }

    header nav ul {
        gap: 3px !important;
    }

    .hero {
        min-height: 430px;
        padding: 70px 18px !important;
    }

    .hero h1 {
        font-size: clamp(2rem, 11vw, 3rem) !important;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .animated-list {
        grid-template-columns: 1fr !important;
    }

    .contact-section,
    .privacy-content {
        margin-top: 24px !important;
        border-radius: 14px !important;
        padding: 28px 18px !important;
    }

    .contact-form-container {
        padding: 22px !important;
    }
}

@media (max-width: 420px) {
    header .logo {
        font-size: 1rem !important;
    }

    header nav ul li a {
        font-size: 0.76rem;
        min-height: 32px;
        padding: 5px 6px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
