/*
Theme Name: Kind-Ratgeber Magazin
Theme URI: https://kind-ratgeber.org
Description: Magazin-Theme für Eltern-Ratgeber
Author: Kind-Ratgeber Redaktion
Version: 1.0
Text Domain: kind-ratgeber
*/

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

:root {
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-warm: #fdfbf7;
    --color-text: #1a1a1a;
    --color-text-light: #6b7280;
    --color-text-muted: #9ca3af;
    --color-accent: #2d6a4f;
    --color-accent-light: #40916c;
    --color-accent-bg: #f0faf4;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-link: #2d6a4f;
    --color-category: #d97706;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --max-width: 1200px;
    --content-width: 780px;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===== HEADER ===== */
.site-header {
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Shared nav styles --- */
.site-header ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-header nav a {
    color: var(--color-text-light);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0;
    position: relative;
    transition: color var(--transition);
}

.site-header nav a:hover { color: var(--color-text); }

.site-header nav .current-cat a,
.site-header nav .current-menu-item a { color: var(--color-accent); }

/* --- EXPANDED STATE (scrolled to top) --- */
.header-expanded {
    max-width: var(--max-width);
    margin: 0 auto;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
    max-height: 200px;
    opacity: 1;
}

.header-logo-row {
    padding: 1.5rem 1.5rem 0.75rem;
    text-align: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.site-logo span { color: var(--color-accent); }

.header-nav-row {
    padding: 0 0 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.header-nav-row ul {
    justify-content: center;
    gap: 2rem;
    padding: 0 1.5rem;
}

/* --- COMPACT STATE (scrolled down) --- */
.header-compact {
    max-width: var(--max-width);
    margin: 0 auto;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.header-compact-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0.7rem 1.5rem;
}

.site-logo-compact {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-logo-compact span { color: var(--color-accent); }

.header-nav-compact {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
}

.header-nav-compact::-webkit-scrollbar { display: none; }

.header-nav-compact ul {
    gap: 1.75rem;
    padding: 0;
}

.header-nav-compact a {
    font-size: 0.75rem !important;
}

/* --- Toggle between states --- */
.site-header.is-shrunk .header-expanded {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.site-header.is-shrunk .header-compact {
    max-height: 80px;
    opacity: 1;
}

/* Divider line below nav */
.header-divider {
    border-bottom: 1px solid #d1d5db;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== BURGER TOGGLE BUTTON ===== */
.burger-toggle {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    z-index: 101;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 0.25rem;
    line-height: 1;
    transition: opacity var(--transition);
}

.burger-toggle:hover { opacity: 0.6; }

.site-header.is-shrunk .burger-toggle {
    top: 0.65rem;
}

/* ===== BURGER MENU OVERLAY ===== */
.burger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s ease;
}

.burger-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.4s ease;
}

.burger-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.burger-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 100%;
    background: #e05a3a;
    color: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.burger-overlay.is-open .burger-panel {
    transform: translateX(0);
}

.burger-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.burger-close:hover { opacity: 1; }

/* Burger Nav */
.burger-nav {
    padding: 4rem 1.5rem 2rem;
    flex: 1;
}

.burger-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burger-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.burger-nav a {
    display: block;
    padding: 0.9rem 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity var(--transition);
}

.burger-nav a:hover {
    opacity: 0.7;
    color: #fff;
}

/* Burger Footer */
.burger-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.burger-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
}

.burger-footer-links a {
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.burger-footer-links a:hover { opacity: 1; color: #fff; }

/* ===== MOBILE: burger panel full width ===== */
@media (max-width: 768px) {
    .burger-panel { width: 100%; }
}

.nav-toggle {
    display: none;
}

/* ===== HERO SECTION (Homepage) ===== */
.hero-section {
    background: var(--color-bg);
    padding: 2rem 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- 3-column grid --- */
.hero-three-col {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

/* --- Side columns (left + right) --- */
.hero-side-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.hero-side-item a {
    display: block;
    color: inherit;
}

.hero-side-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
}

.hero-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-side-item:hover .hero-side-image img { transform: scale(1.03); }

.hero-side-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
}

.hero-side-text .card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-category);
    margin-bottom: 0.25rem;
}

.hero-side-text .card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--color-text);
}

/* --- Center: Featured article --- */
.hero-featured a {
    display: block;
    color: inherit;
    text-align: center;
}

.hero-featured-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.hero-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-featured:hover .hero-featured-image img { transform: scale(1.03); }

.hero-featured-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
    min-height: 280px;
}

.hero-featured-body {
    padding: 0 0.5rem;
}

.hero-featured-body .card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-category);
    margin-bottom: 0.4rem;
}

.hero-featured-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.6rem;
}

.hero-featured-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Mobile list (hidden on desktop) --- */
.hero-mobile-list {
    display: none;
    padding: 0 1.5rem;
}

.hero-mobile-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
    color: inherit;
}

.hero-mobile-item:last-child { border-bottom: none; }

.hero-mobile-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

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

.hero-mobile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-light);
}

.hero-mobile-text .card-category {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-category);
    margin-bottom: 0.15rem;
}

.hero-mobile-text .card-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-text);
}

/* ===== CONTENT SECTIONS ===== */
.content-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
}

.section + .section { border-top: 1px solid var(--color-border-light); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
}

.section-link:hover { text-decoration: underline; }

/* ===== ARTICLE GRID ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.article-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.article-card a { display: block; color: inherit; }

.article-card .card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg-light);
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-card .card-body { padding: 1.25rem; }

.article-card .card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-category);
    margin-bottom: 0.4rem;
}

.article-card .card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.article-card .card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.article-card .card-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== SINGLE ARTICLE ===== */
.article-header {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
}

.article-header .breadcrumb {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.article-header .breadcrumb a { color: var(--color-text-light); }
.article-header .breadcrumb a:hover { color: var(--color-accent); }
.article-header .breadcrumb .sep { margin: 0 0.4rem; }

.article-header .article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-category);
    margin-bottom: 0.75rem;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.article-header .article-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.article-meta .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta .meta-text { font-size: 0.85rem; }
.article-meta .author-name { font-weight: 600; color: var(--color-text); }
.article-meta .meta-date { color: var(--color-text-muted); }
.article-meta .meta-reading-time { color: var(--color-text-muted); }

.article-hero-image {
    max-width: 960px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.article-hero-image img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Article Body */
.article-body {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--color-text);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.5rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--color-accent-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.article-body img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* Table of Contents */
.toc-box {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 0 0 2.5rem;
}

.toc-box .toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.toc-box ol {
    list-style: decimal;
    margin: 0 0 0 1.25rem;
    font-size: 0.9rem;
}

.toc-box li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.toc-box a { color: var(--color-accent); }
.toc-box a:hover { text-decoration: underline; }

/* Expert Tip / Info Box */
.info-box {
    background: var(--color-accent-bg);
    border: 1px solid #c6e9d4;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box .info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.6 !important;
}

.info-box p:last-child { margin-bottom: 0 !important; }

/* sofatutor CTA Box */
.cta-box {
    background: linear-gradient(135deg, #f0faf4 0%, #e0f2fe 100%);
    border: 1px solid #c6e9d4;
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-box .cta-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.cta-box .cta-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-box .cta-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
}

.cta-box .cta-button:hover {
    background: var(--color-accent-light);
    color: #fff;
    transform: translateY(-1px);
}

/* Sidebar Banner */
.sidebar-banner {
    background: var(--color-accent-bg);
    border: 1px solid #c6e9d4;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.sidebar-banner .banner-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.sidebar-banner .banner-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-banner .banner-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-banner .banner-button {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background var(--transition);
}

.sidebar-banner .banner-button:hover { background: var(--color-accent-light); color: #fff; }

/* Related Articles (Article Bottom) */
.related-articles {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.related-articles .section-title { margin-bottom: 1.5rem; }

/* Author Box */
.author-box {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border-top: 1px solid var(--color-border);
}

.author-box .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box .author-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.author-box .author-role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.author-box .author-bio {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== ARCHIVE / CATEGORY PAGE ===== */
.archive-header {
    background: var(--color-bg-light);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.archive-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.archive-header .breadcrumb {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.archive-header .breadcrumb a { color: var(--color-text-light); }

.archive-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.archive-header .archive-description {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 600px;
    line-height: 1.6;
}

.archive-body {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* ===== SIDEBAR ===== */
.sidebar {}

.sidebar-widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
}

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

.sidebar-widget .widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--color-accent);
}

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

.sidebar-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.sidebar-widget li a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.popular-item:last-child { border-bottom: none; }

.popular-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-item .popular-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.popular-item .popular-category {
    font-size: 0.7rem;
    color: var(--color-category);
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a2e;
    color: #d1d5db;
    margin-top: 3rem;
}

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-brand .footer-logo span { color: #40916c; }

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #9ca3af;
}

.footer-col .footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    color: #9ca3af;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #2d2d44;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-bottom a { color: #9ca3af; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all var(--transition);
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .archive-body { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-three-col { display: block; }
    .hero-side-col { display: none; }
    .hero-mobile-list { display: block; margin-top: 1rem; }
    .hero-featured-title { font-size: 1.2rem; }
    .article-grid { grid-template-columns: 1fr; }
    .article-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .article-grid.cols-2 { grid-template-columns: 1fr; }
    .header-logo-row { padding: 1rem 1.5rem 0.5rem; }
    .site-logo { font-size: 1.5rem; }
    .header-nav-row ul,
    .header-nav-compact ul {
        justify-content: flex-start;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .header-compact-inner { gap: 1.5rem; padding: 0.5rem 1rem; }
    .site-logo-compact { font-size: 1.1rem; }
    .article-header h1 { font-size: 1.6rem; }
    .footer-main { grid-template-columns: 1fr; }
}
