/* ================================================================
   TRE – Feature Grid
   File: assets/css/tre-feature-grid.css
   ================================================================ */

.tre-fg {
    display: grid;
    gap: 16px;
    margin: 0 0 28px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Column variants ── */
.tre-fg--cols-1 { grid-template-columns: 1fr; }
.tre-fg--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tre-fg--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tre-fg--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Item ── */
.tre-fg__item {
    background: #ffffff;
    border: 1px solid #e8eef8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.tre-fg__item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* ── Card link wrapper ── */
.tre-fg__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.tre-fg__card-link .tre-fg__item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* ── Image area ── */
.tre-fg__image-wrap {
    background: #1a2e5a;
    width: 100%;
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tre-fg__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.tre-fg__image-placeholder {
    width: 100%;
    height: 160px;
    background: #1a2e5a;
}

/* ── Body ── */
.tre-fg__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Title ── */
.tre-fg__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f1f4a;
    margin: 0 0 8px;
    line-height: 1.35;
}

/* ── Body text ── */
.tre-fg__text {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

/* ── Bottom link ── */
.tre-fg__link {
    font-size: 12px;
    font-weight: 600;
    color: #2053a5;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}
.tre-fg__link:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .tre-fg--cols-3,
    .tre-fg--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tre-fg--cols-2,
    .tre-fg--cols-3,
    .tre-fg--cols-4 { grid-template-columns: 1fr; }
    .tre-fg__image-wrap,
    .tre-fg__img,
    .tre-fg__image-placeholder { height: 140px; }
}
