/*
Theme Name:  Rafael Botelho - Ensaios
Theme URI:   https://ensaios.rafaelbotelhopsicanalista.com.br
Author:      Rafael Botelho Doria
Author URI:  https://www.rafaelbotelhopsicanalista.com.br
Description: Tema editorial premium para ensaios psicanalíticos de Rafael Botelho. Identidade visual navy, creme e dourado.
Version:     2.0.0
License:     GNU General Public License v2 or later
Text Domain: rafael-botelho-blog
Tags:        blog, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════
   RAFAEL BOTELHO — ENSAIOS
   Design System: Naval #0B3354 · Creme #F5F0E8 · Dourado #C9A84C
   Fontes: Cormorant Garamond (títulos) + Inter (corpo)
   Conceito: Revista literária / Paris Review — sem cara de blog
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0B3354;
    --navy-dk: #071F34;
    --navy-lt: #1A4A6F;
    --cream: #F5F0E8;
    --cream-dk: #EDE5D6;
    --gold: #C9A84C;
    --gold-lt: #D4AF37;
    --ink: #1F2937;
    --muted: #6B7280;
    --border: #DDD6C8;

    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', 'system-ui', sans-serif;

    --max-w: 1200px;
    --content-w: 740px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--navy);
}

ul {
    list-style: none;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}


/* ═══════════════════════════════════════════════════════════════
   HEADER — Idêntico ao site principal
═══════════════════════════════════════════════════════════════ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}

.admin-bar .site-nav {
    top: 32px;
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-brand-wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #e5e7eb;
    padding-left: 12px;
    height: 40px;
}

.nav-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.nav-brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav-brand-text {
    border-left: 1px solid #D1D5DB;
    padding-left: 12px;
    margin-left: 4px;
}

.nav-brand-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.06em;
    line-height: 1;
}

.nav-brand-sub {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: #9CA3AF;
    font-weight: 300;
    margin-top: 4px;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #6B7280;
    transition: color 0.2s;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.nav-link:hover,
.nav-link--active {
    color: var(--navy);
}

.nav-link:hover::after,
.nav-link--active::after {
    transform: scaleX(1);
}

/* Ensaios link — destaque leve */
.nav-link--ensaios {
    color: var(--navy);
    font-weight: 600;
}

.nav-link--ensaios::after {
    background: var(--gold);
    transform: scaleX(1);
}

/* CTA button */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--navy);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(11, 51, 84, 0.25);
}

.nav-cta-btn:hover {
    background: var(--navy-lt);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 51, 84, 0.3);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
    padding: 4px;
}

/* Mobile nav */
.nav-mobile {
    background: #fff;
    border-top: 1px solid #F3F4F6;
    box-shadow: 0 8px 24px rgba(11, 51, 84, 0.1);
}

.nav-mobile-link {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #F9FAFB;
    transition: background 0.15s;
}

.nav-mobile-link:hover {
    background: #F9FAFB;
}

.nav-mobile-link--active {
    color: var(--navy);
    font-weight: 600;
}

.nav-mobile-cta {
    padding: 16px 24px;
}

@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}


/* Hero essay — destaque do ensaio mais recente */
.hero-essay {
    background: var(--navy);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-essay::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 5%;
    font-family: var(--font-serif);
    font-size: 400px;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero-inner {
    max-width: 840px;
    padding: 0 24px;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: var(--font-sans);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.hero-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.hero-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.hero-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    padding-bottom: 4px;
    transition: all 0.2s;
}

.hero-read:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    gap: 14px;
}

.hero-read svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.hero-read:hover svg {
    transform: translateX(4px);
}

/* ── Essays section — lista editorial ─────────────────────── */
.essays-section {
    padding: 80px 0 100px;
    background: var(--cream);
}

.essays-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--navy);
}

.essays-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 700;
}

.essays-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Cada ensaio na lista */
.essay-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    position: relative;
}

.essay-row:first-child {
    border-top: none;
}

.essay-row:hover {
    background: rgba(11, 51, 84, 0.02);
}

.essay-num {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: rgba(11, 51, 84, 0.12);
    line-height: 1;
    padding-top: 6px;
    text-align: right;
    transition: color 0.2s;
}

.essay-row:hover .essay-num {
    color: rgba(11, 51, 84, 0.22);
}

.essay-body {
    min-width: 0;
}

.essay-category {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 8px;
}

.essay-title {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.essay-title a {
    color: inherit;
}

.essay-row:hover .essay-title {
    color: var(--navy-lt);
}

.essay-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
    max-width: 620px;
}

.essay-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: #9CA3AF;
    letter-spacing: 0.04em;
}

.essay-footer .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D1D5DB;
}

.essay-read-link {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.essay-row:hover .essay-read-link {
    opacity: 1;
}

.essay-read-link svg {
    width: 14px;
    height: 14px;
}

/* Sem thumbnail nas listas (editorial puro) */
.essay-thumb {
    display: none;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 56px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
    transition: all 0.2s;
    border-radius: 4px;
}

.pagination .page-numbers:hover,
.pagination .current {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 16px;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE — Ensaio individual
═══════════════════════════════════════════════════════════════ */
.article-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

.article-wrap {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--navy);
}

.breadcrumb .sep {
    color: #D1D5DB;
}

.breadcrumb .current {
    color: var(--navy);
}

/* Article header */
.article-header {
    margin-bottom: 48px;
}

.article-kicker {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.article-lead {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 28px;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--muted);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.article-meta-bar .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #D1D5DB;
}

/* Imagem de capa */
.article-cover {
    margin: 0 -24px 48px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: brightness(0.96) contrast(1.02);
}

@media (max-width: 600px) {
    .article-cover img {
        height: 240px;
    }
}

/* Corpo do artigo — tipografia de leitura */
.article-body {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #1F2937;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy);
    margin: 2.5em 0 0.8em;
    line-height: 1.2;
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2em 0 0.7em;
    color: var(--navy);
}

.article-body p {
    margin-bottom: 1.6em;
}

.article-body strong {
    font-weight: 700;
    color: var(--navy);
}

.article-body em {
    font-style: italic;
}

.article-body a {
    color: var(--navy);
    border-bottom: 1px solid rgba(11, 51, 84, 0.25);
    transition: border-color 0.2s;
}

.article-body a:hover {
    border-color: var(--navy);
}

/* Drop cap no primeiro parágrafo */
.article-body>p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 4.8em;
    font-weight: 700;
    line-height: 0.78;
    color: var(--navy);
    margin: 0.06em 0.1em 0 0;
    padding: 0.02em 0;
}

/* Blockquote estilo editorial */
.article-body blockquote {
    margin: 2.5em 0;
    padding: 32px 36px;
    background: rgba(11, 51, 84, 0.03);
    border-left: 4px solid var(--gold);
    font-style: italic;
    font-size: 1.2rem;
    color: #374151;
    line-height: 1.7;
    position: relative;
}

.article-body blockquote::before {
    content: '\201C';
    font-size: 5rem;
    font-family: var(--font-serif);
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 16px;
    line-height: 1;
}

/* Separador ornamental entre seções */
.article-body hr {
    border: none;
    text-align: center;
    margin: 3em 0;
    color: var(--muted);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
}

.article-body hr::after {
    content: '· · ·';
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.article-tags-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-right: 4px;
}

.tag-pill {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--muted);
    transition: all 0.2s;
}

.tag-pill:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* CTA ao fim do artigo */
.article-cta {
    margin-top: 64px;
    background: var(--navy);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
}

.article-cta p:first-child {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-cta p:last-of-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 28px;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy) !important;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s;
}

.cta-btn:hover {
    background: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* Posts relacionados */
.related-section {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 2px solid var(--navy);
}

.related-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 32px;
    display: block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.related-card a {
    display: block;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 16px;
}

.related-card-category {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.related-card h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.related-card:hover h4 {
    color: var(--navy-lt);
}

.related-card time {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Navegação prev/next */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-nav-link {
    display: block;
    padding: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.post-nav-link:hover {
    border-color: var(--navy);
}

.post-nav-dir {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.post-nav-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 600;
    line-height: 1.3;
}

.post-nav-next {
    text-align: right;
}


/* ═══════════════════════════════════════════════════════════════
   ARCHIVE — Categoria / Tag
═══════════════════════════════════════════════════════════════ */
.archive-banner {
    background: var(--navy);
    padding: 120px 0 60px;
}

.archive-banner-kicker {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.archive-banner h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
}

.archive-banner p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-top: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER — Idêntico ao site principal
═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    color: #fff;
}

.footer-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        padding: 48px 24px 32px;
    }
}

/* Brand col */
.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-decoration: none;
}

.footer-brand-link img {
    height: 48px;
    width: auto;
}

.footer-brand-wordmark {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 12px;
}

.footer-brand-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
}

.footer-brand-sub {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 16px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social-icon:hover {
    transform: scale(1.1);
    color: #fff;
}

.social-insta:hover {
    background-color: #0E7490;
}

.social-linkedin:hover {
    background-color: #0077B5;
}

.social-wa:hover {
    background-color: #25D366;
}

.footer-social-icon svg {
    width: 20px;
    height: 20px;
}

/* Footer columns */
.footer-col h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-nav-list a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-arrow {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 4px;
}

/* Contact items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-link {
    color: #fff;
    transition: color 0.3s;
    text-decoration: none;
}

.contact-link:hover {
    color: #0E7490;
}

/* Bottom bar */
.footer-bottom-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    padding: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════════════════════ */
.page-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.page-404-code {
    font-family: var(--font-serif);
    font-size: 8rem;
    color: rgba(11, 51, 84, 0.08);
    font-weight: 700;
    line-height: 1;
    margin-bottom: -20px;
}

.page-404 h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.page-404 p {
    color: var(--muted);
    margin-bottom: 28px;
}

.btn-navy {
    display: inline-block;
    padding: 12px 32px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.btn-navy:hover {
    background: var(--navy-lt);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .essay-row {
        grid-template-columns: 40px 1fr;
        gap: 0 16px;
    }

    .essay-num {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-essay {
        padding: 100px 0 56px;
    }

    .article-cover {
        margin: 0 0 36px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .essay-row {
        grid-template-columns: 1fr;
    }

    .essay-num {
        display: none;
    }
}