/* ── Term card ──────────────────────────────────────────────
   Figma: 2982:57608 (desktop 417 × 334), tablet 328 × 263,
   mobile 301 × 318. The size comes from the row it's in.
   ─────────────────────────────────────────────────────────── */

.term-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 14px 14px 24px;
    border-radius: 10px;
    background: var(--color-secondary);
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
    color: var(--color-white);
}

.term-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.term-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(2 16 8 / 0.85) 0%, rgb(0 0 0 / 0) 55%);
}

.term-card:hover .term-card__image,
.term-card:focus-visible .term-card__image {
    transform: scale(1.04);
}

.term-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.term-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    text-transform: capitalize;
}

.term-card__chevron {
    flex-shrink: 0;
    width: 11px;
    height: 19px;
    opacity: 0;
    transition: opacity var(--transition);
}

.term-card:hover .term-card__chevron,
.term-card:focus-visible .term-card__chevron {
    opacity: 1;
}

@media (hover: none) {
    .term-card__chevron {
        opacity: 1;
    }
}

.term-card__tagline {
    line-height: 20.8px;
}

@media (max-width: 767px) {
    .term-card__content {
        gap: 10px;
    }

    .term-card__title {
        font-size: 24px;
        line-height: 27px;
    }
}
