@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* DARK THEME (default) */
:root,
[data-theme="dark"] {
    --gold: #C8A84B;
    --gold-dim: rgba(200, 168, 75, 0.12);
    --bg: #0E0F11;
    --bg2: #131417;
    --bg3: #181A1E;
    --bg4: #1D1F24;
    --bg5: #22252B;
    --border: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(200, 168, 75, 0.18);
    --text: #E2E4E9;
    --muted: #555A66;
    --muted2: #3A3D47;
    --green: #4AF626;
    --green-dim: rgba(74, 246, 38, 0.08);
    --red: #F64A4A;
    --red-dim: rgba(246, 74, 74, 0.1);
    --mono: 'JetBrains Mono', monospace;
    --nav-bg: rgba(14, 15, 17, 0.97);
    --heading-color: #ECEEF3;
    --card-heading-color: #DCDFE8;
    --card-heading-hover: #ffffff;
}

/* LIGHT THEME */
[data-theme="light"] {
    --gold: #8A6410;
    --gold-dim: rgba(138, 100, 16, 0.1);
    --bg: #F5F4F0;
    --bg2: #EEECE7;
    --bg3: #E6E3DC;
    --bg4: #DEDAD2;
    --bg5: #D5D0C6;
    --border: rgba(0, 0, 0, 0.09);
    --border-gold: rgba(138, 100, 16, 0.25);
    --text: #1A1B1E;
    --muted: #4A4740;
    --muted2: #6B6760;
    --green: #1A7A00;
    --green-dim: rgba(26, 122, 0, 0.08);
    --red: #C03030;
    --red-dim: rgba(192, 48, 48, 0.1);
    --mono: 'JetBrains Mono', monospace;
    --nav-bg: rgba(245, 244, 240, 0.97);
    --heading-color: #0D0E10;
    --card-heading-color: #1A1B1E;
    --card-heading-hover: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    overflow-x: hidden;
    cursor: none;
    transition: background 0.35s, color 0.35s;
}

/* CUSTOM CURSOR */
#cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(200, 168, 75, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}

body.cursor-hover #cursor {
    width: 16px;
    height: 16px;
    background: var(--green);
}

body.cursor-hover #cursor-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(74, 246, 38, 0.4);
}

/* NOISE OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

/* GRID BACKGROUND */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 168, 75, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 168, 75, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(60px);
    }
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    backdrop-filter: blur(12px);
    animation: navSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: background 0.35s, border-color 0.35s;
}

@keyframes navSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-logo {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--gold);
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-logo:hover::after {
    width: 100%;
}

/* NAV RIGHT — flex wrapper for toggle + links */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.25s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gold);
    color: #0A0A0A;
    border: none;
    padding: 7px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 3px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.35s;
}

.nav-cta:hover::before {
    transform: translateX(110%) skewX(-15deg);
}

.nav-cta:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(200, 168, 75, 0.25);
}

/* THEME TOGGLE */
.theme-toggle {
    width: 52px;
    height: 28px;
    background: var(--bg3);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.3s;
    overflow: hidden;
}

.theme-toggle:hover {
    box-shadow: 0 0 0 2px rgba(200, 168, 75, 0.18);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(200, 168, 75, 0.08), rgba(200, 168, 75, 0.0));
    transition: background 0.4s;
}

[data-theme="light"] .theme-toggle::after {
    background: linear-gradient(90deg, rgba(160, 120, 40, 0.12), rgba(255, 200, 60, 0.06));
}

.tt-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s, box-shadow 0.3s;
    will-change: transform;
}

[data-theme="light"] .tt-knob {
    transform: translateX(24px);
    box-shadow: 0 1px 8px rgba(160, 120, 40, 0.4);
}

.tt-knob .tt-moon {
    display: block;
    transition: opacity 0.25s, transform 0.3s;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.tt-knob .tt-sun {
    display: block;
    position: absolute;
    transition: opacity 0.25s, transform 0.3s;
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

[data-theme="light"] .tt-knob .tt-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

[data-theme="light"] .tt-knob .tt-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* RIPPLE */
#theme-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9990;
    transform: scale(0);
    opacity: 1;
    will-change: transform, opacity;
}

#theme-ripple.ripple-expand {
    animation: rippleExpand 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#theme-ripple.ripple-collapse {
    animation: rippleCollapse 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rippleCollapse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* PARTICLES */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(200, 168, 75, 0.4);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* PAGE HEADER */
.blog-header {
    padding: 4rem 2.5rem 1rem;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 168, 75, 0.07);
    border: 1px solid var(--border-gold);
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

.blog-tag span {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--mono);
}

.blog-tag-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(74, 246, 38, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.7);
    }
}

.blog-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.blog-title .highlight {
    color: var(--gold);
}

.blog-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 600px;
    font-family: var(--mono);
}

/* BLOG GRID SECTION */
.blog-section {
    padding: 2.5rem 2.5rem 5rem;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-label-gold {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(200, 168, 75, 0.6);
    text-transform: uppercase;
    font-family: var(--mono);
    margin-bottom: 0.5rem;
}

/* DATE NAVIGATION */
.date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    font-family: var(--mono);
    transition: background 0.35s;
}

.date-nav-prev,
.date-nav-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: background 0.35s, border-color 0.35s;
}

.date-nav-prev:hover,
.date-nav-next:hover {
    color: var(--gold);
    border-color: rgba(200, 168, 75, 0.3);
    transform: translateY(-1px);
}

.date-nav-prev.disabled,
.date-nav-next.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.date-nav-prev::before {
    content: '←';
    font-size: 14px;
}

.date-nav-next::after {
    content: '→';
    font-size: 14px;
}

.date-display {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.1em;
    background: rgba(200, 168, 75, 0.05);
    padding: 0.35rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border-gold);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--mono);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-tag:hover,
.filter-tag.active {
    background: rgba(200, 168, 75, 0.08);
    border-color: rgba(200, 168, 75, 0.3);
    color: rgba(200, 168, 75, 0.9);
}

.filter-tag.active::before {
    content: '# ';
    color: var(--green);
    opacity: 0.7;
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    min-height: 300px;
}

.blog-card {
    background: var(--bg2);
    position: relative;
    overflow: hidden;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: 2;
}

.blog-card:hover {
    background: var(--bg3);
}

.blog-card:hover::before {
    transform: translateX(100%);
}

/* Featured image */
.blog-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease, opacity 0.3s;
    filter: grayscale(30%);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

.blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: var(--mono);
    font-size: 10px;
}

.blog-date {
    color: var(--muted2);
    letter-spacing: 0.05em;
}

.blog-category {
    color: rgba(200, 168, 75, 0.6);
    background: rgba(200, 168, 75, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(200, 168, 75, 0.1);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--card-heading-color);
    line-height: 1.4;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover h3 {
    color: var(--card-heading-hover);
}

.blog-excerpt {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.blog-read-time {
    font-size: 10px;
    color: var(--muted2);
    font-family: var(--mono);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-read-time::before {
    content: '⌛';
    font-size: 9px;
    opacity: 0.6;
}

.blog-link {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-link:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.blog-link::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.2s;
}

.blog-link:hover::after {
    transform: translateX(3px);
}

/* NO DATA / LOADING STATES */
.no-data-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg2);
    border: 1px dashed var(--border-gold);
    border-radius: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 14px;
}

.no-data-message::before {
    content: '📭 ';
    font-size: 24px;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 12px;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid var(--border-gold);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* NEWSLETTER */
.newsletter-box {
    margin-top: 4rem;
    background: var(--bg2);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    transition: background 0.35s;
}

.newsletter-left h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.newsletter-left p {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    min-width: 300px;
}

.newsletter-input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 10px 15px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s, background 0.35s;
}

.newsletter-input:focus {
    border-color: rgba(200, 168, 75, 0.4);
}

.newsletter-btn {
    background: var(--gold);
    color: #0A0A0A;
    border: none;
    padding: 10px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity 0.2s, transform 0.15s;
}

.newsletter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* FOOTER */
.footer-section {
    padding: 3rem 2.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
    color: var(--heading-color);
}

.footer-left p {
    font-size: 12px;
    color: var(--muted);
    font-family: var(--mono);
}

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-link {
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s;
    font-family: var(--mono);
}

.footer-link:hover {
    border-color: rgba(200, 168, 75, 0.25);
    color: var(--gold);
    transform: translateY(-2px);
}

.bottom-bar {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2.5rem;
    text-align: center;
    font-size: 10px;
    color: var(--muted2);
    font-family: var(--mono);
    letter-spacing: 0.05em;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* AURA */
.blog-aura {
    position: absolute;
    top: 10%;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 168, 75, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: auraFloat 10s ease-in-out infinite;
}

@keyframes auraFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-title {
        font-size: 38px;
    }

    .newsletter-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 10px;
    }

    .blog-header {
        padding: 3rem 1.5rem 1rem;
    }

    .blog-section {
        padding: 2rem 1.5rem;
    }

    .blog-content {
        padding: 1.25rem;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .blog-title {
        font-size: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .date-navigation {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}