/* ================================================================
   TRE – Image + Text Card Block
   File: assets/css/tre-card-block.css
   ================================================================ */

.tre-cb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px;
    border-radius: 0;
    margin: 0 0 20px;
    position: relative;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Background variants ── */
.tre-cb--bg-light  { background: #f7f9fc; }
.tre-cb--bg-white  { background: #ffffff; border: 1px solid #e8eef8; }
.tre-cb--bg-navy   { background: #0f1f4a; }
.tre-cb--bg-mid    { background: #1a2e5a; }

/* ── Border variants ── */
.tre-cb--border-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: #2053a5;
}
.tre-cb--border-top {
    border-top: 2px solid #2053a5;
    padding-top: 20px;
}
.tre-cb--border-top::before { display: none; }

/* ── Image position: default = image RIGHT ── */
.tre-cb__text       { order: 1; }
.tre-cb__image-wrap { order: 2; }

/* ── Image position: LEFT ── */
.tre-cb--image-left .tre-cb__text       { order: 2; }
.tre-cb--image-left .tre-cb__image-wrap { order: 1; }

/* ── Image ── */
.tre-cb__image-wrap {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.tre-cb__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ── Eyebrow ── */
.tre-cb__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2053a5;
    margin-bottom: 8px;
}

/* ── Title ── */
.tre-cb__title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}
.tre-cb__title-main      { color: #0f1f4a; }
.tre-cb__title-highlight { color: #2053a5; }

.tre-cb--bg-navy .tre-cb__title-main,
.tre-cb--bg-mid  .tre-cb__title-main  { color: #ffffff; }

.tre-cb--bg-navy .tre-cb__title-highlight,
.tre-cb--bg-mid  .tre-cb__title-highlight { color: #ccd6f6; }

/* ── Body ── */
.tre-cb__body {
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 16px;
}
.tre-cb__body p + p { margin-top: 10px; }

.tre-cb--bg-navy .tre-cb__body,
.tre-cb--bg-mid  .tre-cb__body { color: #8fadd4; }

/* ── Button ── */
.tre-cb__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}
.tre-cb__btn:hover  { opacity: .85; }
.tre-cb__btn--blue  { background: #2053a5; color: #ffffff; }
.tre-cb__btn--red   { background: #e63030; color: #ffffff; }
.tre-cb__btn--amber { background: #2053a5; color: #ffffff; }
.tre-cb__btn--ghost {
    background: transparent;
    border: 2px solid #2053a5;
    color: #2053a5;
}

.tre-cb--bg-navy .tre-cb__btn--ghost,
.tre-cb--bg-mid  .tre-cb__btn--ghost {
    border-color: rgba(255,255,255,.35);
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .tre-cb {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }
    .tre-cb__image-wrap { order: 1 !important; }
    .tre-cb__text       { order: 2 !important; }
    .tre-cb__image      { height: 200px; }
    .tre-cb__title      { font-size: 18px; }
}
@media (max-width: 600px) {
    .tre-cb        { padding: 16px 12px; }
    .tre-cb__image { height: 160px; }
    .tre-cb__title { font-size: 16px; }
    .tre-cb__body  { font-size: 12px; }
}
