.jgc-fbc-wrapper {
    width: 100%;
    margin: 0 auto 40px auto;
    font-family: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

.jgc-fbc-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eaeaea; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.jgc-fbc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Image Area */
.jgc-fbc-img-wrap {
    aspect-ratio: 16 / 9;
    position: relative;
    background: #dfdfdf;
    overflow: hidden;
}

.jgc-fbc-img-wrap img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center center;
    display: block !important;
}

/* 1. The Pill Background */
.jgc-fbc-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--fbc-pill, #0f2e40); 
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 10px;
    z-index: 2;
}

/* Content Area */
.jgc-fbc-content {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jgc-fbc-content h3 {
    color: var(--fbc-heading, #222222) !important; /* THE FIX: Accepts dynamic heading color */
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.25 !important;
}

.jgc-fbc-content p {
    color: #0A0A0ACC !important; /* THE FIX: Updated to your exact hex with alpha channel */
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 25px 0!important; 
}

.jgc-fbc-readmore {
    color: #0a3452 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    /* margin-bottom: 30px !important; */
    transition: color 0.3s ease !important;
}

/* 2. The Read More Hover Color */
.jgc-fbc-card:hover .jgc-fbc-readmore {
    color: var(--fbc-pill, #EE512A); 
}

/* Pagination */
.jgc-fbc-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: -10px 0 40px;
}

.jgc-fbc-pagination .page-numbers {
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #ffffff;
    color: var(--fbc-heading, #0a3452) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    box-sizing: border-box;
}

.jgc-fbc-pagination .page-numbers.current,
.jgc-fbc-pagination a.page-numbers:hover {
    background: var(--fbc-pill, #0f2e40);
    border-color: var(--fbc-pill, #0f2e40);
    color: #ffffff !important;
}

.jgc-fbc-pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 5px;
    border-color: transparent;
    background: transparent;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .jgc-fbc-content {
        padding: 25px;
    }
    .jgc-fbc-content h3 {
        font-size: 22px !important;
    }

    .jgc-fbc-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
    }
}
