/* ═══════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════ */
:root {
    --blue:      #1741c4;
    --blue-dk:   #0f2d99;
    --blue-lt:   #eef2ff;
    --blue-mid:  #3d5af1;
    --teal:      #0e9f8e;
    --amber:     #f4a500;
    --ink:       #111827;
    --ink2:      #374151;
    --ink3:      #6b7280;
    --bg:        #ffffff;
    --bg2:       #f9fafb;
    --bg3:       #f3f4f6;
    --border:    #e5e7eb;
    --r4:  4px;  --r8: 8px;  --r12: 12px;  --r16: 16px;  --r24: 24px;  --r99: 999px;
    --sh1: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --sh2: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --sh3: 0 10px 40px rgba(23,65,196,.15);
    --f: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ease: cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════════
   HARD RESET — overrides index.css completely
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f) !important;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    margin: 0 !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   SKIP NAV
═══════════════════════════════════════════════════════ */
.skip-nav {
    position: absolute; top: -999px; left: 0;
    background: var(--blue); color: #fff;
    padding: 8px 16px; font-size: .85rem; font-weight: 600;
    z-index: 9999; text-decoration: none;
    border-radius: 0 0 var(--r8) 0;
    transition: top .15s;
}
.skip-nav:focus { top: 0; }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
    background: var(--ink);
    position: relative;
    overflow: hidden;
    padding: 48px 16px 40px;
    text-align: center;
}
/* Layered gradient blobs */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at -5% 50%,  rgba(23,65,196,.7)  0%, transparent 55%),
        radial-gradient(ellipse 60% 80% at 105% 40%, rgba(14,159,142,.45) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 120%,  rgba(23,65,196,.3)  0%, transparent 60%);
    pointer-events: none;
}
/* Fine grid */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: 680px; margin: 0 auto;
}
/* Trust badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 12px; border-radius: var(--r99);
    margin-bottom: 16px;
    animation: fd .5s ease both;
}
.hero-badge i {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--amber); box-shadow: 0 0 5px var(--amber);
    display: inline-block; flex-shrink: 0;
}
.hero h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    font-weight: 800; color: #fff;
    line-height: 1.15; letter-spacing: -.025em;
    margin: 0 0 10px;
    animation: fd .55s .07s ease both;
}
.hero h1 span {
    background: linear-gradient(95deg, #93c5fd, #5eead4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: .95rem; color: rgba(255,255,255,.68);
    line-height: 1.6; max-width: 480px;
    margin: 0 auto 24px;
    animation: fd .55s .13s ease both;
}
/* Search card */
.hero-search-wrap {
    background: #fff;
    border-radius: var(--r16);
    padding: 16px 18px;
    box-shadow: var(--sh3), 0 0 0 1px rgba(255,255,255,.1);
    max-width: 640px; margin: 0 auto 24px;
    animation: fu .55s .18s ease both;
}
/* Stats bar */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--r12);
    backdrop-filter: blur(8px);
    animation: fu .55s .24s ease both;
}
.stat-item {
    padding: 12px 8px;
    text-align: center;
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 1px; background: rgba(255,255,255,.15);
}
.stat-item strong {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.stat-item span {
    font-size: .65rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: rgba(255,255,255,.55);
    display: block; margin-top: 2px;
}
@media (max-width: 480px) {
    .hero { padding: 36px 14px 30px; }
    .hero h1 { font-size: 1.55rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3)::before { display: none; }
    .stat-item:nth-child(3), .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,.13);
    }
}

/* ═══════════════════════════════════════════════════════
   SECTION WRAPPER
═══════════════════════════════════════════════════════ */
.ct-section {
    padding: 44px 16px;
    max-width: 1080px;
    margin: 0 auto;
}
.ct-section--stripe { background: var(--bg2); }
.ct-section--stripe-full {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ct-section-full {
    padding: 44px 16px;
}

.ct-eyebrow {
    font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 6px;
    display: block;
}
.ct-heading {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800; color: var(--ink);
    letter-spacing: -.02em; line-height: 1.2;
    margin-bottom: 4px;
}
.ct-sub {
    font-size: .875rem; color: var(--ink3);
    line-height: 1.6; margin-bottom: 24px;
}
.ct-center { text-align: center; }
.ct-center .ct-sub { max-width: 480px; margin-left: auto; margin-right: auto; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS — 4-column compact
═══════════════════════════════════════════════════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r12);
    padding: 20px 14px 18px;
    text-align: center;
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.step-card:hover {
    box-shadow: var(--sh2);
    transform: translateY(-3px);
    border-color: rgba(23,65,196,.25);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--blue-lt); border: 1.5px solid var(--blue);
    color: var(--blue); font-size: .72rem; font-weight: 800;
    margin: 0 auto 10px;
}
.step-icon { font-size: 1.4rem; display: block; margin-bottom: 8px; line-height: 1; }
.step-card h3 {
    font-size: .82rem; font-weight: 700; color: var(--ink);
    margin: 0 0 5px;
}
.step-card p { font-size: .76rem; color: var(--ink3); line-height: 1.55; margin: 0; }
@media (max-width: 700px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
    .steps-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   TAG CLOUDS — subjects & cities
═══════════════════════════════════════════════════════ */
.tag-cloud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 18px;
    text-align: left;
    justify-items: start;
}
@media (max-width: 600px) {
    .tag-cloud { grid-template-columns: repeat(2, 1fr); }
}
.tag-cloud--city .tag-cloud__item { background: var(--blue-lt); color: var(--blue); border-color: rgba(23,65,196,.2); }
.tag-cloud--city .tag-cloud__item:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.tag-cloud__item {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 8px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r75);
    font-size: .89rem; font-weight: 600; color: var(--ink2);
    text-decoration: none;
    transition: all .18s var(--ease);
    box-shadow: var(--sh1);
}
.tag-cloud__item:hover {
    border-color: var(--blue); color: var(--blue);
    background: var(--blue-lt);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(23,65,196,.14);
}

/* ═══════════════════════════════════════════════════════
   CONTENT SECTIONS (latest tutors / jobs — PHP includes)
═══════════════════════════════════════════════════════ */
section.content { padding: 0; }

/* ═══════════════════════════════════════════════════════
   SEO TEXT BLOCK
═══════════════════════════════════════════════════════ */
.seo-text-block {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 44px 16px;
}
.seo-text-inner {
    max-width: 860px; margin: 0 auto;
}
.seo-text-inner h2 {
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    font-weight: 800; color: var(--ink);
    letter-spacing: -.02em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
}
.seo-text-inner p {
    font-size: .88rem; color: var(--ink2);
    line-height: 1.8; margin-bottom: 14px;
}
.seo-text-inner strong { color: var(--ink); font-weight: 600; }
.seo-text-inner h3 {
    font-size: .95rem; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 8px;
    margin: 22px 0 8px;
}
.seo-text-inner h3::before {
    content: '';
    width: 3px; height: 16px;
    background: var(--blue); border-radius: 3px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
.faq-section {
    padding: 44px 16px;
    max-width: 780px; margin: 0 auto;
}
.faq-section h2 {
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    font-weight: 800; color: var(--ink);
    letter-spacing: -.02em;
    text-align: center; margin-bottom: 24px;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r12);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: rgba(23,65,196,.3); box-shadow: var(--sh1); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; background: var(--bg); border: none;
    text-align: left; padding: 14px 16px;
    cursor: pointer;
    font-family: var(--f);
    font-size: .85rem; font-weight: 700; color: var(--ink);
    gap: 12px; transition: background .15s;
}
.faq-question:hover { background: var(--bg2); }
.faq-question[aria-expanded="true"] { background: var(--blue-lt); color: var(--blue); }
.faq-question:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r8); }
.faq-chevron {
    flex-shrink: 0; width: 18px; height: 18px;
    color: var(--blue); transition: transform .25s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    overflow: hidden; max-height: 0;
    transition: max-height .3s ease, padding .3s ease;
    background: var(--bg);
}
.faq-answer.open { max-height: 300px; padding-bottom: 14px; }
.faq-answer p { font-size: .84rem; color: var(--ink2); margin: 0; line-height: 1.7; padding: 0 16px; }
.faq-answer p a { color: var(--blue); font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   STICKY CTA (mobile)
═══════════════════════════════════════════════════════ */
.sticky-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    gap: 8px; z-index: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (max-width: 640px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 68px !important; }
}
.sticky-cta a {
    flex: 1; text-align: center;
    padding: 11px 8px; border-radius: var(--r8);
    font-family: var(--f);
    font-size: .8rem; font-weight: 700;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
}
.sticky-cta a:active { transform: scale(.97); }
.sticky-cta .btn-primary  { background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(23,65,196,.35); }
.sticky-cta .btn-secondary { background: var(--blue-lt); color: var(--blue); border: 1px solid rgba(23,65,196,.25); }

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fd { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fu { from { opacity: 0; transform: translateY(14px);  } to { opacity: 1; transform: none; } }

.step-card:nth-child(1) { animation: fu .45s .05s ease both; }
.step-card:nth-child(2) { animation: fu .45s .10s ease both; }
.step-card:nth-child(3) { animation: fu .45s .15s ease both; }
.step-card:nth-child(4) { animation: fu .45s .20s ease both; }

/* Stat counter animation */
@keyframes countUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stat-item:nth-child(1) { animation: countUp .4s .1s ease both; }
.stat-item:nth-child(2) { animation: countUp .4s .17s ease both; }
.stat-item:nth-child(3) { animation: countUp .4s .24s ease both; }
.stat-item:nth-child(4) { animation: countUp .4s .31s ease both; }

/* ═══════════════════════════════════════════════════════
   FOCUS RING
═══════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }