/* =========================================================
   Test Preparation page  (public/frontend/css/testprep.css)
   Prefix: testprep-
   ========================================================= */

.testprep-hero,
.testprep-page {
    --tp-navy: #0f2a5c;
    --tp-blue: #1d5fd0;
    --tp-gold: #c98414;
    --tp-gold-dark: #b3730f;
    --tp-soft: #eef5fd;
    --tp-cream: #fff8ec;
    --tp-border: #e3e9f2;
    --tp-text: #4a5568;
    --tp-radius: 14px;
}

/* ---------- Hero ---------- */
.testprep-hero {
    padding: 0;
}

.testprep-hero-container {
    background-image: url('../img/test-prep-banner.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    min-height: 360px;
    display: flex;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.testprep-hero-content {
    max-width: 540px;
}

.testprep-hero-title {
    margin: 0 0 14px;
    color: var(--tp-navy);
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.12;
    font-weight: 800;
}

.testprep-hero-title span {
    display: block;
}

.testprep-hero-title em {
    font-style: normal;
    color: var(--tp-gold);
}

.testprep-hero-text {
    margin: 0 0 24px;
    max-width: 460px;
    color: var(--tp-text);
    font-size: 16px;
    line-height: 1.6;
}

.testprep-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.testprep-hero-points li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 96px;
    text-align: center;
    color: var(--tp-navy);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.testprep-hero-points li span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: var(--tp-blue);
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(15, 42, 92, 0.12);
}

/* ---------- Page wrapper ---------- */
.testprep-page {
    padding: 28px 0 0;
}

.testprep-section {
    padding: 0 0 36px;
}

.testprep-section--last {
    padding-bottom: 56px;
}

/* No sideways scroll anywhere on the page */
.testprep-page,
.testprep-panel,
.testprep-block {
    max-width: 100%;
    overflow-x: clip;
}

.testprep-page p,
.testprep-page h2,
.testprep-page h3,
.testprep-page h4,
.testprep-page dd {
    overflow-wrap: anywhere;
}

/* ---------- Test tabs ---------- */
.testprep-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 6px 4px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.testprep-tab {
    position: relative;
    flex: 1 0 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 78px;
    padding: 12px 8px;
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    background: #fff;
    color: var(--tp-navy);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    scroll-snap-align: center;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.testprep-tab i {
    font-size: 22px;
    color: var(--tp-blue);
}

.testprep-tab:hover {
    border-color: var(--tp-gold);
}

.testprep-tab:focus-visible,
.testprep-subnav button:focus-visible,
.testprep-faq-question:focus-visible,
.testprep-btn:focus-visible {
    outline: 3px solid rgba(29, 95, 208, 0.45);
    outline-offset: 2px;
}

.testprep-tab.active {
    border-color: var(--tp-gold);
    background: var(--tp-cream);
    box-shadow: 0 6px 18px rgba(201, 132, 20, 0.18);
}

.testprep-tab.active i {
    color: var(--tp-gold);
}

.testprep-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: var(--tp-cream);
    border-right: 1px solid var(--tp-gold);
    border-bottom: 1px solid var(--tp-gold);
    transform: translateX(-50%) rotate(45deg);
}

/* ---------- Panel ---------- */
.testprep-panel {
    padding: 28px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 42, 92, 0.06);
}

.testprep-panel[hidden] {
    display: none;
}

/* Banner */
.testprep-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.testprep-banner-text h2 {
    margin: 0;
    color: var(--tp-navy);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
}

.testprep-banner-text h3 {
    margin: 6px 0 10px;
    color: var(--tp-navy);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 700;
}

.testprep-banner-text p {
    margin: 0;
    max-width: 760px;
    color: var(--tp-text);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Official exam logo card */
.testprep-banner-logo {
    flex: 0 0 280px;
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 16px 24px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 42, 92, 0.06);
}

.testprep-banner-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Inner tabs */
.testprep-subnav {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    background: #fff;
    overflow-x: auto;
    scrollbar-width: none;
}

.testprep-subnav::-webkit-scrollbar {
    display: none;
}

.testprep-subnav button {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--tp-navy);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.testprep-subnav button i {
    font-size: 18px;
    color: var(--tp-blue);
}

.testprep-subnav button.active {
    color: var(--tp-gold-dark);
    border-bottom-color: var(--tp-gold);
}

.testprep-subnav button.active i {
    color: var(--tp-gold);
}

/* Blocks */
.testprep-block {
    margin-bottom: 26px;
    scroll-margin-top: 90px;
}

.testprep-block:last-child {
    margin-bottom: 0;
}

.testprep-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--tp-navy);
    font-size: 19px;
    font-weight: 700;
}

.testprep-block-title i {
    color: var(--tp-gold);
    font-size: 22px;
}

.testprep-block-title--plain {
    font-size: 22px;
    font-weight: 800;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--tp-gold);
    width: fit-content;
}

/* Info cards */
.testprep-info-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.testprep-info {
    display: flex;
    gap: 14px;
    flex: 1;
    padding: 18px;
    border-radius: var(--tp-radius);
    background: var(--tp-cream);
    scroll-margin-top: 90px;
}

.testprep-info-ic {
    flex: 0 0 auto;
    color: var(--tp-gold);
    font-size: 24px;
}

.testprep-info h4 {
    margin: 0 0 6px;
    color: var(--tp-navy);
    font-size: 17px;
    font-weight: 700;
}

.testprep-info p {
    margin: 0;
    color: var(--tp-text);
    font-size: 14px;
    line-height: 1.6;
}

/* Quick facts */
.testprep-facts {
    height: 100%;
    padding: 18px;
    border-radius: var(--tp-radius);
    background: var(--tp-cream);
}

.testprep-facts h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--tp-navy);
    font-size: 17px;
    font-weight: 700;
}

.testprep-facts h4 i {
    color: var(--tp-gold);
    font-size: 22px;
}

.testprep-facts dl {
    margin: 0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.testprep-fact {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--tp-border);
}

.testprep-fact:last-child {
    border-bottom: 0;
}

.testprep-fact dt {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tp-navy);
    font-size: 13.5px;
    font-weight: 700;
}

.testprep-fact dt i {
    width: 18px;
    color: var(--tp-gold);
    text-align: center;
}

.testprep-fact dd {
    margin: 0;
    color: var(--tp-text);
    font-size: 13.5px;
    line-height: 1.45;
}

/* Coaching cards */
.testprep-coach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.testprep-coach-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    background: #fff;
    text-align: center;
}

.testprep-coach-card span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--tp-soft);
    color: var(--tp-blue);
    font-size: 20px;
}

.testprep-coach-card strong {
    color: var(--tp-navy);
    font-size: 15px;
}

.testprep-coach-card small {
    color: var(--tp-text);
    font-size: 13px;
    line-height: 1.5;
}

/* Button */
.testprep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--tp-gold);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
}

.testprep-btn:hover {
    background: var(--tp-gold-dark);
    color: #fff;
}

/* FAQs */
.testprep-faqs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testprep-faq {
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.testprep-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: var(--tp-navy);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.testprep-faq-question i {
    flex: 0 0 auto;
    font-size: 13px;
    transition: transform 0.2s;
}

.testprep-faq-answer {
    display: none;
    padding: 0 18px 16px;
}

.testprep-faq-answer p {
    margin: 0;
    color: var(--tp-text);
    font-size: 14px;
    line-height: 1.65;
}

/* Lists inside an FAQ answer (e.g. the deadlines FAQ) */
.testprep-faq-answer p + ul {
    margin-top: 10px;
}

.testprep-faq-answer ul {
    margin: 0;
    padding-left: 20px;
    color: var(--tp-text);
    font-size: 14px;
    line-height: 1.65;
}

.testprep-faq-answer li {
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.testprep-faq-answer li:last-child {
    margin-bottom: 0;
}

.testprep-faq-answer li strong {
    color: var(--tp-navy);
}

.testprep-faq.active {
    border-color: var(--tp-gold);
}

.testprep-faq.active .testprep-faq-answer {
    display: block;
}

.testprep-faq.active .testprep-faq-question i {
    transform: rotate(45deg);
}

/* ---------- CTA (image is the container background) ---------- */
.testprep-cta {
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: 40px;
    border-radius: 18px;
    background-color: #e9f2fc;
    background-image:
        linear-gradient(90deg, rgba(233, 242, 252, 0.96) 0%, rgba(233, 242, 252, 0.85) 45%, rgba(233, 242, 252, 0) 75%),
        url('../img/test-prep-cta.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    overflow: hidden;
    margin-top: 20px;
}

.testprep-cta-text {
    max-width: 520px;
}

.testprep-cta-text h2 {
    margin: 0 0 10px;
    color: var(--tp-navy);
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}

.testprep-cta-text h2 em {
    font-style: normal;
    color: var(--tp-gold);
}

.testprep-cta-text p {
    margin: 0 0 20px;
    color: var(--tp-text);
    font-size: 15px;
    line-height: 1.6;
}

/* ===== Official Exam Registration Resources ===== */

.testprep-registration {
    padding: 40px 0;
}

.testprep-registration-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.testprep-registration-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #c98414;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.testprep-registration-title {
    margin: 0 0 12px;
    color: #0f2a5c;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.testprep-registration-title span {
    color: #c98414;
}

.testprep-registration-heading p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.7;
}

.testprep-registration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.testprep-registration-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e3e9f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 42, 92, 0.05);
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.testprep-registration-card:hover {
    transform: translateY(-3px);
    border-color: #c98414;
    box-shadow: 0 8px 22px rgba(15, 42, 92, 0.09);
}

.testprep-registration-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #fff4df;
    color: #c98414;
    font-size: 20px;
}

.testprep-registration-card h3 {
    margin: 0 0 8px;
    color: #0f2a5c;
    font-size: 16px;
    font-weight: 700;
}

.testprep-registration-card p {
    flex: 1;
    margin: 0 0 16px;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6;
}

.testprep-registration-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f2a5c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.testprep-registration-card a:hover {
    color: #c98414;
}

/* ===== Essential Checklist for Indian Test Takers ===== */

.testprep-checklist {
    padding: 40px 0;
}

.testprep-checklist .testprep-section-heading {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.testprep-checklist .testprep-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #c98414;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.testprep-checklist .testprep-section-heading h2 {
    margin: 0 0 14px;
    color: var(--tp-navy);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
}

.testprep-checklist .testprep-section-heading h2 em {
    color: #c98414;
    font-style: normal;
}

.testprep-checklist .testprep-section-heading p {
    margin: 0;
    color: var(--tp-text);
    font-size: 14px;
    line-height: 1.7;
}

.testprep-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.testprep-checklist-card {
    position: relative;
    padding: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
}

.testprep-checklist-card:hover {
    transform: translateY(-4px);
    border-color: #c98414;
    box-shadow: 0 12px 28px rgba(25, 48, 80, 0.08);
}

.testprep-checklist-number {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #c98414;
    font-size: 24px;
    font-weight: 800;
}

.testprep-checklist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    color: #234f85;
    background: #edf3fb;
    border-radius: 12px;
    font-size: 20px;
}

.testprep-checklist-card h3 {
    margin: 0 0 10px;
    color: var(--tp-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.testprep-checklist-card p {
    margin: 0;
    color: var(--tp-text);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 991.98px) {
    .testprep-hero-container {
        min-height: 320px;
        background-position: 70% center;
    }

    .testprep-panel {
        padding: 22px;
    }

    .testprep-banner-logo {
        flex-basis: 200px;
        padding: 14px 18px;
    }

    .testprep-banner-logo img {
        max-height: 70px;
    }

    .testprep-cta {
        padding: 30px;
    }

    .testprep-registration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testprep-checklist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 767.98px) {
    /* Hero: content on top, image underneath, still one container */
    .testprep-hero-container {
        display: block;
        min-height: 0;
        padding-top: 32px;
        background-size: 110% auto;
    }

    .testprep-hero-content {
        max-width: none;
    }

    .testprep-hero-points {
        gap: 16px;
    }

    .testprep-hero-points li {
        width: calc(25% - 12px);
        min-width: 70px;
    }

    .testprep-page {
        padding-top: 20px;
    }

    .testprep-section {
        padding-bottom: 40px;
    }

    .testprep-panel {
        padding: 16px;
        border-radius: 14px;
    }

    .testprep-banner {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 16px;
    }

    .testprep-banner-logo {
        flex-basis: auto;
        min-height: 80px;
        padding: 12px 16px;
    }

    .testprep-banner-logo img {
        max-height: 56px;
    }

    .testprep-subnav button {
        padding: 12px 14px;
    }

    .testprep-fact {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .testprep-coach {
        grid-template-columns: 1fr 1fr;
    }

    /* CTA: text on top, image underneath, same container background */
    .testprep-cta {
        display: block;
        min-height: 0;
        padding: 24px 20px 220px;
        background-image: url('../img/test-prep-cta.png');
        background-size: contain;
        background-position: center bottom;
    }

    .testprep-cta-text {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .testprep-checklist {
        padding: 32px 0;
    }

    .testprep-checklist-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testprep-checklist-card {
        padding: 20px;
    }
}

@media (max-width: 479.98px) {
    .testprep-coach {
        grid-template-columns: 1fr;
    }

    .testprep-tab {
        flex-basis: 86px;
        font-size: 13px;
    }

    .testprep-registration-grid {
        grid-template-columns: 1fr;
    }

    .testprep-registration-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testprep-tab,
    .testprep-btn,
    .testprep-faq-question i,
    .testprep-registration-card,
    .testprep-checklist-card {
        transition: none;
    }
}