/*
Theme Name: Six Mountains
Theme URI: https://sixmountains.minservers.com
Author: Larry Pynn
Author URI: https://sixmountains.minservers.com/about/
Description: Environmental journalism theme for Six Mountains - covering North Cowichan's Municipal Forest Reserve.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sixmountains
*/

/* ============================================
   SIX MOUNTAINS - DESIGN SYSTEM
   Pacific Northwest Editorial Aesthetic
   ============================================ */

:root {
    /* Colors - Forest Palette */
    --deep-forest: #1a3a1a;
    --forest-mid: #2d5016;
    --canopy: #3d6b2f;
    --bark: #4a3728;
    --river: #3d7a8c;
    --river-light: #5a9aad;
    --lichen: #9ca89c;
    --fog: #c4cdc4;
    --warm-cream: #f7f5f0;
    --paper: #fffef9;
    --charcoal: #2a2a2a;
    --smoke: #5a5a5a;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Libre Franklin', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

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

    /* Layout */
    --max-width: 1280px;
    --header-height: 72px;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--warm-cream);
    -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--paper);
    border-bottom: 1px solid var(--fog);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(26, 58, 26, 0.08);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--deep-forest);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Mountain silhouette in logo */
.logo-mark::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(135deg, var(--canopy) 25%, transparent 25%),
                linear-gradient(-135deg, var(--canopy) 25%, transparent 25%),
                linear-gradient(45deg, var(--forest-mid) 40%, transparent 40%);
    background-size: 20px 24px, 20px 24px, 40px 24px;
    background-position: 0 100%, 20px 100%, 0 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--deep-forest);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--smoke);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-mid);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
    color: var(--deep-forest);
}

.nav-links a:hover::after,
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.search-toggle:hover {
    background: var(--fog);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--smoke);
}

.btn-donate {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--deep-forest);
    color: var(--paper);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-donate:hover {
    background: var(--forest-mid);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-forest) 0%, #0f2a0f 100%);
}

/* Topographic contour pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 Q70 25 80 50 T50 90 Q30 75 20 50 T50 10' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3Cpath d='M50 20 Q65 32 72 50 T50 80 Q35 68 28 50 T50 20' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3Cpath d='M50 30 Q60 38 65 50 T50 70 Q40 62 35 50 T50 30' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: drift 60s linear infinite;
}

@keyframes drift {
    from { background-position: 0 0; }
    to { background-position: 200px 200px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    color: var(--paper);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lichen);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--river-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-title em {
    font-style: italic;
    color: var(--river-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--fog);
    max-width: 480px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--paper);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lichen);
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform: rotate(2deg);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(26, 58, 26, 0.8));
    z-index: 1;
}

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

.hero-image-caption {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--fog);
    z-index: 2;
}

/* Mountain silhouette divider */
.mountain-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    overflow: hidden;
}

.mountain-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */

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

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--fog);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
}

.section-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--river);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap 0.2s ease;
}

.section-link:hover {
    gap: var(--space-sm);
}

.section-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.article-card {
    background: var(--paper);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 58, 26, 0.12);
}

.article-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.article-card.featured .article-image {
    height: 100%;
    min-height: 400px;
}

.article-card.featured .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--paper);
}

.article-card.featured .article-title {
    font-size: 1.75rem;
    color: var(--paper);
}

.article-card.featured .article-excerpt {
    color: var(--fog);
}

.article-card.featured .article-meta {
    color: var(--lichen);
}

.article-image {
    height: 180px;
    overflow: hidden;
}

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

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

.article-content {
    padding: var(--space-lg);
}

.article-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: var(--forest-mid);
    color: var(--paper);
    border-radius: 3px;
    margin-bottom: var(--space-sm);
}

.article-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    transition: color 0.2s ease;
}

.article-card:hover .article-title {
    color: var(--forest-mid);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--smoke);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--lichen);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    background: var(--paper);
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px;
    background: var(--warm-cream);
    border: 1px solid var(--fog);
    border-radius: 100px;
    color: var(--charcoal);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-tag:hover {
    background: var(--deep-forest);
    border-color: var(--deep-forest);
    color: var(--paper);
    transform: translateY(-2px);
}

.category-tag .count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--lichen);
    transition: color 0.2s ease;
}

.category-tag:hover .count {
    color: var(--fog);
}

/* ============================================
   DONATION CTA
   ============================================ */

.donation-section {
    background: linear-gradient(135deg, var(--bark) 0%, #3a2a1f 100%);
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='none' stroke='%23fff' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.04;
}

.donation-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--paper);
}

.donation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--paper);
}

.donation-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.donation-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.btn-donate-large {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 36px;
    background: var(--paper);
    color: var(--bark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-donate-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: var(--warm-cream);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.newsletter-text {
    color: var(--smoke);
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr auto;
    gap: var(--space-sm);
}

.newsletter-form input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 18px;
    border: 1px solid var(--fog);
    border-radius: 6px;
    background: var(--paper);
    color: var(--charcoal);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--lichen);
}

.btn-subscribe {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    background: var(--deep-forest);
    color: var(--paper);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-subscribe:hover {
    background: var(--forest-mid);
}

.newsletter-privacy {
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--lichen);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--charcoal);
    color: var(--fog);
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo .logo-mark {
    background: rgba(255,255,255,0.1);
}

.footer-logo .logo-text {
    color: var(--paper);
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--lichen);
}

.footer-column h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lichen);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--fog);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
}

.copyright {
    font-size: 0.85rem;
    color: var(--lichen);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--lichen);
}

.footer-location svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   SINGLE POST
   ============================================ */

.single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

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

.single-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--smoke);
}

.single-featured-image {
    margin-bottom: var(--space-xl);
    border-radius: 8px;
    overflow: hidden;
}

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

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.single-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.single-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.single-content img {
    border-radius: 6px;
    margin: var(--space-lg) 0;
}

.single-content a {
    color: var(--river);
    text-decoration: underline;
}

.single-content a:hover {
    color: var(--forest-mid);
}

.single-content blockquote {
    border-left: 4px solid var(--forest-mid);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--smoke);
}

.single-content ul, .single-content ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-lg);
}

.single-content li {
    margin-bottom: var(--space-sm);
}

/* Author bio */
.author-box {
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--paper);
    border-radius: 8px;
    border: 1px solid var(--fog);
}

.author-box h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lichen);
    margin-bottom: var(--space-md);
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.author-bio {
    color: var(--smoke);
    line-height: 1.7;
}

/* ============================================
   ARCHIVE / CATEGORY PAGES
   ============================================ */

.archive-header {
    background: var(--deep-forest);
    color: var(--paper);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.archive-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.archive-description {
    color: var(--fog);
    max-width: 600px;
    margin: 0 auto;
}

.archive-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* ============================================
   PAGES (About, Contact, etc.)
   ============================================ */

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--fog);
    border-radius: 4px;
    color: var(--smoke);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--deep-forest);
    border-color: var(--deep-forest);
    color: var(--paper);
}

.pagination .current {
    background: var(--deep-forest);
    border-color: var(--deep-forest);
    color: var(--paper);
}

/* ============================================
   SEARCH
   ============================================ */

.search-form {
    display: flex;
    max-width: 500px;
    margin: var(--space-lg) auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--fog);
    border-radius: 6px 0 0 6px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-form button {
    padding: 14px 24px;
    background: var(--deep-forest);
    color: var(--paper);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
}

.search-form button:hover {
    background: var(--forest-mid);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .article-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .article-card.featured .article-image {
        min-height: 300px;
    }

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

@media (max-width: 768px) {
    .nav-links,
    .header-actions .btn-donate {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .hero-image-wrapper {
        transform: none;
    }

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

    .article-card.featured {
        grid-column: span 1;
    }

    .article-card.featured .article-image {
        min-height: 250px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

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

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