/*
Theme Name: Flavor Hub
Theme URI: https://flavor-hub.example.com
Author: BulkGen
Description: A clean, modern editorial theme with full-width layout, hero carousel, and teal accents. Inspired by USAGardenHub. No sidebar — content-focused design with Montserrat + Lato typography.
Version: 1.0.0
Text Domain: flavor-hub
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    /* Colors */
    --color-accent: #29b0d5;
    --color-accent-dark: #1e8fad;
    --color-accent-light: rgba(41, 176, 213, 0.1);
    --color-cta: #b8860b;
    --color-cta-dark: #9a7209;
    --color-text: #111111;
    --color-heading: #030303;
    --color-meta: #6f6f6f;
    --color-border: #e4e4e4;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-footer-bg: #0f172a;
    --color-footer-text: rgba(255, 255, 255, 0.7);
    --color-footer-heading: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 15px;
    --line-height-base: 1.7;
    --line-height-heading: 1.25;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --container-max: 1200px;
    --content-max: 800px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a:hover,
a:focus {
    color: var(--color-accent-dark);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: var(--line-height-heading);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin: 0 0 1.25em;
}

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

.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: #fff;
    clip: auto !important;
    display: block;
    font-size: 14px;
    height: auto;
    left: 5px;
    padding: 15px 23px;
    top: 5px;
    width: auto;
    z-index: 100000;
}


/* ==========================================================================
   Layout
   ========================================================================== */

.site-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-branding {
    text-align: center;
    padding: 32px 0 20px;
}

.site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-title a {
    color: var(--color-heading);
    text-decoration: none;
}

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

.site-title i {
    margin-right: 8px;
    color: var(--color-accent);
}

.site-description {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: var(--color-meta);
    font-weight: 400;
}

/* Navigation */
.primary-navigation {
    border-top: 1px solid var(--color-border);
}

.primary-navigation .site-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-heading);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    color: var(--color-accent);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item > a::after,
.nav-menu li.current_page_item > a::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
    list-style: none;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu li ul li a {
    padding: 10px 20px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.nav-menu li ul li a::after {
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--color-heading);
    margin: 12px 0;
}


/* ==========================================================================
   Hero Carousel
   ========================================================================== */

.hero-carousel {
    padding: 32px 0 16px;
}

.carousel-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-radio {
    display: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide__image {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.carousel-slide__content {
    max-width: 700px;
}

.carousel-slide__category {
    display: inline-block;
    padding: 5px 16px;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.carousel-slide__category:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

.carousel-slide__title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel-slide__title a {
    color: inherit;
}

.carousel-slide__title a:hover {
    color: var(--color-accent);
}

.carousel-slide__meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.carousel-slide__cta {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-cta);
    color: #fff;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}

.carousel-slide__cta:hover {
    background: var(--color-cta-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.carousel-slide__cta i {
    margin-left: 6px;
    font-size: 11px;
}

/* Carousel navigation dots */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* CSS-only carousel slide transitions */
#slide-1:checked ~ .carousel-track {
    transform: translateX(0%);
}

#slide-2:checked ~ .carousel-track {
    transform: translateX(-100%);
}

#slide-3:checked ~ .carousel-track {
    transform: translateX(-200%);
}

#slide-4:checked ~ .carousel-track {
    transform: translateX(-300%);
}

/* Active dot indicators */
#slide-1:checked ~ .carousel-nav .carousel-dot:nth-child(1),
#slide-2:checked ~ .carousel-nav .carousel-dot:nth-child(2),
#slide-3:checked ~ .carousel-nav .carousel-dot:nth-child(3),
#slide-4:checked ~ .carousel-nav .carousel-dot:nth-child(4) {
    background: #fff;
    transform: scale(1.2);
}


/* ==========================================================================
   Post Listing
   ========================================================================== */

.post-listing {
    padding: 40px 0 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Post Card */
.post-card {
    display: flex;
    gap: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

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

.post-card__image {
    flex-shrink: 0;
    width: 300px;
    overflow: hidden;
}

.post-card__image a {
    display: block;
    height: 100%;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.post-card__body {
    flex: 1;
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
}

/* No image — add left padding */
.post-card:not(:has(.post-card__image)) .post-card__body {
    padding-left: 24px;
}

.post-card__category {
    display: inline-block;
    width: fit-content;
    padding: 3px 12px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    transition: all var(--transition-fast);
}

.post-card__category:hover {
    background: var(--color-accent);
    color: #fff;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.post-card__title a {
    color: var(--color-heading);
}

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

.post-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--color-meta);
    margin-bottom: 10px;
}

.post-card__meta i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.post-card__excerpt {
    color: var(--color-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.post-card__excerpt p {
    margin: 0;
}

.post-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 12px;
    transition: all var(--transition-fast);
}

.post-card__readmore:hover {
    color: var(--color-accent-dark);
    gap: 10px;
}

.post-card__readmore i {
    font-size: 11px;
    transition: transform var(--transition-fast);
}

.post-card__readmore:hover i {
    transform: translateX(3px);
}


/* ==========================================================================
   Single Post
   ========================================================================== */

.single-hero {
    padding: 32px 0 0;
}

.single-hero__image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.single-article {
    padding: 32px 0 60px;
}

.single-content-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
}

.single-header {
    margin-bottom: 32px;
}

.single-header__category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.single-header__category:hover {
    background: var(--color-accent);
    color: #fff;
}

.single-header__title {
    font-size: 2.125rem;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.single-header__meta {
    display: flex;
    align-items: center;
}

.single-header__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-header__author img {
    border-radius: 50%;
}

.single-header__author-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-heading);
    display: block;
}

.single-header__author-name:hover {
    color: var(--color-accent);
}

.single-header__date {
    font-size: 0.8125rem;
    color: var(--color-meta);
    display: block;
}

/* Entry Content */
.entry-content {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.75em 0 0.75em;
    padding-top: 0.5em;
    border-top: 1px solid var(--color-border);
}

.entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
}

.entry-content p {
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25em;
    padding-left: 1.75em;
}

.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-meta);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.entry-content th {
    background: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-weight: 600;
}

.entry-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.entry-content code {
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* Page links (multi-page posts) */
.page-links {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
}


/* ==========================================================================
   Tags
   ========================================================================== */

.single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.single-tags > i {
    color: var(--color-meta);
    font-size: 0.875rem;
}

.single-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-meta);
    transition: all var(--transition-fast);
}

.single-tag:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}


/* ==========================================================================
   Author Box
   ========================================================================== */

.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.author-box__avatar img {
    border-radius: 50%;
}

.author-box__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.author-box__name a {
    color: var(--color-heading);
}

.author-box__name a:hover {
    color: var(--color-accent);
}

.author-box__bio {
    font-size: 0.875rem;
    color: var(--color-meta);
    margin: 0;
    line-height: 1.6;
}


/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.post-nav__link:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.post-nav__next {
    text-align: right;
}

.post-nav__label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.post-nav__title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.3;
}


/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    margin-bottom: 40px;
}

.related-posts__title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.related-card__image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.related-card:hover .related-card__image img {
    transform: scale(1.05);
}

.related-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0;
    padding: 14px 16px 6px;
    color: var(--color-heading);
    line-height: 1.3;
}

.related-card__date {
    display: block;
    padding: 0 16px 14px;
    font-size: 0.8125rem;
    color: var(--color-meta);
}


/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border);
}

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

.comment-body {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.8125rem;
    color: var(--color-meta);
    margin-bottom: 8px;
}

.comment-metadata a {
    color: var(--color-meta);
}

.comment-metadata a:hover {
    color: var(--color-accent);
}

.comment-content p {
    margin-bottom: 0.75em;
}

.reply a {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
}

.comment-respond {
    margin-top: 32px;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.comment-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.comment-form .form-submit input[type="submit"] {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 176, 213, 0.3);
}

.comment-awaiting-moderation {
    font-style: italic;
    color: var(--color-meta);
    font-size: 0.875rem;
}

/* Child comments */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
}


/* ==========================================================================
   Archive / Category Headers
   ========================================================================== */

.archive-header {
    padding: 40px 0 32px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--color-border);
}

.archive-label {
    display: inline-block;
    padding: 4px 14px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.archive-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.archive-title span {
    color: var(--color-accent);
}

.archive-description {
    font-size: 1rem;
    color: var(--color-meta);
    line-height: 1.6;
}

.archive-description p {
    margin: 0;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    padding: 40px 0 0;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-links a,
.pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    transition: all var(--transition-fast);
}

.pagination-links a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination-links .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.pagination-links .prev,
.pagination-links .next {
    padding: 0 20px;
}


/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    padding: 20px 0;
    font-size: 0.8125rem;
    color: var(--color-meta);
}

.breadcrumbs a {
    color: var(--color-meta);
}

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

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--color-border);
}

.breadcrumbs .current {
    color: var(--color-heading);
    font-weight: 500;
}


/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 60px 0;
    max-width: var(--content-max);
    margin: 0 auto;
}

.error-404__code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

.error-404__title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.error-404__text {
    color: var(--color-meta);
    font-size: 1rem;
    margin-bottom: 32px;
}

.error-404 .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 48px;
}

.error-404__suggestions {
    text-align: left;
    margin-top: 48px;
}

.error-404__suggestions h3 {
    text-align: center;
    margin-bottom: 24px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h1,
.no-results h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--color-meta);
    margin-bottom: 24px;
}


/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    display: flex;
}

.search-form label {
    flex: 1;
}

.search-form .search-field {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-form .search-field:focus {
    border-color: var(--color-accent);
}

.search-form .search-submit {
    padding: 12px 24px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast);
}

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


/* ==========================================================================
   Page Template
   ========================================================================== */

.page-article {
    padding-bottom: 60px;
}

.page-hero {
    margin-bottom: 24px;
}

.page-hero__image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 48px 0 0;
    margin-top: 40px;
}

.fh-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fh-footer__heading {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-footer-heading);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fh-footer__heading::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    margin-top: 10px;
}

.fh-footer__about-text {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

.fh-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fh-footer__list li {
    margin-bottom: 8px;
}

.fh-footer__list a {
    color: var(--color-footer-text);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.fh-footer__list a:hover {
    color: var(--color-accent);
}

/* Footer widget titles */
.site-footer .widget-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-footer-heading);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer .widget-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    margin-top: 10px;
}

/* Footer bottom */
.fh-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8125rem;
}

.fh-footer__bottom p {
    margin: 0;
}

.fh-footer__bottom-links {
    display: flex;
    gap: 20px;
}

.fh-footer__bottom-links a {
    color: var(--color-footer-text);
    font-size: 0.8125rem;
}

.fh-footer__bottom-links a:hover {
    color: var(--color-accent);
}


/* ==========================================================================
   WordPress Defaults
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.25em;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--color-meta);
    text-align: center;
    margin-top: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 1.5em;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--radius-sm);
}

.sticky .post-card__title::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    color: var(--color-cta);
    font-size: 0.875rem;
}

.bypostauthor > .comment-body {
    border-left: 3px solid var(--color-accent);
    padding-left: 16px;
}


/* ==========================================================================
   Responsive — Tablet (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .site-container {
        padding: 0 16px;
    }

    /* Header */
    .header-branding {
        padding: 24px 0 16px;
    }

    .site-title {
        font-size: 1.375rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-menu.toggled {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li ul {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 16px;
    }

    .primary-navigation .site-container {
        flex-direction: column;
    }

    /* Carousel */
    .carousel-slide__image {
        min-height: 300px;
    }

    .carousel-slide__overlay {
        padding: 24px;
    }

    .carousel-slide__title {
        font-size: 1.5rem;
    }

    .carousel-nav {
        right: 24px;
        bottom: 16px;
    }

    /* Post cards — stack vertically */
    .post-card {
        flex-direction: column;
    }

    .post-card__image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .post-card__body {
        padding: 20px;
    }

    /* Single post */
    .single-header__title {
        font-size: 1.625rem;
    }

    .entry-content {
        padding: 24px;
    }

    /* Post navigation */
    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav__next {
        text-align: left;
    }

    /* Related posts */
    .related-posts__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Footer */
    .fh-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fh-footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Pagination */
    .pagination-links a,
    .pagination-links span {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        padding: 0 10px;
    }

    /* Archive header */
    .archive-title {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   Responsive — Mobile (480px)
   ========================================================================== */

@media (max-width: 480px) {
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }

    .header-branding {
        padding: 20px 0 12px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    /* Carousel */
    .carousel-slide__image {
        min-height: 250px;
    }

    .carousel-slide__overlay {
        padding: 20px;
    }

    .carousel-slide__title {
        font-size: 1.25rem;
    }

    .carousel-slide__cta {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Post listing */
    .post-listing {
        padding: 24px 0 40px;
    }

    .post-list {
        gap: 20px;
    }

    .post-card__title {
        font-size: 1.0625rem;
    }

    .post-card__meta {
        flex-direction: column;
        gap: 4px;
    }

    /* Single post */
    .single-header__title {
        font-size: 1.375rem;
    }

    .entry-content {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .entry-content h2 {
        font-size: 1.25rem;
    }

    /* Related posts */
    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    /* Author box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box__avatar {
        display: flex;
        justify-content: center;
    }

    /* 404 */
    .error-404__code {
        font-size: 5rem;
    }

    .error-404__title {
        font-size: 1.5rem;
    }

    /* Comment form */
    .comment-body {
        flex-direction: column;
        gap: 10px;
    }

    /* Search form */
    .error-404 .search-form {
        flex-direction: column;
    }

    .search-form .search-field {
        border-right: 1px solid var(--color-border);
        border-radius: var(--radius-pill);
        margin-bottom: 8px;
    }

    .search-form .search-submit {
        border-radius: var(--radius-pill);
    }
}
