.featured-posts {
    --fp-primary: var(--primary, #00b8ff);
    --fp-title: #16132b;
    --fp-copy: #625f78;
    --fp-surface: #ffffff;
    --fp-border: rgba(20, 19, 43, 0.08);
    --fp-muted-bg: #f3f4f8;
    --fp-shadow: 0 18px 40px rgba(23, 21, 52, 0.08);
    --fp-shadow-hover: 0 26px 54px rgba(23, 21, 52, 0.14);
    padding: 4rem 0 4.5rem;
}

.featured-posts-dark {
    --fp-title: #f5f7fb;
    --fp-copy: #98a2b3;
    --fp-surface: #171a24;
    --fp-border: rgba(255, 255, 255, 0.08);
    --fp-muted-bg: #1f2330;
    --fp-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    --fp-shadow-hover: 0 26px 54px rgba(0, 0, 0, 0.35);
}

.featured-posts-auth {
    padding: 1.75rem 0 3.5rem;
    background: #f4f5f7;
    border-top: 1px solid var(--fp-border);
}

.featured-posts-dark.featured-posts-auth {
    background: #10121a;
}

.featured-posts-auth .container {
    max-width: 640px;
}

.featured-posts-heading-feed {
    max-width: none;
    margin-bottom: 1rem;
}

.featured-posts-heading-feed h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
}

.featured-posts-auth .featured-posts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: none;
}

.featured-posts-auth .fp-card {
    border-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.featured-posts-auth .fp-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-posts-auth .fp-body {
    display: contents;
}

.featured-posts-auth .fp-author {
    order: 1;
    padding: 1rem 1rem 0.5rem;
}

.featured-posts-auth .fp-text {
    order: 2;
    padding: 0 1rem 0.75rem;
    display: block;
    -webkit-line-clamp: unset;
    color: var(--fp-title);
}

.featured-posts-auth .fp-media {
    order: 3;
    aspect-ratio: auto;
    background: #000;
}

.featured-posts-auth .fp-media-empty {
    min-height: 280px;
    background: var(--fp-muted-bg);
}

.featured-posts-auth .fp-media img {
    height: auto;
    max-height: 640px;
    object-fit: contain;
    margin: 0 auto;
}

.featured-posts-auth .fp-media img.is-blurred {
    width: 100%;
    object-fit: cover;
}

.featured-posts-auth .fp-stats {
    order: 4;
    margin: 0;
    padding: 0.75rem 1rem;
}

.featured-posts-auth .fp-card:hover .fp-media img {
    transform: none;
}

.featured-posts-heading {
    max-width: 44rem;
    margin-bottom: 2.25rem;
}

.featured-posts-kicker {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--fp-border);
    color: var(--fp-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-posts-heading h2 {
    color: var(--fp-title);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 0.6rem;
}

.featured-posts-heading p {
    color: var(--fp-copy);
    margin-bottom: 0;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .featured-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.fp-card {
    display: flex;
    flex-direction: column;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: var(--fp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fp-shadow-hover);
}

.fp-card-new {
    animation: fp-fade-in 0.35s ease both;
}

@keyframes fp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.fp-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--fp-muted-bg);
    overflow: hidden;
}

.fp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.fp-card:hover .fp-media img {
    transform: scale(1.03);
}

.fp-media img.is-blurred {
    filter: blur(2px);
    transform: scale(1.06);
}

.fp-media-empty.is-locked {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)), var(--fp-muted-bg);
}

.fp-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-copy);
    opacity: 0.6;
}

.fp-media-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #fff;
    background: linear-gradient(135deg, var(--fp-primary), #7b5cff);
    overflow: hidden;
}

.fp-badges {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.fp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.fp-badge-price {
    background: var(--fp-primary);
}

.fp-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
    z-index: 1;
}

.fp-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.fp-lock-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.fp-body {
    padding: 0.9rem 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.fp-author {
    display: flex;
    align-items: center;
    min-width: 0;
}

.fp-avatar {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: cover;
    flex-shrink: 0;
}

.fp-author-meta {
    min-width: 0;
    margin-left: 0.6rem;
}

.fp-author-name {
    display: flex;
    align-items: center;
    min-width: 0;
    font-weight: 700;
    color: var(--fp-title);
}

.fp-author-name:hover {
    color: var(--fp-primary);
    text-decoration: none;
}

.fp-author-sub {
    font-size: 0.8rem;
    color: var(--fp-copy);
}

.fp-dot {
    margin: 0 0.25rem;
}

.fp-text {
    margin: 0;
    color: var(--fp-copy);
    font-size: 0.95rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-stats {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--fp-border);
    font-size: 0.85rem;
    color: var(--fp-copy);
}

.fp-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.fp-view-link {
    font-weight: 600;
    color: var(--fp-primary);
}

.featured-posts-footer {
    margin-top: 2.25rem;
}

.featured-posts-more {
    min-width: 11rem;
}

@media (max-width: 575.98px) {
    .featured-posts {
        padding: 2.75rem 0 3rem;
    }

    .featured-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .fp-body {
        padding: 0.7rem 0.75rem;
    }

    .fp-text,
    .fp-view-link {
        display: none;
    }

    .fp-avatar {
        width: 2rem;
        height: 2rem;
    }

    .fp-lock-label {
        font-size: 0.78rem;
        text-align: center;
        padding: 0 0.5rem;
    }
}

@media (max-width: 419.98px) {
    .featured-posts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .fp-body {
        padding: 0.9rem 1rem;
    }

    .fp-text {
        display: -webkit-box;
    }

    .fp-view-link {
        display: inline;
    }

    .fp-avatar {
        width: 2.4rem;
        height: 2.4rem;
    }
}
