/* Approved illustrated variant 2. Loaded on the category directory only, never exam tickets. */
.test2-exam-category-mode .test2-exam-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.test2-exam-category-card--illustrated {
    container-type: inline-size;
    min-width: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d6e6dc;
    background: #fff;
    box-shadow: 0 2px 5px rgb(11 73 27 / 3%);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.test2-exam-category-card--illustrated:hover,
.test2-exam-category-card--illustrated:focus-within {
    border-color: #83ad93;
    box-shadow: 0 8px 24px rgb(11 73 27 / 9%);
}

.test2-exam-category-card--illustrated.test2-exam-category-card--popular {
    border-color: #78ac8b;
    background: #fff;
}

.test2-exam-category-card__art {
    position: relative;
    isolation: isolate;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #fff;
}

.test2-exam-category-card__art::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 2%;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #edf6f0;
}

.test2-exam-category-card__art .test2-exam-category-code {
    position: absolute;
    z-index: 1;
    top: 1rem;
    left: 1.5rem;
    color: #b9d8c6;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.25px #b9d8c6;
    font-size: clamp(4.5rem, 8vw, 7.5rem);
    font-size: clamp(4.5rem, 27cqw, 8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.045em;
}

.test2-exam-category-card__art img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.test2-exam-category-card__art::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: 20%;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.test2-exam-category-card__art .test2-exam-popular {
    position: absolute;
    z-index: 3;
    top: 1.25rem;
    right: 1.25rem;
    max-width: calc(100% - 8rem);
    padding: .3rem .65rem;
    font-size: .6875rem;
    font-weight: 500;
    text-align: center;
}

.test2-exam-category-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: .5rem 1.5rem 1.5rem;
    gap: 1rem;
}

.test2-exam-category-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .625rem;
}

.test2-exam-category-card__heading h4 {
    flex: 1 1 10rem;
    margin: 0;
    color: #0b491b;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.test2-exam-category-card--illustrated .test2-exam-category-age {
    flex: 0 0 auto;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: #e9f4ed;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.test2-exam-category-card--illustrated .test2-exam-category-card__description {
    flex: 1;
    margin: .875rem 0 1.25rem;
    color: #60756a;
    font-size: .9375rem;
    line-height: 1.6;
}

.test2-exam-category-card--illustrated details {
    padding: 0;
    /* margin-bottom: 1rem; */
    border-color: #dfeae3;
    border: 0;
}

.test2-exam-category-card--illustrated summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 48px;
    padding: .75rem 0;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
}

.test2-exam-category-card--illustrated summary i {
    flex: 0 0 auto;
    font-size: .875rem;
    transition: transform .2s ease;
}

.test2-exam-category-card--illustrated details[open] summary i { transform: rotate(180deg); }
.test2-exam-category-card--illustrated .test2-exam-details__content > div { padding: 0 0 .875rem; }

.test2-exam-category-card--illustrated .test2-exam-category-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.5;
}

.test2-exam-category-card--illustrated summary:focus-visible,
.test2-exam-category-card--illustrated .test2-exam-category-card__cta:focus-visible {
    outline: 3px solid #0b491b;
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .test2-exam-category-mode .test2-exam-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .test2-exam-category-mode .test2-exam-category-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .test2-exam-category-card__body { padding: .5rem 1.25rem 1.25rem; }
    .test2-exam-category-card__art .test2-exam-category-code { left: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .test2-exam-category-card--illustrated,
    .test2-exam-category-card--illustrated summary i { transition: none; }
}
