/* =========================================================
   Pexelsfy Premium Header, Mega Menu, Cover & Landing Page
   Performance notes: only transform/opacity/visibility are
   animated. Background images use CSS custom properties, no
   per-page stylesheet generation. Breakpoints: 1400 / 1200 / 1024
   / 800 / 782 (mobile) / 480.
   ========================================================= */

:root { --pxf-mobile-breakpoint: 782px; }

.pxf-header *, .pxf-hero *, .pxf-landing-wrap * { box-sizing: border-box; }

/* ---------- Header shell ---------- */
.pxf-header {
    position: relative;
    z-index: 500;
    width: 100%;
    background: var(--pxf-header-bg, #ffffff);
    color: var(--pxf-header-text, #222222);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.pxf-header.pxf-header-sticky { position: sticky; top: 0; }
.pxf-header.pxf-header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border-bottom-color: transparent;
}
.pxf-header.pxf-header-transparent.pxf-header-scrolled {
    position: sticky;
    background: var(--pxf-header-bg, #ffffff);
    border-bottom-color: rgba(0, 0, 0, .06);
}

.pxf-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: var(--pxf-header-height, 76px);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.pxf-header.pxf-header-full .pxf-header-inner { max-width: none; }

/* ---------- Logo ---------- */
.pxf-header-logo { flex: 0 0 auto; display: flex; align-items: center; }
.pxf-header-logo a { display: inline-flex; align-items: center; text-decoration: none; }
.pxf-header-logo img { display: block; height: auto; max-height: calc(var(--pxf-header-height, 76px) - 20px); }
.pxf-logo-desktop { display: block !important; }
.pxf-logo-mobile { display: none !important; }
.pxf-site-title { font-size: 20px; font-weight: 700; color: var(--pxf-header-text, #222222); }

/* ---------- Panel wrapping nav + mobile-only search ---------- */
.pxf-header-panel { display: flex; align-items: center; flex: 1 1 auto; justify-content: space-between; gap: 20px; }

/* Menu horizontal alignment (desktop) */
.pxf-menu-align-left .pxf-header-nav { order: 1; }
.pxf-menu-align-left .pxf-header-search { order: 2; margin-left: auto; }
.pxf-menu-align-center .pxf-header-panel { justify-content: center; position: relative; }
.pxf-menu-align-center .pxf-header-search { position: absolute; right: 0; }
.pxf-menu-align-right .pxf-header-nav { order: 2; margin-left: auto; }
.pxf-menu-align-right .pxf-header-search { order: 1; }
.pxf-menu-align-space-between .pxf-header-panel { justify-content: space-between; }

/* ---------- Primary nav / mega menu ---------- */
.pxf-header-nav { flex: 1 1 auto; }
.pxf-menu-align-center .pxf-header-nav { flex: 0 0 auto; }
.pxf-primary-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: var(--pxf-menu-item-spacing, 28px) !important;
    column-gap: var(--pxf-menu-item-spacing, 28px) !important;
}
.pxf-menu-item { position: relative; }
.pxf-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-size: var(--pxf-menu-font-size, 15px);
    font-weight: var(--pxf-menu-font-weight, 500);
    letter-spacing: var(--pxf-menu-letter-spacing, 0px);
    line-height: var(--pxf-header-height, 76px);
    white-space: nowrap;
    padding: 0 var(--pxf-menu-padding-h, 4px);
    transition: color .15s ease;
}
.pxf-menu-uppercase .pxf-menu-link { text-transform: uppercase; }
.pxf-menu-item > .pxf-menu-link:hover,
.pxf-menu-item > .pxf-menu-link:focus { color: var(--pxf-header-hover, #e11d48); }

/* Menu style variants (top-level items only) */
.pxf-menu-style-underline .pxf-menu-item:not(.pxf-menu-search-item) > .pxf-menu-link { position: relative; }
.pxf-menu-style-underline .pxf-menu-item:not(.pxf-menu-search-item) > .pxf-menu-link::after {
    content: "";
    position: absolute;
    left: var(--pxf-menu-padding-h, 4px);
    right: var(--pxf-menu-padding-h, 4px);
    bottom: calc(50% - (var(--pxf-header-height, 76px) / 2) + 10px);
    height: 2px;
    background: var(--pxf-header-hover, #e11d48);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}
.pxf-menu-style-underline .pxf-menu-item:not(.pxf-menu-search-item):hover > .pxf-menu-link::after { transform: scaleX(1); }

.pxf-menu-style-pill .pxf-menu-item:not(.pxf-menu-search-item) > .pxf-menu-link {
    padding: var(--pxf-menu-padding-v, 8px) 16px;
    border-radius: 999px;
    line-height: 1.2;
}
.pxf-menu-style-pill .pxf-menu-item:not(.pxf-menu-search-item):hover > .pxf-menu-link { background: var(--pxf-menu-dd-hover-bg, #f6f6f6); }

.pxf-menu-style-bordered .pxf-menu-item:not(.pxf-menu-search-item) > .pxf-menu-link {
    padding: var(--pxf-menu-padding-v, 6px) 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    line-height: 1.2;
}
.pxf-menu-style-bordered .pxf-menu-item:not(.pxf-menu-search-item):hover > .pxf-menu-link { border-color: var(--pxf-header-hover, #e11d48); }

/* Current-page active indicator (WordPress adds .current-menu-item / .current-menu-ancestor natively) */
.pxf-menu-active-underline .current-menu-item > .pxf-menu-link,
.pxf-menu-active-underline .current-menu-ancestor > .pxf-menu-link { color: var(--pxf-menu-active-color, #e11d48); }
.pxf-menu-active-underline .current-menu-item > .pxf-menu-link::after { transform: scaleX(1) !important; background: var(--pxf-menu-active-color, #e11d48); }
.pxf-menu-active-dot .current-menu-item > .pxf-menu-link { position: relative; }
.pxf-menu-active-dot .current-menu-item > .pxf-menu-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pxf-menu-active-color, #e11d48);
}
.pxf-menu-active-bg .current-menu-item > .pxf-menu-link { background: var(--pxf-menu-dd-hover-bg, #f6f6f6); border-radius: 6px; }
.pxf-menu-active-none .current-menu-item > .pxf-menu-link { color: var(--pxf-menu-active-color, #e11d48); }

.pxf-menu-caret {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    opacity: .6;
    transition: transform .15s ease;
}
.pxf-menu-item-has-children:hover > .pxf-menu-link .pxf-menu-caret,
.pxf-menu-item-has-children.pxf-open > .pxf-menu-link .pxf-menu-caret {
    transform: rotate(225deg);
    margin-top: 2px;
}

/* Search icon inside the menu */
.pxf-menu-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}
.pxf-menu-search-toggle:hover { background: var(--pxf-menu-dd-hover-bg, #f6f6f6); color: var(--pxf-header-hover, #e11d48); }

/* Full-screen search overlay */
.pxf-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .98);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.pxf-search-overlay.pxf-active { opacity: 1; visibility: visible; transform: translateY(0); }
.pxf-search-overlay-inner { width: 100%; max-width: 720px; padding: 0 20px; }
.pxf-search-overlay-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #222;
}

/* Dropdown / mega panel */
.pxf-sub-menu {
    list-style: none;
    margin: 0;
    padding: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--pxf-menu-dd-bg, #ffffff);
    color: var(--pxf-menu-dd-text, #222222);
    border-radius: var(--pxf-menu-dd-radius, 10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 600;
}
.pxf-menu-item-has-children:hover > .pxf-sub-menu,
.pxf-menu-item-has-children.pxf-open > .pxf-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pxf-sub-menu .pxf-menu-link { line-height: 1.4; padding: 9px 12px; border-radius: 6px; font-weight: 400; }
.pxf-sub-menu .pxf-menu-link:hover {
    background: var(--pxf-menu-dd-hover-bg, #f6f6f6);
    color: var(--pxf-menu-dd-hover-text, #e11d48);
}
.pxf-sub-menu .pxf-sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 4px 0 4px 14px;
}

.pxf-sub-menu.pxf-mega-menu {
    display: grid;
    grid-template-columns: repeat(var(--pxf-mega-cols, 3), minmax(180px, 1fr));
    gap: 6px 28px;
    min-width: 480px;
    max-width: min(90vw, 900px);
    left: 50%;
    transform: translate(-50%, 6px);
}
.pxf-menu-item-has-children:hover > .pxf-sub-menu.pxf-mega-menu,
.pxf-menu-item-has-children.pxf-open > .pxf-sub-menu.pxf-mega-menu {
    transform: translate(-50%, 0);
}

/* =========================================================
   Search form — clean, modern default: pill shape, soft shadow,
   icon inline inside the input.
   ========================================================= */
.pxf-search-form {
    position: relative;
    display: flex;
    align-items: stretch;
    height: var(--pxf-search-height, 48px);
    border: var(--pxf-search-border-width, 1px) solid var(--pxf-search-border-color, #e6e6e6);
    background: var(--pxf-search-bg, #ffffff);
    color: var(--pxf-search-text, #222222);
    overflow: hidden;
    width: 100%;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.pxf-search-form:focus-within {
    border-color: var(--pxf-search-focus-color, #e11d48);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pxf-search-focus-color, #e11d48) 14%, transparent);
}
.pxf-search-shadow { box-shadow: 0 8px 24px rgba(0, 0, 0, .07); }
.pxf-search-shadow:focus-within { box-shadow: 0 8px 24px rgba(0, 0, 0, .07), 0 0 0 4px color-mix(in srgb, var(--pxf-search-focus-color, #e11d48) 14%, transparent); }

.pxf-search-style-rounded { border-radius: var(--pxf-search-radius, 10px); }
.pxf-search-style-pill { border-radius: 999px; }
.pxf-search-style-square { border-radius: 0; }
.pxf-search-style-underline { border-width: 0 0 2px 0; border-radius: 0; background: transparent; box-shadow: none !important; }

.pxf-search-icon-inline {
    display: flex;
    align-items: center;
    padding-left: 18px;
    color: var(--pxf-search-text, #222222);
    opacity: .5;
    flex: 0 0 auto;
}
.pxf-search-icons-inline .pxf-search-input { padding-left: 10px; }
.pxf-search-icons-button .pxf-search-icon-inline { display: none; }

.pxf-search-cat {
    border: none;
    border-right: 1px solid rgba(0, 0, 0, .08);
    background: rgba(0, 0, 0, .02);
    padding: 0 12px;
    font-size: 13px;
    max-width: 150px;
    color: inherit;
}
.pxf-search-catpos-right .pxf-search-cat { border-right: none; border-left: 1px solid rgba(0, 0, 0, .08); order: 2; }
.pxf-search-input {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0 14px;
    font-size: var(--pxf-search-font-size, 14px);
    min-width: 0;
}
.pxf-search-input::placeholder { color: currentColor; opacity: .45; }
.pxf-search-input:focus { outline: none; }
.pxf-search-btn {
    border: none;
    background: var(--pxf-header-hover, #e11d48);
    color: #ffffff;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .15s ease, transform .1s ease;
}
.pxf-search-btn:hover { filter: brightness(0.92); }
.pxf-search-btn:active { transform: scale(0.96); }

.pxf-header-search { flex: 0 0 auto; }
.pxf-header-search-mobile-visible { display: none; }

/* ---------- Mobile hamburger toggle ---------- */
.pxf-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.pxf-mobile-toggle span { display: block; width: 22px; height: 2px; background: currentColor; color: var(--pxf-header-text, #222222); transition: transform .2s ease, opacity .2s ease; }
.pxf-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pxf-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pxf-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pxf-mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--pxf-mobile-overlay-color, rgba(0, 0, 0, .5));
    backdrop-filter: blur(var(--pxf-mobile-overlay-blur, 0px));
    -webkit-backdrop-filter: blur(var(--pxf-mobile-overlay-blur, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 490;
}
.pxf-mobile-overlay.pxf-active { opacity: 1; visibility: visible; }

.pxf-mobile-close {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--pxf-mobile-close-color, #222222);
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s ease;
}
.pxf-mobile-close:hover { background: rgba(0, 0, 0, .06); }

/* ===========================================================
   Responsive tiers: 1400 / 1200 / 1024 / 800 / 782 (mobile) / 480
   =========================================================== */
@media (max-width: 1400px) {
    .pxf-header-inner { padding: 0 20px; }
}
@media (max-width: 1200px) {
    .pxf-primary-menu { gap: min(var(--pxf-menu-item-spacing, 28px), 20px) !important; column-gap: min(var(--pxf-menu-item-spacing, 28px), 20px) !important; }
}
@media (max-width: 1024px) {
    .pxf-menu-font-size { font-size: 14px; }
    .pxf-header-search .pxf-search-form { max-width: 220px; }
}
@media (max-width: 800px) {
    .pxf-hero-title { letter-spacing: -0.01em; }
}

@media (max-width: 782px) {
    .pxf-logo-desktop { display: none !important; }
    .pxf-logo-mobile { display: block !important; max-width: var(--pxf-mobile-logo-width, 120px); }
    .pxf-header-logo img { max-width: var(--pxf-mobile-logo-width, 120px); }
    .pxf-mobile-toggle { display: flex; }
    .pxf-header-search-desktop-only { display: none; }
    .pxf-header-search-mobile-visible { display: block; width: 100%; padding: 14px 0 0; }
    .pxf-header-inner { height: var(--pxf-mobile-header-height, 64px); padding: 0 16px; }

    .pxf-header-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(var(--pxf-mobile-panel-width, 320px), 86vw);
        background: var(--pxf-mobile-bg, #ffffff);
        color: var(--pxf-mobile-text, #222222);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--pxf-mobile-anim-speed, 250ms) ease;
        z-index: 500;
        padding: calc(var(--pxf-mobile-header-height, 64px) + 10px) var(--pxf-mobile-panel-padding, 24px) var(--pxf-mobile-panel-padding, 24px);
        border-radius: var(--pxf-mobile-panel-radius, 0) 0 0 var(--pxf-mobile-panel-radius, 0);
        box-shadow: none;
    }
    .pxf-header-panel.pxf-mobile-open { transform: translateX(0); }
    .pxf-mobile-panel-shadow .pxf-header-panel { box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
    .pxf-header-panel .pxf-mobile-close { display: flex; }
    .pxf-header[data-mobile-style="slide-left"] .pxf-header-panel { border-radius: 0 var(--pxf-mobile-panel-radius, 0) var(--pxf-mobile-panel-radius, 0) 0; }

    .pxf-header[data-mobile-style="fullscreen"] .pxf-header-panel { width: 100vw; max-width: 100vw; }
    .pxf-header[data-mobile-style="slide-left"] .pxf-header-panel { left: 0; right: auto; transform: translateX(-100%); box-shadow: 10px 0 30px rgba(0, 0, 0, .12); }
    .pxf-header[data-mobile-style="slide-left"] .pxf-header-panel.pxf-mobile-open { transform: translateX(0); }
    .pxf-header[data-mobile-style="dropdown"] .pxf-header-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - var(--pxf-mobile-header-height, 64px));
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--pxf-mobile-anim-speed, 250ms) ease, opacity var(--pxf-mobile-anim-speed, 250ms) ease, visibility var(--pxf-mobile-anim-speed, 250ms) ease;
        padding-top: 10px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    }
    .pxf-header[data-mobile-style="dropdown"] .pxf-header-panel.pxf-mobile-open { transform: translateY(0); opacity: 1; visibility: visible; }

    .pxf-primary-menu { flex-direction: column !important; align-items: stretch !important; gap: 0 !important; padding: 0 20px 20px; }
    .pxf-menu-link {
        font-size: var(--pxf-mobile-menu-font-size, 16px);
        line-height: 1.4;
        padding: var(--pxf-mobile-menu-padding, 13px) 0;
        border-bottom: 1px solid rgba(0, 0, 0, .06);
        justify-content: space-between;
    }
    .pxf-menu-style-underline .pxf-menu-item > .pxf-menu-link::after { display: none; }
    .pxf-menu-style-pill .pxf-menu-item > .pxf-menu-link,
    .pxf-menu-style-bordered .pxf-menu-item > .pxf-menu-link { border-radius: 0; border: none; padding: var(--pxf-mobile-menu-padding, 13px) 0; }
    .pxf-sub-menu, .pxf-sub-menu.pxf-mega-menu {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        max-width: none;
        left: auto;
        padding: 0 0 6px 14px;
    }
    .pxf-menu-item-has-children.pxf-open > .pxf-sub-menu { display: block; }
    .pxf-search-overlay-close { color: var(--pxf-mobile-close-color, #222222); }
}

/* =========================================================
   Cover / Hero section
   ========================================================= */
.pxf-hero {
    position: relative;
    width: 100%;
    height: var(--pxf-hero-height, 460px);
    display: flex;
    overflow: hidden;
    isolation: isolate;
    background: var(--pxf-hero-fallback-bg, #111827);
}
.pxf-hero-bg-layer {
    position: absolute;
    inset: 0;
    background-image: var(--pxf-hero-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.pxf-hero.pxf-hero-parallax .pxf-hero-bg-layer { background-attachment: fixed; }
.pxf-hero.pxf-hero-lazy .pxf-hero-bg-layer { background-image: none; }
.pxf-hero.pxf-hero-lazy.pxf-hero-loaded .pxf-hero-bg-layer { background-image: var(--pxf-hero-bg, none); transition: opacity .3s ease; }

.pxf-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--pxf-hero-overlay-color, #000000);
    opacity: var(--pxf-hero-overlay-opacity, .35);
    z-index: 1;
}
.pxf-hero-no-image .pxf-hero-overlay { opacity: calc(var(--pxf-hero-overlay-opacity, .35) * 0.4); }

.pxf-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
}
.pxf-hero-align-left .pxf-hero-content { align-items: flex-start; text-align: left; margin-left: 5%; }
.pxf-hero-align-right .pxf-hero-content { align-items: flex-end; text-align: right; margin-right: 5%; }

.pxf-hero-title { margin: 0; font-size: var(--pxf-hero-title-size, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--pxf-hero-title-color, #ffffff); }
.pxf-hero-subtitle { margin: 0; font-size: 17px; color: var(--pxf-hero-title-color, #ffffff); opacity: .9; }
.pxf-hero-search { width: 100%; display: flex; justify-content: center; }
.pxf-hero-align-left .pxf-hero-search { justify-content: flex-start; }
.pxf-hero-align-right .pxf-hero-search { justify-content: flex-end; }

.pxf-hero-tags,
.pxf-landing-tagcloud { display: flex; flex-wrap: wrap; gap: var(--pxf-tags-spacing, 10px); justify-content: center; }
.pxf-hero-align-left .pxf-hero-tags { justify-content: flex-start; }
.pxf-hero-align-right .pxf-hero-tags { justify-content: flex-end; }

.pxf-hero-tag-chip,
.pxf-landing-tag-chip {
    display: inline-block;
    padding: 6px 16px;
    font-size: var(--pxf-tags-font-size, 13px);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

/* Tags style variants */
.pxf-tags-style-pill .pxf-hero-tag-chip,
.pxf-tags-style-pill.pxf-landing-tagcloud .pxf-landing-tag-chip {
    border-radius: var(--pxf-tags-radius, 999px);
    background: var(--pxf-tags-bg, rgba(255,255,255,.16));
    color: var(--pxf-tags-text, #ffffff);
    border: 1px solid var(--pxf-tags-border-color, rgba(255,255,255,.5));
}
.pxf-tags-style-pill .pxf-hero-tag-chip:hover,
.pxf-tags-style-pill.pxf-landing-tagcloud .pxf-landing-tag-chip:hover {
    background: var(--pxf-tags-hover-bg, rgba(255,255,255,.32));
    color: var(--pxf-tags-hover-text, #ffffff);
}
.pxf-tags-style-outline .pxf-hero-tag-chip,
.pxf-tags-style-outline.pxf-landing-tagcloud .pxf-landing-tag-chip {
    border-radius: var(--pxf-tags-radius, 6px);
    background: transparent;
    color: var(--pxf-tags-text, #ffffff);
    border: 1px solid var(--pxf-tags-border-color, rgba(255,255,255,.5));
}
.pxf-tags-style-outline .pxf-hero-tag-chip:hover,
.pxf-tags-style-outline.pxf-landing-tagcloud .pxf-landing-tag-chip:hover {
    background: var(--pxf-tags-hover-bg, rgba(255,255,255,.16));
}
.pxf-tags-style-underline .pxf-hero-tag-chip,
.pxf-tags-style-underline.pxf-landing-tagcloud .pxf-landing-tag-chip {
    border-radius: 0;
    background: transparent;
    color: var(--pxf-tags-text, #ffffff);
    border: none;
    border-bottom: 2px solid transparent;
    padding-left: 4px;
    padding-right: 4px;
}
.pxf-tags-style-underline .pxf-hero-tag-chip:hover,
.pxf-tags-style-underline.pxf-landing-tagcloud .pxf-landing-tag-chip:hover {
    border-bottom-color: var(--pxf-tags-hover-text, currentColor);
}
.pxf-tags-uppercase-global .pxf-hero-tag-chip,
.pxf-tags-uppercase-global .pxf-landing-tag-chip { text-transform: uppercase; letter-spacing: .03em; }

.pxf-landing-tagcloud.pxf-tags-style-pill .pxf-landing-tag-chip { background: var(--pxf-landing-card-bg, #f1f3f5); color: var(--pxf-landing-text, #333333); border-color: var(--pxf-landing-card-bg, #f1f3f5); }
.pxf-landing-tagcloud.pxf-tags-style-pill .pxf-landing-tag-chip:hover { background: var(--pxf-landing-accent, #e11d48); color: #ffffff; }
.pxf-landing-tagcloud.pxf-tags-style-outline .pxf-landing-tag-chip { color: var(--pxf-landing-text, #333333); border-color: #d8dbdf; }
.pxf-landing-tagcloud.pxf-tags-style-underline .pxf-landing-tag-chip { color: var(--pxf-landing-text, #333333); }

@media (max-width: 782px) {
    .pxf-hero { height: var(--pxf-hero-height-mobile, 320px); }
    .pxf-hero.pxf-hero-parallax .pxf-hero-bg-layer { background-attachment: scroll; }
    .pxf-hero-bg-layer { background-image: var(--pxf-hero-bg-mobile, var(--pxf-hero-bg, none)); }
    .pxf-hero.pxf-hero-lazy.pxf-hero-loaded .pxf-hero-bg-layer { background-image: var(--pxf-hero-bg-mobile, var(--pxf-hero-bg, none)); }
    .pxf-hero-title { font-size: var(--pxf-hero-title-size-mobile, 28px); }
    .pxf-hero-content { gap: 12px; margin-left: 0 !important; margin-right: 0 !important; }
    .pxf-hero-align-left .pxf-hero-content,
    .pxf-hero-align-right .pxf-hero-content { align-items: center; text-align: center; }
}

.pxf-menu-missing { padding: 10px 0; font-size: 13px; }

/* Photoshop-style transparency checkerboard, for PNG category/post thumbnails */
.pxf-checkerboard {
    background-color: var(--pxf-checker-color-b, #ffffff);
    background-image:
        linear-gradient(45deg, var(--pxf-checker-color-a, #e9ecef) 25%, transparent 25%, transparent 75%, var(--pxf-checker-color-a, #e9ecef) 75%, var(--pxf-checker-color-a, #e9ecef)),
        linear-gradient(45deg, var(--pxf-checker-color-a, #e9ecef) 25%, transparent 25%, transparent 75%, var(--pxf-checker-color-a, #e9ecef) 75%, var(--pxf-checker-color-a, #e9ecef));
    background-size: var(--pxf-checker-size, 16px) var(--pxf-checker-size, 16px);
    background-position: 0 0, calc(var(--pxf-checker-size, 16px) / 2) calc(var(--pxf-checker-size, 16px) / 2);
}

/* =========================================================
   Landing Page — pure WordPress data (categories/tags/posts),
   deliberately independent of any other plugin. Agency-style
   visual polish: bold headings, generous rhythm, tasteful hover.
   ========================================================= */
.pxf-landing-wrap { background: var(--pxf-landing-bg, #ffffff); }
.pxf-landing-alt-bg .pxf-landing-section:nth-of-type(even) { background: color-mix(in srgb, var(--pxf-landing-bg, #ffffff) 96%, #000000 4%); }

.pxf-landing-section { max-width: 1400px; margin: 0 auto; padding: var(--pxf-landing-padding, 64px) 24px; }
.pxf-landing-heading { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 26px; color: var(--pxf-landing-text, #1a1a1a); }
.pxf-landing-heading-center .pxf-landing-heading { text-align: center; }
.pxf-landing-heading::after { content: ""; display: block; width: 46px; height: 3px; background: var(--pxf-landing-accent, #e11d48); margin-top: 12px; border-radius: 2px; }
.pxf-landing-heading-center .pxf-landing-heading::after { margin-left: auto; margin-right: auto; }
.pxf-landing-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.pxf-landing-section-head .pxf-landing-heading { margin-bottom: 0; }
.pxf-landing-viewmore { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--pxf-landing-accent, #e11d48); white-space: nowrap; }
.pxf-landing-viewmore:hover { text-decoration: underline; }

.pxf-landing-grid {
    display: grid;
    grid-template-columns: repeat(var(--pxf-landing-cols, 4), 1fr);
    gap: var(--pxf-landing-gap, 22px);
}
.pxf-landing-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: var(--pxf-landing-radius, 12px);
    overflow: hidden;
    background: var(--pxf-landing-card-bg, #f8f9fa);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pxf-landing-card-shadow .pxf-landing-card { box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.pxf-landing-card-border .pxf-landing-card { border: 1px solid color-mix(in srgb, var(--pxf-landing-text, #1a1a1a) 10%, transparent); }
.pxf-landing-card-flat .pxf-landing-card { box-shadow: none; }

.pxf-landing-hover-lift .pxf-landing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, .12); }
.pxf-landing-hover-zoom .pxf-landing-card-media img { transition: transform .4s ease; }
.pxf-landing-hover-zoom .pxf-landing-card:hover .pxf-landing-card-media img { transform: scale(1.06); }

.pxf-landing-card-media { position: relative; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--pxf-landing-card-bg, #f8f9fa) 80%, #000000 6%); overflow: hidden; }
.pxf-landing-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pxf-landing-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    background: var(--pxf-landing-accent, #e11d48);
}
.pxf-landing-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
}
.pxf-landing-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pxf-landing-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--pxf-landing-text, #1a1a1a); }
.pxf-landing-card-count { font-size: 12px; color: var(--pxf-landing-muted, #777777); }

.pxf-landing-links-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.pxf-landing-links-col h3 { font-size: 15px; margin: 0 0 10px; color: var(--pxf-landing-text, #444444); }
.pxf-landing-links-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pxf-landing-links-col a { text-decoration: none; color: var(--pxf-landing-muted, #555555); font-size: 13px; }
.pxf-landing-links-col a:hover { color: var(--pxf-landing-accent, #e11d48); text-decoration: underline; }

/* Responsive grid degrade: 1400 / 1200 / 1024 / 800 use automatic
   capping via min(); the true "mobile" tier below 782px switches
   to the admin-configured mobile column count instead. */
@media (max-width: 1400px) {
    .pxf-landing-grid { grid-template-columns: repeat(min(var(--pxf-landing-cols, 4), 4), 1fr); }
}
@media (max-width: 1200px) {
    .pxf-landing-grid { grid-template-columns: repeat(min(var(--pxf-landing-cols, 4), 3), 1fr); }
    .pxf-landing-section { padding: calc(var(--pxf-landing-padding, 64px) * 0.85) 22px; }
}
@media (max-width: 1024px) {
    .pxf-landing-grid { grid-template-columns: repeat(min(var(--pxf-landing-cols, 4), 3), 1fr); }
}
@media (max-width: 800px) {
    .pxf-landing-grid { grid-template-columns: repeat(min(var(--pxf-landing-cols, 4), 2), 1fr); }
    .pxf-landing-links-columns { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 782px) {
    .pxf-landing-section { padding: calc(var(--pxf-landing-padding, 64px) * 0.6) 20px; }
    .pxf-landing-grid { grid-template-columns: repeat(var(--pxf-landing-cols-mobile, 2), 1fr) !important; gap: calc(var(--pxf-landing-gap, 22px) * 0.7); }
    .pxf-landing-heading { font-size: 22px; }
}
@media (max-width: 480px) {
    .pxf-landing-grid { grid-template-columns: repeat(min(var(--pxf-landing-cols-mobile, 2), 2), 1fr) !important; }
}

/* ===========================================================
   Theme Default typography — when enabled, hand font styling
   back to the active theme's own stylesheet instead of the
   plugin's custom sizes/weights, per-element (menu / hero /
   landing headings are independent toggles).
   =========================================================== */
.pxf-menu-typography-theme .pxf-menu-link,
.pxf-menu-typography-theme .pxf-primary-menu {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.pxf-hero-typography-theme .pxf-hero-title,
.pxf-hero-typography-theme .pxf-hero-subtitle {
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}
.pxf-landing-typography-theme .pxf-landing-heading {
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

/* ===========================================================
   v2 CONTENT SECTIONS — Latest Uploads + per-badge sections
   Layouts: grid (uniform crop) / masonry (CSS columns) /
   justified (Flickr-style flex rows, no JS needed)
   =========================================================== */
.pxf-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pxf-sec-head-center .pxf-sec-head { flex-direction: column; align-items: center; text-align: center; }
.pxf-sec-heading { font-size: var(--pxf-sec-title-size, 26px) !important; color: var(--pxf-sec-title-color, var(--pxf-landing-text)) !important; margin: 0 !important; }
.pxf-sec-subtitle { margin: 6px 0 0; color: var(--pxf-landing-muted, #777); font-size: 14px; }
.pxf-sec-explore { white-space: nowrap; }

/* --- shared item --- */
.pxf-sec-item { position: relative; }
.pxf-sec-link { display: block; position: relative; overflow: hidden; border-radius: var(--pxf-sec-radius, 10px); background: var(--pxf-landing-card-bg, #f3f4f6); }
.pxf-sec-media { display: block; width: 100%; height: 100%; }
.pxf-sec-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pxf-sec-media.pxf-checkerboard {
    background-image: linear-gradient(45deg, var(--pxf-checker-color-a, #e9ecef) 25%, transparent 25%, transparent 75%, var(--pxf-checker-color-a, #e9ecef) 75%),
        linear-gradient(45deg, var(--pxf-checker-color-a, #e9ecef) 25%, var(--pxf-checker-color-b, #fff) 25%, var(--pxf-checker-color-b, #fff) 75%, var(--pxf-checker-color-a, #e9ecef) 75%);
    background-size: calc(var(--pxf-checker-size, 16px) * 2) calc(var(--pxf-checker-size, 16px) * 2);
    background-position: 0 0, var(--pxf-checker-size, 16px) var(--pxf-checker-size, 16px);
}
.pxf-sec-media.pxf-checkerboard img { object-fit: contain; }
.pxf-sec-noimg { display: flex; align-items: center; justify-content: center; min-height: 140px; font-size: 34px; font-weight: 700; color: #bbb; }
.pxf-sec-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none; }
.pxf-sec-item-title {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 26px 12px 10px; color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.35;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.pxf-sec-item:hover .pxf-sec-item-title { opacity: 1; transform: translateY(0); }
.pxf-sec-hover-zoom .pxf-sec-item:hover .pxf-sec-media img { transform: scale(1.06); }
.pxf-sec-hover-lift .pxf-sec-link { transition: transform .25s ease, box-shadow .25s ease; }
.pxf-sec-hover-lift .pxf-sec-item:hover .pxf-sec-link { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }

/* --- grid layout --- */
.pxf-sec-layout-grid .pxf-sec-items { display: grid; grid-template-columns: repeat(var(--pxf-sec-cols, 4), 1fr); gap: var(--pxf-sec-gap, 16px); }
.pxf-sec-layout-grid .pxf-sec-link { aspect-ratio: var(--pxf-sec-ratio, 4 / 3); }
.pxf-sec-layout-grid.pxf-sec-natural .pxf-sec-link { aspect-ratio: var(--pxf-ar, 1.5); }

/* --- masonry layout (CSS columns) --- */
.pxf-sec-layout-masonry .pxf-sec-items { columns: var(--pxf-sec-cols, 4); column-gap: var(--pxf-sec-gap, 16px); }
.pxf-sec-layout-masonry .pxf-sec-item { break-inside: avoid; margin-bottom: var(--pxf-sec-gap, 16px); }
.pxf-sec-layout-masonry .pxf-sec-link { aspect-ratio: var(--pxf-ar, 1.5); }

/* --- justified layout (flex-grow by aspect ratio) --- */
.pxf-sec-layout-justified .pxf-sec-items { display: flex; flex-wrap: wrap; gap: var(--pxf-sec-gap, 16px); }
.pxf-sec-layout-justified .pxf-sec-item {
    flex-grow: calc(var(--pxf-ar, 1.5) * 100);
    flex-basis: calc(var(--pxf-ar, 1.5) * var(--pxf-sec-row-height, 220px));
    height: var(--pxf-sec-row-height, 220px);
}
.pxf-sec-layout-justified .pxf-sec-link { height: 100%; }
.pxf-sec-layout-justified .pxf-sec-items::after { content: ""; flex-grow: 1000000; flex-basis: 0; }

/* --- sections responsive --- */
@media (max-width: 1024px) {
    .pxf-sec-layout-grid .pxf-sec-items { grid-template-columns: repeat(var(--pxf-sec-cols-tablet, 3), 1fr); }
    .pxf-sec-layout-masonry .pxf-sec-items { columns: var(--pxf-sec-cols-tablet, 3); }
    .pxf-sec-layout-justified .pxf-sec-item { height: calc(var(--pxf-sec-row-height, 220px) * .85); flex-basis: calc(var(--pxf-ar, 1.5) * var(--pxf-sec-row-height, 220px) * .85); }
}
@media (max-width: 782px) {
    .pxf-sec-layout-grid .pxf-sec-items { grid-template-columns: repeat(var(--pxf-sec-cols-mobile, 2), 1fr); gap: calc(var(--pxf-sec-gap, 16px) * .75); }
    .pxf-sec-layout-masonry .pxf-sec-items { columns: var(--pxf-sec-cols-mobile, 2); column-gap: calc(var(--pxf-sec-gap, 16px) * .75); }
    .pxf-sec-layout-masonry .pxf-sec-item { margin-bottom: calc(var(--pxf-sec-gap, 16px) * .75); }
    .pxf-sec-layout-justified .pxf-sec-item { height: calc(var(--pxf-sec-row-height, 220px) * .6); flex-basis: calc(var(--pxf-ar, 1.5) * var(--pxf-sec-row-height, 220px) * .6); }
    .pxf-sec-head { flex-wrap: wrap; align-items: baseline; margin-bottom: 16px; }
    .pxf-sec-heading { font-size: min(var(--pxf-sec-title-size, 26px), 21px) !important; }
    /* titles always visible on touch — there is no hover on mobile */
    .pxf-sec-item-title { opacity: 1; transform: none; padding: 20px 10px 8px; font-size: 12.5px; }
}

/* ===========================================================
   v2 PREMIUM FOOTER
   =========================================================== */
.pxf-footer { background: var(--pxf-footer-bg, #111827); color: var(--pxf-footer-text, #d1d5db); font-size: 14.5px; line-height: 1.7; }
.pxf-footer .pxf-footer-inner { max-width: 1400px; margin: 0 auto; padding: var(--pxf-footer-pt, 56px) 24px var(--pxf-footer-pb, 28px); display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
.pxf-footer-brand { max-width: 340px; }
.pxf-footer-logo img { max-width: var(--pxf-footer-logo-w, 150px); height: auto; display: block; }
.pxf-footer-sitename { font-size: 22px; font-weight: 700; color: var(--pxf-footer-heading, #fff); text-decoration: none; }
.pxf-footer-about { margin: 14px 0 0; color: var(--pxf-footer-text, #d1d5db); }
.pxf-footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pxf-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--pxf-footer-social, 34px); height: var(--pxf-footer-social, 34px);
    border-radius: 50%; background: rgba(255,255,255,.09); color: var(--pxf-footer-text, #d1d5db);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.pxf-footer-social a:hover { background: var(--pxf-footer-hover, #e11d48); color: #fff; transform: translateY(-2px); }
.pxf-footer-social svg { width: 55%; height: 55%; }
.pxf-footer-col-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--pxf-footer-heading, #fff); letter-spacing: .2px; }
.pxf-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pxf-footer-col li { margin: 0 0 9px; }
.pxf-footer-col a { color: var(--pxf-footer-text, #d1d5db); text-decoration: none; transition: color .15s ease; }
.pxf-footer-col a:hover { color: var(--pxf-footer-hover, #e11d48); }
.pxf-footer-copybar { border-top: 1px solid var(--pxf-footer-border, rgba(255,255,255,.12)); }
.pxf-footer-copybar .pxf-footer-inner { display: block; padding: 16px 24px; text-align: center; font-size: 13px; color: var(--pxf-footer-text, #d1d5db); opacity: .85; }

@media (max-width: 1024px) {
    .pxf-footer .pxf-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .pxf-footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 600px) {
    .pxf-footer .pxf-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; padding-left: 20px; padding-right: 20px; }
}

/* ===========================================================
   v2 MOBILE POLISH — hero, search, tags, landing
   =========================================================== */
@media (max-width: 782px) {
    /* hero search must never overflow the viewport */
    .pxf-hero-search .pxf-search-form { max-width: calc(100vw - 40px) !important; width: 100%; }
    .pxf-hero-content { padding-left: 20px; padding-right: 20px; box-sizing: border-box; width: 100%; }
    /* hide the category dropdown inside the hero search on small
       screens — it crowds the input into unusability */
    .pxf-hero-search .pxf-search-cat { display: none; }
    /* tag chips: single-line horizontal scroll instead of tall wrap */
    .pxf-hero-tags { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; max-width: 100%; padding-bottom: 4px; }
    .pxf-hero-tags::-webkit-scrollbar { display: none; }
    .pxf-hero-tag-chip { flex: 0 0 auto; }
    /* search overlay input comfortable on phones */
    .pxf-search-overlay-inner { padding: 0 18px; }
    .pxf-search-overlay .pxf-search-form { max-width: 100% !important; }
    /* landing view-more link doesn't collide with heading */
    .pxf-landing-section-head { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
    .pxf-hero-title { font-size: var(--pxf-hero-title-size-mobile, 28px) !important; }
    .pxf-hero-subtitle { font-size: 14px; }
}
