/* ============================================================
   Wired & Whisker — Main Stylesheet
   Modern veterinary blog, navy blue scheme, faceless brand
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Primary palette */
    --color-primary: #0a1e3d;
    --color-primary-light: #1e4a7a;
    --color-accent: #c9952e;
    --color-accent-hover: #dba43e;

    /* Neutrals */
    --color-bg: #f8f6f2;
    --color-bg-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #5a5a5a;
    --color-text-muted: #888888;
    --color-border: #e0ddd8;
    --color-border-light: #f0ede8;

    /* Functional */
    --color-link: var(--color-primary-light);
    --color-link-hover: var(--color-primary);
    --color-button-text: #ffffff;
    --color-success: #2e7d32;
    --color-error: #c62828;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

    /* Font sizes — fluid scale via clamp */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.95rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 3.5rem);

    /* 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 */
    --content-width: 720px;
    --content-wide: 1120px;
    --content-full: 100%;
    --sidebar-width: 320px;

    /* Misc */
    --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.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --transition: 200ms ease;
    --transition-slow: 350ms ease;
}

/* --- Modern Reset --- */
*, *::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(--text-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, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

a:hover, a:focus {
    color: var(--color-link-hover);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: var(--space-xs);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--space-md);
    word-wrap: break-word;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Container / Layout --- */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content-wrap {
    flex: 1;
    width: 100%;
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-3xl);
}

.site-content-wrap.content-full {
    display: block;
    max-width: var(--content-wide);
}

.site-main {
    min-width: 0;
}

.site-main.content-center {
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background-color: var(--color-primary);
    color: #ffffff;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-accent);
}

.site-description {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    margin: var(--space-xs) 0 0 0;
    font-style: italic;
}

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

/* --- Navigation --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 200;
}

.nav-toggle:hover {
    color: var(--color-accent);
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-xs);
}

.main-navigation ul li {
    position: relative;
    margin: 0;
}

.main-navigation ul li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255,255,255,0.9);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary-light);
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 150;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul li a {
    padding: var(--space-sm) var(--space-lg);
    color: rgba(255,255,255,0.85);
    border-radius: 0;
}

.main-navigation ul ul li:first-child a {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.main-navigation ul ul li:last-child a {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.main-navigation ul ul li a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* ============================================================
   HEADER SEARCH — Toggle + dropdown bar
   ============================================================ */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.search-toggle:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.header-search {
    display: none;
    background: var(--color-primary-light);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.header-search.open {
    display: block;
}

.header-search-inner {
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.header-search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: var(--text-base);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.header-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-search-input:focus {
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.15);
}

.header-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition);
}

.header-search-submit:hover {
    background: var(--color-accent-hover);
}

.header-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition);
}

.header-search-close:hover {
    color: #ffffff;
}

/* ============================================================
   HERO SLIDER — Fullscreen home banner with rotating images
   ============================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: min(85vh, 650px);
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        135deg,
        rgba(10, 30, 61, 0.85) 0%,
        rgba(10, 30, 61, 0.65) 50%,
        rgba(10, 30, 61, 0.40) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
    color: #ffffff;
    max-width: var(--content-wide);
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.35rem);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    color: #ffffff;
}

.hero-btn:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 149, 46, 0.4);
}

.hero-btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.6);
    color: #ffffff;
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Hero dots */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.6rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.hero-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

.hero-dot:hover {
    border-color: #ffffff;
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: min(70vh, 500px);
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: var(--text-sm);
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-xs);
    }

    .hero-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: min(60vh, 400px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}
/* ============================================================
   HERO / PAGE BANNER
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
}

.page-banner h1,
.page-banner .page-title {
    font-size: var(--text-3xl);
    color: #ffffff;
    margin: 0;
}

.page-banner .archive-description {
    color: rgba(255,255,255,0.8);
    margin-top: var(--space-md);
    font-size: var(--text-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   BLOG FEED — POST CARDS
   ============================================================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.post-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-border-light);
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.post-card-categories a {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    text-decoration: none;
}

.post-card-categories a:hover {
    color: var(--color-accent-hover);
}

.post-card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.post-card-title a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.post-card-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.post-card-meta span {
    margin-right: var(--space-sm);
}

.post-card-excerpt {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-text-light);
    flex: 1;
}

.post-card-excerpt p {
    font-size: inherit;
    margin-bottom: 0;
}

.post-card-footer {
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.read-more-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.read-more-link::after {
    content: '→';
    transition: transform var(--transition);
}

.read-more-link:hover::after {
    transform: translateX(4px);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.single-post-header {
    margin-bottom: var(--space-2xl);
}

.single-post-header .post-categories {
    margin-bottom: var(--space-md);
}

.single-post-header .post-categories a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: rgba(201,149,46,0.08);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.single-post-header .post-categories a:hover {
    background: rgba(201,149,46,0.15);
}

.single-post-title {
    font-size: var(--text-3xl);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.single-post-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.single-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.single-post-thumbnail {
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single-post-thumbnail img {
    width: 100%;
}

/* --- Post Content Typography --- */
.post-content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text);
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content h2 {
    margin-top: var(--space-3xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border-light);
}

.post-content h3 {
    margin-top: var(--space-2xl);
}

.post-content h4, .post-content h5, .post-content h6 {
    margin-top: var(--space-xl);
}

.post-content p {
    margin-bottom: var(--space-lg);
}

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

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

.post-content img,
.post-content figure,
.post-content .wp-block-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-2xl) auto;
}

.post-content .wp-block-image figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    font-style: italic;
}

.post-content .alignwide {
    max-width: var(--content-wide);
    margin-left: calc(-1 * (var(--content-wide) - var(--content-width)) / 2);
}

@media (max-width: 768px) {
    .post-content .alignwide {
        margin-left: 0;
        max-width: 100%;
    }
}

/* Blockquotes */
.post-content blockquote,
.post-content .wp-block-quote {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) var(--space-2xl);
    border-left: 4px solid var(--color-accent);
    background: rgba(201,149,46,0.06);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.6;
    color: var(--color-primary);
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    position: absolute;
    top: -0.5rem;
    left: var(--space-md);
    line-height: 1;
    opacity: 0.3;
}

.post-content blockquote p {
    margin-bottom: var(--space-sm);
}

.post-content blockquote cite,
.post-content .wp-block-quote cite {
    display: block;
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* Lists */
.post-content ul,
.post-content ol {
    margin: 0 0 var(--space-lg) 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.post-content ul ul,
.post-content ol ol {
    margin-bottom: 0;
}

/* Tables */
.post-content table,
.post-content .wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-2xl) 0;
    font-size: var(--text-sm);
}

.post-content th,
.post-content td {
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
}

.post-content th {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-body);
}

.post-content tr:nth-child(even) {
    background: var(--color-bg);
}

.post-content tr:hover {
    background: rgba(201,149,46,0.04);
}

/* Code blocks */
.post-content code,
.post-content pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.post-content code {
    background: var(--color-border-light);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.post-content pre {
    background: var(--color-primary);
    color: #e0e0e0;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-2xl) 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Buttons inside content */
.post-content .wp-block-button__link {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.post-content .wp-block-button__link:hover {
    text-decoration: none;
}

/* Affiliate notice */
.affiliate-disclosure {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-2xl) 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Post Navigation --- */
.post-navigation {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
}

.post-navigation a {
    flex: 1;
    max-width: 50%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    display: flex;
    flex-direction: column;
}

.post-navigation .nav-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.post-navigation .nav-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-top: var(--space-xs);
}

.post-navigation a:hover .nav-title {
    color: var(--color-accent);
}

/* --- Comments --- */
.comments-area {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.comment-meta {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.comment-author {
    font-weight: 600;
    color: var(--color-primary);
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: var(--space-sm);
    vertical-align: middle;
}

.comment-content {
    font-size: var(--text-sm);
}

.comment-reply-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary-light);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar {
    width: 100%;
}

.sidebar-widget {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget .widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
    position: relative;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    margin: 0;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--color-text-light);
    font-size: var(--text-sm);
}

.sidebar-widget ul li a:hover {
    color: var(--color-accent);
}

/* Search widget */
.sidebar-widget .search-form,
.widget_search .search-form {
    display: flex;
    gap: 0;
}

.sidebar-widget .search-form input[type="search"],
.widget_search .search-form input[type="search"] {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: var(--text-sm);
    background: var(--color-bg);
}

.sidebar-widget .search-form input[type="search"]:focus,
.widget_search .search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.sidebar-widget .search-form button,
.widget_search .search-form button {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary-light);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    font-size: var(--text-sm);
    transition: background var(--transition);
}

.sidebar-widget .search-form button:hover,
.widget_search .search-form button:hover {
    background: var(--color-primary);
}

/* Newsletter / CTA widget */
.widget_cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
}

.widget_cta .widget-title {
    color: #ffffff;
    border-bottom-color: var(--color-accent);
}

.widget_cta p {
    color: rgba(255,255,255,0.85);
    font-size: var(--text-sm);
}

/* Affiliate banner widget */
.widget_affiliate {
    text-align: center;
}

.widget_affiliate img {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.widget_affiliate .affiliate-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
}

/* Tag cloud */
.tagcloud a {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    margin: 0 var(--space-xs) var(--space-xs) 0;
    font-size: var(--text-xs) !important;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    text-decoration: none;
    transition: all var(--transition);
}

.tagcloud a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-button-text);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-button-text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--color-primary-light);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary-light);
}

.btn-outline:hover {
    background: var(--color-primary-light);
    color: #ffffff;
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(30, 74, 122, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    margin: var(--space-3xl) 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination .page-numbers:hover {
    background: var(--color-border-light);
    color: var(--color-primary);
}

.pagination .page-numbers.current {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #ffffff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: var(--text-xs);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.8);
    margin-top: var(--space-4xl);
}

.footer-widgets {
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-widgets .widget {
    font-size: var(--text-sm);
    line-height: 1.7;
}

.footer-widgets .widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: #ffffff;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
}

.footer-widgets .widget p {
    color: rgba(255,255,255,0.7);
}

.footer-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets .widget ul li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0;
}

.footer-widgets .widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
}

.footer-widgets .widget ul li a:hover {
    color: var(--color-accent);
}

.footer-widgets .widget .tagcloud a {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}

.footer-widgets .widget .tagcloud a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

/* Copyright bar */
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-lg);
    text-align: center;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
}

.footer-copyright a {
    color: rgba(255,255,255,0.7);
}

.footer-copyright a:hover {
    color: var(--color-accent);
}

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

.error-404 .page-title {
    font-size: 8rem;
    line-height: 1;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}

.error-404 h2 {
    margin-bottom: var(--space-lg);
}

.error-404 p {
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto var(--space-2xl);
    display: flex;
}

.error-404 .search-form input[type="search"] {
    flex: 1;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.error-404 .search-form button {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-query {
    margin-bottom: var(--space-2xl);
    font-size: var(--text-lg);
    color: var(--color-text-light);
}

.search-query strong {
    color: var(--color-primary);
}

.no-results {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.no-results p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.no-results .search-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a, a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    nav, .sidebar, .footer-widgets, .comments-area,
    .post-navigation, .pagination, .search-form, .widget_cta {
        display: none !important;
    }

    .site-content-wrap {
        display: block !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.affiliate-badge {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .site-content-wrap {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        max-width: 500px;
        margin: 0 auto;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        padding: var(--space-md) var(--space-lg);
    }

    .nav-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-4xl) var(--space-xl) var(--space-xl);
        transition: right var(--transition-slow);
        z-index: 150;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-navigation ul li a {
        padding: var(--space-md) 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-radius: 0;
    }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        border-radius: var(--radius-md);
        margin: var(--space-xs) 0 var(--space-xs) var(--space-lg);
    }

    .main-navigation ul ul li a {
        padding: var(--space-sm) var(--space-md);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 140;
    }

    .nav-overlay.active {
        display: block;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .single-post-title {
        font-size: var(--text-2xl);
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation a {
        max-width: 100%;
    }

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

    .page-banner {
        padding: var(--space-2xl) var(--space-lg);
    }

    .page-banner h1 {
        font-size: var(--text-2xl);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-inner {
        padding: var(--space-sm) var(--space-md);
    }

    .site-title {
        font-size: var(--text-xl);
    }

    .post-card-body {
        padding: var(--space-lg);
    }

    .post-card-title {
        font-size: var(--text-lg);
    }

    .error-404 .page-title {
        font-size: 5rem;
    }
}
