.fga-post-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* Hero variant: image with title/subtitle overlaid at top-left */
.fga-hero {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}
.fga-hero img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.fga-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    background: linear-gradient(180deg, rgba(10,16,30,0.75) 0%, rgba(10,16,30,0.35) 55%, rgba(10,16,30,0) 100%);
    box-sizing: border-box;
}
.fga-hero-overlay .fga-post-title,
.fga-hero-overlay .fga-post-subtitle,
.fga-hero-overlay .fga-post-byline {
    color: #fff;
}
.fga-hero-overlay .fga-post-subtitle {
    color: #E4E9F2;
}
.fga-hero-overlay .byline-sep {
    color: rgba(255,255,255,0.5);
}

/* Category label */
.fga-category-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cat-color, #0F1C3D);
    border-left: 3px solid var(--cat-color, #0F1C3D);
    padding-left: 8px;
    margin-bottom: 12px;
}
.fga-hero-overlay .fga-category-label {
    color: #fff;
    background: var(--cat-color, #0F1C3D);
    border-left: none;
    padding: 4px 10px;
    border-radius: 3px;
}

.fga-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #16233F;
}
.fga-post-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 14px;
    color: #5A6472;
}
.fga-post-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #5A6472;
}
.byline-sep {
    color: #C7CDD4;
}

/* Plain variant (no featured image) */
.fga-post-title-plain {
    margin-top: 4px;
}
.fga-post-byline-plain {
    margin-bottom: 28px;
}

/* Layout */
.fga-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* Body blocks */
.fga-block-heading,
.fga-post-main h2,
.fga-post-main h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #16233F;
    margin: 32px 0 12px;
}
.fga-post-main > .fga-block-heading:first-child,
.fga-post-main > h2:first-child,
.fga-post-main > h3:first-child {
    margin-top: 0;
}
.fga-post-main p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #3D4756;
    margin: 0 0 16px;
}
.fga-block-list,
.fga-post-main ul,
.fga-post-main ol {
    margin: 0 0 16px;
    padding-left: 20px;
}
.fga-block-list li,
.fga-post-main ul li,
.fga-post-main ol li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3D4756;
    margin-bottom: 6px;
}
.fga-post-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar */
.fga-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.fga-share-box {
    background: #F5F7FA;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.share-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #16233F;
}
.fga-share-icons {
    display: flex;
    gap: 8px;
}
.share-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #16233F;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
}
.share-icon.share-linkedin { background: #0A66C2; }
.share-icon.share-x { background: #000; }
.share-icon.share-facebook { background: #1877F2; }
.share-icon.share-email { background: #6B7280; }

.fga-related-box {
    background: #F5F7FA;
    border-radius: 8px;
    padding: 18px;
}
.fga-related-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: #16233F;
    margin: 0 0 14px;
    border-bottom: 2px solid #E0B84A;
    padding-bottom: 8px;
    display: inline-block;
}
.fga-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
    border-top: 1px solid #E5E9EF;
}
.fga-related-box .fga-related-item:first-of-type {
    border-top: none;
    padding-top: 0;
}
.fga-related-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
}
.fga-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fga-related-text h5 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #16233F;
    margin: 0 0 4px;
}
.fga-related-item:hover h5 {
    color: #2563EB;
}
.fga-related-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #7A8189;
}

.fga-takeaway-box {
    background: #FEF6E4;
    border: 1px solid #F3DFAE;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}
.fga-takeaway-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
}
.fga-takeaway-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6B4E16;
    margin: 0 0 8px;
}
.fga-takeaway-box p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #5A4A25;
    margin: 0;
}

@media (max-width: 900px) {
    .fga-post-layout {
        grid-template-columns: 1fr;
    }
    .fga-post-sidebar {
        order: -1;
    }
    .fga-hero-overlay {
        position: static;
        background: none;
        padding: 0 0 16px;
    }
    .fga-hero-overlay .fga-post-title,
    .fga-hero-overlay .fga-post-subtitle,
    .fga-hero-overlay .fga-post-byline {
        color: inherit;
    }
    .fga-hero-overlay .fga-post-subtitle {
        color: #5A6472;
    }
    .fga-hero-overlay .byline-sep {
        color: #C7CDD4;
    }
}
