:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #101828;
    --muted: #475467;
    --subtle: #667085;
    --line: #e4e7ec;
    --blue: #2f6690;
    --blue-dark: #0b1f33;
    --accent: #f6c247;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
    --radius: 18px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    word-break: keep-all;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.container.narrow {
    max-width: 860px;
}

.section {
    padding: 108px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 249, 252, 0.82);
    border-bottom: 1px solid rgba(228, 231, 236, 0.85);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #182b49);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(47, 102, 144, 0.22);
}

.brand-text {
    font-size: 21px;
}

.primary-nav,
.menu,
.nav-fallback {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

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

.menu:not(:empty) + .nav-fallback {
    display: none;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    background: var(--blue-dark);
    border-radius: 12px;
    font-weight: 750;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 112px;
}

.hero::before {
    position: absolute;
    top: -260px;
    left: 50%;
    width: 820px;
    height: 560px;
    content: "";
    background: radial-gradient(circle, rgba(47, 102, 144, 0.18), rgba(47, 102, 144, 0));
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0;
}

.eyebrow.light {
    color: #9cc9ee;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(42px, 5.4vw, 68px);
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-desc {
    max-width: 650px;
    margin-bottom: 30px;
    font-size: 19px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 16px 34px rgba(47, 102, 144, 0.24);
}

.btn-secondary {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
}

.btn-accent {
    color: var(--text);
    background: var(--accent);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.hero-points span {
    padding: 9px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.diagnosis-panel,
.match-card,
.cta-box,
.dashboard-card,
.info-card,
.timeline article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.diagnosis-panel {
    padding: 24px;
}

.panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.panel-label,
.metric-card span,
.dashboard-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--subtle);
    font-size: 13px;
    font-weight: 800;
}

.panel-top h2 {
    margin: 0;
    font-size: 28px;
}

.status-pill {
    padding: 8px 10px;
    color: var(--blue);
    background: #eef6ff;
    border: 1px solid #cfe7ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.metric-card {
    padding: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.metric-card.wide {
    grid-column: 1 / -1;
}

.metric-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.5;
}

.progress-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.progress-list div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    align-items: center;
}

.progress-list span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.progress-list b {
    display: block;
    height: 8px;
    background: linear-gradient(90deg, var(--blue), #8fb8dc);
    border-radius: 999px;
}

.section-head {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-head.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
    padding: 28px;
}

.info-card p,
.dashboard-card p,
.timeline p,
.match-card li {
    font-size: 16px;
}

.card-num {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 54px;
    align-items: start;
}

.split-grid.reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
}

.sticky-copy {
    position: sticky;
    top: 118px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline article {
    position: relative;
    padding: 28px 28px 28px 86px;
    box-shadow: none;
}

.timeline article span {
    position: absolute;
    top: 28px;
    left: 28px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 12px;
    font-weight: 900;
}

.dashboard-section {
    background: #fff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 22px;
}

.dashboard-card {
    padding: 30px;
}

.dashboard-card.large {
    grid-row: span 2;
    min-height: 360px;
    background:
        linear-gradient(145deg, rgba(47, 102, 144, 0.1), rgba(246, 194, 71, 0.08)),
        #fff;
}

.dashboard-card ul,
.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.dashboard-card li,
.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    line-height: 1.65;
}

.dashboard-card li::before,
.check-list li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 9px;
    height: 9px;
    content: "";
    background: var(--accent);
    border-radius: 999px;
}

.match-card {
    padding: 34px;
}

.care-section {
    color: #fff;
    background: var(--blue-dark);
}

.care-section h2,
.care-section h3 {
    color: #fff;
}

.care-section p {
    color: rgba(255, 255, 255, 0.72);
}

.card-grid.dark article {
    padding: 28px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}

.final-cta {
    padding-top: 82px;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 42px;
    background:
        radial-gradient(circle at 82% 20%, rgba(246, 194, 71, 0.24), transparent 32%),
        #fff;
}

.cta-box h2 {
    margin-bottom: 14px;
}

.site-footer {
    padding: 52px 0 28px;
    color: rgba(255, 255, 255, 0.78);
    background: #081827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: start;
}

.footer-brand .brand-mark {
    background: #fff;
    color: var(--blue-dark);
}

.footer-brand .brand-text {
    color: #fff;
}

.footer-copy {
    max-width: 480px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
}

.footer-links {
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.footer-bottom {
    padding-top: 28px;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.floating-link {
    display: flex;
    min-width: 124px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
}

.floating-link.kakao {
    background: var(--accent);
}

.floating-link.form {
    color: #fff;
    background: var(--blue);
}

.page-content {
    padding-top: 82px;
}

.content-body {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.content-body h2,
.content-body h3 {
    color: var(--text);
}

.page-shell {
    max-width: 1040px;
}

.local-hero,
.local-context,
.local-system,
.local-target,
.local-faq {
    margin-bottom: 28px;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.075);
}

.local-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 52px;
    background:
        radial-gradient(circle at 88% 14%, rgba(246, 194, 71, 0.32), transparent 30%),
        radial-gradient(circle at 16% 8%, rgba(47, 102, 144, 0.15), transparent 28%),
        linear-gradient(135deg, #ffffff, #f3f7fb);
}

.local-hero::after {
    position: absolute;
    right: 38px;
    bottom: 34px;
    width: 210px;
    height: 210px;
    content: "";
    background:
        linear-gradient(#d7e7f5 1px, transparent 1px),
        linear-gradient(90deg, #d7e7f5 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 28px;
    opacity: 0.45;
    mask-image: linear-gradient(135deg, transparent 10%, #000 100%);
    pointer-events: none;
}

.local-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 8px 12px;
    margin: 0 0 14px;
    color: var(--blue);
    background: #eef6ff;
    border: 1px solid #cfe7ff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
}

.local-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.18;
}

.local-hero p:not(.local-eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 720px;
    font-size: 18px;
}

.local-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.local-cta a {
    display: inline-flex;
    min-height: 50px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue);
    border-radius: 12px;
    font-weight: 850;
}

.local-cta a:nth-child(2) {
    color: var(--text);
    background: var(--accent);
}

.local-context h2,
.local-system h2,
.local-target h2,
.local-faq h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.local-context {
    border-left: 5px solid var(--blue);
}

.local-context p {
    max-width: 820px;
}

.local-system ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
    counter-reset: local-step;
}

.local-system li {
    position: relative;
    padding: 22px 22px 22px 66px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--muted);
}

.local-system li::before {
    position: absolute;
    top: 22px;
    left: 22px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    counter-increment: local-step;
    content: counter(local-step);
    color: #fff;
    background: var(--blue);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
}

.local-target {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.local-target h2 {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.local-target div {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.06);
}

.local-target h3 {
    display: inline-flex;
    padding: 6px 10px;
    color: var(--blue);
    background: #eef6ff;
    border-radius: 10px;
    font-size: 18px;
}

.local-faq h3 {
    padding: 20px 22px;
    margin: 20px 0 0;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    font-size: 20px;
}

.local-faq h3 + p {
    padding: 18px 22px 20px;
    margin: 0;
    background: #fff;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
}

.local-faq::after {
    display: block;
    padding: 28px;
    margin-top: 28px;
    color: #fff;
    background: var(--blue-dark);
    border-radius: var(--radius);
    content: "상담으로 현재 수학 학습 상태를 먼저 확인해보세요.";
    font-size: 22px;
    font-weight: 850;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .hero-grid,
    .split-grid,
    .split-grid.reverse,
    .dashboard-grid,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .sticky-copy {
        position: static;
    }

    .card-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-box .button-row {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 74px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .menu,
    .nav-fallback {
        display: grid;
        gap: 0;
    }

    .primary-nav a {
        display: block;
        padding: 13px 12px;
    }

    h1 {
        font-size: 40px;
        line-height: 1.16;
    }

    h2 {
        font-size: 31px;
    }

    .hero {
        padding-top: 78px;
    }

    .hero-desc {
        font-size: 17px;
    }

    .diagnosis-panel,
    .info-card,
    .dashboard-card,
    .match-card,
    .cta-box {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .brand-text {
        font-size: 19px;
    }

    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
        line-height: 1.75;
    }

    .button-row,
    .btn {
        width: 100%;
    }

    .btn {
        min-height: 50px;
    }

    .metric-grid,
    .card-grid.four {
        grid-template-columns: 1fr;
    }

    .timeline article {
        padding: 82px 24px 24px;
    }

    .timeline article span {
        top: 24px;
        left: 24px;
    }

    .panel-top {
        flex-direction: column;
    }

    .progress-list div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .floating-cta {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: 100vw;
        box-sizing: border-box;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 10px;
        background: rgba(255, 255, 255, 0.9);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(12px);
    }

    .floating-link {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .local-hero,
    .local-context,
    .local-system,
    .local-faq {
        padding: 24px;
    }

    .local-hero {
        padding: 36px 24px;
    }

    .local-hero::after {
        display: none;
    }

    .local-system ol,
    .local-target {
        grid-template-columns: 1fr;
    }

    .local-cta,
    .local-cta a {
        width: 100%;
    }

    .site-footer {
        padding-bottom: 92px;
    }

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

/* Product-platform refinements */
.product-hero-panel {
    display: grid;
    gap: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.product-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.product-choice {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 54px rgba(16, 24, 40, 0.06);
}
.product-choice .tag {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 10px;
    color: var(--blue);
    background: #eef6ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
}
.compare-table {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 54px rgba(16, 24, 40, 0.06);
}
.compare-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row strong { color: var(--text); }
.compare-row span { color: var(--blue); font-weight: 850; }
.link-hub {
    display: grid;
    gap: 22px;
}
.link-band {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.link-band:last-child { border-bottom: 0; }
.link-band h3 { margin: 0; font-size: 20px; }
.text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.text-links a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}
.text-links a:hover { color: var(--blue); }
@media (max-width: 900px) {
    .product-choice-grid { grid-template-columns: 1fr; }
    .link-band { grid-template-columns: 1fr; }
    .compare-row { grid-template-columns: 1fr; }
}

/* Codeit-inspired tutoring homepage */
.codeit-hero {
    position: relative;
    overflow: hidden;
    padding: 108px 0 88px;
    background:
        radial-gradient(circle at 78% 16%, rgba(87, 140, 255, 0.18), transparent 30%),
        radial-gradient(circle at 20% 18%, rgba(246, 194, 71, 0.2), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}
.codeit-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 54px;
    align-items: center;
}
.codeit-hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 1.08;
}
.codeit-hero .hero-desc {
    max-width: 660px;
    color: #344054;
    font-size: 20px;
}
.codeit-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.codeit-badge-row span {
    padding: 9px 13px;
    color: #245b86;
    background: #eef7ff;
    border: 1px solid #d7ebff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 850;
}
.learning-stack {
    display: grid;
    gap: 14px;
}
.learning-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.08);
}
.learning-card:nth-child(2) { transform: translateX(24px); }
.learning-card:nth-child(3) { transform: translateX(-8px); }
.learning-card span {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}
.learning-card h3 {
    margin-bottom: 8px;
    font-size: 21px;
}
.learning-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}
.codeit-section {
    padding: 98px 0;
    background: #fff;
}
.codeit-section.soft {
    background: #f7faff;
}
.big-center {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}
.big-center h2 {
    font-size: clamp(34px, 4.2vw, 56px);
}
.vs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.vs-card {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.065);
}
.vs-card.muted {
    background: #f4f6f8;
    box-shadow: none;
}
.vs-card strong {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 14px;
}
.cycle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.cycle-card {
    position: relative;
    min-height: 240px;
    padding: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.06);
}
.cycle-card::after {
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 112px;
    height: 112px;
    content: "";
    background: #eef7ff;
    border-radius: 999px;
}
.cycle-card span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 14px;
    font-weight: 900;
}
.compact-region-box {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.055);
}
@media (max-width: 1024px) {
    .codeit-hero-grid,
    .vs-grid,
    .cycle-grid { grid-template-columns: 1fr; }
    .learning-card:nth-child(2),
    .learning-card:nth-child(3) { transform: none; }
}
@media (max-width: 640px) {
    .codeit-hero { padding: 78px 0 62px; }
    .codeit-hero h1 { font-size: 38px; }
    .codeit-hero .hero-desc { font-size: 17px; }
    .codeit-section { padding: 72px 0; }
    .vs-card, .cycle-card, .compact-region-box { padding: 24px; }
}

/* Premium tutoring homepage */
:root {
    --premium-navy: #0B1F3A;
    --premium-gold: #D4A84F;
    --premium-text: #1A1A1A;
    --premium-sub: #6B7280;
    --premium-cream: #FBF8F1;
}
.premium-home {
    background: #fff;
    color: var(--premium-text);
}
.premium-hero {
    position: relative;
    overflow: hidden;
    padding: 106px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 74% 28%, rgba(212,168,79,.22), transparent 28%),
        linear-gradient(115deg, rgba(11,31,58,.98) 0%, rgba(11,31,58,.92) 48%, rgba(11,31,58,.72) 100%);
}
.premium-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(11,31,58,.98) 0%, rgba(11,31,58,.72) 46%, rgba(11,31,58,.18) 100%);
    pointer-events: none;
}
.premium-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 54px;
    align-items: center;
}
.premium-label {
    margin: 0 0 18px;
    color: var(--premium-gold);
    font-size: 15px;
    font-weight: 850;
}
.premium-hero h1 {
    max-width: 720px;
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.12;
}
.premium-hero h1 strong { color: var(--premium-gold); }
.premium-hero p {
    max-width: 620px;
    color: rgba(255,255,255,.82);
    font-size: 19px;
}
.premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.premium-btn {
    display: inline-flex;
    min-height: 54px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 850;
}
.premium-btn.gold { color: #111827; background: var(--premium-gold); }
.premium-btn.outline { color: #fff; border: 1px solid rgba(255,255,255,.34); }
.premium-visual {
    min-height: 430px;
    border-radius: 28px 28px 0 0;
    background:
        linear-gradient(180deg, rgba(11,31,58,.02), rgba(11,31,58,.08)),
        url('/assets/images/hero-student-tutor-v1.webp') center center / cover no-repeat;
    box-shadow: inset 0 -120px 90px rgba(11,31,58,.2);
}
.premium-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 64px;
    padding: 22px 28px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(14px);
}
.premium-stat { padding: 8px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.premium-stat:last-child { border-right: 0; }
.premium-stat strong { display: block; color: #fff; font-size: 27px; }
.premium-stat span { color: rgba(255,255,255,.7); font-size: 14px; }
.premium-section { padding: 92px 0; }
.premium-section.soft { background: #F8FAFC; }
.premium-head { max-width: 780px; margin-bottom: 42px; }
.premium-head.center { margin-right: auto; margin-left: auto; text-align: center; }
.premium-head h2 { font-size: clamp(32px, 4vw, 48px); }
.premium-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.premium-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(11,31,58,.06);
}
.premium-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--premium-gold);
    background: rgba(212,168,79,.12);
    border-radius: 14px;
    font-weight: 900;
}
.recommend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.recommend-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(11,31,58,.06);
}
.recommend-thumb {
    display: block;
    height: 168px;
    margin: 0;
    background: #EEF2F7;
}
.recommend-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.recommend-body { padding: 22px; }
.process-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process-step {
    padding: 24px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    text-align: center;
}
.process-step span {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    place-items: center;
    color: #fff;
    background: var(--premium-navy);
    border-radius: 999px;
    font-weight: 900;
}
.teacher-strip {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 24px;
    align-items: stretch;
}
.teacher-panel {
    padding: 36px;
    color: #fff;
    background: var(--premium-navy);
    border-radius: 24px;
}
.teacher-panel > p:not(.premium-label) { color: rgba(255,255,255,.86); }
.teacher-photo-card {
    overflow: hidden;
    min-height: 420px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(11,31,58,.12);
}
.teacher-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}
.teacher-list { display: grid; gap: 14px; margin-top: 28px; }
.teacher-mini {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
}
.teacher-mini h3 { color: #fff; }
.teacher-mini p { color: rgba(255,255,255,.74); }
.avatar-dot {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--premium-gold);
    background: rgba(212,168,79,.12);
    border: 1px solid rgba(212,168,79,.28);
    border-radius: 999px;
    font-weight: 900;
}
.subject-chip-grid, .premium-link-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.subject-chip-grid a, .premium-link-cloud a {
    padding: 10px 14px;
    color: #374151;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    font-weight: 750;
}
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card { padding: 28px; background: #fff; border: 1px solid #E5E7EB; border-radius: 18px; }
.stars { color: var(--premium-gold); letter-spacing: 2px; }
.premium-cta {
    padding: 44px;
    color: #fff;
    background: var(--premium-navy);
    border-radius: 24px;
}
.premium-cta p { color: rgba(255,255,255,.76); }
@media (max-width: 1024px) {
    .premium-hero-grid, .teacher-strip { grid-template-columns: 1fr; }
    .premium-card-grid, .recommend-grid, .process-line, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium-visual { min-height: 280px; }
}
@media (max-width: 640px) {
    .premium-hero { padding-top: 76px; }
    .premium-hero h1 {
        font-size: 34px;
        line-height: 1.18;
        word-break: keep-all;
    }
    .premium-head {
        width: 100%;
        max-width: 100%;
    }
    .premium-head h2 {
        font-size: 30px;
        line-height: 1.24;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .premium-visual {
        min-height: 310px;
        background-size: contain;
        background-position: center bottom;
        background-color: #071A30;
    }
    .premium-stats, .premium-card-grid, .recommend-grid, .process-line, .review-grid { grid-template-columns: 1fr; }
    .premium-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
    .premium-stat:last-child { border-bottom: 0; }
    .recommend-thumb { height: 190px; }
    .teacher-panel { padding: 28px 22px; }
    .teacher-photo-card, .teacher-photo-card img { min-height: 320px; }
    .premium-section { padding: 70px 0; }
    .premium-actions, .premium-btn { width: 100%; }
}

.seo-page {
    background: #fff;
}

.seo-hero {
    padding: 94px 0 76px;
    color: #fff;
    background:
        radial-gradient(circle at 76% 18%, rgba(212,168,79,.22), transparent 34%),
        linear-gradient(135deg, #06182F 0%, #0B1F3A 56%, #213852 100%);
}

.seo-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 56px;
    align-items: center;
}

.seo-kicker {
    margin: 0 0 14px;
    color: var(--premium-gold);
    font-size: 14px;
    font-weight: 900;
}

.seo-hero h1 {
    color: #fff;
}

.seo-hero p {
    max-width: 680px;
    color: rgba(255,255,255,.78);
}

.seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.seo-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 30px 90px rgba(0,0,0,.26);
}

.seo-hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.seo-hero-card span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 10px 14px;
    color: #fff;
    background: rgba(11,31,58,.82);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    backdrop-filter: blur(12px);
}

.seo-section {
    padding: 86px 0;
}

.seo-section.soft {
    background: #F8FAFC;
}

.seo-head {
    max-width: 820px;
    margin-bottom: 34px;
}

.seo-head h2 {
    color: var(--premium-navy);
}

.seo-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.seo-card {
    min-height: 210px;
    padding: 28px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 20px 56px rgba(11,31,58,.07);
}

.seo-card span {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    place-items: center;
    color: var(--premium-gold);
    background: rgba(212,168,79,.12);
    border-radius: 14px;
    font-weight: 900;
}

.seo-two {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(340px, 1fr);
    gap: 36px;
    align-items: start;
}

.seo-link-band {
    padding: 28px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(11,31,58,.06);
}

.seo-link-band h3 {
    color: var(--premium-navy);
}

.seo-link-band div,
.seo-hub {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-link-band a {
    display: inline-flex;
    padding: 10px 14px;
    color: #1F2937;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 780;
}

.seo-hub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.seo-notice {
    margin-bottom: 28px;
    padding: 16px 18px;
    color: #334155;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.75;
}

.seo-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 42px;
    color: #fff;
    background: var(--premium-navy);
    border-radius: 24px;
}

.seo-cta h2 {
    color: #fff;
}

.seo-cta p {
    color: rgba(255,255,255,.76);
}

@media (max-width: 900px) {
    .seo-hero-grid,
    .seo-two,
    .seo-cta {
        grid-template-columns: 1fr;
    }
    .seo-card-grid,
    .seo-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    html,
    body,
    .seo-page {
        max-width: 100%;
        overflow-x: hidden;
    }
    .seo-page .container {
        width: min(100% - 32px, var(--container));
    }
    .seo-page h1,
    .seo-page h2,
    .seo-page h3,
    .seo-page p,
    .seo-page strong,
    .seo-page a {
        max-width: 100%;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    .seo-hero {
        padding: 72px 0 58px;
    }
    .seo-hero h1 {
        font-size: 34px;
        line-height: 1.18;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    .seo-head h2,
    .seo-page h2,
    .seo-page p {
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .seo-hero-card,
    .seo-hero-card img {
        min-height: 250px;
    }
    .seo-hero-card span {
        right: 14px;
        left: 14px;
        max-width: none;
        text-align: center;
        white-space: normal;
    }
    .seo-section {
        padding: 64px 0;
    }
    .seo-card-grid,
    .seo-hub {
        grid-template-columns: 1fr;
    }
    .seo-cta {
        padding: 28px 22px;
    }
    .seo-actions,
    .seo-actions .premium-btn {
        width: 100%;
    }
}


/* National school pages */
.school-hero {
  padding: 48px 0 76px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(212,168,79,.22), transparent 30%),
    linear-gradient(135deg, #06182f 0%, #0b1f3a 58%, #1c3654 100%);
}
.school-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
  color: rgba(255,255,255,.68);
  font-size: 14px;
}
.school-breadcrumb a { color: rgba(255,255,255,.78); }
.school-breadcrumb strong { color: #fff; }
.school-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .72fr);
  gap: 54px;
  align-items: center;
}
.school-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}
.school-hero h1 span { color: #e7c777; }
.school-hero-grid > div > p:not(.seo-kicker) {
  max-width: 700px;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.8;
}
.school-summary {
  padding: 30px;
  color: #172033;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.school-summary-label {
  margin: 0 0 18px;
  color: #0b1f3a;
  font-size: 19px;
  font-weight: 900;
}
.school-summary dl { margin: 0; }
.school-summary dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e7eb;
}
.school-summary dt { color: #6b7280; }
.school-summary dd { margin: 0; font-weight: 800; }
.school-source, .school-disclaimer {
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}
.school-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.school-faq { max-width: 920px; }
.school-faq details {
  padding: 22px 0;
  border-bottom: 1px solid #dfe4ea;
}
.school-faq summary {
  color: #0b1f3a;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}
.school-faq details p { margin: 14px 0 0; color: #556071; }
.school-province-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.school-province-card {
  display: flex;
  min-height: 104px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  color: #0b1f3a;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(11,31,58,.06);
}
.school-province-card strong { font-size: 19px; }
.school-province-card span { color: #6b7280; }
.school-links-section .seo-link-band { width: 100%; }
.school-links-section .seo-link-band > p { margin: -8px 0 18px; color: #6b7280; }
@media (max-width: 900px) {
  .school-hero-grid { grid-template-columns: 1fr; }
  .school-plan-grid, .school-province-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .school-hero { padding: 30px 0 58px; }
  .school-breadcrumb { margin-bottom: 28px; }
  .school-hero h1 { font-size: 36px; word-break: keep-all; overflow-wrap: anywhere; }
  .school-hero-grid > div > p:not(.seo-kicker) { font-size: 16px; }
  .school-summary { padding: 22px; }
  .school-summary dl div { grid-template-columns: 74px 1fr; }
  .school-plan-grid, .school-province-grid { grid-template-columns: 1fr; }
}

/* Nationwide directory search */
.search-hero { padding-bottom: 86px; }
.search-hero-copy {
  max-width: 840px;
  margin-bottom: 38px;
}
.search-hero-copy > p:not(.seo-kicker) {
  max-width: 680px;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.8;
}
.directory-search {
  max-width: 920px;
  padding: 28px;
  color: #172033;
  background: #fff;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
}
.directory-search label {
  display: block;
  margin-bottom: 10px;
  color: #0b1f3a;
  font-size: 15px;
  font-weight: 900;
}
.directory-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.directory-input-wrap input {
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  outline: none;
}
.directory-input-wrap input:focus {
  border-color: #d4a84f;
  box-shadow: 0 0 0 4px rgba(212,168,79,.16);
}
.directory-input-wrap button {
  min-width: 76px;
  padding: 0 18px;
  color: #334155;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.directory-status {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
}
.directory-results {
  display: grid;
  max-height: 460px;
  margin-top: 16px;
  overflow: auto;
  border-radius: 12px;
}
.directory-result {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 12px;
  color: #172033;
  border-top: 1px solid #edf0f4;
}
.directory-result:hover { background: #f8fafc; }
.directory-result-type {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  color: #8a6418;
  background: #fff7df;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}
.directory-result strong, .directory-result small { display: block; }
.directory-result strong { color: #0b1f3a; font-size: 16px; }
.directory-result small { margin-top: 4px; color: #6b7280; font-size: 13px; }
.directory-result b { color: #d4a84f; font-size: 20px; }
.directory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.directory-stats article {
  padding: 30px;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(11,31,58,.06);
}
.directory-stats strong, .directory-stats span { display: block; }
.directory-stats strong { color: #0b1f3a; font-size: 34px; }
.directory-stats span { margin-top: 7px; color: #6b7280; }
.region-children-section .seo-link-band { width: 100%; }
.region-children-section .seo-link-band > p { margin: -8px 0 18px; color: #6b7280; }
@media (max-width: 640px) {
  .search-hero-copy > p:not(.seo-kicker) { font-size: 16px; }
  .directory-search { padding: 18px; }
  .directory-input-wrap { grid-template-columns: 1fr; }
  .directory-input-wrap button { height: 44px; }
  .directory-result { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 14px 8px; }
  .directory-stats { grid-template-columns: 1fr; }
}

/* Public homepage regions */
.home-province-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.home-province-grid a {
  display: flex;
  min-height: 92px;
  padding: 20px;
  flex-direction: column;
  justify-content: space-between;
  color: #0b1f3a;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(11,31,58,.05);
}
.home-province-grid a:hover {
  border-color: #d4a84f;
  transform: translateY(-2px);
}
.home-province-grid strong { font-size: 18px; }
.home-province-grid span { color: #6b7280; font-size: 13px; }
.region-actions { margin-top: 28px; }
.premium-btn.light {
  color: #0b1f3a;
  background: #fff;
  border: 1px solid #d7dee8;
}
.service-facts .premium-stat strong { font-size: clamp(20px, 2.2vw, 30px); }
.region-grade-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.region-grade-grid .seo-card span {
  width: auto;
  padding: 0 12px;
}
@media (max-width: 900px) {
  .home-province-grid, .region-grade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-province-grid, .region-grade-grid { grid-template-columns: 1fr; }
  .home-province-grid a { min-height: 82px; }
}


/* SEO page depth improvements */
.local-depth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.local-depth-grid article{min-height:136px;padding:24px;background:#fff;border:1px solid #e1e7ef;border-radius:18px;box-shadow:0 16px 44px rgba(11,31,58,.06)}
.local-depth-grid strong{display:block;margin-bottom:10px;color:#0b1f3a;font-size:18px;font-weight:900}
.local-depth-grid span{color:#556071;line-height:1.7}
.school-links-section{border-top:1px solid #e8edf3;border-bottom:1px solid #e8edf3}
.subject-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.local-depth-grid,.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.local-depth-grid,.subject-grid{grid-template-columns:1fr}.local-depth-grid article{min-height:auto;padding:20px}}


/* Content depth SEO sections */
.content-depth-section .seo-head { max-width: 880px; }
.content-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.content-depth-grid article {
  padding: 26px;
  border: 1px solid #e1e7ef;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 48px rgba(11,31,58,.07);
}
.content-depth-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #0b1f3a;
  background: #f6e8c3;
  font-size: 13px;
  font-weight: 900;
}
.content-depth-grid h3 {
  margin: 0 0 10px;
  color: #0b1f3a;
  font-size: 20px;
  line-height: 1.35;
}
.content-depth-grid p {
  margin: 0;
  color: #556071;
  line-height: 1.75;
}
@media (max-width: 900px) {
  .content-depth-grid { grid-template-columns: 1fr; }
  .content-depth-grid article { padding: 22px; }
}
