/* =========================================================
   PREMIUM MOCK TESTS
   ========================================================= */

.mock-tests-premium {
    position: relative;
    padding: 85px 0 95px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 5%, rgba(226, 247, 237, 0.75), transparent 30%),
        #ffffff;
}

/* subtle Japanese background decoration */
.mock-tests-premium::before {
    content: "桜";
    position: absolute;
    right: 5%;
    top: 25px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(8, 148, 71, 0.025);
    pointer-events: none;
}

.mock-tests-premium .container {
    position: relative;
    z-index: 2;
}

/* ---------- Heading ---------- */

.mock-tests-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.mock-tests-eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.8px;
    color: #079447;
    text-transform: uppercase;
}

.mock-tests-title {
    margin: 0;
    color: #10251c;
    font-size: clamp(34px, 3.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    font-weight: 900;
}

.mock-tests-title span {
    color: #079447;
}

.mock-tests-subtitle {
    margin: 10px 0 0;
    color: #687970;
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- View all ---------- */

.mock-tests-view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1.5px solid #079447;
    border-radius: 12px;
    background: #ffffff;
    color: #078442;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.mock-tests-view-all:hover {
    color: #ffffff;
    background: #079447;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 148, 71, .18);
}

/* ---------- Cards grid ---------- */

.mock-tests-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

/* ---------- Card ---------- */

.mock-test-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e3ebe7;
    border-radius: 20px;
    box-shadow:
        0 8px 30px rgba(19, 61, 42, .07),
        0 2px 5px rgba(19, 61, 42, .03);
    text-decoration: none;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.mock-test-card:hover {
    transform: translateY(-8px);
    border-color: rgba(7, 148, 71, .25);
    box-shadow:
        0 22px 48px rgba(19, 61, 42, .13),
        0 5px 12px rgba(19, 61, 42, .05);
}

/* ---------- Image ---------- */

.mock-test-image {
    position: relative;
    height: 145px;
    overflow: hidden;
    background: #edf7f1;
}

.mock-test-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.mock-test-card:hover .mock-test-image img {
    transform: scale(1.06);
}

/* Image gradient */

.mock-test-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.02),
        rgba(0,0,0,0.12)
    );
    pointer-events: none;
}

/* ---------- Badge ---------- */

.mock-test-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ef4774;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .3px;
    box-shadow: 0 5px 14px rgba(239, 71, 116, .25);
}

/* ---------- Card body ---------- */

.mock-test-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 17px 18px 18px;
}

/* Level row */

.mock-test-level-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mock-test-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 22px;
}

.mock-test-icon.n5 {
    background: #ffe8f0;
}

.mock-test-icon.n4 {
    background: #e8f6ed;
}

.mock-test-icon.n3 {
    background: #e5f1ff;
}

.mock-test-icon.n2 {
    background: #fff0dc;
}

.mock-test-icon.n1 {
    background: #eee7ff;
}

.mock-test-name {
    margin: 0;
    color: #10251c;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
}

.mock-test-number {
    margin-top: 3px;
    color: #263b32;
    font-size: 14px;
    font-weight: 750;
}

/* ---------- Details ---------- */

.mock-test-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.mock-test-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64766e;
    font-size: 12px;
    line-height: 1.35;
}

.mock-test-detail-icon {
    width: 18px;
    flex-shrink: 0;
    color: #079447;
    font-size: 13px;
    text-align: center;
}

/* ---------- CTA ---------- */

.mock-test-button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, #079447, #078640);
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 7px 16px rgba(7, 148, 71, .16);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.mock-test-card:hover .mock-test-button {
    box-shadow: 0 10px 22px rgba(7, 148, 71, .24);
}

/* ---------- Responsive ---------- */

@media (max-width: 1150px) {

    .mock-tests-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {

    .mock-tests-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mock-tests-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mock-tests-view-all {
        min-height: 46px;
    }

}

@media (max-width: 560px) {

    .mock-tests-premium {
        padding: 60px 0 70px;
    }

    .mock-tests-title {
        font-size: 34px;
    }

    .mock-tests-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mock-test-image {
        height: 190px;
    }

}