/* =========================================================
   Global Design Variables
========================================================= */

/* Main-page hero and title backgrounds. */
:is(.hero-section, .learn-level-selector, .practice-section-heading, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) {
    background:
        radial-gradient(ellipse at 50% 42%, rgba(25, 125, 255, 0.35), transparent 65%),
        linear-gradient(145deg, #073B92 0%, #0958BD 42%, #0756BD 70%, #032968 100%) !important;
}

/* Consistent borders on menu-page intro sections. */
:is(.hero-section, .practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) {
    border: 1px solid #ffffff !important;
    border-radius: 3px !important;
}

/* Center menu-page hero text; the homepage keeps its existing alignment. */
:is(.learn-level-selector, .practice-section-heading, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) {
    text-align: center !important;
}
:is(.stats-hero, .journey-hero) > div:first-child {
    flex: 1;
    min-width: 0;
}
:is(.stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) p {
    margin-inline: auto;
}

/* Requested hero typography, with smaller sizes on narrow screens. */
.birthday-text,
:is(.hero-section, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) :is(h1, h2),
.practice-section-heading,
.learn-level-selector label {
    font-family: var(--font-ui);
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
    overflow-wrap: anywhere;
}
.text-happy,
:is(.hero-section, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) :is(h1, h2),
.practice-section-heading {
    color: #FFFFFF !important;
    font-size: clamp(28px, 3.5vw, 48px) !important;
    font-weight: 800 !important;
}
.text-birthday,
:is(.hero-section, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) :is(h1, h2) > span {
    color: #D1D5DB !important;
    font-size: clamp(27px, 3.4vw, 46px) !important;
    font-weight: 800 !important;
}
.text-ion {
    color: #D1D5DB;
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 900;
}
.text-dob,
:is(.hero-section, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) p {
    color: #f1f6ff !important;
    letter-spacing: normal;
    font-size: clamp(14px, 1.4vw, 18px) !important;
    font-weight: 400;
}
.text-age,
.hero-section .hero-label,
.learn-level-selector label,
:is(.stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) > :is(.test-eyebrow, .exam-eyebrow, .journey-eyebrow, .res-eyebrow, .pricing-eyebrow, .legal-eyebrow) {
    color: #ADD8E6 !important;
    font-size: clamp(14px, 1.5vw, 20px) !important;
    font-weight: 700 !important;
}

:root {
    --color-primary-dark: #4f7396;
    --color-primary: #245fbd;
    --color-primary-light: #6f9abb;
    --color-primary-hover: #184d9e;

    --color-heading: #1f2d3a;
    --color-heading-dark: #182230;
    --color-text: #5f6976;
    --color-text-soft: #6c7783;
    --color-muted: #83909d;

    --color-background: #ffffff;
    --color-background-soft: #f7f9fc;
    --color-background-card: #f8fafc;
    --color-background-muted: #f5f8fb;

    --color-border: #e4e9ee;
    --color-border-soft: #e6ebef;
    --color-border-medium: #b9c9d7;

    --color-white: #ffffff;

    --footer-background: #1f2d3a;
    --footer-text: #aebbc7;

    --radius-small: 5px;
    --radius-medium: 6px;
    --radius-large: 8px;
    --radius-card: 10px;

    --shadow-card: 0 8px 20px rgba(35, 54, 73, 0.06);
    --shadow-large: 0 16px 40px rgba(31, 47, 65, 0.08);

    --transition-fast: 0.2s ease;

    --content-width: 1200px;
}


/* =========================================================
   Reset / Global
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--color-background);
    color: var(--color-heading);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   Keyboard Focus Accessibility
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 3px;
}


/* =========================================================
   Header / Navbar
========================================================= */

.site-header {
    width: 100%;

    background:
        linear-gradient(
            90deg,
            var(--color-primary-dark),
            var(--color-primary),
            var(--color-primary-light)
        );
}

.navbar {
    width: 100%;
    max-width: 1400px;
    min-height: 64px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


/* Brand */

.brand {
    flex-shrink: 0;

    color: var(--color-white);

    text-decoration: none;

    font-size: 24px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


/* Desktop Navigation */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 24px;
}

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    min-height: 64px;

    color: var(--color-white);

    text-decoration: none;

    font-size: 16px;
    font-weight: 500;

    white-space: nowrap;
}


/* Underline only for hover / active */

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 13px;

    width: 0;
    height: 2px;

    background: var(--color-white);

    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus-visible::after {
    width: 100%;
}


/* Authentication Actions */

.nav-actions {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}

.login-link,
.signup-link {
    color: var(--color-white);

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;
}

.login-link {
    position: relative;
}

.login-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 2px;

    background: var(--color-white);

    transition: width var(--transition-fast);
}

.login-link:hover::after,
.login-link:focus-visible::after {
    width: 100%;
}

.signup-link {
    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-small);

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.signup-link:hover,
.signup-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}


/* Mobile Menu Button */

.mobile-menu-button {
    display: none;

    border: 0;
    padding: 4px;

    background: transparent;
    color: var(--color-white);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


/* Mobile Menu */

.mobile-menu {
    display: none;
}

.mobile-nav-link {
    position: relative;

    width: fit-content;

    color: var(--color-white);

    text-decoration: none;

    font-size: 17px;
    font-weight: 500;

    padding: 12px 0;
}

.mobile-nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 7px;

    width: 0;
    height: 2px;

    background: var(--color-white);

    transition: width var(--transition-fast);
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after,
.mobile-nav-link:focus-visible::after {
    width: 100%;
}

.mobile-auth {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-top: 8px;
    padding-top: 8px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


/* =========================================================
   Homepage Hero
========================================================= */

.hero-section {
    padding: 72px 24px;

    background: var(--color-background-soft);
}

.hero-container {
    width: 100%;
    max-width: var(--content-width);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;

    gap: 64px;
}


/* Hero Content */

.hero-label {
    margin-bottom: 14px;

    color: var(--color-primary-dark);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.5px;
}

.hero-content h1 {
    max-width: 650px;

    color: var(--color-heading-dark);

    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;

    line-height: 1.08;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    display: block;

    color: #547fa4;
}

.hero-description {
    max-width: 610px;

    margin-top: 22px;

    color: var(--color-text);

    font-size: 18px;
    line-height: 1.7;
}


/* Hero Buttons */

.hero-actions {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 30px;
}

.primary-button,
.secondary-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border-radius: var(--radius-small);

    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.primary-button {
    background: #547fa4;
    color: var(--color-white);
}

.primary-button:hover {
    background: var(--color-primary-hover);
}

.secondary-button {
    background: var(--color-white);
    color: #3e6384;

    border: 1px solid #b8c7d5;
}

.secondary-button:hover {
    border-color: #547fa4;
}


/* Hero Points */

.hero-section .hero-actions .primary-button {
    background: #218447;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.hero-section .hero-actions .primary-button:hover {
    background: #196b38;
}

.hero-section .hero-points > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    background: rgba(229, 231, 235, 0.18);
    border: 1px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
}

.hero-section .hero-point-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: #218447;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.hero-points {
    margin-top: 25px;

    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    color: #586574;

    font-size: 14px;
}


/* =========================================================
   Hero Typing Demo
========================================================= */

.hero-visual {
    display: flex;
    justify-content: center;
}

.typing-demo-card {
    width: 100%;
    max-width: 500px;

    padding: 26px;

    background: var(--color-white);

    border: 1px solid #e1e7ed;
    

    box-shadow: var(--shadow-large);
}

.demo-score {
    margin-bottom: 24px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.demo-score div {
    padding: 12px 8px;

    background: var(--color-background-muted);

    border-radius: var(--radius-medium);

    text-align: center;
}

.demo-score strong {
    display: block;

    color: #263646;

    font-size: 22px;
}

.demo-score span {
    display: block;

    margin-top: 3px;

    color: #718092;

    font-size: 13px;
}

.demo-text {
    min-height: 95px;

    padding: 18px;

    background: #fafbfc;

    border: 1px solid var(--color-border-soft);
    

    color: var(--color-muted);

    font-size: 17px;
    line-height: 1.7;
}

.demo-text .typed {
    color: #38495a;
}

.demo-text .current {
    padding: 1px 2px;

    background: #dbe8f3;
    color: #365d7c;

    border-radius: 3px;
}

.demo-input {
    min-height: 52px;

    margin-top: 14px;
    padding: 15px 16px;

    border: 1px solid var(--color-border-medium);
    

    color: #394b5c;

    font-size: 16px;
}

.demo-cursor {
    display: inline-block;

    width: 2px;
    height: 18px;

    margin-left: 3px;

    vertical-align: middle;

    background: #547fa4;

    animation: demo-cursor-blink 1s steps(2, start) infinite;
}

@keyframes demo-cursor-blink {
    50% {
        opacity: 0;
    }
}


/* =========================================================
   Homepage Main Layout
   Left Ad | Main Content | Right Ad
========================================================= */

.homepage-shell {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;

    padding: 36px 24px 60px;

    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;

    gap: 28px;

    align-items: start;
}

.homepage-main {
    min-width: 0;
}


/* =========================================================
   Advertisement Rails
========================================================= */

.ad-rail {
    width: 160px;
}

.ad-placeholder {
    width: 160px;
    min-height: 600px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #f3f5f7;

    border: 1px dashed #c7d0d8;
    

    color: #8a96a2;

    font-size: 13px;

    text-align: center;
}

.ad-placeholder span {
    display: block;

    margin-top: 5px;

    font-size: 13px;
}


/* =========================================================
   Shared Homepage Section Styling
========================================================= */

.home-section,
.feature-section,
.learning-path-section,
.practice-section,
.test-exam-section {
    padding: 30px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    
}

.feature-section,
.learning-path-section,
.practice-section,
.test-exam-section,
.stats-section {
    margin-top: 28px;
}


/* =========================================================
   Homepage Introduction
========================================================= */

.home-section {
    padding: 28px;
}

.home-section h2 {
    margin-bottom: 10px;

    color: var(--color-heading);

    font-size: 28px;
    line-height: 1.25;
}

.home-section p {
    color: #66717e;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Shared Section Heading
========================================================= */

.section-heading {
    max-width: 680px;

    margin-bottom: 28px;
}

.section-eyebrow {
    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-heading h2 {
    color: var(--color-heading);

    font-size: 30px;
    line-height: 1.2;
}

.section-heading > p:last-child {
    margin-top: 10px;

    color: #6b7682;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Feature Highlights
========================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.feature-item {
    padding: 22px;

    background: var(--color-background-card);

    border: 1px solid var(--color-border-soft);
    
}

.feature-number {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;
}

.feature-item h3 {
    margin-bottom: 8px;

    color: #263746;

    font-size: 19px;
}

.feature-item p {
    color: var(--color-text-soft);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   Learning Path
========================================================= */

.learning-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.path-card {
    position: relative;

    padding: 22px;

    background: var(--color-white);

    border: 1px solid #e3e9ef;
    

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.path-card:hover {
    transform: translateY(-2px);

    border-color: #b9ccdc;

    box-shadow: var(--shadow-card);
}

.path-step {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;
}

.path-card h3 {
    margin-bottom: 8px;

    color: #253646;

    font-size: 19px;
}

.path-card p {
    color: var(--color-text-soft);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   Practice Modes
========================================================= */

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.practice-card {
    display: block;

    padding: 22px;

    background: var(--color-background-card);

    border: 1px solid #e3e9ef;
    

    color: inherit;

    text-decoration: none;

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.practice-card:hover,
.practice-card:focus-visible {
    transform: translateY(-2px);

    border-color: #b9ccdc;

    box-shadow: var(--shadow-card);
}

.practice-time {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
}

.practice-card h3 {
    margin-bottom: 8px;

    color: #253646;

    font-size: 19px;
}

.practice-card p {
    color: var(--color-text-soft);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   Typing Tests / Exam Preparation
========================================================= */

.test-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.test-exam-card {
    padding: 24px;

    background: var(--color-background-card);

    border: 1px solid #e3e9ef;
    
}

.test-exam-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-exam-card h3 {
    margin-bottom: 10px;

    color: #253646;

    font-size: 21px;
    line-height: 1.3;
}

.test-exam-card p {
    margin-bottom: 18px;

    color: var(--color-text-soft);

    font-size: 15px;
    line-height: 1.7;
}


/* Section text links */

.section-link {
    position: relative;

    display: inline-block;

    color: var(--color-primary-dark);

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;
}

.section-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0;
    height: 2px;

    background: var(--color-primary-dark);

    transition: width var(--transition-fast);
}

.section-link:hover::after,
.section-link:focus-visible::after {
    width: 100%;
}


/* =========================================================
   Stats / Trust Strip
========================================================= */

.stats-section {
    padding: 22px 26px;

    background: var(--color-background-muted);

    border: 1px solid #e2e8ee;
    
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.stat-item {
    padding: 10px;

    text-align: center;
}

.stat-item strong {
    display: block;

    color: #2b3d4e;

    font-size: 24px;
    font-weight: 700;
}

.stat-item span {
    display: block;

    margin-top: 5px;

    color: var(--color-text-soft);

    font-size: 14px;
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
    margin-top: 50px;

    background: var(--footer-background);
    color: #d7e0e8;
}

.footer-container {
    width: 100%;
    max-width: var(--content-width);

    margin: 0 auto;
    padding: 42px 24px;

    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);

    gap: 32px;
}


/* Footer Brand */

.footer-brand h2 {
    margin-bottom: 12px;

    color: var(--color-white);

    font-size: 24px;
}

.footer-brand p {
    max-width: 320px;

    color: var(--footer-text);

    font-size: 14px;
    line-height: 1.7;
}


/* Footer Links */

.footer-column h3 {
    margin-bottom: 14px;

    color: var(--color-white);

    font-size: 15px;
}

.footer-column a {
    display: block;

    width: fit-content;

    margin-bottom: 9px;

    color: var(--footer-text);

    text-decoration: none;

    font-size: 14px;

    transition: color var(--transition-fast);
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: var(--color-white);
}


/* Footer Bottom */

.footer-bottom {
    padding: 16px 24px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;
}

.footer-bottom p {
    color: #93a2b1;

    font-size: 13px;
}


/* =========================================================
   Responsive: Smaller Laptop
========================================================= */

@media (max-width: 1180px) {

    .homepage-shell {
        max-width: 960px;

        grid-template-columns: 1fr;
    }

    .ad-rail {
        display: none;
    }

}


/* =========================================================
   Responsive: Navigation Adjustment
========================================================= */

@media (max-width: 1100px) {

    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 15px;
    }

}


/* =========================================================
   Responsive: Tablet
========================================================= */

@media (max-width: 900px) {

    /* Navbar */

    .navbar {
        min-height: 60px;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu {
        padding: 12px 24px 20px;

        background:
            linear-gradient(
                90deg,
                var(--color-primary-dark),
                var(--color-primary),
                var(--color-primary-light)
            );
    }

    .mobile-menu.open {
        display: flex;
        flex-direction: column;
    }


    /* Hero */

    .hero-section {
        padding: 56px 24px;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1,
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-points {
        justify-content: center;
    }


    /* Footer */

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   Responsive: Medium Tablet
========================================================= */

@media (max-width: 850px) {

    .learning-path-grid,
    .practice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   Responsive: Stats Tablet
========================================================= */

@media (max-width: 800px) {

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   Responsive: Small Tablet / Large Mobile
========================================================= */

@media (max-width: 650px) {

    .feature-section,
    .test-exam-section {
        padding: 22px 18px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .feature-grid,
    .test-exam-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 18px;
    }

    .test-exam-card {
        padding: 20px;
    }

}


/* =========================================================
   Responsive: Mobile
========================================================= */

@media (max-width: 600px) {

    /* Global */

    .navbar {
        padding: 0 18px;
    }

    .brand {
        font-size: 22px;
    }


    /* Hero */

    .hero-section {
        padding: 42px 18px;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;

        gap: 9px;
    }

    .typing-demo-card {
        padding: 18px;
    }

    .demo-score {
        gap: 7px;
    }

    .demo-score strong {
        font-size: 19px;
    }


    /* Homepage Layout */

    .homepage-shell {
        padding: 24px 16px 40px;
    }

    .home-section {
        padding: 20px;
    }

    .home-section h2 {
        font-size: 24px;
    }


    /* Shared Sections */

    .learning-path-section,
    .practice-section {
        padding: 22px 18px;
    }

    .learning-path-grid,
    .practice-grid {
        grid-template-columns: 1fr;
    }

    .path-card,
    .practice-card {
        padding: 18px;
    }


    /* Footer */

    .footer-container {
        grid-template-columns: 1fr;

        padding: 34px 20px;
    }

    .footer-brand p {
        max-width: none;
    }

}


/* =========================================================
   Responsive: Small Mobile
========================================================= */

@media (max-width: 500px) {

    .stats-section {
        padding: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .stat-item strong {
        font-size: 21px;
    }

    .stat-item span {
        font-size: 13px;
    }

}


/* =========================================================
   Very Small Mobile
========================================================= */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .demo-score {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   Reduced Motion Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   Typing Tests Page
========================================================= */

.typing-tests-page {
    min-height: 70vh;
    padding: 40px 24px 70px;
    background: #f7f9fc;
}

.typing-tests-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Header */

.typing-tests-header {
    margin-bottom: 34px;
}

.typing-tests-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 600;
}

.typing-tests-breadcrumb a,
.typing-tests-breadcrumb span {
    color: #d93025;
}

.typing-tests-breadcrumb a {
    text-decoration: none;
}

.typing-tests-breadcrumb a:hover {
    text-decoration: underline;
}

.typing-tests-header h1 {
    margin: 0;

    color: #1f3040;

    font-size: 34px;
    line-height: 1.25;
}

.typing-tests-header p {
    max-width: 720px;

    margin-top: 8px;

    color: #667583;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Shared Section
========================================================= */

.typing-test-section {
    margin-top: 38px;
}

.typing-test-section-heading {
    margin-bottom: 20px;
}

.typing-test-section-heading > span {
    display: block;

    margin-bottom: 5px;

    color: #5b82a5;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.typing-test-section-heading h2 {
    margin: 0;

    color: #263746;

    font-size: 25px;
}

.typing-test-section-heading p {
    margin-top: 7px;

    color: #71808d;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   Timed Test Cards
========================================================= */

.typing-test-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.typing-test-card {
    position: relative;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e0e7ed;
    

    box-shadow:
        0 3px 10px rgba(31, 52, 70, 0.04);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.typing-test-card:hover {
    transform: translateY(-2px);

    border-color: #b6cad9;

    box-shadow:
        0 8px 20px rgba(31, 52, 70, 0.07);
}

.featured-test-card {
    border-top:
        3px solid #5b87aa;
}

.typing-test-tag {
    display: inline-block;

    margin-bottom: 18px;

    color: #6084a2;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.typing-test-duration {
    margin-bottom: 15px;

    color: #24405a;

    font-size: 42px;
    font-weight: 700;

    line-height: 1;
}

.typing-test-duration small {
    margin-left: 4px;

    color: #82909c;

    font-size: 13px;
    font-weight: 600;
}

.typing-test-card h3 {
    margin: 0;

    color: #263746;

    font-size: 19px;
}

.typing-test-card p {
    min-height: 70px;

    margin-top: 8px;

    color: #74818d;

    font-size: 14px;
    line-height: 1.65;
}

.typing-test-action {
    min-height: 39px;

    margin-top: 16px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #4f7fa7;

    border-radius: 3px;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.typing-test-action:hover {
    background: #416f96;
}


/* =========================================================
   Difficulty Cards
========================================================= */

.difficulty-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.difficulty-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e1e7ec;
    
}

.difficulty-level {
    display: inline-flex;

    margin-bottom: 14px;

    padding: 5px 9px;

    background: #edf4f9;

    border-radius: 3px;

    color: #52799a;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
}

.difficulty-card h3 {
    margin: 0;

    color: #263746;

    font-size: 18px;
}

.difficulty-card p {
    margin-top: 8px;

    color: #74818d;

    font-size: 14px;
    line-height: 1.65;
}

.difficulty-meta {
    margin-top: 16px;

    display: flex;
    flex-direction: column;

    gap: 5px;

    color: #85929d;

    font-size: 13px;
}

.difficulty-action {
    display: inline-block;

    margin-top: 17px;

    color: #4f7fa7;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.difficulty-action:hover {
    text-decoration: underline;
}


/* =========================================================
   Special Tests
========================================================= */

.special-test-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.special-test-card {
    padding: 22px;

    background: #fbfcfd;

    border: 1px solid #e1e7ec;
    
}

.special-test-number {
    display: block;

    margin-bottom: 13px;

    color: #98a7b4;

    font-size: 13px;
    font-weight: 700;
}

.special-test-card h3 {
    margin: 0;

    color: #263746;

    font-size: 18px;
}

.special-test-card p {
    min-height: 68px;

    margin-top: 8px;

    color: #74818d;

    font-size: 14px;
    line-height: 1.65;
}

.special-test-card a {
    display: inline-block;

    margin-top: 14px;

    color: #4f7fa7;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   Performance Card
========================================================= */

.typing-performance-card {
    margin-top: 40px;

    padding: 28px;

    background:
        linear-gradient(
            105deg,
            #173f65 0%,
            #356f9c 60%,
            #74b4dd 100%
        );

    border-radius: 4px;
}

.typing-performance-heading > span {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.typing-performance-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 24px;
}

.typing-performance-heading p {
    max-width: 670px;

    margin-top: 7px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    line-height: 1.6;
}

.typing-performance-grid {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.performance-stat {
    padding: 18px 12px;

    background:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid rgba(255, 255, 255, 0.14);

    

    text-align: center;
}

.performance-stat strong {
    display: block;

    color: #ffffff;

    font-size: 24px;
}

.performance-stat span {
    display: block;

    margin-top: 4px;

    color:
        rgba(255, 255, 255, 0.74);

    font-size: 13px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 850px) {

    .typing-test-grid,
    .difficulty-grid,
    .special-test-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .typing-performance-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .typing-tests-page {
        padding: 32px 16px 50px;
    }

    .typing-tests-header h1 {
        font-size: 28px;
    }

    .typing-test-grid,
    .difficulty-grid,
    .special-test-grid {
        grid-template-columns: 1fr;
    }

    .typing-test-card p,
    .special-test-card p {
        min-height: auto;
    }

    .typing-performance-card {
        padding: 22px 18px;
    }

}


@media (max-width: 420px) {

    .typing-performance-grid {
        grid-template-columns: 1fr;
    }

}
:is(.practice-breadcrumb, .test-breadcrumb, .typing-tests-breadcrumb, .learn-breadcrumb, .exam-breadcrumb, .journey-breadcrumb, .res-breadcrumb, .pricing-breadcrumb, .legal-breadcrumb),
:is(.practice-breadcrumb, .test-breadcrumb, .typing-tests-breadcrumb, .learn-breadcrumb, .exam-breadcrumb, .journey-breadcrumb, .res-breadcrumb, .pricing-breadcrumb, .legal-breadcrumb) * {
    color: var(--ui-muted);
}


/* Shared menu-page intro width, spacing and breadcrumb typography. */
@media screen {
    :is(.learn-container, .practice-page-container, .test-container, .exam-container, .journey-container, .res-container, .pricing-container, .legal-container) {
        width: 100%;
        max-width: 1100px !important;
        margin-inline: auto;
        box-sizing: border-box;
    }
    :is(.learn-page, .practice-page, .test-page, .exam-page, .journey-page, .res-page, .pricing-page, .legal-page) {
        padding-top: 28px !important;
        padding-inline: 24px !important;
    }
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) {
        width: 100%;
        box-sizing: border-box;
        margin-top: 0 !important;
    }
    .hero-section {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .learn-header { margin-bottom: 0 !important; }
    :is(.practice-breadcrumb, .test-breadcrumb, .typing-tests-breadcrumb, .learn-breadcrumb, .exam-breadcrumb, .journey-breadcrumb, .res-breadcrumb, .pricing-breadcrumb, .legal-breadcrumb) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px !important;
        margin-top: 0;
        margin-bottom: 24px !important;
    }
    :is(.practice-breadcrumb, .test-breadcrumb, .typing-tests-breadcrumb, .learn-breadcrumb, .exam-breadcrumb, .journey-breadcrumb, .res-breadcrumb, .pricing-breadcrumb, .legal-breadcrumb),
    :is(.practice-breadcrumb, .test-breadcrumb, .typing-tests-breadcrumb, .learn-breadcrumb, .exam-breadcrumb, .journey-breadcrumb, .res-breadcrumb, .pricing-breadcrumb, .legal-breadcrumb) * {
        font-family: var(--font-ui);
        font-size: 14px !important;
        font-weight: 500;
        line-height: 1.5 !important;
        letter-spacing: normal !important;
        color: var(--ui-muted);
    }
}
@media screen and (max-width: 600px) {
    :is(.learn-page, .practice-page, .test-page, .exam-page, .journey-page, .res-page, .pricing-page, .legal-page) {
        padding-inline: 16px !important;
    }
    .hero-section { width: 100%; }
}

/* Compact menu-page intros; homepage hero styling is intentionally separate. */
@media screen {
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) {
        min-height: 0 !important;
        height: auto;
        padding: 20px 24px !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) :is(h1, h2) {
        font-size: clamp(26px, 2.6vw, 34px) !important;
        letter-spacing: -0.5px !important;
        margin: 6px 0 !important;
    }
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) :is(h1, h2) > span {
        font-size: inherit !important;
    }
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin: 6px auto !important;
    }
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) :is(.practice-intro-eyebrow, .stats-eyebrow, .test-eyebrow, .exam-eyebrow, .journey-eyebrow, .res-eyebrow, .pricing-eyebrow, .legal-eyebrow) {
        font-size: 13px !important;
    }
    .practice-intro .practice-intro-benefits { margin: 2px 0 0 !important; }
    .test-hero .test-steps { padding-top: 12px; margin-top: 12px; gap: 8px 16px; }
}
@media screen and (max-width: 600px) {
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) {
        padding: 16px 18px !important;
    }
    :is(.practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) p {
        font-size: 16px !important;
    }
}

/* Light descriptions remain readable on the shared blue hero surface. */
@media screen {
    :is(.hero-section, .practice-intro, .stats-hero, .test-hero, .exam-header, .journey-hero, .res-hero, .pricing-hero, .legal-header) p {
        color: #f1f6ff !important;
    }
}

/* Keep content centered without permanent empty ad columns. */
.homepage-shell.homepage-shell--content{display:block;max-width:1100px;position:relative}
