/* ─────────────────────────────────────────────────────────────────────────────
   Block: Kategoriakorttipari  (.fp-category-split-block)

   Two side-by-side cards. Each card is a horizontal split: image on the left
   (~42% width), content (heading, note badge, text, button) on the right.
   Matches the proto .landing-split / .landing-card pattern.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Outer grid: two cards side by side ──────────────────────────────────── */

.fp-category-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

/* ── Individual card ─────────────────────────────────────────────────────── */

.fp-category-split__card {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.10);
    overflow: hidden;   /* clips image corners */
}

/* ── Image column ────────────────────────────────────────────────────────── */

.fp-category-split__image {
    overflow: hidden;
}

.fp-category-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Body column ─────────────────────────────────────────────────────────── */

.fp-category-split__body {
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1.25rem, 3vw, 2rem);
}

.fp-category-split__heading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-primary, #00388E);
    margin-bottom: 0.625rem;
}

/* ── Note badge ──────────────────────────────────────────────────────────── */

.fp-category-split__note {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 9px;
    color: var(--color-primary, #00388E);
    background: #E5F7FF;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.625rem;
}

/* ── Body text ───────────────────────────────────────────────────────────── */

/* Two-class specificity (0,2,0) beats p:not(:last-child) (0,1,1) in app.css */
.fp-category-split-block .fp-category-split__text {
    flex: 1;            /* pushes button to the bottom */
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0.625rem;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */

.fp-category-split__btn {
    margin-top: auto;
    width: 100%;
    justify-content: center; /* override base .btn space-between */
    font-size: 14px;
    min-width: 0;
    padding: .5rem 1.5rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Stack cards vertically on tablet */
@media (max-width: 900px) {
    .fp-category-split {
        grid-template-columns: 1fr;
    }
}

/* Stack image above body on small screens */
@media (max-width: 640px) {
    .fp-category-split__card {
        grid-template-columns: 1fr;
    }

    .fp-category-split__image {
        aspect-ratio: 16 / 9;
    }
}
