/* ============================================================
   AARSH INSTITUTE
   CLASS 8 TEST SERIES
   FINAL CSS
============================================================ */

.test8-page {
    --test-bg: #050505;
    --test-bg-soft: #0b0b0b;
    --test-card: #101010;
    --test-card-soft: #151515;
    --test-yellow: #fdbe00;
    --test-red: #7a0c0f;
    --test-white: #ffffff;
    --test-text: #d2d2d2;
    --test-muted: #929292;
    --test-border: rgba(255, 255, 255, 0.1);

    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--test-bg);
    color: var(--test-white);
}

.test8-page *,
.test8-page *::before,
.test8-page *::after {
    box-sizing: border-box;
}

.test8-page img {
    display: block;
    max-width: 100%;
}

.test8-page button,
.test8-page input,
.test8-page select,
.test8-page textarea {
    font: inherit;
}

.test8-page button {
    border: 0;
}

.test8-page .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.test8-page .container-small {
    width: min(850px, calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   CUSTOM CURSOR
============================================================ */

.test8-page .light-cursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 34px;
    height: 34px;

    border: 1px solid var(--test-yellow);
    border-radius: 50%;

    pointer-events: none;
    z-index: 999999;

    opacity: 0;

    transform: translate3d(-100px, -100px, 0)
               translate(-50%, -50%);

    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;

    will-change: transform;
}

.test8-page .light-cursor::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 5px;
    height: 5px;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    background: var(--test-yellow);
}

.test8-page .light-cursor.cursor-active {
    width: 50px;
    height: 50px;

    background: rgba(253, 190, 0, 0.08);
}


/* ============================================================
   HERO
============================================================ */

.test8-hero {
    position: relative;
    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;
}

.test8-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -4;
}

.test8-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.test8-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -3;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.86) 43%,
            rgba(0, 0, 0, 0.62) 100%
        );
}

.test8-hero .hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;

    opacity: 0.14;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 1px,
            transparent 1px
        );

    background-size: 52px 52px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 95%
        );
}

.test8-hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    bottom: -230px;

    border-radius: 50%;

    background: rgba(122, 12, 15, 0.22);

    filter: blur(100px);

    z-index: -1;
}

.test8-hero .hero-content {
    width: min(720px, 100%);
    padding: 130px 0 100px;
}

.test8-hero .hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 9px 15px;
    margin-bottom: 22px;

    border: 1px solid rgba(253, 190, 0, 0.35);
    border-radius: 100px;

    background: rgba(253, 190, 0, 0.08);

    color: var(--test-yellow);

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
}

.test8-hero .hero-title {
    margin: 0;

    color: var(--test-white);

    font-size: clamp(52px, 7vw, 92px);
    line-height: 0.94;
    font-weight: 900;
    letter-spacing: -4px;
}

.test8-hero .hero-title span {
    display: block;

    margin-top: 8px;

    color: var(--test-yellow);
}

.test8-hero .hero-subtitle {
    max-width: 680px;

    margin: 28px 0 0;

    color: #c8c8c8;

    font-size: 17px;
    line-height: 1.8;
}


/* ============================================================
   BUTTONS
============================================================ */

.test8-page .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 34px;
}

.test8-page .primary-btn,
.test8-page .secondary-btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 25px;

    border-radius: 9px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.test8-page .primary-btn {
    background: var(--test-yellow);
    color: #080808;
}

.test8-page .primary-btn:hover {
    transform: translateY(-3px);
    background: #ffd13d;
}

.test8-page .secondary-btn {
    border: 1px solid rgba(255,255,255,0.22);

    background: rgba(255,255,255,0.04);
    color: var(--test-white);
}

.test8-page .secondary-btn:hover {
    transform: translateY(-3px);

    border-color: var(--test-yellow);

    color: var(--test-yellow);
}


/* ============================================================
   GENERAL SECTIONS
============================================================ */

.test8-page .section-padding {
    padding: 100px 0;
}

.test8-page .dark-section {
    position: relative;

    background: #080808;

    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.test8-page .section-heading {
    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}

.test8-page .mini-title {
    display: block;

    margin-bottom: 12px;

    color: var(--test-yellow);

    font-size: 12px;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: 2.5px;
}

.test8-page .section-heading h2 {
    margin: 0;

    color: var(--test-white);

    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

.test8-page .section-heading h2 span {
    color: var(--test-yellow);
}

.test8-page .section-heading p {
    max-width: 680px;

    margin: 18px auto 0;

    color: var(--test-muted);

    font-size: 16px;
    line-height: 1.75;
}


/* ============================================================
   DATABASE TEST SERIES DOWNLOAD SECTION
============================================================ */

.test-download-section {
    position: relative;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(253,190,0,0.07),
            transparent 32%
        ),
        var(--test-bg);
}

.test-material-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    align-items: stretch;
}


/* ============================================================
   DATABASE TEST CARD
============================================================ */

.test-material-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--test-border);
    border-radius: 22px;

    background: var(--test-card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.test-material-card:hover {
    transform: translateY(-7px);

    border-color: rgba(253,190,0,0.35);

    box-shadow:
        0 24px 60px rgba(0,0,0,0.32);
}


/* ============================================================
   COVER IMAGE
============================================================ */

.test-cover {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #181818;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.test-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}

.test-material-card:hover .test-cover img {
    transform: scale(1.045);
}

.test-cover::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.3),
            transparent 45%
        );
}


/* ============================================================
   COVER PLACEHOLDER
============================================================ */

.test-cover-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 25px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(253,190,0,0.07),
            transparent 60%
        ),
        #141414;

    color: #b5b5b5;
}

.test-cover-icon {
    color: var(--test-yellow);

    font-size: 38px;
    line-height: 1;
}

.test-cover-placeholder span {
    font-size: 14px;
    font-weight: 800;
}


/* ============================================================
   TEST CARD CONTENT
============================================================ */

.test-card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 25px;
}

.test-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 17px;
}

.test-tag {
    display: inline-flex;
    align-items: center;

    min-height: 29px;

    padding: 6px 11px;

    border: 1px solid rgba(253,190,0,0.2);
    border-radius: 100px;

    background: rgba(253,190,0,0.07);

    color: var(--test-yellow);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.test-card-title {
    margin: 0;

    color: var(--test-white);

    font-size: 23px;
    line-height: 1.25;
    font-weight: 850;
}

.test-card-description {
    margin: 13px 0 22px;

    color: #9f9f9f;

    font-size: 14px;
    line-height: 1.7;
}

.test-download-btn {
    width: 100%;
    min-height: 51px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: auto;
    padding: 12px 18px;

    border-radius: 10px;

    background: var(--test-yellow);

    color: #080808;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.test-download-btn:hover {
    transform: translateY(-2px);
    background: #ffd139;
}

.test-download-btn span {
    font-size: 19px;
    line-height: 1;
}


/* ============================================================
   EMPTY STATE
============================================================ */

.test-empty-state {
    width: min(620px, 100%);

    margin: 0 auto;

    padding: 65px 35px;

    border: 1px solid var(--test-border);
    border-radius: 22px;

    background: var(--test-card);

    text-align: center;
}

.test-empty-icon {
    margin-bottom: 20px;

    color: var(--test-yellow);

    font-size: 45px;
}

.test-empty-state h3 {
    margin: 0 0 12px;

    color: var(--test-white);

    font-size: 26px;
    font-weight: 800;
}

.test-empty-state p {
    margin: 0;

    color: var(--test-muted);

    font-size: 15px;
    line-height: 1.7;
}


/* ============================================================
   STATS
============================================================ */

.stats-section {
    padding: 35px 0;

    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);

    background: #090909;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    background: rgba(255,255,255,0.08);
}

.stat-card {
    min-width: 0;

    padding: 35px 20px;

    background: #090909;

    text-align: center;
}

.stat-card h3 {
    margin: 0 0 7px;

    color: var(--test-yellow);

    font-size: 39px;
    line-height: 1;
    font-weight: 900;
}

.stat-card p {
    margin: 0;

    color: #a4a4a4;

    font-size: 13px;
    font-weight: 600;
}


/* ============================================================
   SUBJECT CARDS
============================================================ */

.subject-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}

.subject-card {
    position: relative;

    min-width: 0;

    padding: 30px 25px;

    overflow: hidden;

    border: 1px solid var(--test-border);
    border-radius: 17px;

    background: var(--test-card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.subject-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 45px;
    height: 3px;

    background: var(--test-yellow);

    transition: width 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-6px);

    border-color: rgba(253,190,0,0.3);
}

.subject-card:hover::before {
    width: 100%;
}

.subject-card h3 {
    margin: 0 0 12px;

    color: var(--test-white);

    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.subject-card p {
    margin: 0;

    color: var(--test-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* ============================================================
   FEATURES
============================================================ */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.feature-card {
    min-width: 0;

    padding: 35px 30px;

    border: 1px solid var(--test-border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #131313,
            #0c0c0c
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);

    border-color: rgba(253,190,0,0.3);
}

.feature-card h3 {
    margin: 0 0 12px;

    color: var(--test-white);

    font-size: 21px;
    font-weight: 800;
}

.feature-card p {
    margin: 0;

    color: var(--test-muted);

    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   FAQ
============================================================ */

.faq-wrapper {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.faq-item {
    padding: 23px 25px;

    border: 1px solid var(--test-border);
    border-radius: 14px;

    background: var(--test-card);

    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
}

.faq-item:hover {
    transform: translateX(4px);

    border-color: rgba(253,190,0,0.3);
}

.faq-question h3 {
    margin: 0;

    color: var(--test-white);

    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}


/* ============================================================
   FINAL CTA
============================================================ */

.final-cta {
    position: relative;

    padding: 110px 0;

    overflow: hidden;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(253,190,0,0.09),
            transparent 45%
        ),
        #050505;
}

.final-cta h2 {
    margin: 0;

    color: var(--test-white);

    font-size: clamp(38px, 6vw, 65px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
}

.final-cta h2 span {
    display: block;

    color: var(--test-yellow);
}

.final-cta p {
    max-width: 650px;

    margin: 20px auto 0;

    color: var(--test-muted);

    font-size: 16px;
    line-height: 1.7;
}

.final-cta .cta-buttons {
    justify-content: center;
}


/* ============================================================
   MODAL
============================================================ */

.test-modal {
    position: fixed;
    inset: 0;

    z-index: 999990;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.test-modal.active {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}

.test-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.84);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.test-modal-box {
    position: relative;
    z-index: 2;

    width: min(560px, 100%);
    max-height: calc(100vh - 50px);

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 38px;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;

    background: #0d0d0d;

    box-shadow:
        0 30px 90px rgba(0,0,0,0.65);

    transform: translateY(20px) scale(0.98);

    transition: transform 0.25s ease;
}

.test-modal.active .test-modal-box {
    transform: translateY(0) scale(1);
}

.test-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;

    background: #161616;

    color: var(--test-white);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.test-modal-close:hover {
    background: var(--test-yellow);
    color: #000;
}

.test-modal-heading {
    padding-right: 45px;
    margin-bottom: 28px;
}

.test-modal-heading .mini-title {
    margin-bottom: 8px;
}

.test-modal-heading h2 {
    margin: 0;

    color: var(--test-white);

    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.test-modal-heading p {
    margin: 10px 0 0;

    color: var(--test-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   MODAL FORM
============================================================ */

.test-form-group {
    margin-bottom: 18px;
}

.test-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #e6e6e6;

    font-size: 13px;
    font-weight: 700;
}

.test-form-group input,
.test-form-group select {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    outline: none;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;

    background: #151515;

    color: var(--test-white);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.test-form-group input::placeholder {
    color: #6f6f6f;
}

.test-form-group input:focus,
.test-form-group select:focus {
    border-color: var(--test-yellow);
    background: #181818;
}

.test-form-group select {
    appearance: auto;
}

.test-form-group select option {
    background: #151515;
    color: var(--test-white);
}


/* ============================================================
   CONSENT
============================================================ */

.test-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 4px 0 18px;

    color: #a7a7a7;

    font-size: 12px;
    line-height: 1.6;

    cursor: pointer;
}

.test-consent input {
    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    margin-top: 2px;

    accent-color: var(--test-yellow);
}


/* ============================================================
   FORM MESSAGE
============================================================ */

.test-form-message {
    display: none;

    margin-bottom: 15px;
    padding: 12px 14px;

    border-radius: 9px;

    font-size: 12px;
    line-height: 1.55;
}

.test-form-message.error {
    display: block;

    border: 1px solid rgba(255, 73, 73, 0.3);

    background: rgba(122,12,15,0.2);

    color: #ff9a9a;
}

.test-form-message.success {
    display: block;

    border: 1px solid rgba(73, 220, 126, 0.25);

    background: rgba(31, 130, 67, 0.15);

    color: #8ce6ad;
}


/* ============================================================
   SUBMIT BUTTON
============================================================ */

.test-submit-btn {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 18px;

    border-radius: 10px;

    background: var(--test-yellow);

    color: #080808;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.test-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #ffd13c;
}

.test-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* ============================================================
   BODY MODAL LOCK
============================================================ */

body.test-modal-open {
    overflow: hidden;
}


/* ============================================================
   REVEAL ANIMATION
============================================================ */

.test8-page .reveal-up {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.test8-page .reveal-up.active {
    opacity: 1;

    transform: translateY(0);
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1100px) {

    .test-material-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .subject-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   TABLET / MOBILE
============================================================ */

@media (max-width: 800px) {

    .test8-page .container,
    .test8-page .container-small {
        width: min(100% - 30px, 1180px);
    }

    .test8-hero {
        min-height: 590px;
    }

    .test8-hero .hero-content {
        padding: 105px 0 80px;
    }

    .test8-hero .hero-title {
        font-size: clamp(46px, 12vw, 70px);
        letter-spacing: -3px;
    }

    .test8-hero .hero-subtitle {
        font-size: 15px;
    }

    .test8-page .section-padding {
        padding: 75px 0;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        padding: 85px 0;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .test8-page .container,
    .test8-page .container-small {
        width: calc(100% - 28px);
    }


    /* --------------------------------------------------------
       CUSTOM CURSOR OFF
    -------------------------------------------------------- */

    .test8-page .light-cursor {
        display: none !important;
    }


    /* --------------------------------------------------------
       HERO
    -------------------------------------------------------- */

    .test8-hero {
        min-height: 560px;
    }

    .test8-hero .hero-overlay {
        background:
            linear-gradient(
                to bottom,
                rgba(0,0,0,0.72) 0%,
                rgba(0,0,0,0.9) 65%,
                #050505 100%
            );
    }

    .test8-hero .hero-content {
        padding: 95px 0 65px;

        text-align: center;
    }

    .test8-hero .hero-badge {
        margin-bottom: 18px;

        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .test8-hero .hero-title {
        font-size: clamp(43px, 14vw, 60px);
        line-height: 0.98;
        letter-spacing: -2.5px;
    }

    .test8-hero .hero-subtitle {
        margin-top: 20px;

        font-size: 14px;
        line-height: 1.7;
    }


    /* --------------------------------------------------------
       BUTTONS
    -------------------------------------------------------- */

    .test8-page .hero-buttons {
        flex-direction: column;

        margin-top: 28px;
    }

    .test8-page .primary-btn,
    .test8-page .secondary-btn {
        width: 100%;
    }


    /* --------------------------------------------------------
       SECTIONS
    -------------------------------------------------------- */

    .test8-page .section-padding {
        padding: 65px 0;
    }

    .test8-page .section-heading {
        margin-bottom: 38px;
    }

    .test8-page .section-heading h2 {
        font-size: 35px;
        letter-spacing: -1.5px;
    }

    .test8-page .section-heading p {
        font-size: 14px;
    }


    /* --------------------------------------------------------
       TEST CARDS
    -------------------------------------------------------- */

    .test-material-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .test-material-card {
        border-radius: 17px;
    }

    .test-cover {
        aspect-ratio: 16 / 10;
    }

    .test-card-content {
        padding: 20px;
    }

    .test-card-title {
        font-size: 21px;
    }


    /* --------------------------------------------------------
       STATS
    -------------------------------------------------------- */

    .stats-section {
        padding: 20px 0;
    }

    .stat-card {
        padding: 27px 10px;
    }

    .stat-card h3 {
        font-size: 31px;
    }

    .stat-card p {
        font-size: 11px;
    }


    /* --------------------------------------------------------
       SUBJECTS
    -------------------------------------------------------- */

    .subject-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .subject-card {
        padding: 25px 21px;
    }


    /* --------------------------------------------------------
       FEATURES
    -------------------------------------------------------- */

    .feature-grid {
        gap: 14px;
    }

    .feature-card {
        padding: 27px 22px;
    }


    /* --------------------------------------------------------
       FAQ
    -------------------------------------------------------- */

    .faq-item {
        padding: 19px;
    }

    .faq-question h3 {
        font-size: 14px;
    }


    /* --------------------------------------------------------
       CTA
    -------------------------------------------------------- */

    .final-cta {
        padding: 70px 0;
    }

    .final-cta h2 {
        font-size: 38px;
    }

    .final-cta p {
        font-size: 14px;
    }


    /* --------------------------------------------------------
       MODAL
    -------------------------------------------------------- */

    .test-modal {
        align-items: flex-end;

        padding: 0;
    }

    .test-modal-box {
        width: 100%;
        max-height: 92vh;

        padding:
            30px
            18px
            max(24px, env(safe-area-inset-bottom));

        border-radius: 22px 22px 0 0;
        border-bottom: 0;

        transform: translateY(100%);
    }

    .test-modal.active .test-modal-box {
        transform: translateY(0);
    }

    .test-modal-heading {
        padding-right: 42px;
    }

    .test-modal-heading h2 {
        font-size: 25px;
    }

    .test-form-group {
        margin-bottom: 15px;
    }

    .test-form-group input,
    .test-form-group select {
        height: 48px;

        font-size: 16px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .test8-hero .hero-title {
        font-size: 40px;
    }

    .test8-page .section-heading h2 {
        font-size: 31px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* ============================================================
   TOUCH DEVICES
   ABSOLUTELY NO CUSTOM CURSOR
============================================================ */

@media (hover: none),
       (pointer: coarse) {

    .test8-page .light-cursor {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .test8-page *,
    .test8-page *::before,
    .test8-page *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .test8-page .reveal-up {
        opacity: 1;
        transform: none;
    }

}