/* ═══════════════════════════════════════════════════════════
   Block: ccb/featured-post
   Horizontal featured post card — enterprise layout.
   ═══════════════════════════════════════════════════════════ */

.ccb-featured-post {
    background: var(--ccb-fp-bg, #ffffff);
    padding-top: var(--ccb-fp-pt, 48px);
    padding-bottom: var(--ccb-fp-pb, 48px);
}

.ccb-featured-post .cgb-inner {
    max-width: var(--ccb-fp-max-w, 1200px);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section header ── */
.ccb-featured-post__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ccb-featured-post__section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ccb-fp-title-color, #0F172A);
    margin: 0;
    line-height: 1.2;
}

.ccb-featured-post__view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--ccb-fp-cta-color, #5182BB);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ccb-featured-post__view-all:hover {
    text-decoration: underline;
}

/* ── Card ── */
.ccb-featured-post__card {
    display: grid;
    grid-template-columns: 55% 1fr;
    background: var(--ccb-fp-card-bg, #ffffff);
    border: 1px solid var(--cgb-border, #E6E6E6);
    border-radius: var(--ccb-fp-radius, 3px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ccb-featured-post__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ── Image ── */
.ccb-featured-post__image {
    display: block;
    overflow: hidden;
    position: relative;
}

.ccb-featured-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ccb-featured-post__card:hover .ccb-featured-post__img {
    transform: scale(1.03);
}

/* ── Body ── */
.ccb-featured-post__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 36px 36px 32px;
}

/* ── Badge ── */
.ccb-featured-post__badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--ccb-fp-badge-bg, #81BF48);
    color: var(--ccb-fp-badge-color, #ffffff);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* ── Title ── */
.ccb-featured-post__title {
    font-size: var(--ccb-fp-title-fs, 28px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--ccb-fp-title-color, #0F172A);
}

.ccb-featured-post__title a {
    color: inherit;
    text-decoration: none;
}

.ccb-featured-post__title a:hover {
    color: var(--ccb-fp-cta-color, #5182BB);
}

/* ── Meta ── */
.ccb-featured-post__meta {
    font-size: 13px;
    color: var(--ccb-fp-meta-color, #8D8D8D);
    margin-bottom: 16px;
}

/* ── Excerpt ── */
.ccb-featured-post__excerpt {
    font-size: var(--ccb-fp-excerpt-fs, 15px);
    line-height: 1.65;
    color: var(--ccb-fp-excerpt-color, #4a4a4a);
    margin: 0 0 24px 0;
}

/* ── CTA link ── */
.ccb-featured-post__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cgb-novade-green, #81BF48);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.ccb-featured-post__cta:hover {
    color: var(--cgb-novade-green-dark, #6FA53B);
    gap: 10px;
}

.ccb-featured-post__cta svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ccb-featured-post__cta:hover svg {
    transform: translateX(2px);
}

/* ── Fullwidth ── */
.ccb-featured-post--fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ═══════════════ Responsive ═══════════════ */

@media (max-width: 991px) {
    .ccb-featured-post__card {
        grid-template-columns: 50% 1fr;
    }

    .ccb-featured-post__body {
        padding: 28px 28px 28px 24px;
    }

    .ccb-featured-post__title {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .ccb-featured-post__card {
        grid-template-columns: 1fr;
    }

    .ccb-featured-post__image {
        aspect-ratio: 16 / 9;
    }

    .ccb-featured-post__body {
        padding: 24px;
    }

    .ccb-featured-post__title {
        font-size: 20px;
    }

    .ccb-featured-post__excerpt {
        font-size: 14px;
    }

    .ccb-featured-post .cgb-inner {
        padding: 0 16px;
    }
}
