*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:       #1e3a5f;
    --blue2:      #2c5282;
    --teal:       #0891b2;
    --teal2:      #06b6d4;
    --teal-bg:    #ecfeff;
    --amber:      #f59e0b;
    --amber-bg:   #fef3c7;
    --green:      #16a34a;
    --green-bg:   #dcfce7;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --warm:       #f8fafc;
    --white:      #ffffff;
    --ink:        #0f172a;
    --ink2:       #1e293b;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* ── UTILITIES ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 5%; }
.section { padding: 88px 5%; }
.section-sm { padding: 56px 5%; }
.label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.h3 { font-size: 1.25rem; font-weight: 700; }
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.75; margin-top: 14px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: none; cursor: pointer; transition: all .18s; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: #0e7490; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(8,145,178,.3); }
.btn-dark { background: var(--blue); color: white; }
.btn-dark:hover { background: var(--blue2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; }
.btn-white { background: white; color: var(--blue); }
.btn-white:hover { background: #f0f9ff; transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ── NAV ── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: 64px; background: white;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { width: 34px; height: 34px; background: var(--teal); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.nav-logo-text { font-size: 1.15rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 24px 5%; flex-direction: column; gap: 16px; z-index: 199; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .nav-links { display: none; } .hamburger { display: block; } }
@media (max-width: 560px) { .nav-actions .btn-outline { display: none; } }

/* ── HERO ── */
.hero { padding: 120px 5% 80px; background: linear-gradient(135deg, #0f2044 0%, #1e3a5f 60%, #164e63 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(8,145,178,.18) 0%, transparent 65%); }
.hero-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(8,145,178,.2); border: 1px solid rgba(8,145,178,.4); color: var(--teal2); padding: 5px 14px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: white; margin-bottom: 18px; }
.hero p { color: #94a3b8; font-size: 1.1rem; line-height: 1.75; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: #94a3b8; }
.hero-trust-item .icon { color: var(--amber); }

/* hero card */
.hero-card { background: white; border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.hero-card-title { font-weight: 700; font-size: 0.95rem; }
.hero-card-badge { background: var(--green-bg); color: var(--green); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.tutor-list { display: flex; flex-direction: column; gap: 14px; }
.tutor-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.tutor-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: white; }
.tutor-info { flex: 1; }
.tutor-name { font-size: 0.875rem; font-weight: 700; }
.tutor-subject { font-size: 0.75rem; color: var(--muted); }
.tutor-rating { font-size: 0.75rem; color: var(--amber); font-weight: 600; }
.tutor-price { font-size: 0.85rem; font-weight: 700; color: var(--teal); }

/* ── STATS BAR ── */
.stats-bar { background: var(--blue); padding: 32px 5%; }
.stats-bar-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.stat-item .num span { color: var(--teal2); }
.stat-item .lbl { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }

/* ── CARDS ── */
.card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── SUBJECT CARDS ── */
.subject-card { background: white; border: 1.5px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; text-decoration: none; color: var(--ink); transition: all .2s; }
.subject-card:hover { border-color: var(--teal); box-shadow: 0 4px 20px rgba(8,145,178,.1); transform: translateY(-2px); }
.subject-card .s-icon, .subject-card .subject-icon { font-size: 2rem; margin-bottom: 8px; }
.subject-card h4, .subject-card .subject-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.subject-card p, .subject-card .subject-count { font-size: 0.75rem; color: var(--muted); }

/* ── HOW IT WORKS ── */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding-bottom: 40px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 35px; top: 52px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; position: relative; z-index: 1; }
.step-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; padding-top: 12px; }
.step-body p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ── TESTIMONIALS ── */
.testimonial-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.stars { color: var(--amber); font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 0.9rem; color: var(--ink2); line-height: 1.75; font-style: italic; margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: white; flex-shrink: 0; }
.t-name { font-size: 0.85rem; font-weight: 700; }
.t-role { font-size: 0.75rem; color: var(--muted); }

/* ── PRICING ── */
.pricing-card { background: white; border: 1.5px solid var(--border); border-radius: 16px; padding: 36px 30px; position: relative; }
.pricing-card.featured, .pricing-card.popular { border-color: var(--teal); border-width: 2px; box-shadow: 0 8px 32px rgba(8,145,178,.15); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 14px; border-radius: 100px; white-space: nowrap; }
.pricing-tier { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.pricing-price { font-size: 1.05rem; margin-bottom: 12px; color: var(--blue); }
.pricing-price strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-price span { font-size: 0.85rem; color: var(--muted); }
.pricing-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 0.875rem; color: var(--ink2); padding-left: 4px; }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 14px; border-radius: 100px; white-space: nowrap; }
.pricing-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.pricing-card .price-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.price-amount { margin-bottom: 24px; }
.price-amount .from { font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 2px; }
.price-amount .amount { font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.price-amount .per { font-size: 0.8rem; color: var(--muted); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li { font-size: 0.875rem; color: var(--ink2); padding-left: 22px; position: relative; }
.price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.faq-q { width: 100%; background: white; border: none; padding: 18px 22px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.faq-q:hover { background: var(--warm); }
.faq-icon { color: var(--teal); font-size: 1.2rem; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 0.875rem; color: var(--muted); line-height: 1.75; background: white; }
.faq-item.open .faq-a { display: block; }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, #0891b2 0%, #1e3a5f 100%); padding: 88px 5%; text-align: center; }
.cta-section h2 { color: white; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--blue); padding: 64px 5% 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon { width: 30px; height: 30px; background: var(--teal); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.footer-logo-text { font-size: 1.1rem; font-weight: 800; color: white; }
.footer-logo-text span { color: var(--teal2); }
.footer-brand p { font-size: 0.8rem; color: #64748b; line-height: 1.65; max-width: 220px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { text-decoration: none; font-size: 0.84rem; color: #94a3b8; transition: color .15s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; }
.footer-copy { font-size: 0.75rem; color: #475569; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 0.75rem; color: #475569; text-decoration: none; }
.footer-legal a:hover { color: #94a3b8; }

/* ── BLOG ── */
.blog-card { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.blog-img, .blog-card-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-body, .blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-tag, .blog-card-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--teal); margin-bottom: 8px; }
.blog-body h3, .blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-title a { color: var(--ink); text-decoration: none; }
.blog-card-title a:hover { color: var(--teal); }
.blog-body p, .blog-card-excerpt { font-size: 0.82rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 0; }
.blog-meta, .blog-card-meta { font-size: 0.75rem; color: var(--muted); margin-top: 14px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: linear-gradient(135deg, #0f2044 0%, #1e3a5f 100%); padding: 100px 5% 64px; text-align: center; }
.page-hero h1 { color: white; margin-bottom: 14px; }
.page-hero p { color: #94a3b8; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 0.8rem; color: #94a3b8; margin-bottom: 16px; }
.breadcrumb a { color: var(--teal2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── ARTICLE ── */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 12px; color: var(--blue); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.article-body p { font-size: 0.95rem; color: var(--ink2); line-height: 1.85; margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 16px; }
.article-body li { font-size: 0.95rem; color: var(--ink2); line-height: 1.75; margin-bottom: 6px; }
.article-body .callout { background: var(--teal-bg); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 24px 0; font-size: 0.9rem; color: var(--ink2); }

/* ── TRUST BADGES ── */
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: var(--warm); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 0.8rem; font-weight: 600; color: var(--ink2); }
.trust-badge .icon { font-size: 1rem; }

/* ── MISC ── */
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.tag-teal { background: var(--teal-bg); color: #0e7490; }
.tag-amber { background: var(--amber-bg); color: #92400e; }
.tag-green { background: var(--green-bg); color: #15803d; }
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.highlight-box { background: var(--teal-bg); border: 1px solid #a5f3fc; border-radius: 12px; padding: 24px 28px; }
.highlight-box p { font-size: 0.9rem; color: var(--ink2); line-height: 1.7; margin: 0; }

/* ── FADE IN ── */
.fade { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade.in { opacity: 1; transform: none; }

/* ── SUBJECT PAGE ── */
.subject-hero { background: linear-gradient(135deg, #0f2044 0%, #1e3a5f 100%); padding: 80px 5% 56px; }
.subject-hero h1 { color: white; }
.subject-hero p { color: #94a3b8; margin-top: 10px; max-width: 560px; }
