.fpg-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.fpg-card {
    display: flex;
    gap: 28px;
    /*padding: 24px 0;*/
    padding: 40px 0;
    border-bottom: 1px solid #E5E5E5;
    position: relative;
}
.fpg-card:last-of-type {
    border-bottom: none;
}

.fpg-image {
    flex: 0 0 400px;
}
.fpg-image img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 4px;
}

.fpg-body {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    padding-right: 40px;
}

/* Ribbon-style category badge with a pointed right edge */
.fpg-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    /*background: var(--badge-color, #0F1C3D);*/
    color: #19107B;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px 0px 14px;
    /*margin-bottom: 14px;*/
}
.fpg-badge::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    border-style: solid;
    border-width: 16px 0 16px 14px;
    border-color: transparent transparent transparent;
}

.fpg-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: #07345f;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.3;
}
.fpg-title:hover {
    color: #0F1C3D;
}

.fpg-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 12px;
}

.fpg-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B6B6B;
}

.fpg-readmore {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
}
.fpg-readmore span {
    transition: transform 0.15s ease;
}
.fpg-readmore:hover span {
    transform: translateX(3px);
}

.fpg-bookmark {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E5E5E5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.fpg-loading {
    padding: 24px 0;
    color: #6B6B6B;
    font-family: 'Inter', sans-serif;
}

/* Pagination — same pill style used elsewhere on the site */
.fpg-wrap .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.fpg-wrap .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    text-decoration: none;
}
.fpg-wrap .pagination .page-numbers:hover {
    border-color: #0F1C3D;
}
.fpg-wrap .pagination .page-numbers.current {
    background: #0F1C3D;
    border-color: #0F1C3D;
    color: #fff;
    box-shadow: none;
}
.fpg-wrap .pagination .page-numbers.dots {
    border: none;
    box-shadow: none;
    background: transparent;
    color: #6B6B6B;
    min-width: auto;
    padding: 0 2px;
}
.fpg-wrap .pagination .page-numbers.disabled {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 700px) {
    .fpg-card {
        flex-direction: column;
    }
    .fpg-image {
        flex-basis: auto;
        width: 100%;
    }
    .fpg-image img {
        height: 220px;
    }
    .fpg-body {
        padding-right: 0;
    }
}
