/* ==========================================================
   Etude World – main stylesheet
   Change the colours below to re-theme the whole site.
   ========================================================== */
:root {
    --navy: #13234a;
    --navy-2: #1d3366;
    --ink: #1c2333;
    --muted: #5d6679;
    --line: #e4e8f0;
    --bg: #ffffff;
    --tint: #f4f7fc;
    --primary: #2f6bff;
    --primary-dark: #1f52d6;
    --accent: #ff8a3d;
    --accent-soft: #fff1e6;
    --ielts: #d7263d;
    --celpip: #0f9d8a;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(19, 35, 74, .08);
    --shadow-lg: 0 20px 50px rgba(19, 35, 74, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; } /* hidden fly-out menus must not create a sideways scrollbar */
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; margin-top: 40px; }

.eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary);
    background: rgba(47, 107, 255, .08);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; font-size: 1rem;
    padding: 14px 26px; border-radius: 12px; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(47, 107, 255, .3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.brand strong { font-weight: 800; color: var(--primary); }
.brand--light { color: #fff; }
.brand--light strong { color: var(--primary); }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink);
    background: none; border: 0; cursor: pointer;
    padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--tint); color: var(--primary); }
.chev { transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }

.dropdown {
    list-style: none; margin: 0; padding: 8px;
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--ink); }
.dropdown a:hover { background: var(--tint); color: var(--primary); }

@media (hover: hover) and (min-width: 901px) {
    .nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
    .nav-item:hover .chev { transform: rotate(180deg); }
}
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* six menu items: tighten a little on smaller laptops so they stay on one line */
@media (min-width: 901px) and (max-width: 1320px) {
    .nav-menu { gap: 0; }
    .nav-link { padding: 10px 9px; font-size: .9rem; gap: 4px; }
    .brand { font-size: 1.2rem; }
    .brand img { width: 38px; height: 38px; }
}
@media (min-width: 901px) and (max-width: 1010px) {
    .nav-link { padding: 10px 6px; font-size: .85rem; }
    .brand span { display: none; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 12px 20px 20px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; }
    .dropdown {
        position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0;
        display: none; opacity: 1; visibility: visible; transform: none;
    }
    .nav-item.open > .dropdown { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 90px;
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(255, 138, 61, .12), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(47, 107, 255, .10), transparent 60%),
        var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em;
    background: var(--accent-soft); z-index: -1; border-radius: 4px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.3rem; color: var(--navy); }
.hero-stats span { font-size: .9rem; color: var(--muted); }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(19, 35, 74, .12)); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, .75); }
.section-head--light .eyebrow { background: rgba(255, 255, 255, .12); color: var(--accent); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; }

.lang-card { display: flex; flex-direction: column; }
.lang-card p { flex: 1; }
.lang-badge {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    font-weight: 800; color: #fff; margin-bottom: 18px; font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), #6a8dff);
}
.lang-card:nth-child(2) .lang-badge { background: linear-gradient(135deg, var(--accent), #ffb27a); }
.lang-card:nth-child(3) .lang-badge { background: linear-gradient(135deg, var(--celpip), #4cc9b6); }
.lang-card:nth-child(4) .lang-badge { background: linear-gradient(135deg, #8a4dff, #b48aff); }
.card-link { font-weight: 700; color: var(--primary); }
.card-link:hover { text-decoration: underline; }

.method-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.method-icon svg, .slider-btn svg {
    width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Exam section ---------- */
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 960px; margin: 0 auto; }
.exam-card {
    position: relative; overflow: hidden;
    border-radius: 22px; padding: 44px 40px; color: #fff; box-shadow: var(--shadow-lg);
}
.exam-card::after {
    content: ""; position: absolute; right: -60px; bottom: -60px;
    width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.exam-card--ielts { background: linear-gradient(135deg, var(--ielts), #ff5e6c); }
.exam-card--celpip { background: linear-gradient(135deg, var(--celpip), #2fc4ae); }
.exam-card h3 { color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: .02em; }
.exam-card p { color: rgba(255, 255, 255, .9); max-width: 360px; }
.btn-exam {
    position: relative; z-index: 1; margin-top: 12px;
    background: #fff; color: var(--navy); font-size: 1.05rem; padding: 16px 30px;
}
.exam-card--ielts .btn-exam:hover { color: var(--ielts); }
.exam-card--celpip .btn-exam:hover { color: var(--celpip); }

/* ---------- Achievements slider ---------- */
.slider { max-width: 900px; margin: 0 auto; }
.slider-track { display: grid; overflow: hidden; border-radius: 24px; }
.slide {
    grid-area: 1 / 1; margin: 0;
    display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px; padding: 44px;
    opacity: 0; visibility: hidden; transform: translateX(30px);
    transition: opacity .5s, transform .5s, visibility .5s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide-photo { position: relative; justify-self: center; }
.slide-photo img {
    width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
    border: 5px solid rgba(255, 255, 255, .9); background: #fff;
}
.score-badge {
    position: absolute; bottom: 4px; right: -8px;
    background: var(--accent); color: #fff; font-weight: 800; font-size: .95rem;
    padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.slide blockquote { margin: 0 0 20px; font-size: 1.3rem; line-height: 1.5; font-weight: 500; }
.slide figcaption strong { display: block; font-size: 1.1rem; }
.slide figcaption span { color: rgba(255, 255, 255, .7); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider-btn {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer; transition: background .15s;
}
.slider-btn:hover { background: rgba(255, 255, 255, .22); }
.slider-dots { display: flex; gap: 10px; }
.dot {
    width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .35); transition: width .25s, background .25s;
}
.dot.is-active { width: 28px; background: var(--accent); }

/* ---------- Coming soon ---------- */
.coming-soon { padding: 120px 0; text-align: center; background: var(--tint); min-height: 60vh; }
.coming-soon h1 { font-size: clamp(2rem, 4vw, 3rem); }
.coming-soon p { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1630; color: rgba(255, 255, 255, .75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(var(--cols, 3), minmax(0, 1fr)); gap: 36px; padding-top: 70px; padding-bottom: 50px; }
.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.to-top:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
    .exam-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; }
    .hl { white-space: normal; }
    .slide { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; gap: 24px; }
    .slide blockquote { font-size: 1.08rem; }
    .exam-card { padding: 34px 26px; }
    .footer-grid { grid-template-columns: 1fr; }
}

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

/* ==========================================================
   Blog article page
   ========================================================== */
.container-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }
.preview-bar { background: #fff3dc; color: #7a4b00; text-align: center; padding: 10px 16px; font-size: .92rem; }
.preview-bar a { color: var(--primary); font-weight: 700; }
.article { padding-bottom: 80px; }
.article-head { max-width: 860px; padding-top: 48px; text-align: center; }
/* Breadcrumbs: Home (brand colour) › step › step › current page */
.crumbs { margin: 0 0 20px; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; }
.crumbs--center ol { justify-content: center; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; flex: none; width: 16px; height: 16px; margin: 0 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab3c5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumbs a, .crumbs li > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; line-height: 1.3; }
.crumbs a { color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.crumbs a:hover { background: rgba(47, 107, 255, .1); color: var(--primary); }
.crumbs__label span { color: var(--muted); font-weight: 600; }
.crumbs__home a { color: var(--primary); font-weight: 700; background: rgba(47, 107, 255, .1); }
.crumbs__home a:hover { background: var(--primary); color: #fff; }
.crumbs__home svg { flex: none; }
.crumbs__current span { color: var(--navy); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(520px, 78vw); }
@media (max-width: 560px) { .crumbs { font-size: .85rem; } .crumbs a, .crumbs li > span { padding: 4px 8px; } }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; }
.article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .95rem; margin-top: 18px; }
.meta-author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.meta-author:hover strong { color: var(--primary); }
.meta-author img, .meta-initials { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.meta-initials { display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 800; }
.article-hero { max-width: 1040px; margin-top: 36px; }
.article-hero img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.article-body { margin-top: 44px; font-size: 1.1rem; line-height: 1.8; color: #2a3245; }
.article-body h2 { font-size: 1.7rem; margin: 1.8em 0 .6em; }
.article-body h3 { font-size: 1.3rem; margin: 1.5em 0 .5em; }
.article-body h4, .article-body h5, .article-body h6 { margin: 1.4em 0 .5em; }
.article-body p { margin: 0 0 1.2em; }
.article-body a:not(.ew-btn) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body img { border-radius: 14px; margin: 1.2em auto; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -.4em; }
.article-body blockquote { margin: 1.6em 0; padding: 1em 1.4em; border-left: 4px solid var(--primary); background: var(--tint); border-radius: 0 12px 12px 0; color: #3d4659; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .98rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--tint); color: var(--navy); }
.article-body iframe { max-width: 100%; border-radius: 14px; }

/* Author block (end of blog) */
.author-box {
    display: flex; gap: 24px; align-items: flex-start; margin-top: 56px;
    padding: 28px; border-radius: 20px; background: var(--tint); border: 1px solid var(--line);
}
.author-box__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), #6a8dff); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.6rem; box-shadow: 0 0 0 4px #fff; }
.author-box__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-box__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.author-box__name { font-size: 1.35rem; margin: 0 0 8px; }
.author-box__name a:hover { color: var(--primary); text-decoration: underline; }
.author-box__bio { color: #4a5468; font-size: 1rem; line-height: 1.65; }
.author-box__bio p { margin: 0 0 .8em; }
.author-box__bio a { color: var(--primary); }
.author-box__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.author-box__more { font-weight: 700; color: var(--primary); font-size: .95rem; }
.author-box__more:hover { text-decoration: underline; }

.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; transition: transform .15s, opacity .15s; }
.social-link:hover { transform: translateY(-2px); opacity: .9; }
.social-link .social-svg { width: 18px; height: 18px; }
.social-link--facebook { background: #1877f2; }
.social-link--x { background: #111; }
.social-link--linkedin { background: #0a66c2; }
.social-link--tiktok { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.footer-social { margin-top: 18px; }
.social-links--lg .social-link { width: auto; height: 42px; padding: 0 16px; font-weight: 600; font-size: .92rem; }

/* "Share Now" row at the end of a blog */
.share-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); font-size: 1rem; line-height: 1.4; }
.share-box__title { color: var(--navy); font-weight: 800; }
.article-body .share-box__item, .share-box__item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.article-body .share-box__item:not(.x), .share-box__item { color: var(--ink); }
.article-body .share-box__item:hover, .share-box__item:hover { color: var(--primary); }
.share-box__item:hover .social-link { transform: translateY(-2px); opacity: .9; }

/* Sample Answers hub: topics (30%) on the left, Part / Task buttons and answers (70%) on the right */
.sa-layout { display: grid; grid-template-columns: 3fr 7fr; gap: 32px; align-items: start; }
.sa-side__box { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px 14px; box-shadow: 0 6px 20px rgba(19, 35, 74, .05); max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.sa-side__title { margin: 0 0 12px 10px; font-size: 1.05rem; color: var(--navy); }
.sa-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sa-topics a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .96rem; line-height: 1.3; }
.sa-topics a b { flex: none; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .78rem; font-weight: 700; }
.sa-topics a:hover { background: var(--tint); color: var(--primary); }
.sa-topics a.is-active { background: rgba(47, 107, 255, .1); color: var(--primary); }
.sa-topics a.is-active b { background: var(--primary); color: #fff; }
.sa-parts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sa-parts a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: .93rem; transition: border-color .15s, color .15s, background .15s; }
.sa-parts a small { font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.sa-parts a:hover { border-color: var(--primary); color: var(--primary); }
.sa-parts a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sa-parts a.is-active small { background: rgba(255, 255, 255, .25); color: #fff; }
.sa-summary { margin: -6px 0 18px; color: var(--muted); font-size: .95rem; }
.sa-summary a { color: var(--primary); font-weight: 600; }
.sa-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .sa-layout { grid-template-columns: 1fr; gap: 20px; }
    .sa-side__box { position: static; max-height: none; padding: 16px 12px 12px; }
    .sa-topics { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .sa-topics a { border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; font-size: .9rem; }
}
@media (max-width: 600px) { .sa-grid { grid-template-columns: 1fr; } }

/* Author page */
.author-hero { padding: 64px 0; background: radial-gradient(800px 360px at 90% 0%, rgba(255,138,61,.12), transparent 60%), var(--tint); }
.author-hero__inner { display: flex; gap: 40px; align-items: center; }
.author-hero__photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), #6a8dff); display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 800; box-shadow: 0 0 0 6px #fff, var(--shadow-lg); }
.author-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.author-hero__bio { color: #4a5468; font-size: 1.08rem; max-width: 680px; margin-bottom: 20px; }
.author-hero__bio p { margin: 0 0 .8em; }
.list-title { font-size: 1.6rem; margin-bottom: 28px; }
.muted-text { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__img { aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #dfe8ff, #fff1e6) center/cover; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card__cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card time { font-size: .85rem; color: var(--muted); }
.simple-pager { display: flex; justify-content: center; gap: 16px; margin-top: 32px; font-weight: 700; color: var(--primary); }

@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .author-box { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
    .author-box__foot { justify-content: center; }
    .social-links { justify-content: center; }
    .author-hero__inner { flex-direction: column; text-align: center; }
    .author-hero__bio { margin-left: auto; margin-right: auto; }
    .post-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 1.04rem; }
}

/* ==========================================================
   Menus with sub-menus (e.g. Sample Answers → IELTS → Speaking → Part 1)
   On computers sub-menus fly out to the RIGHT (flipped to the left near the
   right edge of the screen); on phones they open underneath, like an accordion.
   ========================================================== */
.dropdown li { position: relative; list-style: none; }
.sub-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 6px 10px 14px; border-radius: 8px; cursor: default; user-select: none;
}
.sub-label { font-weight: 600; color: var(--muted); }
.sub-toggle { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #a3abbd; cursor: default; }
.has-sub:hover > .sub-row .sub-label, .has-sub.open > .sub-row .sub-label { color: var(--navy); }
.has-sub:hover > .sub-row .sub-toggle, .has-sub.open > .sub-row .sub-toggle { color: var(--navy); }

.submenu {
    list-style: none; margin: 0; padding: 8px; min-width: 210px;
    position: absolute; top: -8px; right: 100%;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateX(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.submenu a:hover { background: var(--tint); color: var(--primary); }

@media (hover: hover) and (min-width: 901px) {
    .has-sub:hover > .submenu, .has-sub:has(:focus-visible) > .submenu { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 901px) {
    .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 900px) {
    .sub-row { padding: 6px 0 6px 8px; }
    .sub-toggle { width: 40px; height: 40px; cursor: pointer; }
    .sub-toggle svg { transform: rotate(-90deg); transition: transform .2s; }
    .has-sub.open > .sub-row .sub-toggle svg { transform: rotate(90deg); }
    .submenu {
        position: static; display: none; min-width: 0; padding: 0 0 4px 14px;
        border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: 14px;
        box-shadow: none; opacity: 1; visibility: visible; transform: none;
    }
    .has-sub.open > .submenu { display: block; }
    .submenu a { white-space: normal; }
}

/* ---------- Practice a Language Exam: five cards ---------- */
.exam-grid { grid-template-columns: repeat(6, 1fr); max-width: 1180px; }
.exam-grid .exam-card { grid-column: span 2; padding: 34px 30px; }   /* IELTS, CELPIP, TOEFL: three cards */
.exam-grid .exam-card h3 { font-size: 1.55rem; }
.exam-card--toefl { background: linear-gradient(135deg, #1f4fd6, #4f86ff); }
.exam-card--toefl .btn-exam:hover { color: #1f4fd6; }
@media (max-width: 900px) {
    .exam-grid { grid-template-columns: 1fr; }
    .exam-grid .exam-card, .exam-grid .exam-card:nth-child(n+3) { grid-column: auto; }
}

/* ---------- Student account (top right of the menu) ---------- */
.nav-account { position: relative; margin-left: 10px; flex: none; }
.nav-login { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-login:hover { border-color: var(--primary); color: var(--primary); }
.nav-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); background: var(--tint); color: var(--primary); font-weight: 800; cursor: pointer; display: grid; place-items: center; overflow: hidden; padding: 0; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.account-menu p { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.account-menu small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.account-menu a:hover, .account-menu button:hover { background: var(--tint); color: var(--primary); }
@media (max-width: 900px) {
    .nav-account { margin-left: auto; margin-right: 10px; }
    .nav-login span { display: none; }
    .nav-login { padding: 8px; }
}

/* ---------- Log in page ---------- */
.auth-page { min-height: calc(100vh - 260px); display: grid; place-items: center; grid-template-columns: minmax(0, 1fr); } /* the column may not grow wider than a phone screen */
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 38px 34px; text-align: center; }
.auth-card h1 { font-size: 1.8rem; margin: 14px 0 8px; }
.auth-lead { color: var(--muted); margin: 0 0 22px; }
.auth-buttons { display: grid; gap: 12px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; background: #fff; }
.auth-btn:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.auth-btn.is-disabled { color: #9aa3b5; background: #f6f8fc; cursor: not-allowed; flex-direction: column; gap: 2px; }
.auth-btn.is-disabled small { font-weight: 500; font-size: .78rem; }
.auth-error { background: #fdecee; color: #a01428; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.auth-test { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 10px; text-align: left; }
.auth-test p { margin: 0; font-size: .88rem; color: var(--muted); }
.auth-test input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.auth-small { font-size: .85rem; color: var(--muted); margin: 20px 0 0; }

/* ---------- Student portal ---------- */
.portal-flash { background: #e6f6ec; color: #0b6b35; border-radius: 12px; padding: 12px 16px; }
.portal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.portal-head h1 { margin: 0; font-size: 1.8rem; }
.portal-head p { margin: 2px 0 0; }
.portal-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 800; font-size: 1.6rem; display: grid; place-items: center; overflow: hidden; flex: none; }
.portal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-logout { margin-left: auto; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.portal-tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; gap: 8px; align-items: center; }
.portal-tabs a.is-active { color: var(--primary); border-color: var(--primary); }
.portal-tabs span { background: var(--tint); color: var(--primary); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.portal-empty { text-align: center; padding: 50px 20px; background: var(--tint); border-radius: 18px; }
.portal-h { font-size: 1.25rem; margin: 26px 0 12px; }
.portal-h small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.portal-list { display: grid; gap: 12px; }
.portal-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.portal-item > div:first-child { display: flex; flex-direction: column; }
.portal-item small { color: var(--muted); }
.portal-badge { background: #fff3dc; color: #7a4b00; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .85rem; }
.portal-badge.is-done { background: #e6f6ec; color: #0b6b35; }
.portal-level { width: 100%; margin: 0; color: var(--navy); font-weight: 600; }
.portal-feedback { width: 100%; background: var(--tint); border-radius: 10px; padding: 12px 14px; line-height: 1.6; }
.portal-label { margin: 0 0 4px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }

/* ---------- Practice CELPIP page (/celpip) ---------- */
.cp-hero .hl { color: var(--celpip); }
.cp-hero-art { display: flex; justify-content: center; }
.cp-mock { width: min(460px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg); }
.cp-mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--navy); }
.cp-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.cp-mock__bar em { margin-left: 10px; color: #fff; font-style: normal; font-weight: 700; font-size: .9rem; }
.cp-mock__body { padding: 14px; display: grid; gap: 10px; }
.cp-mock__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.cp-mock__row div { display: flex; flex-direction: column; margin-right: auto; }
.cp-mock__row small { color: var(--muted); }
.cp-mock__row i { font-style: normal; font-weight: 800; font-size: .85rem; color: #0b6b35; background: #e6f6ec; padding: 4px 10px; border-radius: 999px; }
.cp-mock__row i.is-wait { color: #7a4b00; background: #fff3dc; }
.cp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.cp-ic--l { background: #2f6bff; } .cp-ic--r { background: #0f9d8a; } .cp-ic--w { background: #ff8a3d; } .cp-ic--s { background: #8b5cf6; }

.cp-exam__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cp-exam--ls .cp-exam__grid { grid-template-columns: 1fr 1.1fr; }
.cp-exam h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: 10px 0 14px; }
.cp-exam p { color: var(--muted); }
.cp-points { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.cp-points li { position: relative; padding-left: 30px; color: var(--ink); }
.cp-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e6f6ec; color: #12a150; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.cp-count { margin-top: 12px; font-size: .9rem; }
.cp-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-skill { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.cp-skill__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--celpip); display: grid; place-items: center; margin-bottom: 6px; }
.cp-skill__icon .icon, .cp-skill__icon svg { width: 24px; height: 24px; }
.cp-skill strong { font-size: 1.1rem; color: var(--navy); }
.cp-skill small { color: var(--muted); }
.cp-skills--two .cp-skill { padding: 30px 24px; }
@media (max-width: 900px) {
    .cp-exam__grid, .cp-exam--ls .cp-exam__grid { grid-template-columns: 1fr; gap: 32px; }
    .cp-exam--ls .cp-skills { order: 2; }
    .cp-hero-art { margin-top: 10px; }
}
@media (max-width: 520px) { .cp-skills { grid-template-columns: 1fr; } }

/* ---------- Practice IELTS page (/ielts) – same layout as /celpip, IELTS colours ---------- */
.ip-hero .hl { color: var(--ielts); }
.ip-exam .cp-skill__icon { color: var(--ielts); background: #fdecee; }

/* Sub-menus open to the RIGHT on computers (arrow points right).
   If there isn't enough room on the right, site.js flips that one to open to the left. */
@media (min-width: 901px) {
    .submenu { right: auto; left: 100%; transform: translateX(-6px); }
    .sub-toggle svg { transform: rotate(180deg); }
    .has-sub.opens-left > .submenu { left: auto; right: 100%; transform: translateX(6px); }
    .has-sub.opens-left > .sub-row .sub-toggle svg { transform: none; }
    .has-sub:hover > .submenu, .has-sub:has(:focus-visible) > .submenu, .has-sub.open > .submenu { transform: none; }
}

/* ---------- English Level Test banner (homepage) ---------- */
.level-banner { max-width: 1180px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: #fff; border: 2px dashed #b9c9f5; border-radius: 20px; padding: 26px 32px; }
.level-banner h3 { margin: 0 0 4px; font-size: 1.4rem; }
.level-banner p { margin: 0; color: var(--muted); max-width: 620px; }

/* Portal: My vocabulary cards */
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 28px; }
.pv-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid #e3e8f0; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.pv-card:hover { border-color: #2f6fed; box-shadow: 0 6px 18px rgba(47,111,237,.12); }
.pv-card span { font-size: .9rem; color: #5b6575; }
.pv-card em { font-style: normal; font-weight: 600; color: #2f6fed; }
.pv-bar { height: 7px; border-radius: 99px; background: #e8edf5; overflow: hidden; }
.pv-bar i { display: block; height: 100%; background: #2f6fed; }
.pv-card.is-complete { border-color: #1f9d55; background: #f3fbf6; }
.pv-card.is-complete .pv-bar i { background: #1f9d55; }
.pv-card.is-complete em { color: #1f9d55; }
.pv-tag { align-self: flex-start; padding: 2px 10px; border-radius: 99px; background: #1f9d55; color: #fff; font-size: .78rem; font-weight: 600; }

/* Blog pages: category tabs and card excerpt */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.blog-tabs a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .92rem; background: #fff; color: var(--ink, #1f2a44); }
.blog-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.blog-tabs a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.post-card__excerpt { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* Blog post: reading progress bar and Table of Contents */
.site-header { position: sticky; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: rgba(47, 107, 255, .12); pointer-events: none; }
.read-progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent, #ff8a3d)); border-radius: 0 4px 4px 0; transition: width .08s linear; }
.article-body h2, .article-body h3 { scroll-margin-top: 96px; }
.article-main { position: relative; }
/* Wide screens: the box sits in the empty space to the left of the article (outside its column) */
.toc { position: absolute; top: 0; bottom: 0; right: calc(50% + 390px + 24px); width: 220px; }
.toc__box { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.toc__box::-webkit-scrollbar, .toc__list::-webkit-scrollbar { display: none; }
.toc__box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 6px 20px rgba(19, 35, 74, .05); }
.toc__title { font-weight: 800; font-size: 1.02rem; color: var(--navy); cursor: pointer; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc__item a { display: block; padding: 6px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: .92rem; line-height: 1.4; color: var(--muted); }
.toc__item--h3 a { padding-left: 24px; font-size: .88rem; }
.toc__item a:hover { color: var(--primary); background: #f3f6ff; }
.toc__item a.is-current { color: var(--primary); font-weight: 700; border-left-color: var(--primary); background: #f3f6ff; }
/* "Recent in …" box: the right-hand twin of the Table of Contents (wide screens), under the article on smaller screens */
.recent { position: absolute; top: 0; bottom: 0; left: calc(50% + 390px + 24px); width: 240px; }
.recent__box { position: sticky; top: 96px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px 12px; box-shadow: 0 6px 20px rgba(19, 35, 74, .05); }
.recent__title { flex: none; margin: 0 0 10px 6px; font-size: 1.02rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.recent__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.recent__item { display: block; padding: 8px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: .9rem; line-height: 1.4; color: var(--ink); font-weight: 500; }
a.recent__item:hover { color: var(--primary); background: #f3f6ff; }
.recent__item.is-current { color: var(--primary); font-weight: 700; border-left-color: var(--primary); background: #f3f6ff; }
@media (max-width: 1319px) {
    .recent { position: static; width: auto; max-width: 780px; margin: 40px auto 0; padding: 0 20px; }
    .recent__box { position: static; max-height: none; }
    .recent__list { max-height: 340px; }
}

/* Narrower screens: a slim "Table of Contents" bar stays under the menu while you scroll; the list opens under it */
@media (max-width: 1319px) {
    .article-body h2, .article-body h3 { scroll-margin-top: 140px; }
    .toc { position: sticky; top: 72px; right: auto; bottom: auto; z-index: 40; width: auto; max-width: 780px; margin: 28px auto 0; padding: 0 20px; }
    .toc__box { position: relative; top: auto; max-height: none; overflow: visible; padding: 12px 16px; border-radius: 14px; }
    .toc__title { display: flex; align-items: center; justify-content: space-between; font-size: .98rem; }
    .toc__title::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
    .toc__box[open] .toc__title::after { transform: rotate(-135deg); margin-top: 4px; }
    .toc__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: min(60vh, 420px); overflow-y: auto; scrollbar-width: none; }
}

/* WhatsApp button: fixed in the bottom-right corner on every normal page */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 600px) { .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }
.footer-mail { margin: -6px 0 14px; } .footer-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog body polish ---------- */
/* Lists: brand bullets and numbered circles (plain lists only) */
.article-body ul:not([class]) { list-style: none; padding-left: 0; }
.article-body ul:not([class]) > li { position: relative; padding-left: 1.5em; }
.article-body ul:not([class]) > li::before { content: ""; position: absolute; left: .25em; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.article-body ol:not([class]) { list-style: none; padding-left: 0; counter-reset: ewn; }
.article-body ol:not([class]) > li { position: relative; padding-left: 2.4em; counter-increment: ewn; min-height: 1.8em; }
.article-body ol:not([class]) > li::before { content: counter(ewn); position: absolute; left: 0; top: .2em; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.7em; text-align: center; }
.article-body li > ul, .article-body li > ol { margin-top: .5em; }

/* Quotes: quote mark, italic, even padding */
.article-body blockquote { position: relative; padding: 1.2em 1.5em 1.2em 3.2em; font-style: italic; font-size: 1.06em; }
.article-body blockquote::before { content: "\201C"; position: absolute; left: .45em; top: .05em; font-size: 3rem; line-height: 1; color: var(--primary); font-style: normal; font-family: Georgia, serif; }
.article-body blockquote > :last-child { margin-bottom: 0; }

/* Tables: rounded border, coloured header, stripes */
.article-body table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: table; }
.article-body th, .article-body td { border: 0; border-bottom: 1px solid var(--line); }
.article-body th { background: var(--primary); color: #fff; font-weight: 700; }
.article-body tbody tr:nth-child(even) td { background: var(--tint); }
.article-body tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) { .article-body table { display: block; overflow-x: auto; } }

/* Images: soft shadow + caption */
.article-body img { box-shadow: 0 8px 24px rgba(20, 35, 70, .12); }
.article-body figure img { margin-bottom: .6em; }
.article-body figcaption { font-style: italic; margin-top: 0; padding: 0 1em; }

/* Links: brand colour, stronger underline on hover */
.article-body a:not(.ew-btn) { text-decoration-thickness: 1px; text-decoration-color: rgba(37, 99, 235, .45); transition: text-decoration-color .15s, color .15s; }
.article-body a:not(.ew-btn):hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

/* Extras: inline code, code blocks, divider */
.article-body code { background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; font-size: .9em; }
.article-body pre { background: #0f1b33; color: #e8eefc; padding: 1.1em 1.3em; border-radius: 12px; overflow-x: auto; margin: 1.4em 0; line-height: 1.6; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
@media (max-width: 700px) { .article-body { line-height: 1.7; } .article-body blockquote { padding-left: 2.8em; } }

/* ---------- Courses ---------- */
.courses-hero { background: linear-gradient(180deg, var(--tint), #fff); text-align: center; padding: 48px 0 56px; }
.courses-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.01em; max-width: 780px; margin: 14px auto 16px; }
.courses-hero p { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin: 0 auto 28px; }
.courses-jump { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.courses-block { scroll-margin-top: 80px; }
.course-slider { position: relative; padding: 0 64px; }
.course-grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 18px 4px 28px; margin: -18px -4px -10px; scrollbar-width: none; outline: none; }
.course-grid::-webkit-scrollbar { display: none; }
.course-grid > .course-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; min-width: 0; }
.cs-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 35, 70, .16); display: flex; align-items: center; justify-content: center; padding: 0 0 4px; transition: background .15s, color .15s, opacity .15s; }
.cs-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cs-prev { left: 4px; } .cs-next { right: 4px; }
.cs-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 980px) { .course-grid > .course-card { flex-basis: calc((100% - 24px) / 2); } }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 24px; box-shadow: 0 6px 22px rgba(20, 35, 70, .06); transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 35, 70, .12); }
.course-card--featured { border: 2px solid var(--primary); }
.course-badge { position: absolute; top: -13px; right: 20px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.course-card h3 { font-size: 1.28rem; margin: 0 0 8px; }
.course-summary { color: var(--muted); margin: 0 0 14px; }
.course-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.course-chips li { background: var(--tint); color: var(--primary-dark); font-weight: 700; font-size: .86rem; padding: 5px 12px; border-radius: 999px; }
.course-features { list-style: none; padding: 0; margin: 0 0 14px; }
.course-features li { position: relative; padding-left: 28px; margin-bottom: 9px; color: #2a3245; line-height: 1.5; }
.course-features li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; line-height: 19px; }
.course-note { margin: 0 0 14px; color: var(--muted); font-size: .92rem; font-style: italic; }
.course-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course-price { display: flex; flex-direction: column; line-height: 1.1; }
.course-price__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.course-price strong { font-size: 1.7rem; color: var(--navy); font-weight: 800; }
@media (max-width: 640px) { .course-slider { padding: 0; } .course-grid > .course-card { flex-basis: 86%; } .cs-btn { display: none; } .courses-hero { padding: 32px 0 40px; } }

/* Home page: Courses strip */
.home-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 32px; }
.home-course { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 6px 22px rgba(20, 35, 70, .06); }
.home-course h3 { font-size: 1.2rem; margin-bottom: 6px; }
.home-course p { color: var(--muted); margin: 0 0 14px; }
.home-course a { font-weight: 700; color: var(--primary); }
.home-courses-cta { text-align: center; }
@media (max-width: 900px) { .home-courses { grid-template-columns: 1fr; } }
.cs-fits .cs-btn{display:none}

.course-price strong small { font-size: .45em; font-weight: 700; margin-left: 3px; color: var(--muted); letter-spacing: .02em; }

/* Courses: custom course form */
.custom-course__box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 24px; padding: 48px; color: #fff; }
.custom-course__intro h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 12px 0; }
.custom-course__intro p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; }
.custom-course__intro .eyebrow { background: rgba(255, 255, 255, .12); color: var(--accent); }
.custom-course__form { background: #fff; border-radius: 18px; padding: 28px; color: var(--ink, #1c2540); }
.cc-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.cc-field label, .cc-field legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); padding: 0; }
.custom-course__form input[type=text], .custom-course__form input[type=tel], .custom-course__form input[type=number], .custom-course__form select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.custom-course__form input:focus, .custom-course__form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.cc-phone { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--tint); }
.cc-checks input { width: 17px; height: 17px; accent-color: var(--primary); }
.cc-error { color: #d7263d; font-size: .88rem; margin: 6px 0 0; }
.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cc-success { background: #e3f6ea; border-radius: 12px; padding: 22px; color: #14663a; }
.cc-success p { margin: 6px 0 0; }
@media (max-width: 900px) { .custom-course__box { grid-template-columns: 1fr; padding: 28px 20px; } .cc-phone, .cc-row { grid-template-columns: 1fr; } }

/* Courses blocks: tighter vertical spacing */
.section.courses-block { padding-top: 32px; padding-bottom: 32px; }
.courses-block .section-head { margin-bottom: 32px; }
@media (max-width: 640px) {
    .section.courses-block { padding-top: 24px; padding-bottom: 24px; }
    .courses-block .section-head { margin-bottom: 22px; }
}

/* Home page: tighter spacing */
.hero--home { padding: 48px 0 56px; }
.home-section { padding-top: 56px; padding-bottom: 56px; }
.home-section .section-head { margin-bottom: 36px; }
@media (max-width: 900px) { .hero--home { padding: 32px 0 44px; } }
@media (max-width: 640px) {
    .home-section { padding-top: 38px; padding-bottom: 38px; }
    .home-section .section-head { margin-bottom: 26px; }
}

/* Our Achievements: light background (no blue) */
.home-achievements { background: #f6f7f9; color: var(--ink, #1c2540); }
.home-achievements .slide { background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 35, 70, .08); }
.home-achievements .slide-photo img { border-color: #fff; box-shadow: 0 6px 18px rgba(20, 35, 70, .15); }
.home-achievements .slide blockquote { color: var(--navy); }
.home-achievements .slide figcaption span { color: var(--muted); }
.home-achievements .slider-btn { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.home-achievements .slider-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.home-achievements .dot { background: #cfd5e1; }
.home-achievements .dot.is-active { background: var(--accent); }

/* Home page: Study Methods grey, Achievements white */
.home-achievements { background: #fff; }
#methods.home-section { background: #f6f7f9; }

/* ---------- About & Contact pages ---------- */
.info-hero { background: linear-gradient(180deg, var(--tint), #fff); text-align: center; padding: 44px 0 48px; }
.info-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.01em; max-width: 780px; margin: 14px auto 14px; }
.info-hero p { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin: 0 auto 24px; }
.info-hero__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.about-section { padding-top: 56px; padding-bottom: 56px; scroll-margin-top: 80px; }
.section--grey { background: #f6f7f9; }
.about-card { display: flex; flex-direction: column; }
.about-card h3 { margin: 16px 0 8px; }
.about-card p { color: var(--muted); margin: 0 0 14px; }
.about-card__link { margin-top: auto; font-weight: 700; color: var(--primary); }
.about-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 48px; padding: 0 14px; border-radius: 14px; color: #fff; font-weight: 800; letter-spacing: .03em; align-self: flex-start; }
.about-badge--ielts { background: linear-gradient(135deg, #e63946, #ff6b6b); }
.about-badge--celpip { background: linear-gradient(135deg, #0f9d8a, #4cc9b6); }
.about-badge--toefl { background: linear-gradient(135deg, var(--primary), #6a8dff); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.why-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.why-item h3 { font-size: 1.1rem; margin: 0 0 6px; }
.why-item p { margin: 0; color: var(--muted); }
.results-title { text-align: center; font-size: 1.5rem; margin: 0 0 24px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.result-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 6px 22px rgba(20, 35, 70, .06); display: flex; flex-direction: column; gap: 14px; }
.result-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-card__top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.result-score { background: var(--accent); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; font-size: 1.05rem; }
.result-card blockquote { margin: 0; color: #2a3245; line-height: 1.6; }
.result-card figcaption { margin-top: auto; }
.result-card figcaption strong { display: block; color: var(--navy); }
.result-card figcaption span { color: var(--muted); font-size: .92rem; }
.location-box { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: stretch; }
.location-info { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 6px 22px rgba(20, 35, 70, .06); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.location-info h3 { margin: 0; }
.location-info address { font-style: normal; color: #2a3245; line-height: 1.7; }
.location-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.ci-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact-details { display: grid; gap: 14px; }
.ci-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: 0 4px 16px rgba(20, 35, 70, .05); }
.ci-avatar { flex: none; width: 72px; height: 72px; object-fit: cover; object-position: center 20%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(20,40,100,.2); border-radius: 50%; background: linear-gradient(135deg, var(--primary), #6a8dff); color: #fff; font-weight: 800; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; }
.ci-card strong { display: block; color: var(--navy); font-size: 1.1rem; }
.ci-sub { color: var(--muted); }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.ci-value { display: block; color: var(--navy); font-weight: 700; font-size: 1.05rem; }
a.ci-value:hover { color: var(--primary); }
.ci-wa { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-weight: 700; color: #128c4a; }
.ci-wa:hover { text-decoration: underline; }
.ci-hours { flex: 1; min-width: 0; }
.ci-hours ul { list-style: none; margin: 4px 0 0; padding: 0; }
.ci-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ci-hours li:last-child { border-bottom: 0; }
.ci-hours li.is-open strong { color: #128c4a; }
.ci-hours li.is-closed strong { color: #d7263d; }
.ci-social { padding: 4px 4px 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 10px 30px rgba(20, 35, 70, .08); scroll-margin-top: 90px; }
.contact-form h2 { font-size: 1.5rem; margin: 0 0 6px; }
.contact-form__intro { color: var(--muted); margin: 0 0 20px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
@media (max-width: 900px) {
    .why-grid, .location-box, .contact-grid { grid-template-columns: 1fr; }
    .about-section { padding-top: 38px; padding-bottom: 38px; }
    .contact-form { padding: 22px 18px; }
    .location-map, .location-map iframe { min-height: 260px; }
}
.ci-wa--map { color: var(--primary); }

.ci-person-social { margin-top: 8px; }
.ci-person-social .social-link { width: 34px; height: 34px; }
.about-follow { background: #f5f7fc; }
.about-follow__title { margin: 0 0 6px; }
.about-follow__text { margin: 0 0 14px; color: var(--muted, #5b6478); }

/* ---------- Menu boxes: one compact size for every menu and sub-menu ---------- */
.dropdown, .submenu { padding: 6px; min-width: 210px; width: max-content; max-width: 280px; }
.dropdown a, .submenu a, .sub-row { font-size: .93rem; line-height: 1.35; }
.dropdown a, .submenu a { padding: 8px 12px; }
.sub-row { padding: 8px 4px 8px 12px; min-height: 0; }
/* a clickable sub-menu title must not add its own padding on top of the row's padding */
.dropdown .sub-row > a.sub-label, .submenu .sub-row > a.sub-label { padding: 0; flex: 1; display: block; border-radius: 0; }
.dropdown .sub-row > a.sub-label:hover, .submenu .sub-row > a.sub-label:hover { background: none; color: var(--primary); }
.sub-label { flex: 1; }
.sub-toggle { width: 20px; height: 20px; }
.submenu { top: -6px; }
@media (max-width: 900px) {
    .dropdown, .submenu { width: auto; max-width: none; }
    .sub-row { padding: 4px 0 4px 8px; }
    .sub-toggle { width: 40px; height: 40px; }
    .submenu { padding: 0 0 4px 14px; }
}

/* Menu boxes: slightly roomier */
.dropdown, .submenu { padding: 8px; min-width: 230px; max-width: 300px; }
.dropdown a, .submenu a { padding: 10px 14px; }
.sub-row { padding: 10px 6px 10px 14px; }
.dropdown li + li, .submenu li + li { margin-top: 3px; }
.submenu { top: -8px; }
@media (max-width: 900px) {
    .dropdown, .submenu { min-width: 0; max-width: none; }
    .sub-row { padding: 6px 0 6px 8px; }
    .submenu { padding: 0 0 4px 14px; }
    .dropdown li + li, .submenu li + li { margin-top: 2px; }
}

/* ---------- Rounder buttons and menus (not on the three practice-test screens, which use body.exam-body) ---------- */
body:not(.exam-body) .btn,
body:not(.exam-body) .btn-test,
body:not(.exam-body) .auth-btn,
body:not(.exam-body) .vb-btn { border-radius: 999px; }
body:not(.exam-body) .nav-link { border-radius: 999px; }
body:not(.exam-body) .dropdown,
body:not(.exam-body) .submenu { border-radius: 20px; }
body:not(.exam-body) .dropdown a,
body:not(.exam-body) .submenu a,
body:not(.exam-body) .sub-row { border-radius: 14px; }
@media (max-width: 900px) {
    body:not(.exam-body) .dropdown, body:not(.exam-body) .submenu { border-radius: 0; }
}

/* ---------- Search ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-search-btn { flex: none; width: 40px; height: 40px; margin-left: 10px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); cursor: pointer; transition: border-color .15s, color .15s; }
.nav-search-btn:hover, .nav-search-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.nav-search-btn + .nav-account { margin-left: 8px; }
.search-bar { border-top: 1px solid var(--line); background: #fff; padding: 12px 0; box-shadow: 0 12px 24px rgba(19, 35, 74, .08); }
.search-bar[hidden] { display: none; }
.search-bar__form, .search-form { display: flex; gap: 10px; align-items: center; }
.search-bar__form input, .search-form input { flex: 1; min-width: 0; font: inherit; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #f7f9fd; }
.search-bar__form input:focus, .search-form input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search-page { padding-top: 32px; }
.search-note { margin: 18px 0 8px; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-type { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); background: var(--tint); padding: 3px 10px; border-radius: 999px; margin-right: 8px; }
.search-title { font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.search-title:hover { color: var(--primary); }
.search-results p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.search-empty { text-align: center; padding: 30px 0; }
.search-quick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.search-quick a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; color: var(--navy); }
.search-quick a:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 900px) {
    .nav-search-btn { margin-left: auto; width: 38px; height: 38px; }
    .nav-search-btn + .nav-account { margin-left: 8px; }
}

/* ---------- Student portal: progress summary ---------- */
.pp { margin: 6px 0 26px; }
.pp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pp-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 6px 18px rgba(19, 35, 74, .05); }
.pp-tile b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--navy); }
.pp-tile span { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.pp-tile.is-up b { color: #12a150; }
.pp-tile.is-down b { color: #d6455d; }
.pp-charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.pp-chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 8px; }
.pp-chart figcaption { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.pp-chart figcaption small { font-weight: 500; color: var(--muted); }
.pp-chart svg { width: 100%; height: auto; display: block; }
.pp-grid { stroke: #e4e9f3; stroke-width: 1; }
.pp-axis { font-size: 10px; fill: #8a93a6; }
.pp-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pp-dot { fill: #fff; stroke: var(--primary); stroke-width: 2.5; }
.pp-hint { margin: 12px 2px 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .pp-tiles { grid-template-columns: repeat(2, 1fr); } .pp-charts { grid-template-columns: 1fr; } }

/* Compact search bar under the header */
.search-bar { padding: 8px 0; box-shadow: 0 8px 18px rgba(19, 35, 74, .08); }
.search-bar__form { gap: 8px; max-width: 640px; margin: 0 auto; }
.search-bar__form input { padding: 7px 16px; font-size: .95rem; }
.search-bar__form .btn { padding: 7px 18px; font-size: .9rem; box-shadow: none; }
.search-bar { background: transparent; border-top: 0; box-shadow: none; }
