/* Featured Post Greg – frontend */
.fpg-featured-wrapper {
    --fpg-grey: #9d9d9d;
    --fpg-gap: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.fpg-featured-wrapper *,
.fpg-featured-wrapper *::before,
.fpg-featured-wrapper *::after {
    box-sizing: border-box;
}

.fpg-track {
    display: flex;
    border-radius: 2px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.fpg-card {
    position: relative;
    display: flex;
    flex: 0 0 100%;
    min-height: 230px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    background: var(--fpg-grey);
}

.fpg-card-bg {
    position: absolute;
    inset: 0;
    background-color: var(--fpg-grey);
    background-size: cover;
    background-position: center;
}

.fpg-card-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
}

.fpg-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px 22px 18px;
    color: #fff;
}

.fpg-card-title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.fpg-card-title span {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left 100%;
    transition: background-size 0.35s ease;
    padding-bottom: 3px;
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.fpg-card--large .fpg-card-title {
    font-size: 26px;
}

.fpg-card-date {
    font-size: 12px;
    opacity: 0.9;
    color: #fff;
}

.fpg-readmore {
    margin-top: auto;
    padding-top: 28px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fpg-arrow {
    font-size: 16px;
    line-height: 1;
}

.fpg-card:hover .fpg-card-title span {
    background-size: 100% 2px;
}

/* Dots (mobile) */
.fpg-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.fpg-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c9c9c9;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fpg-dot.is-active {
    width: 22px;
    background: #1e88e5;
}

.fpg-no-posts {
    color: #666;
}

/* Desktop: grid like mockup – 1 large left, 2 small right */
@media (min-width: 768px) {
    .fpg-featured-wrapper {
        overflow: visible;
    }
    .fpg-track {
        display: grid;
        grid-template-columns: 3fr 2fr;
        grid-auto-rows: 1fr;
        gap: var(--fpg-gap);
        overflow: visible;
        transform: none !important;
    }
    .fpg-card {
        flex: none;
        min-height: 210px;
    }
    .fpg-card--large {
        grid-row: span 2;
        min-height: 440px;
    }
    .fpg-card--large .fpg-card-content {
        padding: 32px 32px 26px;
    }
    .fpg-card--large .fpg-card-title {
        font-size: 32px;
    }
    .fpg-dots {
        display: none;
    }
}
