/* ------------------------------------------------------------------
 * IELTS and PTE preparation, redesigned 2026-09-11.
 *
 * Both pages share one template; every rule is scoped to
 * #test-prep-content so it outranks older rules elsewhere without
 * !important. Same visual language as the destination guides: navy
 * hero card with stat tiles, number-chip cards, a timeline for the
 * study plan, soft info callouts, no rules under headings.
 *
 * The IELTS/PTE switcher is removed by main.js and replaced by the
 * shared section tabs under the header, so it is not styled here.
 * ------------------------------------------------------------------ */

#test-prep-content {
    --ink: #0E1C3C;
    --copy: #44516B;
    --muted: #55627A;
    --navy: #12244E;
    --navy-deep: #0A142B;
    --blue: #134BC3;
    --blue-dark: #0F3C9E;
    --blue-soft: #E9EFFD;
    --line: #DDE3EE;
    --soft: #F2F5FB;
    --header-h: 86px;
    background: #fff;
    color: var(--ink);
    font-family: "Source Sans 3", Arial, sans-serif;
}
#test-prep-content * { box-sizing: border-box; min-width: 0; }
#test-prep-content :is(h1, h2, h3, h4) {
    color: var(--ink);
    font-family: inherit !important;
    letter-spacing: -.02em;
    text-align: left;
}
#test-prep-content :is(h1, h2, h3, h4, .test-prep-eyebrow)::before,
#test-prep-content :is(h1, h2, h3, h4, .test-prep-eyebrow)::after { content: none !important; display: none !important; }
#test-prep-content :is(h1, h2, h3, h4) em { color: inherit; font: inherit; }
#test-prep-content h1 { max-width: 18ch; margin: 14px 0 18px; font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; line-height: 1.06; }
#test-prep-content h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.12; }
#test-prep-content h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.3; }
#test-prep-content h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
#test-prep-content p { margin: 0 0 14px; color: var(--copy); font-size: 16.5px; line-height: 1.7; }
#test-prep-content p:last-child { margin-bottom: 0; }
#test-prep-content a { color: var(--blue); }
#test-prep-content :is(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
#test-prep-content [id] { scroll-margin-top: calc(var(--header-h) + 72px); }
#test-prep-content .test-prep-switcher { display: none; }
#test-prep-content .test-prep-eyebrow {
    display: block;
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
    text-transform: uppercase;
}

#test-prep-content .test-prep-article { padding: clamp(28px, 4vw, 48px) 24px clamp(56px, 7vw, 96px); }
#test-prep-content :is(.test-prep-article__inner, .test-prep-contact__inner) { width: 100%; max-width: 1180px; margin-inline: auto; }

/* Hero: navy card, copy left, three stat tiles right. */
#test-prep-content .test-prep-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 40px;
    align-items: center;
    padding: clamp(32px, 5vw, 60px);
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(19, 75, 195, .45), transparent 55%),
        linear-gradient(150deg, var(--navy), var(--navy-deep));
    box-shadow: 0 24px 60px rgba(10, 20, 43, .18);
}
#test-prep-content .test-prep-hero__copy { padding: 0; }
#test-prep-content .test-prep-hero__copy .test-prep-eyebrow { color: #9DB8F5; }
#test-prep-content .test-prep-hero__copy h1 { color: #fff; }
#test-prep-content .test-prep-lead { max-width: 56ch; color: #DCE4F5; font-size: 17.5px; }
#test-prep-content .test-prep-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
#test-prep-content .test-prep-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .16s ease;
}
#test-prep-content .test-prep-actions a:hover { background: rgba(255, 255, 255, .12); }
#test-prep-content .test-prep-actions a:first-child { border-color: var(--blue); background: var(--blue); }
#test-prep-content .test-prep-actions a:first-child:hover { background: var(--blue-dark); }
#test-prep-content .test-prep-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; border: 0; }
#test-prep-content .test-prep-meta span {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #E6ECF8;
    font-size: 13.5px;
    line-height: 1.3;
}
#test-prep-content .test-prep-meta strong { color: #fff; font-weight: 700; }
#test-prep-content .test-prep-hero__facts { display: grid; gap: 12px; padding: 0; background: none; }
#test-prep-content .test-prep-fact {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
}
#test-prep-content .test-prep-fact__number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: rgba(157, 184, 245, .18);
    color: #C9D8FA;
    font-size: 14px;
    font-weight: 800;
}
#test-prep-content .test-prep-fact strong { display: block; margin: 0 0 2px; color: #fff; font-size: 24px; font-weight: 800; line-height: 1.2; }
#test-prep-content .test-prep-fact > span > span { display: block; color: #CBD5EA; font-size: 14.5px; line-height: 1.5; }

/* Section heads */
#test-prep-content :is(.test-prep-section, .test-prep-deep-dive) { padding-top: clamp(56px, 7vw, 88px); }
#test-prep-content :is(.test-prep-section__head, .test-prep-deep-dive__head) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 32px;
}
#test-prep-content :is(.test-prep-section__head, .test-prep-deep-dive__head) p { margin: 0; }

/* The test at a glance: four cards across. */
#test-prep-content .test-prep-format { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
#test-prep-content .test-prep-format__item {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(14, 28, 60, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
#test-prep-content .test-prep-format__item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14, 28, 60, .08); }
#test-prep-content .test-prep-format__item > div { display: flex; flex: 1; flex-direction: column; }
#test-prep-content .test-prep-format__item p { font-size: 15.5px; line-height: 1.65; }
#test-prep-content .test-prep-format__index {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}
#test-prep-content .test-prep-format__detail {
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--blue-soft);
    color: #1E3A7A;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

/* Inside each section: one card per skill. */
#test-prep-content .test-prep-skill-list { display: grid; gap: 24px; }
#test-prep-content .test-prep-skill { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
#test-prep-content .test-prep-skill__title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 6px 40px;
    align-items: center;
    padding: 26px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}
#test-prep-content .test-prep-skill__number {
    grid-column: 1;
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
}
#test-prep-content .test-prep-skill__title h3 { grid-column: 1; margin: 0; font-size: 26px; font-weight: 800; }
#test-prep-content .test-prep-skill__title p { grid-column: 2; grid-row: 1 / 3; margin: 0; color: var(--copy); }
#test-prep-content .test-prep-skill__body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 32px 32px; }
#test-prep-content .test-prep-skill__block p { font-size: 16px; }
#test-prep-content .test-prep-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#test-prep-content .test-prep-chip-list li {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
}
#test-prep-content .test-prep-assessment {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #C9D6F6;
    border-radius: 12px;
    background: var(--blue-soft);
    color: #1E3A7A;
    font-size: 15.5px;
    line-height: 1.65;
}
#test-prep-content .test-prep-assessment strong { color: var(--ink); }

/* How we prepare: intro stays in view, steps run as a timeline. */
#test-prep-content .test-prep-support {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.5fr);
    gap: 64px;
    align-items: start;
}
#test-prep-content .test-prep-support > * { grid-area: auto; }
#test-prep-content .test-prep-support__intro {
    position: sticky;
    top: calc(var(--header-h) + 88px);
    padding: 0;
    border-radius: 0;
    background: none;
}
#test-prep-content .test-prep-support__intro h2 { margin: 0 0 14px; }
#test-prep-content .test-prep-support__list { display: grid; grid-template-columns: 1fr; gap: 0; }
#test-prep-content .test-prep-support__item {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 20px;
    padding: 0 0 30px;
    border: 0;
    border-radius: 0;
    background: none;
}
#test-prep-content .test-prep-support__item::before {
    position: absolute;
    top: 52px;
    bottom: 4px;
    left: 23px;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
    content: "";
}
#test-prep-content .test-prep-support__item:last-child { padding-bottom: 0; }
#test-prep-content .test-prep-support__item:last-child::before { display: none; }
#test-prep-content .test-prep-support__item > span {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
#test-prep-content .test-prep-support__item h3 { grid-column: 2; margin: 11px 0 6px; }
#test-prep-content .test-prep-support__item p { grid-column: 2; font-size: 15.5px; }
#test-prep-content .test-prep-note {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 40px;
    padding: 16px 18px 16px 52px;
    position: relative;
    border: 1px solid #C9D6F6;
    border-radius: 12px;
    background: var(--blue-soft);
    color: #1E3A7A;
    font-size: 15.5px;
    line-height: 1.65;
}
#test-prep-content .test-prep-note::before {
    position: absolute;
    top: 17px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    content: "i";
}
#test-prep-content .test-prep-note > strong { color: var(--ink); }
#test-prep-content .test-prep-note a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Enquiry form + map */
#test-prep-content .test-prep-contact { padding: clamp(48px, 6vw, 80px) 24px; background: var(--soft); }
#test-prep-content .test-prep-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(14, 28, 60, .08);
}
#test-prep-content .test-prep-contact__form { padding: clamp(28px, 4vw, 44px); }
#test-prep-content .test-prep-contact__intro { margin-top: 12px; }
#test-prep-content .test-prep-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
#test-prep-content .test-prep-field--full { grid-column: 1 / -1; }
#test-prep-content .test-prep-field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
#test-prep-content .test-prep-form :is(input, select, textarea) {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #A9B5CC;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}
#test-prep-content .test-prep-form :is(input, select, textarea):focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(19, 75, 195, .18); }
#test-prep-content .test-prep-form textarea { min-height: 120px; resize: vertical; }
#test-prep-content .test-prep-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}
#test-prep-content .test-prep-submit:hover { background: var(--blue-dark); }
#test-prep-content .test-prep-contact__direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 15px;
}
#test-prep-content .test-prep-contact__direct a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
#test-prep-content .test-prep-contact__direct a:hover { border-color: var(--blue); background: var(--blue-soft); }
#test-prep-content .test-prep-map { display: flex; flex-direction: column; background: var(--soft); }
#test-prep-content .test-prep-map iframe { display: block; flex: 1; width: 100%; min-height: 360px; border: 0; }
#test-prep-content .test-prep-map__card { padding: 28px; background: linear-gradient(150deg, var(--navy), var(--blue-dark)); color: #fff; }
#test-prep-content .test-prep-map__card span { display: block; color: #BFD0F8; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#test-prep-content .test-prep-map__card strong { display: block; margin: 8px 0; color: #fff; font-size: 22px; }
#test-prep-content .test-prep-map__card p { color: #DCE4F5; }
#test-prep-content .test-prep-map__card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}
#test-prep-content .test-prep-map__card a:hover { background: var(--blue-soft); }

@media (max-width: 1100px) {
    #test-prep-content .test-prep-format { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    #test-prep-content :is(.test-prep-hero, .test-prep-support, .test-prep-contact__inner) { grid-template-columns: 1fr; }
    #test-prep-content .test-prep-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #test-prep-content .test-prep-fact { grid-template-columns: 1fr; gap: 12px; }
    #test-prep-content .test-prep-support__intro { position: static; }
    #test-prep-content :is(.test-prep-section__head, .test-prep-deep-dive__head) { grid-template-columns: 1fr; gap: 12px; }
    #test-prep-content .test-prep-skill__title { grid-template-columns: 1fr; }
    #test-prep-content .test-prep-skill__title p { grid-column: 1; grid-row: auto; margin-top: 6px; }
    #test-prep-content .test-prep-map iframe { flex: auto; height: 320px; min-height: 0; }
}
@media (max-width: 700px) {
    #test-prep-content .test-prep-article { padding: 20px 16px 48px; }
    #test-prep-content .test-prep-hero { padding: 28px 22px; border-radius: 18px; }
    #test-prep-content .test-prep-hero__facts { grid-template-columns: 1fr; }
    #test-prep-content .test-prep-fact { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
    #test-prep-content .test-prep-fact strong { font-size: 21px; }
    #test-prep-content .test-prep-actions { flex-direction: column; }
    #test-prep-content .test-prep-actions a { width: 100%; }
    #test-prep-content :is(.test-prep-section, .test-prep-deep-dive) { padding-top: 48px; }
    #test-prep-content :is(.test-prep-format, .test-prep-skill__body, .test-prep-form) { grid-template-columns: 1fr; gap: 16px; }
    #test-prep-content .test-prep-format__item { padding: 22px; }
    #test-prep-content .test-prep-skill__title { padding: 22px; }
    #test-prep-content .test-prep-skill__title h3 { font-size: 23px; }
    #test-prep-content .test-prep-skill__body { gap: 24px; padding: 22px; }
    #test-prep-content .test-prep-contact { padding: 40px 16px; }
    #test-prep-content .test-prep-contact__inner { border-radius: 18px; }
    #test-prep-content .test-prep-contact__form { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    #test-prep-content .test-prep-format__item { transition: none; }
    #test-prep-content .test-prep-format__item:hover { transform: none; }
}
