/**
 * 2PX Elementor Suite — Infocards Widget
 * BEM Methodology
 */

/* ── Grid container ─────────────────────────────────────────────────────────── */
.twopx-infocards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default 2 col — overridden by Elementor control */
    gap: 30px;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.twopx-infocards__card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ── Icon wrapper (background + shape container) ────────────────────────────── */
.twopx-infocards__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px;
    margin-bottom: 20px;
    line-height: 1;
}

/* When card is center-aligned, center the icon wrapper */
.twopx-infocards__card[style*="text-align: center"] .twopx-infocards__icon-wrap,
.twopx-infocards__card.twopx-align-center .twopx-infocards__icon-wrap {
    align-self: center;
}

.twopx-infocards__card[style*="text-align: right"] .twopx-infocards__icon-wrap,
.twopx-infocards__card.twopx-align-right .twopx-infocards__icon-wrap {
    align-self: flex-end;
}

/* ── Icon element ───────────────────────────────────────────────────────────── */
.twopx-infocards__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
}

.twopx-infocards__icon svg {
    width: 1em;
    height: 1em;
}

/* ── Title ──────────────────────────────────────────────────────────────────── */
.twopx-infocards__title {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

/* ── Description ────────────────────────────────────────────────────────────── */
.twopx-infocards__description {
    margin: 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

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

/* Tablet: respect the Elementor tablet column control; fallback to 2 */
@media (max-width: 1024px) {
    .twopx-infocards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: single column */
@media (max-width: 767px) {
    .twopx-infocards__grid {
        grid-template-columns: 1fr;
    }
}
