/*
Theme Name: FBPostLikes Blog
Theme URI: https://fbpostlikes.com
Author: FBPostLikes
Description: A professional blog theme matching the FBPostLikes website — same header, footer, color palette, and Rubik typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fbpostlikes
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, post-formats
*/

/* =====================================================
   RUBIK FONT — self-hosted (same files as fbpostlikes.com)
   ===================================================== */
@font-face {
    font-display: swap;
    font-family: Rubik;
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/rubik-v28-latin-300-CnHqEbbs.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: Rubik;
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/rubik-v28-latin-regular-Bd548WEe.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: Rubik;
    font-style: normal;
    font-weight: 500;
    src: url('assets/fonts/rubik-v28-latin-500-u2YmNvkZ.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: Rubik;
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/rubik-v28-latin-600-DKH4MTrm.woff2') format('woff2');
}

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    --fpl-primary:       #2f55d4;
    --fpl-primary-dark:  #2447b8;
    --fpl-primary-light: #5b7ae8;
    --fpl-bg:            #eaeefa;
    --fpl-text-dark:     #1a1d24;
    --fpl-text-body:     #4a505c;
    --fpl-text-muted:    #6c757d;
    --fpl-footer-bg:     #273746;
    --fpl-footer-bottom: #212529;
    --fpl-border:        rgba(47,85,212,0.14);
    --fpl-shadow:        0 2px 12px rgba(47,85,212,0.06);
    --fpl-shadow-md:     0 8px 32px rgba(47,85,212,0.13);
    --fpl-radius:        0.75rem;
    --fpl-radius-lg:     1rem;

    /* Platform accent colours */
    --fpl-cat-facebook:  #1877F2;
    --fpl-cat-instagram: #E1306C;
    --fpl-cat-youtube:   #FF0000;
    --fpl-cat-tiktok:    #010101;
    --fpl-cat-twitter:   #000000;
    --fpl-cat-x:         #000000;
    --fpl-cat-soundcloud:#FF5500;
    --fpl-cat-pinterest: #E60023;
    --fpl-cat-linkedin:  #0A66C2;
    --fpl-cat-snapchat:  #FFFC00;
}

/* =====================================================
   BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: system-ui, sans-serif;
    background-color: var(--fpl-bg);
    color: var(--fpl-text-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { color: var(--fpl-primary); text-decoration: none; }
a:hover { color: var(--fpl-primary-dark); }

/* Global focus-visible ring — keyboard-accessible, non-intrusive */
:focus-visible {
    outline: 2px solid var(--fpl-primary);
    outline-offset: 3px;
    border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

img { max-width: 100%; height: auto; }

/* =====================================================
   HEADER — exact replica of Laravel site-header--modern
   ===================================================== */
.site-header--modern nav.site-header-nav {
    background: #fff;
    border-bottom: 1px solid var(--fpl-border);
    box-shadow: var(--fpl-shadow);
    position: relative;
    z-index: 1030;
    padding: 0;
}
.site-header--modern .site-header-nav__services .nav-link,
.site-header--modern .site-header-nav__utilities .nav-link,
.site-header--modern .site-nav-platform-dropdown__text,
.site-header--modern .site-nav-platform-dropdown > .site-nav-platform-dropdown__link {
    color: var(--fpl-text-dark);
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--fpl-font-family);
}
.site-header--modern .site-header-nav__services .nav-link:hover,
.site-header--modern .site-header-nav__services .nav-link:focus,
.site-header--modern .site-header-nav__utilities .nav-link:hover,
.site-header--modern .site-header-nav__utilities .nav-link:focus {
    color: var(--fpl-primary);
}
.site-header--modern .site-header-nav__services .nav-link.active { color: var(--fpl-primary); font-weight: 500; }
.site-header--modern .site-header-nav__utilities .nav-link img {
    filter: brightness(0) saturate(100%);
    opacity: 0.78;
}
.site-header--modern .site-header-nav__utilities .nav-link:hover img,
.site-header--modern .site-header-nav__utilities .nav-link:focus img { opacity: 1; }

/* Icon action buttons (cart / track) */
.site-header-utility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    border-radius: 0.55rem;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--fpl-border);
    box-shadow: 0 1px 3px rgba(47,85,212,0.08);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.site-header-utility-icon img { filter: brightness(0) saturate(100%); opacity: 0.74; }
.site-header-utility-icon:hover,
.site-header-utility-icon:focus {
    background: #fff;
    border-color: rgba(47,85,212,0.28);
    box-shadow: 0 4px 12px rgba(47,85,212,0.14);
    transform: translateY(-1px);
}
.site-header-utility-icon:hover img,
.site-header-utility-icon:focus img { opacity: 1; }
.site-header-cart-badge {
    position: absolute;
    top: -0.1rem;
    right: -0.15rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    line-height: 1rem;
    background-color: var(--fpl-primary) !important;
    border: 1px solid #fff;
    box-shadow: 0 2px 6px rgba(47,85,212,0.25);
}
.site-header-nav__icon-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    gap: 0.35rem;
}
.site-header-nav__icon-actions .nav-item { width: auto; }

/* Hamburger toggler */
.site-nav-toggler {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0.65rem 0.75rem;
    min-width: 3rem;
    min-height: 3rem;
    transition: transform .2s ease;
}
.site-nav-toggler:hover { box-shadow: none; }
.site-nav-toggler:focus { outline: none; box-shadow: none; }
.site-nav-toggler:focus-visible { outline: 2px solid rgba(47,85,212,0.45); outline-offset: 4px; }
.site-nav-toggler:active { transform: scale(0.96); }
.site-nav-toggler__box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 1.375rem;
    height: 1rem;
    margin: 0 auto;
}
.site-nav-toggler__line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--fpl-primary);
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .2s ease, width .25s ease;
    transform-origin: center;
}
.site-nav-toggler[aria-expanded="true"] .site-nav-toggler__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav-toggler[aria-expanded="true"] .site-nav-toggler__line:nth-child(2) { opacity: 0; width: 0; margin-inline: auto; }
.site-nav-toggler[aria-expanded="true"] .site-nav-toggler__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown menus */
.site-nav-platform-dropdown { position: relative; }
.site-nav-platform-dropdown > .site-nav-platform-dropdown__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.site-nav-platform-dropdown > .site-nav-platform-dropdown__link::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}
.site-nav-platform-dropdown__chevron {
    width: 0.65rem;
    height: 0.65rem;
    flex-shrink: 0;
    color: var(--fpl-text-dark);
    transition: transform .25s ease;
}
.site-nav-platform-dropdown:hover > .site-nav-platform-dropdown__link .site-nav-platform-dropdown__chevron,
.site-nav-platform-dropdown.site-nav-mobile-open > .site-nav-platform-dropdown__link .site-nav-platform-dropdown__chevron {
    transform: rotate(180deg);
}
.site-nav-services-menu {
    min-width: 17rem;
    padding: 0.45rem 0 0.55rem;
    border: 1px solid rgba(47,85,212,0.12);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px -10px rgba(47,85,212,0.2);
    background: #fff;
    line-height: 1.45;
    overflow: hidden;
}
.site-nav-services-menu__heading {
    display: block;
    padding: 0.35rem 1rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b919a;
    list-style: none;
}
.site-nav-services-menu .site-nav-service-item {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    white-space: normal !important;
    line-height: 1.35;
    min-width: 0 !important;
    max-width: none !important;
    width: 100%;
    font-weight: 500 !important;
}
.site-nav-service-item__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    background: rgba(47,85,212,0.08);
    border: 1px solid rgba(47,85,212,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.site-nav-service-icon-svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
    max-width: 1.05rem;
    max-height: 1.05rem;
    stroke: var(--fpl-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.site-nav-service-icon-svg--fill {
    fill: var(--fpl-primary);
    stroke: none;
}
.site-nav-platform-dropdown__text { font-weight: 500; color: #212529; }
.site-nav-service-item__label { color: #212529; font-weight: 500; }
.site-nav-service-item:hover .site-nav-service-item__label,
.site-nav-service-item:focus .site-nav-service-item__label { color: var(--fpl-primary); }

/* =====================================================
   HEADER — DESKTOP (≥992px)
   Grid + display:contents — same as Laravel custom.css
   Columns: logo(1) | services(2, centred) | login(3) | icon-actions(4)
   ===================================================== */
@media (min-width: 992px) {
    .site-header--modern .site-header-nav__container {
        display: grid;
        grid-template-columns: auto minmax(0,1fr) auto auto;
        align-items: center;
        column-gap: 0.75rem;
        min-height: 4.25rem;
    }
    .site-header--modern .site-header-nav__brand { grid-column: 1; grid-row: 1; margin-right: 0; }
    .site-header--modern .site-header-nav__collapse { display: contents !important; }
    .site-header--modern .site-header-nav__services {
        grid-column: 2; grid-row: 1; justify-self: center;
        display: flex; flex-direction: row; flex-wrap: nowrap;
        align-items: center; justify-content: center;
        width: auto; max-width: 100%; padding: 0; margin: 0 !important;
        position: static; transform: none;
    }
    .site-header--modern .site-header-nav__services .nav-item { width: auto; }
    .site-header--modern .site-header-nav__services .nav-link {
        width: auto; margin-bottom: 0; white-space: nowrap;
        padding-left: 0.65rem; padding-right: 0.65rem;
    }
    .site-header--modern .site-nav-platform-dropdown > .site-nav-platform-dropdown__link {
        width: auto; justify-content: center;
    }
    .site-header--modern .site-header-nav__utilities {
        grid-column: 3; grid-row: 1; justify-self: end;
        display: flex; flex-direction: row; flex-wrap: nowrap;
        align-items: center; width: auto; padding: 0; margin: 0 !important;
    }
    .site-header--modern .site-header-nav__utilities .nav-item { width: auto; }
    .site-header--modern .site-header-nav__utilities .nav-link {
        width: auto; margin-bottom: 0; white-space: nowrap;
        font-size: 0.875rem; padding-left: 0.65rem; padding-right: 0.65rem;
    }
    .site-header--modern .site-header-nav__icon-actions {
        grid-column: 4; grid-row: 1; justify-self: end;
        margin-left: 0; gap: 0.1rem;
    }
    /* Dropdown positioning */
    .site-header--modern .site-nav-platform-dropdown > .dropdown-menu {
        position: absolute !important; top: 100%; left: 0; right: auto; z-index: 1050; margin-top: 0;
    }
    .site-header--modern .site-nav-platform-dropdown:hover > .site-nav-services-menu {
        display: block !important; opacity: 1 !important; visibility: visible !important;
    }
    .site-nav-service-item-wrap--mobile-only { display: none !important; }
    .site-header--modern .site-nav-toggler { display: none; }
}

/* =====================================================
   HEADER — MOBILE (<992px)
   ===================================================== */
@media (max-width: 991.98px) {
    .site-header--modern nav.navbar { position: relative; z-index: 1030; }
    .site-header--modern .site-header-nav__container {
        display: flex; flex-wrap: wrap; align-items: center;
        justify-content: flex-start; gap: 0.25rem; position: relative;
    }
    /* Mobile order: logo(1) | icons(2) | hamburger(3) | collapse(4) */
    .site-header--modern .site-header-nav__brand { order: 1; flex: 0 1 auto; min-width: 0; margin-right: 0; }
    .site-header--modern .site-header-nav__icon-actions { order: 2; flex: 0 0 auto; width: auto !important; border-top: none !important; padding: 0 !important; margin-left: auto; }
    .site-header--modern .site-nav-toggler { order: 3; }
    .site-header--modern .site-header-nav__collapse { order: 4; }
    .site-header--modern .site-header-nav__brand img { max-width: min(168px, 52vw); height: auto; }
    .site-header--modern .site-header-nav__collapse {
        position: absolute; left: 0; right: 0; top: 100%; width: 100%;
        margin-top: 0; padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(47,85,212,0.12);
        max-height: min(72vh, calc(100dvh - 7.5rem));
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        background: #fff;
        box-shadow: 0 14px 32px rgba(47,85,212,0.1);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .site-header--modern .site-header-nav__collapse.collapsing { position: absolute; left: 0; right: 0; top: 100%; width: 100%; }
    .site-header--modern .site-header-nav__collapse.show { display: flex; flex-direction: column; align-items: stretch; }
    .site-header--modern .site-header-nav__utilities {
        width: 100%; margin-left: 0 !important; align-items: stretch;
        padding: 0.35rem 0.75rem 0; border-top: 1px solid rgba(47,85,212,0.12);
    }
    .site-header--modern .site-header-nav__icon-actions {
        flex-direction: row;
        align-items: center;
        gap: 0.1rem;
    }
    .site-header--modern .site-header-nav__icon-actions .nav-item { width: auto; }
    .site-header--modern .site-header-nav__services {
        width: 100%; margin-left: 0 !important; align-items: stretch;
        text-align: left; padding: 0.25rem 0.75rem 0.25rem;
    }
    .site-header--modern .site-header-nav__utilities .nav-item,
    .site-header--modern .site-header-nav__services .nav-item { width: 100%; }
    .site-header--modern .site-header-nav__utilities .nav-link,
    .site-header--modern .site-header-nav__services .nav-link {
        display: flex; align-items: center; justify-content: flex-start;
        width: 100%; border-radius: 10px; margin-bottom: 2px;
        transition: background .2s ease, color .2s ease;
    }
    .site-header--modern .site-header-nav__utilities .nav-link:hover,
    .site-header--modern .site-header-nav__utilities .nav-link:focus,
    .site-header--modern .site-header-nav__services .nav-link:hover,
    .site-header--modern .site-header-nav__services .nav-link:focus { background: rgba(47,85,212,0.07); }
    .site-header--modern .site-nav-platform-dropdown > .site-nav-platform-dropdown__link {
        justify-content: space-between; width: 100%;
    }
    .site-header--modern .site-header-nav__services .dropdown-menu {
        position: static !important; float: none; width: 100%;
        margin: 0.2rem 0 0.35rem !important; padding: 0.35rem 0;
        border: none; background: rgba(47,85,212,0.07);
        border-radius: 10px; box-shadow: none !important;
        transform: none !important; line-height: 1.45;
        opacity: 1 !important; visibility: visible !important; top: auto !important; inset: auto !important;
    }
    .site-header--modern .site-nav-platform-dropdown:not(.site-nav-mobile-open) > .site-nav-services-menu { display: none !important; }
    .site-header--modern .site-nav-platform-dropdown.site-nav-mobile-open > .site-nav-services-menu { display: block !important; }
    .site-header--modern .site-nav-platform-dropdown.site-nav-mobile-open > .site-nav-platform-dropdown__link { background: rgba(47,85,212,0.07); }
    .site-header--modern .site-header-nav__services .dropdown-item {
        text-align: left; white-space: normal; line-height: 1.45;
        border-radius: 8px; padding: 0.55rem 1rem; margin: 0 0.4rem;
        min-width: 0 !important; max-width: none !important;
    }
    .site-header--modern .site-header-nav__services .dropdown-item:hover,
    .site-header--modern .site-header-nav__services .dropdown-item:focus { background: rgba(47,85,212,0.12); }
    .site-header--modern .site-nav-services-menu { min-width: 0; border: none; box-shadow: none !important; background: rgba(47,85,212,0.07); }
    .site-nav-service-item-wrap--mobile-only { display: list-item; }
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .site-header--modern .site-nav-toggler__line { transition-duration: 0.01ms; }
}

/* =====================================================
   FOOTER — exact replica of Laravel site-footer--modern
   ===================================================== */
.site-footer--modern .site-footer__main {
    background: linear-gradient(180deg, rgba(47,85,212,.06) 0%, rgba(47,85,212,.02) 100%), #273746;
}
.site-footer--modern .site-footer__heading {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    position: relative;
    line-height: 1.25;
}
.site-footer--modern .site-footer__heading::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 3.25rem; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2f55d4, #5b7ae8);
    box-shadow: 0 2px 8px rgba(47,85,212,.35);
}
.site-footer--modern .site-footer__copy {
    color: rgba(255,255,255,.88);
    font-size: 1rem;
    line-height: 1.68;
    margin: 0;
}
.site-footer--modern .site-footer__list { margin: 0; padding: 0; }
.site-footer--modern .site-footer__list li { margin-bottom: 0.5rem; }
.site-footer--modern .site-footer__list a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity .2s ease;
}
.site-footer--modern .site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer--modern .site-footer__bottom { background-color: var(--fpl-footer-bottom); }
.site-footer--modern .site-footer__credit { color: #fff; font-size: 12px; margin: 0; }
.site-footer--modern .site-footer__credit a { color: #fff; text-decoration: none; font-weight: 500; }
.site-footer--modern .site-footer__credit a:hover { color: #fff; text-decoration: underline; }
.site-footer--modern .site-footer__payments {
    display: inline-flex; flex-wrap: wrap;
    align-items: center; justify-content: flex-end; gap: 0.5rem;
}
.site-footer--modern .site-footer__payments img { vertical-align: middle; opacity: .92; transition: opacity .2s ease; }
.site-footer--modern .site-footer__payments img:hover { opacity: 1; }
@media (max-width: 991.98px) {
    .site-footer--modern .site-footer__payments { justify-content: center; width: 100%; }
}

/* =====================================================
   TABLE OF CONTENTS (single post sticky sidebar)
   ===================================================== */

/* Sticky wrapper for the whole right column on single posts */
.single-sidebar-sticky {
    position: sticky;
    top: 1.5rem;
    /* Respect the WP admin bar (32px logged-in, 0 logged-out) */
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
}

/* TOC card */
.toc-widget {
    background: #fff;
    border: 1px solid var(--fpl-border);
    border-radius: var(--fpl-radius);
    box-shadow: 0 2px 16px rgba(47,85,212,0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Header row (icon + title + collapse toggle) */
.toc-widget__header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(47,85,212,0.08);
    background: linear-gradient(135deg, rgba(47,85,212,0.04) 0%, rgba(47,85,212,0.01) 100%);
}
.toc-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    background: rgba(47,85,212,0.09);
    border: 1px solid rgba(47,85,212,0.14);
    flex-shrink: 0;
    color: var(--fpl-primary);
}
.toc-widget__title {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--fpl-text-dark);
    letter-spacing: -0.01em;
    line-height: 1;
}
.toc-widget__toggle {
    background: none;
    border: none;
    padding: 0.2rem 0.3rem;
    cursor: pointer;
    color: var(--fpl-text-muted);
    border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    transition: background .15s ease, color .15s ease, transform .25s ease;
    flex-shrink: 0;
}
.toc-widget__toggle:hover { background: rgba(47,85,212,0.07); color: var(--fpl-primary); }
.toc-widget__toggle[aria-expanded="false"] svg { transform: rotate(180deg); }

/* TOC list */
.toc-widget__list {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0 0.75rem;
    max-height: 65vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(47,85,212,0.2) transparent;
    transition: max-height .3s ease, opacity .25s ease;
}
.toc-widget__list.toc-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
}
.toc-widget__list::-webkit-scrollbar { width: 4px; }
.toc-widget__list::-webkit-scrollbar-track { background: transparent; }
.toc-widget__list::-webkit-scrollbar-thumb { background: rgba(47,85,212,0.2); border-radius: 2px; }

.toc-widget__item {
    position: relative;
}
.toc-widget__link {
    display: block;
    font-size: 0.845rem;
    font-weight: 400;
    color: var(--fpl-text-body);
    text-decoration: none;
    padding: 0.32rem 1.25rem 0.32rem 2.65rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease, padding-left .15s ease;
}
.toc-widget__link:hover {
    color: var(--fpl-primary);
    background: rgba(47,85,212,0.04);
}

/* Active state */
.toc-widget__link.toc-active {
    color: var(--fpl-primary);
    font-weight: 600;
    border-left-color: var(--fpl-primary);
    background: rgba(47,85,212,0.05);
}

/* h2 items — normal weight */
.toc-widget__item--h2 > .toc-widget__link {
    padding-left: 1.25rem;
    font-weight: 500;
}
.toc-widget__item--h2 > .toc-widget__link.toc-active { font-weight: 700; }

/* h3 items — indented */
.toc-widget__item--h3 > .toc-widget__link {
    padding-left: 2.25rem;
    font-size: 0.81rem;
    color: var(--fpl-text-muted);
}
.toc-widget__item--h3 > .toc-widget__link:hover { color: var(--fpl-primary); }
.toc-widget__item--h3 > .toc-widget__link.toc-active {
    color: var(--fpl-primary);
    font-weight: 600;
}

/* h4 items — more indented */
.toc-widget__item--h4 > .toc-widget__link {
    padding-left: 3.1rem;
    font-size: 0.78rem;
    color: var(--fpl-text-muted);
}

/* Reading progress bar — fixed at top of page */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(47,85,212,0.08);
    z-index: 1100;
    pointer-events: none;
    /* Force a dedicated compositor layer so the bar keeps repainting
       while the mobile address bar animates in/out on scroll-up. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--fpl-primary), var(--fpl-primary-light));
    transition: width .1s linear;
    will-change: width;
}

/* ── Desktop: hide mobile fab/modal ─────────────────────────────────────── */
@media (min-width: 992px) {
    .toc-mobile-fab,
    .toc-mobile-modal { display: none !important; }
}

/* ── Mobile: hide desktop TOC widget, show fab + modal ──────────────────── */
@media (max-width: 991.98px) {
    .single-sidebar-sticky { position: static; top: auto; }
    .toc-widget { display: none !important; } /* hidden on mobile — FAB replaces it */

    /* ── Floating Action Button ──────────────────────────────────────────── */
    .toc-mobile-fab {
        position: fixed;
        bottom: 1.75rem;
        right: 1.25rem;
        z-index: 1040;
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 50%;
        background: var(--fpl-primary);
        color: #fff;
        border: 3px solid #f59e0b;           /* orange ring — same as reference */
        box-shadow: 0 6px 24px rgba(47,85,212,0.45), 0 0 0 5px rgba(245,158,11,0.18);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform .2s ease, box-shadow .2s ease;
        outline: none;
    }
    .toc-mobile-fab:hover,
    .toc-mobile-fab:focus-visible {
        transform: scale(1.08);
        box-shadow: 0 8px 28px rgba(47,85,212,0.55), 0 0 0 6px rgba(245,158,11,0.22);
    }
    .toc-mobile-fab[aria-expanded="true"] {
        background: #1a1d24;
        border-color: #1a1d24;
        box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    }

    /* ── Modal overlay ───────────────────────────────────────────────────── */
    .toc-mobile-modal {
        position: fixed;
        inset: 0;
        z-index: 1045;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.25rem 1rem 5.5rem;        /* bottom padding avoids close btn overlap */
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
    }
    .toc-mobile-modal.toc-modal-open {
        opacity: 1;
        pointer-events: all;
    }

    /* Blurred backdrop */
    .toc-mobile-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.52);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    /* White card panel */
    .toc-mobile-modal__panel {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 1.15rem;
        width: 100%;
        max-width: 460px;
        max-height: 72vh;
        overflow-y: auto;
        padding: 1.5rem 1.25rem 1.25rem;
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        transform: translateY(18px) scale(0.98);
        transition: transform .3s cubic-bezier(.34,1.3,.64,1);
        scrollbar-width: thin;
        scrollbar-color: rgba(47,85,212,0.2) transparent;
    }
    .toc-mobile-modal.toc-modal-open .toc-mobile-modal__panel {
        transform: translateY(0) scale(1);
    }
    .toc-mobile-modal__panel::-webkit-scrollbar { width: 4px; }
    .toc-mobile-modal__panel::-webkit-scrollbar-thumb { background: rgba(47,85,212,0.18); border-radius: 2px; }

    /* "ON THIS PAGE" heading */
    .toc-mobile-modal__heading {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--fpl-text-dark);
        margin: 0 0 1.1rem;
    }

    /* List */
    .toc-mobile-modal__list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .toc-mobile-modal__item { position: relative; }

    .toc-mobile-modal__link {
        display: block;
        padding: 0.6rem 0.5rem 0.6rem 1rem;
        border-left: 3px solid #e2e8f0;
        color: var(--fpl-text-muted);
        font-size: 0.9rem;
        font-weight: 400;
        line-height: 1.4;
        text-decoration: none;
        transition: border-color .15s ease, color .15s ease, background .15s ease;
    }
    .toc-mobile-modal__link:hover {
        color: var(--fpl-primary);
        border-left-color: rgba(47,85,212,0.4);
        background: rgba(47,85,212,0.03);
    }
    .toc-mobile-modal__link.toc-active {
        color: var(--fpl-primary);
        font-weight: 600;
        border-left-color: var(--fpl-primary);
    }

    /* h3 sub-items — indented */
    .toc-mobile-modal__item--h3 .toc-mobile-modal__link {
        padding-left: 1.85rem;
        font-size: 0.855rem;
        color: var(--fpl-text-muted);
    }
    .toc-mobile-modal__item--h3 .toc-mobile-modal__link.toc-active {
        color: var(--fpl-primary);
    }

    /* ── Close button (fixed bottom-right over modal) ────────────────────── */
    .toc-mobile-modal__close {
        position: fixed;
        bottom: 1.75rem;
        right: 1.25rem;
        z-index: 1046;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        background: #fff;
        color: var(--fpl-text-dark);
        border: none;
        box-shadow: 0 4px 18px rgba(0,0,0,0.18);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform .15s ease, background .15s ease;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.85);
        transition: opacity .2s ease, transform .2s ease;
    }
    .toc-mobile-modal.toc-modal-open .toc-mobile-modal__close {
        opacity: 1;
        pointer-events: all;
        transform: scale(1);
    }
    .toc-mobile-modal__close:hover { transform: scale(1.1); background: #f8f9fa; }
}

/* =====================================================
   BLOG — LAYOUT WRAPPER (single post only)
   ===================================================== */
.blog-layout { padding: 3rem 0; }

/* =====================================================
   BLOG — PAGE HERO
   ===================================================== */
.blog-page-hero {
    position: relative;
    background: linear-gradient(165deg, #f0f3fc 0%, #eaeefa 42%, #e2e8f6 100%);
    border-top: 1px solid rgba(47,85,212,0.08);
    padding: 2.5rem 0 2rem;
    overflow: hidden;
}
.blog-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 55% at 50% -15%, rgba(47,85,212,0.09), transparent 58%);
    pointer-events: none;
}
.blog-page-hero .container { position: relative; z-index: 1; }
.blog-page-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fpl-primary);
    background: rgba(47,85,212,0.08);
    border: 1px solid rgba(47,85,212,0.15);
    border-radius: 2rem;
    padding: 0.25rem 0.85rem;
    margin-bottom: 0.9rem;
}
.blog-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--fpl-text-dark);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
.blog-page-hero__desc {
    font-size: 1.05rem;
    color: var(--fpl-text-body);
    max-width: 52ch;
    margin: 0;
}

/* =====================================================
   BLOG — HERO SEARCH BAR
   ===================================================== */
.blog-hero-search {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 1.35rem;
    max-width: 520px;
    background: #fff;
    border: 1.5px solid rgba(47,85,212,0.18);
    border-radius: 3rem;
    box-shadow: 0 4px 18px rgba(47,85,212,0.08);
    transition: border-color .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.blog-hero-search:focus-within {
    border-color: var(--fpl-primary);
    box-shadow: 0 4px 22px rgba(47,85,212,0.15), 0 0 0 3px rgba(47,85,212,0.08);
}
.blog-hero-search__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-left: 1.1rem;
    color: var(--fpl-text-muted);
    pointer-events: none;
}
.blog-hero-search input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--fpl-text-dark);
    padding: 0.75rem 0.75rem 0.75rem 0.6rem;
    -webkit-appearance: none;
}
.blog-hero-search input[type="search"]::placeholder { color: var(--fpl-text-muted); }
.blog-hero-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.blog-hero-search button {
    flex-shrink: 0;
    background: var(--fpl-primary);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.35rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 2rem;
    cursor: pointer;
    transition: background .2s ease;
    white-space: nowrap;
}
.blog-hero-search button:hover { background: var(--fpl-primary-dark); }

/* =====================================================
   BLOG — HERO INNER (two-col: title + stats)
   ===================================================== */
.blog-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.blog-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    padding-bottom: 0.15rem;
}
.blog-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    background: rgba(47,85,212,0.06);
    border: 1px solid rgba(47,85,212,0.12);
    border-radius: var(--fpl-radius);
    padding: 0.65rem 1.1rem;
    min-width: 5.5rem;
    text-align: center;
}
.blog-hero-stat__num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--fpl-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}
.blog-hero-stat__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fpl-text-muted);
}
@media (max-width: 575.98px) {
    .blog-hero-stats { display: none; }
}

/* =====================================================
   BLOG — CATEGORY FILTER TABS BAR
   ===================================================== */
.cat-tabs-bar {
    background: #fff;
    border-bottom: 1px solid var(--fpl-border);
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 100;
    box-shadow: 0 2px 12px rgba(47,85,212,0.05);
    /* Fade edges to indicate horizontal scroll */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}
.cat-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    display: inline-block;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--fpl-text-muted);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
    flex-shrink: 0;
}
.cat-tab:hover { color: var(--fpl-primary); }
.cat-tab--active {
    color: var(--fpl-primary);
    font-weight: 600;
    border-bottom-color: var(--fpl-primary);
}

/* Platform-specific active tab colours */
.cat-tab--facebook.cat-tab--active  { color: var(--fpl-cat-facebook);  border-bottom-color: var(--fpl-cat-facebook); }
.cat-tab--instagram.cat-tab--active { color: var(--fpl-cat-instagram); border-bottom-color: var(--fpl-cat-instagram); }
.cat-tab--youtube.cat-tab--active   { color: var(--fpl-cat-youtube);   border-bottom-color: var(--fpl-cat-youtube); }
.cat-tab--tiktok.cat-tab--active    { color: var(--fpl-cat-tiktok);    border-bottom-color: var(--fpl-cat-tiktok); }
.cat-tab--twitter.cat-tab--active,
.cat-tab--x.cat-tab--active         { color: var(--fpl-cat-twitter);   border-bottom-color: var(--fpl-cat-twitter); }

/* =====================================================
   BLOG — INDEX PAGE WRAPPER & GRID
   ===================================================== */
.blog-index-wrap { padding: 3rem 0 4rem; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .post-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.blog-index-pagination { display: flex; justify-content: center; padding-top: 1rem; }

/* =====================================================
   BLOG — POST CARD (updated with new elements)
   ===================================================== */

/* Category badge overlaid on image (top-left) */
.post-card__cat-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    background: var(--fpl-primary);
    border-radius: 2rem;
    padding: 0.28rem 0.75rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}
.post-card__cat-badge:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 5px 14px rgba(0,0,0,0.28); }

/* Platform colour overrides for image badges */
.post-card__cat-badge--facebook  { background: var(--fpl-cat-facebook); }
.post-card__cat-badge--instagram { background: var(--fpl-cat-instagram); }
.post-card__cat-badge--youtube   { background: var(--fpl-cat-youtube); }
.post-card__cat-badge--tiktok    { background: var(--fpl-cat-tiktok); }
.post-card__cat-badge--twitter,
.post-card__cat-badge--x         { background: var(--fpl-cat-twitter); }
.post-card__cat-badge--soundcloud{ background: var(--fpl-cat-soundcloud); }
.post-card__cat-badge--pinterest { background: var(--fpl-cat-pinterest); }
.post-card__cat-badge--linkedin  { background: var(--fpl-cat-linkedin); }

/* Platform colour overrides for text badges (hero card / related) */
.post-card__category--facebook  { color: var(--fpl-cat-facebook);  background: rgba(24,119,242,0.09); }
.post-card__category--instagram { color: var(--fpl-cat-instagram); background: rgba(225,48,108,0.09); }
.post-card__category--youtube   { color: var(--fpl-cat-youtube);   background: rgba(255,0,0,0.08); }
.post-card__category--tiktok    { color: var(--fpl-cat-tiktok);    background: rgba(1,1,1,0.08); }
.post-card__category--twitter,
.post-card__category--x         { color: #000;                     background: rgba(0,0,0,0.07); }

/* Meta row: date + read time inline */
.post-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.post-card__date {
    font-size: 0.77rem;
    color: var(--fpl-text-muted);
}
.post-card__readtime {
    font-size: 0.72rem;
    color: var(--fpl-text-muted);
    background: rgba(47,85,212,0.06);
    border-radius: 2rem;
    padding: 0.1rem 0.55rem;
    white-space: nowrap;
}

/* Empty state */
.blog-empty-state {
    text-align: center;
    padding: 5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.blog-empty-state svg { margin-bottom: 0.5rem; }
.blog-empty-state h2 { font-size: 1.25rem; font-weight: 700; color: var(--fpl-text-dark); margin: 0; }
.blog-empty-state p  { font-size: 0.95rem; color: var(--fpl-text-muted); margin: 0; }

/* =====================================================
   BLOG — POST CARDS
   ===================================================== */
.post-card {
    background: #fff;
    border-radius: var(--fpl-radius-lg);
    border: 1px solid var(--fpl-border);
    box-shadow: 0 2px 16px rgba(47,85,212,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
    height: 100%;
}
.post-card:hover {
    box-shadow: 0 16px 40px rgba(47,85,212,0.16);
    transform: translateY(-4px);
    border-color: rgba(47,85,212,0.28);
}
.post-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eaeefa;
    flex-shrink: 0;
}
.post-card__image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.post-card:hover .post-card__image-wrap img { transform: scale(1.04); }
.post-card__image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(47,85,212,0.3);
}
.post-card__image-placeholder svg { width: 3rem; height: 3rem; }
.post-card__body {
    padding: 1.35rem 1.35rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--fpl-primary);
    background: rgba(47,85,212,0.07);
    border-radius: 2rem;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.65rem;
    text-decoration: none;
}
.post-card__category:hover { background: rgba(47,85,212,0.14); color: var(--fpl-primary); }
.post-card__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--fpl-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.32;
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.post-card:hover .post-card__title a { color: var(--fpl-primary); }
.post-card__excerpt {
    font-size: 0.925rem;
    color: var(--fpl-text-body);
    line-height: 1.6;
    margin: 0 0 0.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(47,85,212,0.08);
    margin-top: auto;
}
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--fpl-text-muted);
}
.post-card__meta svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; opacity: 0.7; }
.post-card__read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fpl-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    white-space: nowrap;
    margin-top: auto;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(47,85,212,0.09);
}
.post-card__read-more svg {
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(47,85,212,0.09);
    color: var(--fpl-primary);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.post-card:hover .post-card__read-more svg,
.post-card__read-more:hover svg {
    background: var(--fpl-primary);
    color: #fff;
    transform: translateX(2px);
}
.post-card__read-more:hover { color: var(--fpl-primary-dark); }

/* Featured (large) post card */
.post-card--featured {
    flex-direction: row;
}
.post-card--featured .post-card__image-wrap {
    width: 45%;
    aspect-ratio: auto;
    min-height: 280px;
    flex-shrink: 0;
}
.post-card--featured .post-card__body { padding: 2rem; }
.post-card--featured .post-card__title { font-size: 1.45rem; }
.post-card--featured .post-card__excerpt { -webkit-line-clamp: 4; }
@media (max-width: 767.98px) {
    .post-card--featured { flex-direction: column; }
    .post-card--featured .post-card__image-wrap { width: 100%; aspect-ratio: 16 / 9; min-height: unset; }
}

/* =====================================================
   BLOG — SINGLE POST
   ===================================================== */
.single-post-wrap { background: #fff; border-radius: var(--fpl-radius); border: 1px solid var(--fpl-border); box-shadow: 0 2px 16px rgba(47,85,212,0.06); overflow: hidden; }
.single-post-hero { position: relative; overflow: hidden;background: #eaeefa; }
.single-post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-post-body { padding: 2.25rem 2.25rem 2.5rem; }
@media (max-width: 767.98px) { .single-post-body { padding: 1.35rem; } }
.single-post-category {
    display: inline-block;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--fpl-primary); background: rgba(47,85,212,0.07); border-radius: 2rem;
    padding: 0.2rem 0.7rem; margin-bottom: 0.85rem; text-decoration: none;
}
.single-post-category:hover { background: rgba(47,85,212,0.14); color: var(--fpl-primary); }
.single-post-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700; letter-spacing: -0.03em; color: var(--fpl-text-dark); line-height: 1.2; margin: 0 0 1rem;
}
.single-post-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
    font-size: 0.85rem; color: var(--fpl-text-muted);
    padding-bottom: 1.5rem; border-bottom: 1px solid rgba(47,85,212,0.1); margin-bottom: 1.75rem;
}
.single-post-meta__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.single-post-meta__item svg { width: 0.9rem; height: 0.9rem; opacity: 0.65; }
.single-post-meta__label { font-weight: 500; color: var(--fpl-text-muted); }
.single-post-meta__item--updated { color: #16a34a; }
.single-post-meta__item--updated svg { opacity: 0.8; }
.single-post-meta__author-avatar {
    width: 2rem; height: 2rem; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(47,85,212,0.15);
}
.single-post-meta__author-link {
    color: inherit; font-weight: 600; text-decoration: none;
    transition: color .2s ease;
}
.single-post-meta__author-link:hover { color: var(--fpl-primary); text-decoration: underline; }

/* =====================================================
   AUTHOR ARCHIVE
   ===================================================== */
.author-hero { padding: 2.5rem 0 0.5rem; }
.author-hero__card {
    position: relative;
    background: #fff;
    border: 1px solid var(--fpl-border);
    border-radius: var(--fpl-radius-lg);
    box-shadow: var(--fpl-shadow-md);
    overflow: hidden;
}
.author-hero__banner {
    height: 120px;
    background:
        radial-gradient(ellipse 80% 120% at 15% 0%, rgba(91,122,232,0.55), transparent 60%),
        radial-gradient(ellipse 70% 120% at 90% 20%, rgba(36,71,184,0.5), transparent 55%),
        linear-gradient(120deg, var(--fpl-primary) 0%, var(--fpl-primary-dark) 100%);
}
.author-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2.5rem 2.25rem;
    margin-top: -66px;
}
.author-hero__avatar-ring {
    display: inline-flex;
    padding: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(47,85,212,0.22);
    margin-bottom: 1rem;
}
.author-hero__avatar {
    width: 7rem; height: 7rem; border-radius: 50%;
    object-fit: cover; display: block;
}
.author-hero__avatar--initials {
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--fpl-primary) 0%, var(--fpl-primary-light) 100%);
}
.author-hero__eyebrow {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--fpl-primary);
    background: rgba(47,85,212,0.08);
    border-radius: 2rem; padding: 0.2rem 0.8rem; margin: 0 0 0.55rem;
}
.author-hero__name {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800;
    letter-spacing: -0.03em; color: var(--fpl-text-dark); line-height: 1.12; margin: 0;
}
.author-hero__stats {
    display: inline-flex; align-items: center; gap: 1.25rem;
    margin: 1rem 0 0.25rem;
}
.author-hero__stat { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.author-hero__stat-num { font-size: 1.35rem; font-weight: 800; color: var(--fpl-text-dark); }
.author-hero__stat-label {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fpl-text-muted); margin-top: 0.15rem;
}
.author-hero__stat-div { width: 1px; height: 2rem; background: var(--fpl-border); }
.author-hero__bio {
    font-size: 1.02rem; line-height: 1.7; color: var(--fpl-text-body);
    max-width: 60ch; margin: 1.1rem auto 0;
}
@media (max-width: 575.98px) {
    .author-hero__inner { padding: 0 1.25rem 1.75rem; }
    .author-hero__avatar { width: 5.5rem; height: 5.5rem; }
}

/* About-the-author box (single posts) */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--fpl-border);
    border-radius: var(--fpl-radius-lg);
    box-shadow: var(--fpl-shadow);
}
.author-box__avatar-ring { flex-shrink: 0; }
.author-box__avatar {
    width: 5rem; height: 5rem; border-radius: 50%;
    object-fit: cover; display: block;
    border: 3px solid rgba(47,85,212,0.1);
}
.author-box__avatar--initials {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--fpl-primary) 0%, var(--fpl-primary-light) 100%);
    border-color: transparent;
}
.author-box__eyebrow {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--fpl-primary); margin: 0 0 0.15rem;
}
.author-box__name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.5rem; line-height: 1.2; }
.author-box__name a { color: var(--fpl-text-dark); text-decoration: none; transition: color .2s ease; }
.author-box__name a:hover { color: var(--fpl-primary); }
.author-box__bio { font-size: 0.95rem; line-height: 1.65; color: var(--fpl-text-body); margin: 0 0 0.85rem; }
.author-box__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.author-box__profile, .author-box__website {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    color: var(--fpl-primary); transition: gap .2s ease, color .2s ease;
}
.author-box__profile:hover { gap: 0.5rem; color: var(--fpl-primary-dark); }
.author-box__website { color: var(--fpl-text-muted); }
.author-box__website:hover { color: var(--fpl-primary); }
@media (max-width: 575.98px) {
    .author-box { flex-direction: column; gap: 1rem; padding: 1.35rem; }
    .author-box__avatar, .author-box__avatar--initials { width: 4rem; height: 4rem; }
    .author-box__avatar--initials { font-size: 1.3rem; }
}

/* Author social links (shared: author box + author page) */
.author-social { margin: 0 0 0.9rem; }
.author-social__label {
    display: block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--fpl-text-muted);
    margin-bottom: 0.5rem;
}
.author-social__icons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.author-hero__inner .author-social { margin: 1.4rem 0 0; text-align: center; }
.author-hero__inner .author-social__icons { justify-content: center; }
.author-social__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.3rem; height: 2.3rem; border-radius: 50%;
    color: var(--fpl-text-muted);
    background: rgba(47,85,212,0.06);
    border: 1px solid rgba(47,85,212,0.12);
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
.author-social__link:hover { transform: translateY(-2px); color: #fff; }
.author-social__link--twitter:hover   { background: #000;     border-color: #000; }
.author-social__link--facebook:hover  { background: #1877f2; border-color: #1877f2; }
.author-social__link--instagram:hover { background: #e1306c; border-color: #e1306c; }
.author-social__link--linkedin:hover  { background: #0a66c2; border-color: #0a66c2; }
.author-social__link--youtube:hover    { background: #ff0000; border-color: #ff0000; }
.author-social__link--tiktok:hover     { background: #010101; border-color: #010101; }

/* Post content typography */
.post-content { font-size: 1.05rem; color: var(--fpl-text-body); line-height: 1.78; }
.post-content h2, .post-content h3, .post-content h4 {
    font-weight: 700; color: var(--fpl-text-dark); letter-spacing: -0.02em; margin-top: 2rem; margin-bottom: 0.75rem;
}

/* Section heading (H2) — stands apart as a major break */
.post-content h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-top: 3rem;
    padding-top: 1.75rem;
    padding-left: 1rem;
    border-top: 1px solid rgba(47,85,212,0.12);
    position: relative;
}
.post-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.75rem;
    bottom: 0.15rem;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--fpl-primary), var(--fpl-primary-light));
}
.post-content > h2:first-child,
.post-content > h2:first-of-type:first-child { margin-top: 1.5rem; }

/* Numbered tip heading (H3) — each tip reads as its own unit */
.post-content h3 {
    font-size: 1.22rem;
    line-height: 1.35;
    margin-top: 2.25rem;
}
.post-content h4 { font-size: 1.1rem; }
.post-content p { margin-bottom: 1.4rem; }

/* Lead / intro paragraph — opens the article with emphasis */
.post-content > p:first-child {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--fpl-text-dark);
    background: rgba(47,85,212,0.05);
    border-left: 4px solid var(--fpl-primary);
    border-radius: 0 0.6rem 0.6rem 0;
    padding: 1.15rem 1.4rem;
    margin-bottom: 2rem;
}
.post-content > p:first-child strong { font-weight: 600; }
.post-content a { color: var(--fpl-primary); text-decoration: underline; }
.post-content a:hover { color: var(--fpl-primary-dark); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.post-content li { margin-bottom: 0.35rem; }
.post-content blockquote {
    margin: 1.75rem 0; padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--fpl-primary);
    background: rgba(47,85,212,0.04); border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic; color: var(--fpl-text-body);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content img { border-radius: 0.5rem; max-width: 100%; height: auto; margin: 1rem 0; }
.post-content pre {
    background: #1a1d24; color: #e8ecf4;
    padding: 1.25rem 1.5rem; border-radius: 0.65rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.9rem;
}
.post-content code {
    background: rgba(47,85,212,0.07); color: var(--fpl-primary);
    padding: 0.15rem 0.45rem; border-radius: 0.25rem; font-size: 0.9em;
}
.post-content pre code { background: transparent; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
.post-content figure { margin: 1.5rem 0; }
.post-content figcaption {
    text-align: center; font-size: 0.82rem; color: var(--fpl-text-muted);
    margin-top: 0.5rem; font-style: italic;
}
.post-content figure img { margin: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.35rem; font-size: 0.95rem; }
.post-content table th, .post-content table td { padding: 0.65rem 0.9rem; border: 1px solid rgba(47,85,212,0.12); text-align: left; }
.post-content table th { background: rgba(47,85,212,0.06); font-weight: 600; color: var(--fpl-text-dark); }
.post-content table tr:nth-child(even) td { background: rgba(47,85,212,0.02); }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(47,85,212,0.1); }
.post-tag {
    font-size: 0.78rem; font-weight: 500; color: var(--fpl-text-body);
    background: rgba(47,85,212,0.06); border: 1px solid rgba(47,85,212,0.12);
    border-radius: 2rem; padding: 0.25rem 0.75rem; text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.post-tag:hover { background: rgba(47,85,212,0.12); color: var(--fpl-primary); }


/* =====================================================
   SOCIAL SHARE BAR
   ===================================================== */
.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(47,85,212,0.1);
}
.post-share__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fpl-text-dark);
}
.post-share__buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.post-share__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(47,85,212,0.12);
    background: rgba(47,85,212,0.06);
    color: var(--fpl-text-body);
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.post-share__btn:hover { transform: translateY(-2px); color: #fff; }
.post-share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 6px 16px rgba(24,119,242,0.35); }
.post-share__btn--x:hover        { background: #000;     border-color: #000;     box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.post-share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 6px 16px rgba(10,102,194,0.35); }
.post-share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; box-shadow: 0 6px 16px rgba(37,211,102,0.35); }
.post-share__btn--copy:hover     { background: var(--fpl-primary); border-color: var(--fpl-primary); box-shadow: 0 6px 16px rgba(47,85,212,0.3); }
.post-share__btn--copy .post-share__icon-check,
.post-share__btn--copy .post-share__copied { display: none; }
.post-share__copied {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--fpl-text-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
}
.post-share__btn--copy.is-copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.post-share__btn--copy.is-copied .post-share__icon-link { display: none; }
.post-share__btn--copy.is-copied .post-share__icon-check,
.post-share__btn--copy.is-copied .post-share__copied { display: inline-flex; }


/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar-widget {
    background: #fff;
    border-radius: var(--fpl-radius);
    border: 1px solid var(--fpl-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(47,85,212,0.05);
}
.sidebar-widget__title {
    font-size: 1rem; font-weight: 700; color: var(--fpl-text-dark);
    letter-spacing: -0.02em; margin: 0 0 1.1rem;
    padding-bottom: 0.75rem; position: relative;
}
.sidebar-widget__title::after {
    content: ""; position: absolute; bottom: 0; left: 0;
    width: 2.5rem; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--fpl-primary), var(--fpl-primary-light));
}
/* Search widget */
.sidebar-search-form { display: flex; gap: 0.5rem; }
.sidebar-search-form input {
    flex: 1; border: 1px solid var(--fpl-border); border-radius: 0.5rem;
    padding: 0.55rem 0.85rem; font-family: inherit; font-size: 0.9rem; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.sidebar-search-form input:focus {
    border-color: rgba(47,85,212,0.4);
    box-shadow: 0 0 0 3px rgba(47,85,212,0.1);
}
.sidebar-search-form button {
    background: var(--fpl-primary); color: #fff; border: none;
    border-radius: 0.5rem; padding: 0.55rem 1rem; font-family: inherit;
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    transition: background .2s ease;
}
.sidebar-search-form button:hover { background: var(--fpl-primary-dark); }
/* Recent posts widget */
.sidebar-recent-post { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.sidebar-recent-post:last-child { margin-bottom: 0; }
.sidebar-recent-post__img {
    width: 3.5rem; height: 3.5rem; border-radius: 0.45rem;
    object-fit: cover; flex-shrink: 0; border: 1px solid var(--fpl-border);
}
.sidebar-recent-post__title {
    font-size: 0.87rem; font-weight: 600; color: var(--fpl-text-dark);
    line-height: 1.3; margin: 0 0 0.25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-recent-post__title a { color: inherit; text-decoration: none; }
.sidebar-recent-post__title a:hover { color: var(--fpl-primary); }
.sidebar-recent-post__date { font-size: 0.75rem; color: var(--fpl-text-muted); }
/* Categories widget */
.sidebar-categories { list-style: none; padding: 0; margin: 0; }
.sidebar-categories li { border-bottom: 1px solid rgba(47,85,212,0.07); }
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; color: var(--fpl-text-body); font-size: 0.9rem; text-decoration: none;
    transition: color .2s ease;
}
.sidebar-categories a:hover { color: var(--fpl-primary); }
.sidebar-categories .count {
    background: rgba(47,85,212,0.08); color: var(--fpl-primary);
    font-size: 0.72rem; font-weight: 600; border-radius: 2rem;
    padding: 0.1rem 0.55rem;
}
/* Tag cloud widget */
.sidebar-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sidebar-tag-cloud a {
    font-size: 0.78rem; font-weight: 500; color: var(--fpl-text-body);
    background: rgba(47,85,212,0.06); border: 1px solid rgba(47,85,212,0.12);
    border-radius: 2rem; padding: 0.2rem 0.65rem; text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.sidebar-tag-cloud a:hover { background: rgba(47,85,212,0.12); color: var(--fpl-primary); }

/* =====================================================
   PAGINATION
   ===================================================== */
.fpl-pagination { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.fpl-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 0.65rem;
    border: 1px solid var(--fpl-border); border-radius: 0.5rem;
    font-size: 0.9rem; font-weight: 500; color: var(--fpl-text-body);
    text-decoration: none; background: #fff;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.fpl-pagination .page-numbers:hover,
.fpl-pagination .page-numbers.current {
    background: var(--fpl-primary); border-color: var(--fpl-primary);
    color: #fff;
}
.fpl-pagination .page-numbers.dots { pointer-events: none; background: transparent; border-color: transparent; }

/* =====================================================
   SECTION HEADING (shared with Laravel site)
   ===================================================== */
.home-section-heading-accent {
    color: var(--fpl-text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
    padding-bottom: 0.85rem;
    position: relative;
}
.home-section-heading-accent::after {
    content: "";
    position: absolute; bottom: 0;
    width: 3.25rem; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--fpl-primary), var(--fpl-primary-light));
    box-shadow: 0 2px 8px rgba(47,85,212,0.35);
}
.home-section-heading-accent--center::after { left: 50%; transform: translateX(-50%); }
.home-section-heading-accent--start::after  { left: 0; transform: none; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.fpl-breadcrumb { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 0.875rem; }
.fpl-breadcrumb__item { display: inline-flex; align-items: center; }
.fpl-breadcrumb__item a { color: var(--fpl-primary); font-weight: 500; text-decoration: none; }
.fpl-breadcrumb__item a:hover { color: var(--fpl-primary-dark); text-decoration: underline; }
.fpl-breadcrumb__item--current { color: var(--fpl-text-dark); font-weight: 400; }
.fpl-breadcrumb__sep { color: var(--fpl-text-muted); font-weight: 400; user-select: none; padding: 0 0.5rem; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn { transition: all 0.2s ease; }
.btn:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.btn-primary-fpl {
    background: var(--fpl-primary); color: #fff; border: 2px solid var(--fpl-primary);
    padding: 0.6rem 1.5rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-primary-fpl:hover {
    background: var(--fpl-primary-dark); border-color: var(--fpl-primary-dark); color: #fff;
    box-shadow: 0 6px 20px rgba(47,85,212,0.3); transform: translateY(-1px);
}

/* =====================================================
   COMMENTS
   ===================================================== */
.comments-section { margin-top: 2.5rem; }
.comments-section .comments-title { font-size: 1.3rem; font-weight: 700; color: var(--fpl-text-dark); margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment { background: #fff; border: 1px solid var(--fpl-border); border-radius: var(--fpl-radius); padding: 1.25rem; margin-bottom: 1rem; }
.comment .comment-author img { border-radius: 50%; border: 2px solid rgba(47,85,212,0.15); }
.comment .comment-author .fn { font-weight: 600; color: var(--fpl-text-dark); font-style: normal; }
.comment .comment-meta { font-size: 0.8rem; color: var(--fpl-text-muted); margin-bottom: 0.5rem; }
.comment .comment-content p { font-size: 0.95rem; color: var(--fpl-text-body); margin-bottom: 0; }
.comment-respond { background: #fff; border: 1px solid var(--fpl-border); border-radius: var(--fpl-radius); padding: 1.75rem; margin-top: 2rem; }
.comment-respond .comment-reply-title { font-size: 1.2rem; font-weight: 700; color: var(--fpl-text-dark); margin-bottom: 1.25rem; }
.comment-respond label { font-size: 0.875rem; font-weight: 500; color: var(--fpl-text-dark); display: block; margin-bottom: 0.35rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%; border: 1px solid var(--fpl-border); border-radius: 0.5rem;
    padding: 0.6rem 0.85rem; font-family: inherit; font-size: 0.9rem;
    outline: none; transition: border-color .2s ease, box-shadow .2s ease;
    margin-bottom: 1rem;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: rgba(47,85,212,0.4);
    box-shadow: 0 0 0 3px rgba(47,85,212,0.1);
}
.comment-respond .form-submit input[type="submit"] {
    background: var(--fpl-primary); color: #fff; border: none;
    border-radius: 0.5rem; padding: 0.65rem 1.75rem; font-family: inherit;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}
.comment-respond .form-submit input[type="submit"]:hover {
    background: var(--fpl-primary-dark);
    box-shadow: 0 4px 14px rgba(47,85,212,0.3);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#btn-back-to-top {
    position: fixed; bottom: 1.25rem; left: 1.25rem;
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: var(--fpl-primary); color: #fff; border: none;
    cursor: pointer; box-shadow: 0 4px 14px rgba(47,85,212,0.35);
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 999;
    display: none; align-items: center; justify-content: center;
}
#btn-back-to-top svg { width: 1rem; height: 1rem; }
#btn-back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(47,85,212,0.45); }

/* =====================================================
   404 PAGE
   ===================================================== */
.error-404-wrap {
    min-height: 55vh; display: flex; align-items: center; justify-content: center;
    padding: 4rem 1rem;
}
.error-404-wrap .error-code {
    font-size: clamp(5rem, 18vw, 10rem); font-weight: 700;
    color: transparent; -webkit-text-stroke: 3px rgba(47,85,212,0.2);
    letter-spacing: -0.06em; line-height: 1; margin: 0;
}
.error-404-wrap h2 { font-size: 1.5rem; font-weight: 700; color: var(--fpl-text-dark); margin-bottom: 0.75rem; }
.error-404-wrap p { color: var(--fpl-text-body); max-width: 40ch; margin: 0 auto 1.75rem; }

/* =====================================================
   PLATFORM SERVICE PROMO — in-post CTA block
   ===================================================== */
.platform-cta {
    margin: 2.25rem 0;
    border-radius: 1rem;
    border: 1px solid rgba(var(--cta-rgb), 0.18);
    background: rgba(var(--cta-rgb), 0.04);
    padding: 1.75rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.platform-cta::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--cta-color, #2f55d4);
}
/* Platform colour tokens */
.platform-cta--facebook  { --cta-color: #1877F2; --cta-rgb: 24,119,242; }
.platform-cta--youtube   { --cta-color: #FF0000; --cta-rgb: 255,0,0; }
.platform-cta--tiktok    { --cta-color: #2b2b2b; --cta-rgb: 43,43,43; }
.platform-cta--instagram { --cta-color: #E1306C; --cta-rgb: 225,48,108; }
.platform-cta--x,
.platform-cta--twitter   { --cta-color: #1a1a1a; --cta-rgb: 26,26,26; }

/* Header row: icon + title */
.platform-cta__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}
.platform-cta__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: var(--cta-color);
    color: #fff;
    flex-shrink: 0;
}
.platform-cta--instagram .platform-cta__logo-wrap { background: linear-gradient(135deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888); }
.platform-cta__eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--cta-color);
    margin: 0 0 0.15rem;
    line-height: 1;
}
.platform-cta__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1d24;
    margin: 0;
    line-height: 1.2;
}
.platform-cta__tagline {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* Service pills */
.platform-cta__pills {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.platform-cta__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 2rem;
    border: 1.5px solid rgba(var(--cta-rgb), 0.22);
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
    white-space: nowrap;
}
.platform-cta__pill svg { opacity: 0.65; transition: opacity 0.18s; }
.platform-cta__pill:hover {
    border-color: var(--cta-color);
    color: var(--cta-color);
    background: rgba(var(--cta-rgb), 0.05);
    box-shadow: 0 2px 8px rgba(var(--cta-rgb), 0.18);
    transform: translateY(-1px);
}
.platform-cta__pill:hover svg { opacity: 1; }

/* Explore link */
.platform-cta__explore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--cta-color);
    text-decoration: none;
    border-top: 1px solid rgba(var(--cta-rgb), 0.12);
    padding-top: 1rem;
    width: 100%;
    transition: gap 0.18s;
}
.platform-cta__explore svg { transition: transform 0.18s ease; }
.platform-cta__explore:hover { gap: 0.55rem; color: var(--cta-color); }
.platform-cta__explore:hover svg { transform: translateX(3px); }

@media (max-width: 575px) {
    .platform-cta { padding: 1.25rem 1.25rem 1rem; }
    .platform-cta__pill { font-size: 0.78rem; padding: 0.38rem 0.7rem; }
}

/* =====================================================
   YOU MAY ALSO LIKE — related posts section
   ===================================================== */
.related-posts {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--fpl-border);
}
.related-posts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.related-posts__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fpl-text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}
.related-posts__see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fpl-primary);
    text-decoration: none;
    white-space: nowrap;
}
.related-posts__see-all svg { transition: transform 0.2s ease; }
.related-posts__see-all:hover { color: var(--fpl-primary-dark); }
.related-posts__see-all:hover svg { transform: translateX(3px); }

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 767.98px) {
    .related-posts__grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

.related-card {
    background: #fff;
    border: 1px solid var(--fpl-border);
    border-radius: var(--fpl-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.related-card:hover {
    box-shadow: var(--fpl-shadow-md);
    transform: translateY(-3px);
}

.related-card__img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fpl-bg);
}
.related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.related-card:hover .related-card__img-wrap img { transform: scale(1.04); }

.related-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-card__img-placeholder svg { width: 44px; height: 44px; }

.related-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.related-card__cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fpl-primary);
    text-decoration: none;
}
.related-card__cat:hover { color: var(--fpl-primary-dark); }

.related-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: var(--fpl-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card__title a { color: inherit; text-decoration: none; }
.related-card__title a:hover { color: var(--fpl-primary); }

.related-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--fpl-text-muted);
    margin-top: auto;
    padding-top: 0.35rem;
}

/* =====================================================
   UTILITIES / MISC
   ===================================================== */
.bg-fpl-bg { background-color: var(--fpl-bg); }
.text-primary-fpl { color: var(--fpl-primary); }
.border-fpl { border-color: var(--fpl-border) !important; }
.rounded-fpl { border-radius: var(--fpl-radius); }
