/*
Theme Name: Decors
Theme URI: https://decors.com
Author: Decors Team
Author URI: https://decors.com
Description: Thème élégant de style magazine pour les idées de décoration intérieure. Inspiré par les meilleurs magazines de décoration, optimisé pour Pinterest.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decors
Tags: blog, magazine, decoration, pinterest, french
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   LOCAL FONT - NYSE DEMI (Southern Living exact font)
   ============================================ */
@font-face {
    font-family: 'Nyse';
    src: url('assets/fonts/Nyse-Demi.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN SYSTEM - CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors - matching Southern Living exactly */
    --color-primary: #C8102E;
    --color-primary-dark: #A00D24;
    --color-primary-light: #D4293F;
    --color-text: #1A1A1A;
    --color-text-secondary: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg: #FFFFFF;
    --color-bg-cream: #FDF6EC;
    --color-bg-light: #F5F5F5;
    --color-bg-footer: #F2F2F2;
    --color-bg-overlay: rgba(255, 255, 255, 0.96);
    --color-border: #E0E0E0;
    --color-border-light: #EEEEEE;
    --color-progress: #C8102E;

    /* Typography - EXACT Southern Living fonts */
    /* Nyse: proprietary serif used for ALL headings (weight 600 = Demi) */
    --font-serif: 'Nyse', 'Georgia', 'Times New Roman', serif;
    /* Lato: sans-serif for nav, body, meta (loaded via Google Fonts) */
    --font-sans: 'Lato', 'Helvetica Neue', 'Arial', sans-serif;

    /* Heading line-heights matching Southern Living exactly */
    --lh-heading: 1.2;
    /* article card titles */
    --lh-article: 1.18;
    /* single post H1: 46px / 55px ≈ 1.19 */

    /* Font Sizes */
    --fs-xs: 0.6875rem;
    /* 11px */
    --fs-sm: 0.8125rem;
    /* 13px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.5rem;
    /* 40px */
    --fs-4xl: 3rem;
    /* 48px */
    --fs-hero: 3.5rem;
    /* 56px */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1100px;
    --header-height-top: 48px;
    --header-height-nav: 44px;
    --header-height-total: 92px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    /* Nyse-Demi = weight 600 (exactly as WhatFont showed) */
    line-height: var(--lh-heading);
    letter-spacing: -0.02em;
    /* Tight editorial tracking, matches Southern Living */
    color: var(--color-text);
}

p {
    margin-bottom: var(--space-md);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

/* Post header container: narrow on desktop, edge-to-edge on mobile */
.container--post-header {
    max-width: 800px;
}

.section {
    padding: var(--space-xl) 0;
}

.section--cream {
    background-color: var(--color-bg-cream);
}

.section--light {
    background-color: var(--color-bg-light);
}

/* ============================================
   HEADER - TWO-ROW (Southern Living style)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
}

/* Row 1 Wrapper: collapses by height animation */
.header-row-top-wrapper {
    overflow: hidden;
    will-change: height, opacity;
}

/* Only transition on scroll, not on initial page load */
body.header-transitions-active .header-row-top-wrapper {
    transition: height 0.2s ease-out, opacity 0.15s ease-out;
}

/* Row 1: Logo + Utility Links */
.header-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    /* Reduced padding from 2.5rem for tighter spacing */
}

/* Site Logo - Bigger like Southern Living (~44px) */
.site-logo a {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

.site-logo a:hover {
    color: var(--color-primary-dark);
}

/* Utility Links Area */
.header-utility {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* CenturyPly Style Search Form */
.centuryply-search {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduce gap since only input and icon exist */
}

.centuryply-search input[type="search"] {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #1d1d1b;
    outline: none;
    padding: 0;
    width: 165px;
    /* Snug fit for placeholder */
}

.centuryply-search input[type="search"]::placeholder {
    color: #939598;
}

.cp-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utility-divider {
    width: 1px;
    height: 16px;
    background-color: var(--color-border);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.social-icon:hover {
    color: #E60023;
    /* Pinterest Red */
}

.utility-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.utility-text:hover {
    color: var(--color-primary);
}

/* Search button - styled as icon button */
.search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 4px;
    transition: color var(--transition-fast);
}

.search-toggle-btn:hover {
    color: var(--color-primary);
}

/* Search bar dropdown */
.header-search-bar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-md) 0;
}

.header-search-bar form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 auto;
}

.header-search-bar input[type="search"] {
    flex: 1;
    border: none;
    border-bottom: 2px solid var(--color-text);
    padding: var(--space-sm) 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    background: transparent;
    outline: none;
}

.header-search-bar button[type="submit"] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

/* Row 2: Main Navigation Bar */
.header-row-nav {
    border-bottom: 1px solid var(--color-border-light);
    border-top: 1px solid var(--color-border-light);
    /* SL has a soft border above nav too */
    position: relative;
    background: var(--color-bg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Small Sticky Logo - animated on scroll */
.sticky-logo {
    max-width: 0;
    opacity: 0;
    margin-right: 0;
    overflow: hidden;
    transition: max-width 0.2s ease-out, opacity 0.15s ease-out, margin-right 0.2s ease-out;
}

.sticky-logo a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered navigation items */
    height: var(--header-height-nav);
    gap: 0;
    flex: 1;
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    /* Slightly bigger than xs, like SL */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    padding: 0 var(--space-md);
    height: var(--header-height-nav);
    display: flex;
    align-items: center;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav a:first-child {
    padding-left: 0;
    /* Remove left padding for first item so it aligns beautifully */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

/* Nav Right side (Subscribe, Search on scroll) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.subscribe-button {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.subscribe-button:hover {
    color: var(--color-primary);
}

/* --- STICKY / SCROLLED STATE BEHAVIOR --- */
/* height + opacity of .header-row-top-wrapper is now driven by JS (navigation.js) */

.site-header.scrolled .site-logo a {
    opacity: 0;
}

.site-header.scrolled .header-row-nav {
    border-top: none;
    /* remove top border when it sticks to screen edge */
}

.site-header.scrolled .sticky-logo {
    max-width: 200px;
    opacity: 1;
    margin-right: var(--space-xl);
}

.nav-scrolled-search {
    max-width: 0;
    opacity: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    transition: max-width 0.2s ease-out, opacity 0.15s ease-out, padding 0.2s ease-out;
}

.site-header.scrolled .nav-scrolled-search {
    max-width: 50px;
    opacity: 1;
    padding-left: 4px;
    padding-right: 4px;
}

/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .header-row-top {
        padding: 1rem 0;
        justify-content: flex-start;
        gap: var(--space-lg);
    }

    .site-logo a {
        font-size: 2.2rem;
    }

    .main-nav {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .header-row-nav {
        border-top: none;
    }
}

/* Reading Progress Bar - Red line under header */
.reading-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-progress);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 10;
}

/* Mobile: Show hamburger, hide nav row */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .hamburger {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-base);
    transform-origin: center;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   OFF-CANVAS NAVIGATION (Mobile)
   ============================================ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.off-canvas-nav {
    position: fixed;
    top: 0;
    left: -360px;
    width: 360px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1002;
    transition: left var(--transition-base);
    overflow-y: auto;
    padding: var(--space-3xl) var(--space-xl);
}

.off-canvas-nav.active {
    left: 0;
}

.off-canvas-nav .nav-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--fs-xl);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.off-canvas-nav .nav-menu {
    margin-top: var(--space-md);
}

.off-canvas-nav .nav-menu li {
    border-bottom: 1px solid var(--color-border-light);
}

.off-canvas-nav .nav-menu a {
    display: block;
    padding: var(--space-md) 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.off-canvas-nav .nav-menu a:hover {
    color: var(--color-primary);
    padding-left: var(--space-sm);
}

/* ============================================
   PINTEREST MASONRY HERO
   ============================================ */
.pinterest-hero {
    padding: var(--space-2xl) 0;
    background-color: var(--color-bg);
}

.pinterest-hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.pinterest-hero-header {
    text-align: center;
}

.pinterest-hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    font-style: italic;
    margin: 0;
}

/* Grid of 3 portrait cards */
.pinterest-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: end;
    /* Staggered feel: bottom-aligned */
}

.pinterest-pin {
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

/* Center card is taller for visual stagger */
.pinterest-pin-img {
    width: 100%;
    aspect-ratio: 9 / 16;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.pinterest-pin--center .pinterest-pin-img {
    aspect-ratio: 9 / 18;
    /* Slightly taller center card */
}

.pinterest-pin:hover .pinterest-pin-img {
    transform: scale(1.03);
}

/* Overlay: slides up on hover */
.pinterest-pin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.pinterest-pin:hover .pinterest-pin-overlay {
    transform: translateY(0);
    opacity: 1;
}

.pinterest-pin-cat {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.92);
    display: inline-block;
    padding: 2px 8px;
    align-self: flex-start;
}

.pinterest-pin-title {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .pinterest-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pinterest-pin:last-child {
        display: none;
        /* hide 3rd on mobile */
    }

    .pinterest-pin--center .pinterest-pin-img {
        aspect-ratio: 9 / 16;
    }
}


/* ============================================
   EDITORIAL COVER (Homepage Hero)
   ============================================ */
.editorial-cover {
    margin-bottom: var(--space-3xl);
}

.cover-image-wrapper {
    width: 100%;
    margin-bottom: var(--space-xl);
}

.editorial-cover .cover-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    /* Keeps it large but viewable */
    object-fit: cover;
    display: block;
}

.cover-content {
    max-width: 800px;
    margin: 0 auto;
}

.cover-category {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.cover-category:hover {
    color: var(--color-primary-dark);
}

.cover-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Giant responsive title */
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.cover-title a {
    color: inherit;
    text-decoration: none;
}

.cover-title a:hover {
    color: var(--color-primary);
}

.cover-excerpt {
    font-size: var(--fs-lg);
    color: #555555;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.cover-meta {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: #767676;
}

/* ============================================
   TRENDING CATEGORIES (Circles Section)
   ============================================ */
.trending-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.trending-heading {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.trending-subheading {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.06em;
    font-style: italic;
    margin: 0;
}

.trending-categories {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-xl);
}

.trending-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.trending-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.trending-item:hover {
    transform: translateY(-5px);
}

.trending-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    /* or white with box shadow */
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.trending-item:hover .trending-image {
    box-shadow: var(--shadow-lg);
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-name {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.trending-item:hover .trending-name {
    color: var(--color-primary);
}

/* ============================================
   SPLIT FEATURE
   ============================================ */
.split-feature {
    background-color: #faf9f6;
    /* Very light warm grey/cream */
    margin: 0;
    padding: var(--space-3xl) 0;
}

.split-feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.split-image-col img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    /* Portrait feel */
    object-fit: cover;
    display: block;
}

.split-content-col {
    padding-right: var(--space-2xl);
    /* Some breathing room */
}

.split-title {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.split-title a {
    color: inherit;
    text-decoration: none;
}

.split-title a:hover {
    color: var(--color-primary);
}

.split-excerpt {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: #444;
    margin-bottom: var(--space-xl);
}

.split-meta {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: #767676;
    margin-bottom: var(--space-lg);
}

.btn-primary.block-mt {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-text);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-primary.block-mt:hover {
    background: var(--color-primary);
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter-cta {
    background-color: var(--color-text);
    /* Dark background */
    color: #fff;
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-3xl);
    /* Space before footer */
}

.newsletter-cta .newsletter-title {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    color: #fff;
    margin-bottom: var(--space-md);
}

.newsletter-cta .newsletter-desc {
    font-size: var(--fs-base);
    color: #ccc;
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px;
    border: 1px solid #444;
    background: #fff;
    color: #000;
    font-family: var(--font-sans);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #c00000;
    /* Darker red */
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header .section-title {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    font-weight: 400;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-header .section-title .arrow {
    color: var(--color-primary);
    font-size: var(--fs-xl);
    transition: transform var(--transition-fast);
}

.section-header .section-title:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   ARTICLE CARDS - Southern Living exact style
   ============================================ */
/* ============================================
   ARTICLE CARDS - Southern Living Grid Exact Style
   ============================================ */
.articles-grid,
.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card container - clean white with light border */
.article-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image block */
.article-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: 0;
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card body: padded area below image */
.article-card .card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    /* stretches to push meta down */
}

/* Category label: small uppercase grey */
.article-card .card-category {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    /* 11px - restored original size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555555;
    display: block;
    text-decoration: none;
    margin-bottom: 2px;
}

.article-card .card-category:hover {
    text-decoration: underline;
}

/* Card title - serif, compact, readable */
.article-card .card-title {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    /* 26px - restored original large size */
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 8px 0;
}

.article-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card .card-title a:hover {
    color: var(--color-primary);
}

/* Author: small, muted */
.article-card .card-meta {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    /* 12px */
    color: #666666;
    margin: auto 0 0 0;
    /* Pushes to bottom of flex container */
}

.article-card .card-meta .author-name {
    font-weight: 400;
    color: #666666;
}


/* ============================================
   ARTICLE LIST - HORIZONTAL
   ============================================ */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.article-list-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.article-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-list-item .item-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
}

.article-list-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-list-item:hover .item-image img {
    transform: scale(1.05);
}

.article-list-item .item-content {
    flex: 1;
}

.article-list-item .item-category {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.article-list-item .item-title {
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: var(--space-xs);
}

.article-list-item .item-title a:hover {
    color: var(--color-primary);
}

.article-list-item .item-meta {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* ============================================
   FEATURED ARTICLE (FULL-WIDTH)
   ============================================ */
.featured-article {
    position: relative;
    width: 100%;
    min-height: 550px;
    overflow: hidden;
}

.featured-article .featured-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.featured-article .featured-card {
    position: absolute;
    top: 50%;
    left: var(--space-3xl);
    transform: translateY(-50%);
    background: var(--color-bg-overlay);
    padding: var(--space-2xl) var(--space-2xl);
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

.featured-article .featured-card .card-category {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.featured-article .featured-card .card-title {
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.featured-article .featured-card .card-excerpt {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.featured-article .featured-card .card-meta {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    text-align: left;
    padding: var(--space-3xl) 0 var(--space-xl);
}

.single-post-header .post-category {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.single-post-header .post-title {
    font-family: var(--font-serif);
    font-size: 2.875rem;
    /* 46px - exact WhatFont measurement */
    font-weight: 600;
    /* Nyse-Demi = weight 600 */
    line-height: 1.15;
    /* tight like Southern Living */
    letter-spacing: -0.03em;
    /* Negative tracking = wider/bolder feel */
    max-width: 700px;
    margin: 0 0 var(--space-lg);
}

.single-post-header .post-excerpt {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 0 var(--space-lg);
    line-height: 1.7;
}

/* Post Meta - matches Southern Living: "By Cameron Beall | Published on ..." */
.single-post-header .post-meta {
    font-family: var(--font-sans);
    /* Lato - SL uses sans-serif for meta */
    font-size: 0.875rem;
    /* 14px - small clean like SL */
    color: #555555;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* "Par" text */
.single-post-header .post-meta .meta-by {
    color: #555555;
    font-weight: 400;
}

/* Author name: bold + underline like SL's Cameron Beall */
.single-post-header .post-meta .author-link {
    font-weight: 700;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color var(--transition-fast);
}

.single-post-header .post-meta .author-link:hover {
    color: var(--color-primary);
}

/* Separator | */
.single-post-header .post-meta .meta-separator {
    color: #cccccc;
    font-weight: 300;
}

/* Date */
.single-post-header .post-meta .meta-date {
    color: #555555;
    font-weight: 400;
}


.single-featured-image {
    width: 100%;
    margin: 0 0 var(--space-sm);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Images inside article body — full width, natural ratio (images are already 9:16) */
.post-content img,
.entry-content img,
.wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: var(--space-xl) auto;
}

.post-content figure,
.entry-content figure,
.wp-block-image {
    width: 100%;
    margin: var(--space-xl) 0;
}

.image-credit {
    text-align: left;
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    max-width: 100%;
    margin: 0 0 var(--space-2xl);
}

/* ============================================
   SINGLE POST LAYOUT - Matches Southern Living
   Max-width 660px centered column, same as SL's article column
   ============================================ */

/* Post Content (default - not single post) */
.post-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Single post: centered narrow column exactly like Southern Living */
.single .post-content {
    max-width: 660px;
    margin: 0 auto;
    /* CENTERED - matches SL's article column */
    padding: 0;
}

/* All single post content elements: same centered column */
.single .single-post-header {
    max-width: 660px;
    margin: 0 auto;
    /* Centered */
    padding-left: 0;
    /* Container provides the outer padding */
    padding-right: 0;
}

/* Image and credit: also centered, same width as content */
.single .single-featured-image,
.single .image-credit {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    /* 32px side padding */
    padding-right: var(--space-xl);
}

/* Post content body: 32px side padding like SL */
.single .post-content {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* ============================================
   BODY TEXT - Lato 18px like Southern Living
   (WhatFont: Lato 400, 18px, line-height 28px = 1.556)
   ============================================ */

/* ---- Numbered Sections (like Southern Living 01, 02, 03) ---- */

/* Initialize counter at the start of each article's post-content */
.single .post-content {
    counter-reset: decors-section;
}

/* Every H1 in the article body gets auto-numbered (01, 02, 03...) */
.post-content h1 {
    counter-increment: decors-section;
    display: flex;
    align-items: center;
    gap: 0;
    margin: var(--space-3xl) 0 var(--space-xl);
    font-size: 1.75rem;
    /* 28px - matches SL "Select for Scale" size */
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* The number badge: "01", "02", "03"... */
.post-content h1::before {
    content: counter(decors-section, decimal-leading-zero);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    /* Large number like SL */
    font-weight: 700;
    color: var(--color-text);
    flex-shrink: 0;
    min-width: 44px;
    text-align: right;
    padding-right: 16px;
    margin-right: 16px;
    border-right: 2px solid var(--color-border);
    /* Vertical divider like SL */
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 2px;
}

/* H2 inside post-content: regular large sub-heading (no number) */
.post-content h2 {
    font-size: var(--fs-2xl);
    /* ~24-28px */
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: var(--space-2xl) 0 var(--space-md);
}

.post-content h3 {
    font-size: var(--fs-xl);
    margin: var(--space-xl) 0 var(--space-md);
}


.post-content p {
    font-family: var(--font-sans);
    /* Lato - matches Southern Living */
    font-size: 18px;
    /* Exact SL measurement: 18px */
    line-height: 1.7;
    /* Generous like SL (28px/18px ≈ 1.556, rounded up) */
    margin-bottom: var(--space-lg);
    color: #444444;
    /* SL body text color: #444 (dark gray, not pure black) */
}

.post-content img {
    margin: var(--space-xl) 0;
    width: 100%;

}

.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--color-primary-dark);
}

.post-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-xl) 0;
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--color-text-secondary);
}

.post-content ul,
.post-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.post-content li {
    font-size: var(--fs-base);
    line-height: 1.85;
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
    list-style: disc;
}

.post-content ol li {
    list-style: decimal;
}

/* ============================================
   PINTEREST OPTIMIZATION
   ============================================ */
.pinterest-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: #E60023;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: var(--fs-base);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
}

.pinterest-cta:hover {
    background: #AD081B;
    color: white;
}

/* Pin-it overlay on images */
.pinnable-image {
    position: relative;
    overflow: hidden;
}

/* Single post hero image — natural display (images already uploaded as 9:16) */
.single-featured-image.pinnable-image {
    width: 100%;
    margin: 0 auto var(--space-xl);
    display: block;
}

.single-featured-image.pinnable-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pinnable-image .pin-overlay {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: #E60023;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    opacity: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    text-decoration: none;
    pointer-events: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.pinnable-image:hover .pin-overlay {
    opacity: 1;
}

.pinnable-image .pin-overlay:hover {
    transform: scale(1.12);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.pinnable-image .pin-overlay svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
/* ============================================
   INFINITE SCROLL ARTICLES
   ============================================ */
.inf-sentinel {
    height: 1px;
    width: 100%;
}

.inf-article {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.inf-article.inf-visible {
    opacity: 1;
    transform: translateY(0);
}

.inf-divider {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: 660px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.inf-divider::before,
.inf-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-light);
}

.inf-divider span {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.inf-scroll-hint {
    text-align: center;
    padding-bottom: var(--space-lg);
}

.inf-scroll-arrow {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--color-primary);
    animation: scrollArrowBounce 1.4s infinite ease-in-out;
    line-height: 1;
}

@keyframes scrollArrowBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

.inf-article .post-title a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 640px) {
    .inf-divider {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================
   RELATED ARTICLES SLIDER (unused)
   ============================================ */
.related-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border-light);
    background: #f7f5f0;
}

/* Match article content width */
.related-section > .container {
    max-width: 660px;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.related-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.related-section__title {
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.related-section__nav {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.related-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--color-text);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    color: var(--color-text);
    padding: 0;
}

.related-nav-btn svg {
    width: 15px;
    height: 15px;
}

.related-nav-btn:hover:not(:disabled) {
    background: var(--color-text);
    color: #fff;
}

.related-track-wrap {
    overflow: hidden;
}

.related-track {
    display: flex;
    gap: 16px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Always 2 cards — desktop and mobile */
.related-slide {
    flex: 0 0 calc(50% - 8px);
    min-width: 0;
}

.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.22s ease;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-card__img {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card__img img {
    transform: scale(1.04);
}

.related-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-secondary);
}

.related-card__body {
    padding: 14px 14px 20px;
}

.related-card__cat {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.related-card__title {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 640px) {
    .related-section > .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .related-track {
        gap: 10px;
    }
    .related-slide {
        flex: 0 0 calc(50% - 5px);
    }
    .related-card__body {
        padding: 8px 10px 12px;
    }
    .related-card__cat {
        font-size: 0.58rem;
    }
    .related-card__title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-2xl) 0;
}

/* Social Share Buttons - Icon-only Circle Style */
.single-post-header .post-share--icons {
    display: flex;
    gap: 10px;
    margin-top: var(--space-xl);
    align-items: center;
}

.single-post-header .post-share--icons .share-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #767676;
    margin-right: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-post-header .post-share--icons .share-arrow {
    display: inline-block;
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1;
    animation: shareArrowNudge 1.2s infinite ease-in-out;
}

@keyframes shareArrowNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}


.single-post-header .post-share--icons .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.single-post-header .post-share--icons .share-btn svg {
    display: block;
    flex-shrink: 0;
}

.single-post-header .post-share--icons .share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.single-post-header .post-share--icons .share-facebook {
    background-color: #1877f2;
}

.single-post-header .post-share--icons .share-x {
    background-color: #000000;
}

.single-post-header .post-share--icons .share-pinterest {
    background-color: #e60023;
}

/* Pinterest CTA - Post Footer */
.post-footer-cta {
    text-align: center;
    padding: var(--space-lg) 0 var(--space-xl);
    margin-top: var(--space-lg);
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.post-footer-cta .cta-question {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.pinterest-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #bd081c;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(189, 8, 28, 0.15);
}

.pinterest-cta-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(189, 8, 28, 0.25);
    color: #ffffff;
}

.pinterest-cta-large svg {
    width: 13px;
    /* Extra small and delicate */
    height: 13px;
}




.pagination .page-numbers,
.nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ============================================
   FOOTER - Light Background (Southern Living style)
   ============================================ */
.site-footer {
    background: var(--color-bg-footer);
    padding: var(--space-xl) 0 var(--space-md);
    /* Reduced from 3xl and xl */
}

.footer-top {
    display: grid;
    grid-template-columns: 200px 3fr 1fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-lg);
}

.footer-column-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.footer-nav--two-columns {
    display: flex;
    gap: var(--space-xl);
}

.footer-nav-col {
    flex: 1;
}

/* Left column: Logo + Newsletter + Social */
.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

/* Newsletter button (outlined) */
.footer-brand .newsletter-btn {
    display: block;
    width: 100%;
    max-width: 220px;
    padding: 12px 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    background: none;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: var(--space-xl);
}

.footer-brand .newsletter-btn:hover {
    background: var(--color-text);
    color: white;
}

/* Follow us + social icons */
.footer-brand .follow-label {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-primary);
}

/* Footer nav columns header titles - hidden like SL */
.footer-nav h4 {
    display: none;
}

/* =============================================
   FOOTER CATEGORIES - Big bold uppercase like SL's FOOD/HOME/GARDEN
   ============================================= */
.footer-nav--categories ul li {
    margin-bottom: var(--space-md);
    /* More spacing between category items */
}

.footer-nav--categories ul a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    /* 14px - larger than legal links */
    font-weight: 700;
    /* Bold like SL's FOOD, HOME, GARDEN */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.footer-nav--categories ul a:hover {
    color: var(--color-primary);
}

.footer-nav--two-columns {
    display: flex;
    gap: var(--space-xl);
    min-width: 280px; /* Ensures enough space for two columns */
}

.footer-nav-col {
    flex: 1;
}

/* =============================================
   FOOTER LEGAL/ABOUT - Smaller, normal weight like SL's right columns
   "About Us", "Subscribe", "Editorial Guidelines" etc.
   ============================================= */
.footer-nav--legal ul li {
    margin-bottom: var(--space-sm);
}

.footer-nav--legal ul a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    /* ~13px - small like SL's about/legal links */
    font-weight: 400;
    /* Normal weight (not bold) like SL */
    text-transform: none;
    /* NOT uppercase - like SL "About Us" */
    letter-spacing: 0;
    color: #555555;
    /* Slightly muted, like SL */
    transition: color var(--transition-fast);
}

.footer-nav--legal ul a:hover {
    color: var(--color-primary);
}


/* Footer bottom */
.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin: 0;
    /* Fixes vertical alignment */
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text);
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-header {
    text-align: center;
    padding: var(--space-3xl) 0;
    background: var(--color-bg-light);
}

.search-header h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-md);
}

.search-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-form-wrapper input[type="search"] {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: var(--fs-base);
    font-family: var(--font-sans);
    border: 2px solid var(--color-border);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-form-wrapper input[type="search"]:focus {
    border-color: var(--color-primary);
}

.search-form-wrapper button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--fs-lg);
    color: var(--color-text-light);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.error-404 .error-code {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-404 h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-md);
}

.error-404 p {
    font-size: var(--fs-md);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.error-404 .btn-home {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background var(--transition-fast);
}

.error-404 .btn-home:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* ============================================
   WIDGETS / SIDEBAR
   ============================================ */
.widget {
    margin-bottom: var(--space-2xl);
}

.widget-title {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-weight: 700;
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: var(--space-lg);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: var(--color-bg-cream);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.newsletter-section h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-sm);
}

.newsletter-section p {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    font-size: var(--fs-base);
    font-family: var(--font-sans);
    border: 2px solid var(--color-border);
    border-right: none;
    outline: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.archive-header {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-bottom: var(--space-md);
}

/* Breadcrumb parent category */
.archive-header .archive-parent {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.archive-header h1 {
    font-family: var(--font-serif);
    font-size: var(--fs-3xl);
    font-weight: 700;
}

.archive-header .archive-desc {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(1) {
    animation-delay: 0s;
}

.animate-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-in:nth-child(3) {
    animation-delay: 0.15s;
}

.animate-in:nth-child(4) {
    animation-delay: 0.2s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --fs-hero: 2.5rem;
        --fs-3xl: 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .hero-overlay-card {
        max-width: 400px;
        padding: var(--space-xl);
    }

    .hero-overlay-card .card-title {
        font-size: var(--fs-2xl);
    }

    .featured-article .featured-card {
        max-width: 380px;
        padding: var(--space-xl);
    }

    .main-nav a {
        padding: 0 var(--space-sm);
        font-size: 0.625rem;
    }
}

/* Tablet small */
@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --fs-hero: 2rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
        --space-3xl: 2.5rem;
    }

    .container {
        padding: 0 16px !important;
    }

    /* Post header: uses only its own 16px padding, no double margin */
    .container--post-header {
        max-width: 100% !important;
        padding: 0 16px !important;
        margin: 0 !important;
    }

    /* Show hamburger + mobile search, hide nav bar */
    .menu-toggle {
        display: flex;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-search-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        color: var(--color-text, #1D1D1B);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .header-row-nav {
        display: none;
    }

    .header-row-top {
        height: 56px;
    }

    .site-logo a {
        font-size: 1.5rem;
    }

    .header-utility a:not(.subscribe-link):not(.search-icon) {
        display: none;
    }

    /* Hero / Editorial Cover */
    .editorial-cover .cover-title {
        font-size: 2.25rem;
    }

    .editorial-cover .cover-image {
        max-height: 50vh;
    }

    .cover-content {
        padding: 0 var(--space-md);
    }

    /* Trending Categories */
    .trending-grid {
        gap: var(--space-lg);
    }

    .trending-image {
        width: 80px;
        height: 80px;
    }

    /* Split Feature */
    .split-feature-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .split-content-col {
        padding: 0 var(--space-md);
    }

    /* Grid */
    .articles-grid,
    .archive-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* List */
    .article-list-item {
        flex-direction: column;
    }

    .article-list-item .item-image {
        width: 100%;
        height: 200px;
    }

    /* =============================================
       SINGLE POST MOBILE - Southern Living style
       ============================================= */
    .single-post-header {
        padding: 24px 0 16px !important;
    }

    /* Title: 36px bold like Southern Living mobile header */
    .single-post-header .post-title {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        letter-spacing: -0.03em !important;
        max-width: 100% !important;
        margin: 0 0 16px !important;
    }

    .single-post-header .post-excerpt {
        max-width: 100% !important;
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 16px !important;
    }

    /* On mobile: all single post elements go full width with 16px padding */
    .single .single-post-header,
    .single .single-featured-image,
    .single .image-credit,
    .single .post-content {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* But single-post-header is inside container
       so the container's 16px already applies — remove double padding */
    .single .single-post-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        border-right: 2px solid var(--color-border);
    }

    /* Progress bar on single post (mobile) */
    .reading-progress-bar {
        position: fixed;
        top: 56px;
        left: 0;
        z-index: 1001;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --fs-hero: 1.75rem;
        --fs-3xl: 1.9rem;
        --fs-2xl: 1.6rem;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.alignwide {
    max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.aligncenter {
    text-align: center;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Contact Form Animated Button */
.contact-submit-btn {
    background-color: var(--color-primary, #8B2332);
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.contact-submit-btn:hover {
    background-color: var(--color-primary-dark, #6b1a26);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-submit-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}