/* ================================================================
   BeautyGlow - Main Stylesheet
   ================================================================ */

/* ── CSS Variables ── */
:root {
    --color-primary: #333333;
    --color-primary-light: #e0e0e0;
    --color-primary-dark: #111111;
    --color-secondary: #555555;
    --color-secondary-light: #f0f0f0;
    --bg-accent: #333333;
    --bg-accent-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-bg-card: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-text-muted: #888888;
    --color-border: #e0e0e0;
    --color-white: #ffffff;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;

    --lh-tight: 1.2;
    --lh-normal: 1.6;
    --lh-relaxed: 1.8;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

    --max-width: 1240px;
    --max-width-narrow: 780px;

    --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    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: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--bg-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--lh-tight);
    color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

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

ul, ol { list-style: none; }

/* ── Utility ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

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

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

.section-title {
    text-align: center;
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--bg-accent);
    margin: 0 auto var(--space-lg);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: var(--color-bg-card);
    clip: auto !important;
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link:focus {
    background: var(--color-bg-card);
    color: var(--color-text);
    padding: var(--space-md) var(--space-lg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    clip: auto !important;
    width: auto;
    height: auto;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.7em 1.8em;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-accent {
    background: var(--bg-accent);
    color: var(--color-white);
}
.btn-accent:hover { background: var(--color-primary-dark); color: var(--color-white); }

.btn-hero {
    background: rgba(255,255,255,0.9);
    color: var(--color-text);
    font-size: var(--fs-sm);
    padding: 0.9em 2.4em;
    border-radius: var(--radius-md);
}
.btn-hero:hover { background: var(--color-white); color: var(--color-text); }

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.category-view-all {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ================================================================
   HEADER A - Primary
   Desktop: Logo (left) | Home + Categories (center) | Search (right)
   Mobile: Hamburger (left) | Logo (center) | Search (right)
   ================================================================ */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 70px;
    gap: var(--space-lg);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.header-center {
    justify-self: center;
}
.header-right {
    justify-self: end;
}

.site-branding {
    text-align: left;
}
.site-branding .site-title-link {
    text-decoration: none;
}
.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--bg-accent);
    letter-spacing: 0.02em;
    font-style: italic;
    white-space: nowrap;
}
.site-branding .site-title-link:hover .site-title { color: var(--color-primary-dark); }

.site-logo img { max-height: 50px; width: auto; }

.site-branding-mobile { display: none; }

.header-search {
    position: relative;
}
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--space-xs);
    display: flex;
    align-items: center;
}
.search-toggle:hover { color: var(--bg-accent); }

.header-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    z-index: 100;
}
.header-search-form.is-visible { display: block; }

.nav-menu {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-menu li a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a,
.nav-menu li.current-cat a {
    color: var(--bg-accent);
}

.nav-menu li { position: relative; }
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs) 0;
    z-index: 100;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
    text-transform: none;
    padding: var(--space-xs) var(--space-lg);
    font-size: var(--fs-sm);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    flex-direction: column;
    gap: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
    border-radius: 2px;
}
.menu-toggle.is-active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Full-width search bar styling */
.search-form {
    width: 100%;
    position: relative;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    outline: none;
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}
.search-field:focus { border-color: var(--color-primary); }
.search-submit {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition);
    flex-shrink: 0;
}
.search-submit:hover { background: var(--color-primary-dark); }

.search-form-inner {
    display: flex;
    gap: var(--space-xs);
    width: 100%;
    position: relative;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.live-search-loading {
    padding: var(--space-md);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.live-search-no-results {
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.live-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-search-item {
    border-bottom: 1px solid var(--color-bg-alt);
}
.live-search-item:last-child {
    border-bottom: none;
}

.live-search-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition);
}
.live-search-link:hover {
    background: var(--color-bg-alt);
}

.live-search-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.live-search-thumb-placeholder {
    width: 50px;
    height: 50px;
    background: var(--color-bg-alt);
    border-radius: 4px;
    flex-shrink: 0;
}

.live-search-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.live-search-cat {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.live-search-title {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-view-all {
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--color-border);
}
.live-search-view-all a {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.live-search-view-all a:hover {
    color: var(--color-primary-dark);
}

/* ================================================================
   HEADER B - Secondary (Centered)
   ================================================================ */
.header-b .header-inner--centered {
    flex-direction: column;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    gap: var(--space-md);
    position: relative;
    display: flex;
}
.header-b .site-branding--centered {
    text-align: center;
    order: -1;
}
.header-b .site-branding--centered .site-title {
    font-size: var(--fs-2xl);
    color: var(--bg-accent);
    font-style: italic;
}
.header-b .site-description {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    margin-top: var(--space-xs);
    font-style: italic;
}
.header-b .nav-secondary .nav-menu { justify-content: center; }
.header-b .header-search { position: absolute; left: var(--space-lg); top: var(--space-lg); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-background svg,
.hero-background img.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-background picture { display: block; width: 100%; height: 100%; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}
.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-xl);
    font-style: italic;
    font-family: var(--font-heading);
}

/* ================================================================
   POSTS GRID & CARDS
   ================================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.posts-grid--three { grid-template-columns: repeat(4, 1fr); }
.posts-grid--four { grid-template-columns: repeat(4, 1fr); }

.category-section-heading {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
}
.category-section-heading a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}
.category-section-heading a:hover {
    color: var(--bg-accent);
}
.category-post-count {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.homepage-category-section {
    background: var(--color-white);
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-md);
}
.homepage-category-section:last-child {
    margin-bottom: 0;
}

.explore-categories {
    background: var(--color-bg-alt);
}

.latest-articles,
.archive-page-section {
    background: var(--color-bg-alt);
}

.explore-categories > .container {
    margin-bottom: var(--space-sm);
}

.post-card {
    display: flex;
}
.post-card-link-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.post-card-link-wrap:hover .post-card-thumbnail img {
    transform: scale(1.03);
}

.post-card-thumbnail {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-bg-alt);
    border-radius: 0;
}
.post-card-thumbnail .post-card-img,
.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card-placeholder { width: 100%; height: 100%; }
.post-card-placeholder svg { width: 100%; height: 100%; }

.post-card-body {
    padding: var(--space-md) var(--space-sm) 0 var(--space-sm);
}

.post-card-cat {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin: 0 0 8px 0;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-read-time {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ================================================================
   ARCHIVE / CATEGORY HEADER
   ================================================================ */
.archive-header,
.category-header,
.search-header {
    background: var(--color-bg-alt);
    padding: var(--space-3xl) 0;
    text-align: center;
}
.archive-title,
.category-title,
.search-title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-sm);
}
.search-title span { color: var(--bg-accent); font-style: italic; }
.category-label {
    display: inline-block;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-accent);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}
.archive-description,
.category-description {
    font-size: var(--fs-md);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}
.search-again {
    margin-top: var(--space-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-header { padding: var(--space-3xl) 0 var(--space-xl); text-align: center; }
.single-header .entry-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    max-width: 700px;
    margin: 0 auto var(--space-md);
}
.entry-meta { display: flex; justify-content: center; gap: var(--space-sm); align-items: center; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--color-text-light); }
.entry-meta--top { margin-bottom: var(--space-md); }
.entry-meta--top .cat-links a { color: var(--bg-accent); font-weight: 600; text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.06em; }

.single-featured-image { margin-bottom: var(--space-2xl); }
.single-featured-portrait {
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.single-featured-portrait .featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-hero svg { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 21/9; }

.entry-content {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-2xl);
}
.entry-content p { margin-bottom: var(--space-lg); }
.entry-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-md); font-size: var(--fs-xl); }
.entry-content h3 { margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.entry-content ul, .entry-content ol { margin: 0 0 var(--space-lg) var(--space-xl); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--space-xs); }
.entry-content blockquote {
    border-left: 3px solid var(--bg-accent);
    padding: var(--space-md) var(--space-xl);
    margin: var(--space-xl) 0;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.entry-content img { border-radius: var(--radius-md); margin: var(--space-lg) 0; }
.entry-content a { color: var(--bg-accent); border-bottom: 1px solid transparent; }
.entry-content a:hover { border-bottom-color: var(--bg-accent); }

.entry-footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}
.entry-footer .tags-links { display: block; margin-bottom: var(--space-md); font-size: var(--fs-sm); color: var(--color-text-light); }
.entry-footer .tags-links a { color: var(--color-primary-dark); }

/* Share Buttons */
.share-buttons { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.share-label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.06em; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    transition: all var(--transition);
}
.share-btn:hover { background: var(--bg-accent); color: var(--color-white); }

/* ================================================================
   RELATED POSTS
   ================================================================ */
.related-posts { border-top: 1px solid var(--color-border); }

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-area { padding: var(--space-2xl) 0; }
.comments-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-xl);
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-list .comment {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
}
.comment-list .comment .comment-body { display: flex; gap: var(--space-md); }
.comment-list .comment .comment-body .avatar { border-radius: 50%; flex-shrink: 0; }
.comment-list .comment .comment-author { font-weight: 600; font-size: var(--fs-sm); }
.comment-list .comment .comment-metadata { font-size: var(--fs-xs); color: var(--color-text-muted); }
.comment-list .comment .comment-content { margin-top: var(--space-xs); }
.comment-list .comment .comment-content p { font-size: var(--fs-sm); }
.comment-list .children { padding-left: var(--space-2xl); }

.comment-reply-title { font-size: var(--fs-xl); margin-bottom: var(--space-lg); }
.comment-form label { display: block; font-size: var(--fs-sm); font-weight: 500; margin-bottom: var(--space-xs); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    transition: border-color var(--transition);
    margin-bottom: var(--space-md);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-primary); outline: none; }
.comment-form .form-submit .submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: background var(--transition);
}
.comment-form .form-submit .submit:hover { background: var(--color-primary-dark); }

/* ================================================================
   PAGINATION
   ================================================================ */
.nav-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all var(--transition);
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ================================================================
   PAGE HEADER BANNER
   ================================================================ */
.page-header-banner {
    background: var(--color-bg-alt);
    padding: var(--space-xl) 0;
    text-align: center;
}
.page-header-banner .page-title { font-size: var(--fs-3xl); }

/* ================================================================
   404 PAGE
   ================================================================ */
.error-404-page {
    padding: var(--space-4xl) 0;
    text-align: center;
}
.error-code {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: var(--space-md);
}
.error-title { font-size: var(--fs-2xl); margin-bottom: var(--space-md); }
.error-message { color: var(--color-text-light); margin-bottom: var(--space-xl); font-size: var(--fs-md); }
.error-search { max-width: 400px; margin: 0 auto var(--space-xl); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.8);
    padding: var(--space-3xl) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: var(--space-2xl);
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--bg-accent);
}
.footer-about p { font-size: var(--fs-sm); line-height: var(--lh-relaxed); margin-bottom: var(--space-lg); }

.social-icons { display: flex; gap: var(--space-sm); }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    transition: all var(--transition);
}
.social-icon:hover { background: var(--bg-accent); color: var(--color-white); }

.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin-bottom: var(--space-sm); }
.footer-menu a { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); }
.footer-menu a:hover { color: var(--bg-accent); }

.footer-newsletter p { font-size: var(--fs-sm); margin-bottom: var(--space-md); }
.newsletter-form { display: flex; gap: var(--space-xs); }
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form .btn-accent { padding: var(--space-sm) var(--space-lg); font-size: var(--fs-xs); flex-shrink: 0; }

.footer-bottom {
    margin-top: var(--space-2xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom .copyright { font-size: var(--fs-xs); color: rgba(255,255,255,0.5); margin: 0; }

/* ================================================================
   SIDEBAR / WIDGETS
   ================================================================ */
.widget { margin-bottom: var(--space-2xl); }
.widget-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--bg-accent);
}
.widget ul { list-style: none; padding: 0; }
.widget li { padding: var(--space-xs) 0; border-bottom: 1px solid var(--color-border); }
.widget a { color: var(--color-text-light); font-size: var(--fs-sm); }
.widget a:hover { color: var(--bg-accent); }

/* No Results */
.no-results,
.no-posts-message { text-align: center; padding: var(--space-3xl) 0; color: var(--color-text-light); }
.no-results h1, .no-results h2 { margin-bottom: var(--space-md); }
.no-results .search-form { max-width: 400px; margin: var(--space-lg) auto 0; }

/* Page Links */
.page-links { margin: var(--space-xl) 0; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ================================================================
   RESPONSIVE - LARGE DESKTOP (1025px - 1280px)
   ================================================================ */
@media (min-width: 1025px) and (max-width: 1280px) {
    .posts-grid--three { grid-template-columns: repeat(3, 1fr); }
    .posts-grid--four { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   RESPONSIVE - TABLET (769px - 1024px)
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --fs-3xl: 2rem;
        --fs-2xl: 1.75rem;
    }
    .posts-grid--three { grid-template-columns: repeat(2, 1fr); }
    .posts-grid--four { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .footer-col.footer-newsletter { grid-column: 1 / -1; }
    .category-section-heading { font-size: var(--fs-lg); }
}

/* ================================================================
   RESPONSIVE - MOBILE (max 768px)
   ================================================================ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-inner {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
        min-height: 60px;
        gap: var(--space-xs);
    }

    .header-left {
        grid-column: 1;
        display: flex;
        align-items: center;
        gap: 0;
    }
    .header-left .site-branding { display: none; }

    .header-center {
        grid-column: 2;
        justify-self: center;
    }
    .header-center .nav-menu { display: none; }
    .header-center .nav-menu.is-active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-md) 0;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        border-top: 1px solid var(--color-border);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .header-center .nav-menu li a {
        padding: var(--space-md) var(--space-xl);
        font-size: var(--fs-base);
        border-bottom: 1px solid var(--color-bg-alt);
    }
    .header-center .nav-menu li:last-child a { border-bottom: none; }
    .header-center .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: var(--space-lg);
        display: block;
    }

    .site-branding-mobile {
        display: block;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .site-branding-mobile .site-title {
        font-size: clamp(16px, 5vw, 24px) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
        text-align: center;
    }

    .header-right {
        grid-column: 3;
        justify-self: end;
        flex-shrink: 0;
    }
    .header-right .search-toggle {
        padding: var(--space-xs);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-search-form {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        padding: var(--space-md) var(--space-lg);
        z-index: 999;
    }

    .posts-grid,
    .posts-grid--three,
    .posts-grid--four {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .category-section-heading {
        flex-wrap: wrap;
        font-size: var(--fs-lg);
        gap: var(--space-xs);
    }

    .hero-section { min-height: 350px; }
    .hero-title { font-size: 2rem; }
    .hero-tagline { font-size: 1rem; }

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

    .section-spacing { padding: var(--space-lg) 0; }
    .section-title { font-size: var(--fs-xl); }

    .single-header .entry-title { font-size: 1.6rem; }
    .single-featured-image .featured-img { border-radius: var(--radius-md); }

    .newsletter-form { flex-direction: column; }

    .btn-hero { padding: 0.7em 1.8em; font-size: var(--fs-xs); }
    .btn-outline { padding: 10px 24px; font-size: var(--fs-xs); }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-links .page-numbers {
        min-width: 44px;
        height: 44px;
    }
}

/* ================================================================
   RESPONSIVE - SMALL MOBILE (max 480px)
   ================================================================ */
@media (max-width: 480px) {
    .container { padding-left: var(--space-md); padding-right: var(--space-md); }
    .hero-section { min-height: 280px; }
    .hero-content { padding: var(--space-2xl) var(--space-md); }
    .hero-title { font-size: 1.6rem; }
    .hero-tagline { font-size: 0.9rem; }
    .share-buttons { gap: var(--space-sm); }

    .posts-grid,
    .posts-grid--three,
    .posts-grid--four {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .section-title { font-size: var(--fs-lg); }
    .section-divider { margin-bottom: var(--space-md); }

    .category-section-heading {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: flex-start;
    }
}

/* ================================================================
   RESPONSIVE - LANDSCAPE PHONES (short height, wide viewport)
   ================================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { min-height: 250px; }
    .hero-content { padding: var(--space-lg) var(--space-md); }
    .hero-title { font-size: 1.5rem; }
}

/* ── Print Styles ── */
@media print {
    .site-header, .site-footer, .share-buttons, .related-posts, .comments-area, .search-form { display: none; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}
