/* ==========================================================================
   Fireparts Blog — Custom Styles
   Matches the Fireparts.com main site branding and adds layout for
   category cards, search, single-post sidebar, and tags.
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --fp-red: #c0392b;
    --fp-red-hover: #e74c3c;
    --fp-red-deep: #962d22;
    --fp-dark: #1a1a1a;
    --fp-dark-warm: #221b18;
    --fp-charcoal: #2a2320;
    --fp-grey: #555;
    --fp-grey-warm: #8a7e76;
    --fp-light-grey: #f0f0f0;
    --fp-cream: #faf6f2;
    --fp-white: #ffffff;
    --fp-border: #e2ddd8;
    --fp-amber: #f39c12;
    --fp-amber-soft: #f5b041;
    --fp-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --fp-shadow-warm: 0 4px 20px rgba(26, 18, 12, 0.1);
    --fp-radius: 10px;
    --fp-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --fp-font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Base overrides ---------- */
body {
    font-family: var(--fp-font-body);
}

/* ==========================================================================
   HEADER — Matches Fireparts.com navigation bar
   ========================================================================== */

.fp-header {
    background: var(--fp-dark);
    border-bottom: 3px solid var(--fp-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.fp-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.fp-header__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.fp-header__nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.fp-header__link {
    color: var(--fp-white);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--fp-font-body);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.fp-header__link:hover,
.fp-header__link--active {
    background: var(--fp-red);
    color: var(--fp-white);
}

/* Burger menu (mobile) */
.fp-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.fp-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fp-white);
    border-radius: 2px;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .fp-header__burger {
        display: flex;
    }

    .fp-header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--fp-dark);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 3px solid var(--fp-red);
        z-index: 999;
    }

    .fp-header__nav--open {
        display: flex;
    }

    .fp-header__link {
        padding: 0.75rem 1rem;
        width: 100%;
    }
}

/* ---------- Blog sub-header ---------- */
.fp-blog-subheader {
    background: var(--fp-cream);
    border-bottom: 1px solid var(--fp-border);
    padding: 0.75rem 0;
}

.fp-blog-subheader__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.fp-blog-subheader__title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--fp-font-display);
    color: var(--fp-dark);
    text-decoration: none;
}

.fp-blog-subheader__title:hover {
    color: var(--fp-red);
}

.fp-blog-subheader__tagline {
    font-size: 0.85rem;
    color: var(--fp-grey-warm);
    font-family: var(--fp-font-body);
}

/* ==========================================================================
   SEARCH HERO — Warm, fire-inspired hero section
   ========================================================================== */

.fp-search-hero {
    background: var(--fp-dark-warm);
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1.5rem 4rem;
    text-align: center;
}

/* Warm radial glow behind content */
.fp-search-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center,
        rgba(192, 57, 43, 0.18) 0%,
        rgba(243, 156, 18, 0.06) 40%,
        transparent 70%);
    pointer-events: none;
}

/* Subtle noise texture overlay */
.fp-search-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.fp-search-hero__inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fp-search-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fp-amber-soft);
    font-family: var(--fp-font-body);
    margin-bottom: 1rem;
}

.fp-search-hero__kicker::before,
.fp-search-hero__kicker::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--fp-amber-soft);
    opacity: 0.4;
}

.fp-search-hero__title {
    color: var(--fp-white);
    font-size: 2.75rem;
    margin: 0 0 0.6rem;
    font-weight: 700;
    font-family: var(--fp-font-display);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.fp-search-hero__subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
    margin: 0 0 2rem;
    font-family: var(--fp-font-body);
    font-weight: 400;
}

/* ---------- Search form (shared between hero and results page) ---------- */
.fp-search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.fp-search-form {
    display: flex;
    gap: 0;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s;
}

.fp-search-form:focus-within {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--fp-red);
}

.fp-search-form__input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--fp-font-body);
    border: none;
    outline: none;
    background: var(--fp-white);
    color: var(--fp-dark);
}

.fp-search-form__input::placeholder {
    color: #aaa;
}

.fp-search-form__button {
    padding: 1rem 2rem;
    background: var(--fp-red);
    color: var(--fp-white);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--fp-font-body);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.fp-search-form__button:hover {
    background: var(--fp-red-hover);
}

/* Quick links below search */
.fp-search-hero__quick {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.fp-search-hero__quick-label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 28px;
}

.fp-search-hero__quick a {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.fp-search-hero__quick a:hover {
    color: var(--fp-white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- Live search suggestions dropdown ---------- */
.fp-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--fp-white);
    border-radius: var(--fp-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.fp-search-suggestions--visible {
    display: block;
}

.fp-search-suggestion {
    display: block;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: var(--fp-dark);
    border-bottom: 1px solid var(--fp-light-grey);
    transition: background 0.15s;
}

.fp-search-suggestion:last-child {
    border-bottom: none;
}

.fp-search-suggestion:hover,
.fp-search-suggestion--active {
    background: var(--fp-cream);
}

.fp-search-suggestion__title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
    color: var(--fp-dark);
}

.fp-search-suggestion__meta {
    font-size: 0.8rem;
    color: var(--fp-grey-warm);
}

.fp-search-suggestion__excerpt {
    font-size: 0.85rem;
    color: var(--fp-grey);
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.fp-search-suggestions__empty {
    padding: 1rem 1.25rem;
    color: var(--fp-grey);
    font-size: 0.9rem;
    text-align: center;
}

/* ---------- Search results header ---------- */
.fp-search-results-header {
    background: var(--fp-cream);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fp-search-results-header .fp-search-form {
    box-shadow: var(--fp-shadow);
}

/* ==========================================================================
   CATEGORY CARDS — Redesigned with warm, fire-inspired aesthetic
   ========================================================================== */

.fp-categories-section {
    padding: 3.5rem 1.5rem 4rem;
    background: var(--fp-cream);
    position: relative;
}

/* Subtle top border accent */
.fp-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--fp-red);
    border-radius: 2px;
}

.fp-categories-section__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.fp-categories-section__heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--fp-font-display);
    margin: 0 0 0.5rem;
    color: var(--fp-dark);
}

.fp-categories-section__subheading {
    display: block;
    text-align: center;
    font-size: 1rem;
    color: var(--fp-grey-warm);
    font-family: var(--fp-font-body);
    margin: 0 0 2.25rem;
    font-weight: 400;
}

.fp-category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.fp-category-card {
    background: var(--fp-white);
    border-radius: var(--fp-radius);
    padding: 2rem 1.75rem 1.75rem;
    text-decoration: none;
    color: var(--fp-dark);
    box-shadow: 0 1px 4px rgba(26, 18, 12, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--fp-border);
    position: relative;
    overflow: hidden;
}

/* Warm accent bar at top of card */
.fp-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fp-red), var(--fp-amber));
    opacity: 0;
    transition: opacity 0.3s;
}

.fp-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 18, 12, 0.12);
    border-color: transparent;
}

.fp-category-card:hover::before {
    opacity: 1;
}

.fp-category-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #fef1ec 0%, #fde8dc 100%);
    border: 1px solid rgba(192, 57, 43, 0.08);
    flex-shrink: 0;
}

.fp-category-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--fp-red);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fp-category-card__title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--fp-font-body);
    margin: 0 0 0.5rem;
    color: var(--fp-dark);
    line-height: 1.3;
}

.fp-category-card__desc {
    display: block;
    font-size: 0.88rem;
    color: var(--fp-grey-warm);
    margin: 0 0 1rem;
    line-height: 1.55;
    flex: 1;
}

.fp-category-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--fp-border);
    margin-top: auto;
    width: 100%;
}

.fp-category-card__meta {
    font-size: 0.78rem;
    color: var(--fp-grey-warm);
    font-weight: 500;
}

.fp-category-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-red);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}

.fp-category-card__link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s;
}

.fp-category-card:hover .fp-category-card__link {
    color: var(--fp-red-hover);
}

.fp-category-card:hover .fp-category-card__link svg {
    transform: translateX(3px);
}

/* ==========================================================================
   LATEST ARTICLES — Improved section styling
   ========================================================================== */

.fp-latest-section {
    padding: 3rem 1.5rem 3.5rem;
    background: var(--fp-white);
}

.fp-latest-section__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.fp-latest-section__heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--fp-font-display);
    margin: 0 0 0.4rem;
    color: var(--fp-dark);
}

.fp-latest-section__subheading {
    text-align: center;
    font-size: 1rem;
    color: var(--fp-grey-warm);
    margin: 0 0 2rem;
}

/* ==========================================================================
   SINGLE POST LAYOUT — Content + left sidebar for related posts
   ========================================================================== */

.fp-single-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 900px) {
    .fp-single-layout {
        grid-template-columns: 1fr;
    }

    .fp-single-sidebar {
        order: 2;
    }
}

/* ---------- Left sidebar ---------- */
.fp-single-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.fp-single-sidebar__title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--fp-font-body);
    color: var(--fp-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--fp-red);
}

.fp-related-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--fp-border);
    text-decoration: none;
    color: var(--fp-dark);
    transition: background 0.15s;
    align-items: flex-start;
}

.fp-related-post:last-child {
    border-bottom: none;
}

.fp-related-post:hover {
    background: var(--fp-cream);
}

.fp-related-post__thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.fp-related-post__info {
    flex: 1;
    min-width: 0;
}

.fp-related-post__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.2rem;
    color: var(--fp-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-related-post__category {
    font-size: 0.75rem;
    color: var(--fp-red);
}

.fp-related-posts__loading,
.fp-related-posts__empty {
    font-size: 0.85rem;
    color: var(--fp-grey);
    padding: 0.5rem 0;
}

/* ---------- Main content area ---------- */
.fp-single-content {
    min-width: 0;
}

/* ==========================================================================
   TAGS & HASHTAGS
   ========================================================================== */

.fp-post-tags a,
.fp-hashtag {
    display: inline-block;
    background: var(--fp-cream);
    color: var(--fp-dark);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 1px solid var(--fp-border);
    font-family: var(--fp-font-body);
}

.fp-post-tags a:hover,
.fp-hashtag:hover {
    background: var(--fp-red);
    color: var(--fp-white);
    border-color: var(--fp-red);
}

/* ==========================================================================
   GENERAL OVERRIDES — Fix block theme spacing for our custom layout
   ========================================================================== */

/* Kill the aggressive WP root padding so our full-width sections work */
body {
    --wp--style--root--padding-left: 0px !important;
    --wp--style--root--padding-right: 0px !important;
}

/* Remove excess padding on the front page from block theme defaults */
body.home .wp-block-group.alignfull,
body.blog .wp-block-group.alignfull,
body.single .wp-block-group.alignfull,
body.archive .wp-block-group.alignfull,
body.search .wp-block-group.alignfull {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Full-bleed custom sections — no negative margin hacks needed now */
.wp-block-group.alignfull > .fp-header,
.wp-block-group.alignfull > .fp-blog-subheader,
.wp-block-group.alignfull > .fp-search-hero,
.wp-block-group.alignfull > .fp-categories-section {
    margin-left: 0;
    margin-right: 0;
}

/* Latest articles grid cards in WP block theme */
.wp-block-post-template .wp-block-post-featured-image {
    border-radius: var(--fp-radius) !important;
    overflow: hidden;
}

.wp-block-post-template .wp-block-post-title a {
    font-family: var(--fp-font-body);
    font-weight: 700;
    color: var(--fp-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.wp-block-post-template .wp-block-post-title a:hover {
    color: var(--fp-red);
}

.wp-block-post-template .wp-block-post-terms a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fp-red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.wp-block-post-template .wp-block-post-date {
    color: var(--fp-grey-warm);
    font-size: 0.82rem;
}

/* Constrained content blocks need sensible mobile padding */
.wp-block-group:not(.alignfull) {
    padding-left: max(1rem, var(--wp--preset--spacing--50, 1rem));
    padding-right: max(1rem, var(--wp--preset--spacing--50, 1rem));
}

/* ==========================================================================
   ANIMATIONS — Staggered entrance for category cards
   ========================================================================== */

@keyframes fp-fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-category-card {
    animation: fp-fadeUp 0.5s ease both;
}

.fp-category-card:nth-child(1) { animation-delay: 0.05s; }
.fp-category-card:nth-child(2) { animation-delay: 0.1s; }
.fp-category-card:nth-child(3) { animation-delay: 0.15s; }
.fp-category-card:nth-child(4) { animation-delay: 0.2s; }
.fp-category-card:nth-child(5) { animation-delay: 0.25s; }
.fp-category-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fp-heroFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-search-hero__kicker {
    animation: fp-heroFade 0.6s ease both;
    animation-delay: 0.1s;
}

.fp-search-hero__title {
    animation: fp-heroFade 0.6s ease both;
    animation-delay: 0.2s;
}

.fp-search-hero__subtitle {
    animation: fp-heroFade 0.6s ease both;
    animation-delay: 0.3s;
}

.fp-search-wrapper {
    animation: fp-heroFade 0.6s ease both;
    animation-delay: 0.4s;
}

.fp-search-hero__quick {
    animation: fp-heroFade 0.6s ease both;
    animation-delay: 0.5s;
}

/* ==========================================================================
   FOOTER — Fireparts branded footer
   ========================================================================== */

.fp-footer {
    background: var(--fp-dark-warm);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--fp-font-body);
}

.fp-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.fp-footer__brand {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fp-footer__logo img {
    height: 36px;
    width: auto;
    display: block;
}

.fp-footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.fp-footer__columns {
    flex: 1;
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.fp-footer__col {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fp-footer__heading {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fp-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.fp-footer__col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.fp-footer__col a:hover {
    color: var(--fp-white);
}

.fp-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   RESPONSIVE — Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Header */
    .fp-header__inner {
        padding: 0 1rem;
    }

    /* Blog subheader */
    .fp-blog-subheader__inner {
        padding: 0 1rem;
    }

    /* Hero */
    .fp-search-hero {
        padding: 3rem 1rem 2.5rem;
    }

    .fp-search-hero__title {
        font-size: 2.1rem;
    }

    .fp-search-hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Search form */
    .fp-search-form__input {
        padding: 0.85rem 1.25rem;
    }

    .fp-search-form__button {
        padding: 0.85rem 1.5rem;
    }

    /* Categories */
    .fp-categories-section {
        padding: 2.5rem 1rem 3rem;
    }

    .fp-category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .fp-category-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    /* Latest articles — 2 columns on tablet */
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Single post sidebar */
    .fp-single-layout {
        padding: 0 1rem;
    }

    /* Footer */
    .fp-footer__inner {
        padding: 2.5rem 1rem 1.5rem;
        gap: 2rem;
    }

    .fp-footer__brand {
        flex: none;
    }

    .fp-footer__columns {
        gap: 1.5rem;
    }

    .fp-footer__bottom {
        padding: 1rem;
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    /* Header */
    .fp-header__logo img {
        height: 32px;
    }

    /* Blog subheader — stack on small screens */
    .fp-blog-subheader__inner {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0 1rem;
    }

    .fp-blog-subheader__title {
        font-size: 1.1rem;
    }

    /* Hero — tighter padding, smaller type */
    .fp-search-hero {
        padding: 2.25rem 0.75rem 2rem;
    }

    .fp-search-hero__kicker {
        font-size: 0.7rem;
    }

    .fp-search-hero__title {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .fp-search-hero__title br {
        display: none;
    }

    .fp-search-hero__subtitle {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }

    /* Search — pill to rounded rect, tighter padding */
    .fp-search-form {
        border-radius: var(--fp-radius);
    }

    .fp-search-form__input {
        padding: 0.75rem 1rem;
        font-size: 0.92rem;
    }

    .fp-search-form__button {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }

    /* Quick links — smaller */
    .fp-search-hero__quick {
        gap: 0.35rem;
        margin-top: 1rem;
    }

    .fp-search-hero__quick-label {
        font-size: 0.72rem;
    }

    .fp-search-hero__quick a {
        font-size: 0.72rem;
        padding: 0.15rem 0.6rem;
    }

    /* Categories — single column */
    .fp-categories-section {
        padding: 2rem 0.75rem 2.5rem;
    }

    .fp-categories-section__heading {
        font-size: 1.45rem;
    }

    .fp-categories-section__subheading {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }

    .fp-category-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .fp-category-card {
        padding: 1.25rem 1rem 1rem;
    }

    .fp-category-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }

    .fp-category-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .fp-category-card__title {
        font-size: 1rem;
    }

    .fp-category-card__desc {
        font-size: 0.82rem;
        margin-bottom: 0.75rem;
    }

    .fp-category-card__footer {
        padding-top: 0.65rem;
    }

    .fp-category-card__meta {
        font-size: 0.72rem;
    }

    .fp-category-card__link {
        font-size: 0.8rem;
    }

    /* Latest articles — single column */
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .wp-block-group:not(.alignfull) {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Footer */
    .fp-footer__inner {
        padding: 2rem 0.75rem 1.25rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .fp-footer__columns {
        flex-direction: column;
        gap: 1.25rem;
    }

    .fp-footer__col {
        min-width: unset;
    }

    .fp-footer__heading {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .fp-footer__col a {
        font-size: 0.85rem;
    }

    .fp-footer__bottom {
        padding: 1rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Single post */
    .fp-single-layout {
        padding: 0 0.75rem;
        gap: 1.5rem;
    }

    /* Search results page */
    .fp-search-results-header {
        padding: 1rem 0.75rem;
    }

    /* Tags */
    .fp-post-tags a,
    .fp-hashtag {
        font-size: 0.78rem;
        padding: 0.2rem 0.55rem;
    }

    /* Live search suggestions */
    .fp-search-suggestions {
        max-height: 300px;
    }

    .fp-search-suggestion {
        padding: 0.65rem 1rem;
    }

    .fp-search-suggestion__title {
        font-size: 0.88rem;
    }
}
