/* Editorial Magazine Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700;900&family=Outfit:wght@300;400;500;600&display=swap');

/* ==================== CSS Variables ==================== */
:root {
    /* Colors */
    --color-primary: #E63946;
    --color-primary-dark: #c5303c;
    --color-text: #1A1A1A;
    --color-text-muted: #666;
    --color-text-light: #999;
    --color-background: #F5F1E8;
    --color-background-dark: #1A1A1A;
    --color-background-white: #fff;
    --color-border: #1A1A1A;
    --color-success: #155724;
    --color-success-bg: #d4edda;
    --color-error: #721c24;
    --color-error-bg: #f8d7da;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;

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

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Container */
    --container-max: 1300px;
    --container-padding: 3rem;

    /* Z-index */
    --z-header: 1000;
    --z-overlay: 9999;
}

/* ==================== Reset ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility: visually hidden but available to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: var(--color-background);
    padding: var(--space-md) var(--space-xl);
    text-decoration: none;
    font-weight: 600;
    z-index: calc(var(--z-overlay) + 1);
    border-radius: var(--radius-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible;
}

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

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

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding: 1.25rem 0;
    border-bottom: 3px solid var(--color-border);
    background: var(--color-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #1A1A1A;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-item {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item[aria-current="page"]::after {
    width: 100%;
}

.nav-item[aria-current="page"] {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 3rem 0;
}

.hero > .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(4rem, 10vw, 6rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.hero-content .subtitle {
    font-size: 2.25rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
    font-family: 'Fraunces', serif;
}

.hero-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 1rem;
    padding: 1.25rem 0;
    border-top: 2px solid #1A1A1A;
    border-bottom: 2px solid #1A1A1A;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    font-weight: 600;
}

.meta-value {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-cta {
    display: inline-flex;          /* changed from inline-block */
    align-items: center;           /* vertical centering */
    justify-content: center;       /* horizontal centering – nice bonus */
    padding: 1rem 3rem;
    background: var(--color-primary-dark);
    color: #F5F1E8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #E63946;
}

.hero-cta:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-3px);
}

.hero-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 500px;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1A1A1A;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Featured Article Section */
.featured {
    padding: 2rem 0;
    border-top: 25px solid #1A1A1A;
    margin-top: -1rem;
}

.section-label {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #666;
}

/* Navigation Arrows */
.nav-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.nav-arrow svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-arrow-prev {
    flex-direction: row;
}

.nav-arrow-next {
    flex-direction: row-reverse;
}

.article-card-prev:hover {
    transform: translateX(-10px);
    box-shadow: 10px 10px 0 var(--color-primary);
}

.article-card-next:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 0 var(--color-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.featured-sidebar h2 {
    font-family: 'Fraunces', serif;
    font-size: 5rem;
    line-height: 0.95;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.featured-sidebar p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #444;
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.article-card {
    padding: 2.5rem;
    background: #fff;
    border: 3px solid #1A1A1A;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 0 var(--color-primary);
}

.article-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1A1A1A;
    color: #F5F1E8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.article-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-icons-inline {
    display: flex;
    gap: 0.5rem;
}

.share-icons-inline .share-icon {
    width: 32px;
    height: 32px;
}

.share-icons-inline .share-icon svg {
    width: 16px;
    height: 16px;
}

.article-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.read-time {
    font-weight: 600;
}

/* Topics Section */
.topics {
    padding: 3rem 0;
    border-top: 25px solid #1A1A1A;
}

.topics h2 {
    font-family: 'Fraunces', serif;
    font-size: 7rem;
    font-weight: 900;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.topic-card {
    padding: 3rem 2rem;
    background: #fff;
    border: 3px solid #1A1A1A;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.topic-card:hover {
    background: #1A1A1A;
    color: #F5F1E8;
}

.topic-card:hover .topic-number {
    color: var(--color-primary);
}

.topic-number {
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.topic-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.topic-name {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-box {
    background: var(--color-primary);
    color: #F5F1E8;
    padding: 5rem;
    border: 3px solid #1A1A1A;
    text-align: center;
}

.newsletter-box h2 {
    font-family: 'Fraunces', serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.newsletter-box p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.newsletter-label {
    font-size: 1.25rem;
    font-style: italic;
    color: #666
}

.newsletter-input {
    flex: 1;
    padding: 1rem 3rem 1rem 1rem;
    border: 3px solid #1A1A1A;
    background: #F5F1E8;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
}

.newsletter-btn {
    padding: 1rem 3rem;
    background: #1A1A1A;
    color: #F5F1E8;
    border: 3px solid #1A1A1A;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #F5F1E8;
    color: #1A1A1A;
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Newsletter Section (Single Post) */
.newsletter-section {
    background: #1A1A1A;
    padding: 4rem 0;
    margin-top: 3rem;
}

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

.newsletter-section h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F5F1E8;
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-section .newsletter-form {
    justify-content: center;
}

.newsletter-section .newsletter-input {
    background: #F5F1E8;
    border-color: #F5F1E8;
}

.newsletter-section .newsletter-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.newsletter-section .newsletter-btn:hover {
    background: #c5303c;
    border-color: #c5303c;
    color: #F5F1E8;
}

.newsletter-section .newsletter-message {
    text-align: center;
}

.newsletter-section .newsletter-message.success {
    background: transparent;
    color: #90EE90;
    border: none;
}

.newsletter-section .newsletter-message.error {
    background: transparent;
    color: #ff6b6b;
    border: none;
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 0;
    }

    .newsletter-section h2 {
        font-size: 2rem;
    }

    .newsletter-section p {
        font-size: 1rem;
    }

    .newsletter-section .newsletter-form {
        flex-direction: column;
    }

    .newsletter-section .newsletter-input,
    .newsletter-section .newsletter-btn {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 1rem 0;
    border-top: 25px solid #1A1A1A;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-section h3 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-link {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #1A1A1A;
    text-align: center;
    color: #666;
}

/* Single Post Styles */
.post-header {
    padding: 3rem 0;
    border-bottom: 3px solid #1A1A1A;
}

.post-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-icons-header {
    display: flex;
    gap: 0.5rem;
}

.share-icons-header .share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #F5F1E8;
}

.share-icons-header .share-icon svg {
    width: 20px;
    height: 20px;
}

.post-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.post-meta-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.post-content {
    max-width: 900px;
    margin: 1rem 0;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1.5rem;
    letter-spacing: -0.02em;
}

.post-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content code {
    background: #1A1A1A;
    color: #F5F1E8;
    padding: 0.25rem 0.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 4px;
}

.post-content pre {
    background: #1A1A1A;
    color: #F5F1E8;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid #E63946;
    line-height: 1.6;
    max-width: 100%;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}


.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: var(--radius-md);
    border: 3px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow var(--transition-base);
}

.post-content img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #fff;
    border-left: 5px solid #E63946;
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: #444;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 2rem 0 0;
    border-top: 3px solid #1A1A1A;
}

.post-tag {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 3px solid #1A1A1A;
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #1A1A1A;
    color: #F5F1E8;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #F5F1E8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    /* Button reset for inline share icons */
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.share-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.share-icon:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.post-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
}

.support-author {
    padding: 1.25rem;
    border-radius: 10px;
    background: #fff7e6;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.support-text {
    margin-bottom: 0;
    font-size: 1rem;
    color: #333;
    max-width: 300px;
    line-height: 1.3;
}

.buymeacoffee-btn img {
    max-height: 48px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buymeacoffee-btn:hover img {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.share-icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.share-x {
    color: #000;
}

.share-x:hover {
    background: #000;
    color: #fff;
    border-color: rgba(0, 0, 0, 0.3);
}

.share-linkedin {
    color: #0077b5;
}

.share-linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: rgba(0, 119, 181, 0.3);
}

.share-whatsapp {
    color: #128C7E;
}

.share-whatsapp:hover {
    background: #128C7E;
    color: #fff;
    border-color: rgba(18, 140, 126, 0.3);
}

.share-pinterest {
    color: #e60023;
}

.share-pinterest:hover {
    background: #e60023;
    color: #fff;
    border-color: rgba(230, 0, 35, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #1A1A1A;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    header {
        position: sticky;
        top: 0;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 8vw, 6rem);
    }

    .hero-content .subtitle {
        font-size: 1.75rem;
    }

    .hero-meta {
        gap: 2rem;
    }

    .meta-value {
        font-size: 1.5rem;
    }

    .featured-sidebar h2 {
        font-size: 3rem;
    }

    .topics h2 {
        font-size: 4rem;
    }

    .newsletter-box h2 {
        font-size: 3rem;
    }

    .newsletter-box p {
        font-size: 1.25rem;
    }

    .post-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

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

    /* Header & Navigation */
    header {
        padding: 1.5rem 0;
        position: sticky;
        top: 0;
    }

    /* Post Footer Actions */
    .post-footer-actions {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .support-author {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .support-text {
        max-width: 100%;
    }

    .logo {
        font-size: 1.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #F5F1E8;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        padding: 2rem;
    }

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

    .nav-item {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }

    .hero > .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-content .subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-meta {
        gap: 1.5rem;
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .meta-label {
        font-size: 0.75rem;
    }

    .meta-value {
        font-size: 1.25rem;
    }

    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-actions-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .hero-actions-wrapper .hero-cta {
        width: 100%;
        text-align: center;
    }

    .hero-actions-wrapper .newsletter-form {
        width: 100%;
    }

    .hero-image {
        height: 300px;
        order: -1;
    }

    .hero-img {
        object-fit: contain;
    }

    /* Featured Section */
    .featured {
        padding: 4rem 0;
    }

    .section-label {
        font-size: 0.75rem;
        margin-bottom: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-sidebar h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .featured-sidebar p {
        font-size: 1rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    .article-card h3 {
        font-size: 1.5rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    /* Topics Section */
    .topics {
        padding: 4rem 0;
    }

    .topics h2 {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

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

    .topic-card {
        padding: 2rem 1rem;
    }

    .topic-number {
        font-size: 2.5rem;
    }

    .topic-name {
        font-size: 1rem;
    }

    /* Newsletter Section */
    .newsletter {
        padding: 4rem 0;
    }

    .newsletter-box {
        padding: 3rem 1.5rem;
    }

    .newsletter-box h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .newsletter-box p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        padding: 1rem;
    }

    /* Footer */
    footer {
        padding: 3rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.5rem;
    }

    /* Single Post */
    .post-header {
        padding: 3rem 0;
    }

    .post-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .post-meta-info {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-content {
        margin: 3rem auto;
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.75rem;
        margin: 2rem 0 1rem;
    }

    .post-content h3 {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.75rem;
    }

    .post-content img {
        margin: 1.5rem auto;
        border-radius: 6px;
    }

    .post-content pre {
        padding: 1rem;
        margin: 1.5rem 0;
        overflow-x: auto;
        border-radius: 6px;
    }

    .post-content pre code {
        font-size: 0.85rem;
    }

    .post-tags {
        margin: 2rem 0;
        padding: 2rem 0;
    }

    .post-tag {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    /* Header */
    header {
        padding: 1rem 0;
        position: sticky;
        top: 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-image {
        height: 250px;
    }

    .hero-img {
        object-fit: contain;
    }

    /* Featured */
    .featured {
        padding: 3rem 0;
    }

    .featured-sidebar h2 {
        font-size: 2rem;
    }

    .article-card {
        padding: 1.25rem;
    }

    .article-card h3 {
        font-size: 1.25rem;
    }

    .article-excerpt {
        font-size: 0.95rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Topics */
    .topics {
        padding: 3rem 0;
    }

    .topics h2 {
        font-size: 2.5rem;
    }

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

    .topic-card {
        padding: 1.5rem;
    }

    .topic-number {
        font-size: 2rem;
    }

    /* Newsletter */
    .newsletter {
        padding: 3rem 0;
    }

    .newsletter-box {
        padding: 2rem 1rem;
    }

    .newsletter-box h2 {
        font-size: 2rem;
    }

    .newsletter-box p {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .copyright {
        font-size: 0.85rem;
    }

    /* Post */
    .post-header {
        padding: 2rem 0;
    }

    .post-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .post-content {
        font-size: 0.95rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .post-content img {
        margin: 1rem auto;
        border-width: 2px;
        border-radius: 6px;
    }

    .post-content pre {
        padding: 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
        margin: 1rem 0;
    }

    .post-content pre code {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .post-content code {
        font-size: 0.8rem;
        padding: 0.15rem 0.35rem;
    }

    .post-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1rem 0;
        margin: 0.5rem 0;
    }

    .social-share {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .share-icons {
        justify-content: center;
    }

    .support-author {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }

    .support-text {
        max-width: 100%;
        text-align: center;
    }
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
}

.pagination-page {
    font-size: 0.875rem;
    color: #666;
}

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

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid #1A1A1A;
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    justify-content: center;
}

.pagination-link:hover {
    background: #1A1A1A;
    color: #F5F1E8;
}

.pagination-current {
    background: #1A1A1A;
    color: #F5F1E8;
    cursor: default;
}

.pagination-prev,
.pagination-next {
    padding: 0.75rem 1.25rem;
}

.pagination-prev svg,
.pagination-next svg {
    width: 16px;
    height: 16px;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #666;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pagination {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .pagination-links {
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        min-width: 2rem;
    }
    
    .pagination-prev,
    .pagination-next {
        padding: 0.5rem 0.75rem;
    }
}

/* ==================== About Page ==================== */

.about-page {
    padding: 1rem 0;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 3px solid #1A1A1A;
}

.about-title {
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-tagline {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: #1A1A1A;
}

.about-content h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.about-content h4 em {
    font-style: normal;
}

.about-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.about-content a:hover {
    border-bottom-color: var(--color-primary);
}

.about-content hr {
    border: none;
    height: 3px;
    background: #1A1A1A;
    margin: 1rem 0;
}

.about-content blockquote {
    background: #fff;
    border-left: 4px solid #E63946;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Hide the markdown table at the bottom */
.about-content table {
    display: none;
}

/* Social Links Section */
.about-social {
    text-align: center;
    padding: 3rem 0;
    border-top: 3px solid #1A1A1A;
    border-bottom: 3px solid #1A1A1A;
    margin-bottom: 3rem;
}

.about-social h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1A1A1A;
    color: #F5F1E8;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.social-link.github:hover {
    background: #333;
}

.social-link.twitter:hover {
    background: #1DA1F2;
}

.social-link.linkedin:hover {
    background: #0077B5;
}

.social-link.medium:hover {
    background: #00ab6c;
}

.social-link.email:hover {
    background: var(--color-primary);
}

/* Support Section */
.about-support {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.about-support p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.about-support .support-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.about-support .support-btn:hover {
    transform: scale(1.05);
}

.about-support .support-btn img {
    height: 50px;
    width: auto;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .about-title {
        font-size: 3rem;
    }

    .about-content h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .about-page {
        padding: 2rem 0;
    }

    .about-hero {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-tagline {
        font-size: 1.1rem;
    }

    .about-content {
        margin-bottom: 2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-content h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .about-content h4 {
        font-size: 1.2rem;
    }

    .about-content img {
        max-width: 100%;
        border-radius: 8px;
    }

    .about-social {
        padding: 2rem 0;
    }

    .about-social h3 {
        font-size: 1.5rem;
    }

    .about-social-links {
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 2rem;
    }

    .about-tagline {
        font-size: 1rem;
    }

    .about-content h3 {
        font-size: 1.35rem;
    }

    .about-content h4 {
        font-size: 1.1rem;
    }

    .social-link span {
        display: none;
    }

    .social-link {
        padding: 0.75rem;
        border-radius: 50%;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .about-support {
        padding: 1.5rem;
    }

    .about-support p {
        font-size: 1rem;
    }
}
