/* ============================================
   NUMERIA - SCHOLARLY ARTICLES THEME
   Academic/Philosophical aesthetic for Articles section
   Inspired by ancient libraries and philosophical texts
   ============================================ */

/* Import Scholarly Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --scholarly-bg-dark: #0d0d14;
    --scholarly-bg-paper: #1a1820;
    --scholarly-text-primary: #e4dfd0;
    --scholarly-text-secondary: #b8b0a0;
    --scholarly-accent-burgundy: #8b2f39;
    --scholarly-accent-teal: #2d5f5f;
    --scholarly-accent-gold: #c9a961;
    --scholarly-accent-sage: #6b7c59;
    --scholarly-border: #3d3842;
    --scholarly-shadow: rgba(0, 0, 0, 0.7);
}

/* ============================================
   BODY & GENERAL
   ============================================ */
body[data-page="articles-index"] {
    background: #0d0d14;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 47, 57, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(45, 95, 95, 0.06) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="paper"><feTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="5" /></filter><rect width="200" height="200" filter="url(%23paper)" opacity="0.03"/></svg>');
    color: var(--scholarly-text-primary);
    font-family: 'EB Garamond', Georgia, serif;
    position: relative;
}

/* Paper texture overlay */
body[data-page="articles-index"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

body[data-page="articles-index"] > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   HEADER
   ============================================ */
body[data-page="articles-index"] header {
    background: linear-gradient(180deg, rgba(26, 24, 32, 0.95) 0%, rgba(26, 24, 32, 0.85) 100%);
    border-bottom: 3px solid var(--scholarly-accent-burgundy);
    box-shadow: 0 4px 20px var(--scholarly-shadow);
    position: relative;
}

body[data-page="articles-index"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--scholarly-accent-teal) 25%,
        var(--scholarly-accent-burgundy) 50%,
        var(--scholarly-accent-teal) 75%,
        transparent 100%);
}

body[data-page="articles-index"] .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--scholarly-accent-burgundy) 0%, var(--scholarly-accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

body[data-page="articles-index"] .tagline {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--scholarly-text-secondary);
    letter-spacing: 0.05em;
}

/* ============================================
   NAVIGATION
   ============================================ */
body[data-page="articles-index"] nav {
    background: rgba(13, 13, 20, 0.9);
    border-bottom: 2px solid var(--scholarly-border);
    backdrop-filter: blur(10px);
}

body[data-page="articles-index"] nav a {
    color: var(--scholarly-text-secondary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

body[data-page="articles-index"] nav a:hover {
    color: var(--scholarly-accent-burgundy);
}

/* ============================================
   HERO SECTION
   ============================================ */
.articles-hero {
    background: linear-gradient(135deg, rgba(139, 47, 57, 0.2) 0%, rgba(26, 24, 32, 0.8) 100%);
    border: 2px solid var(--scholarly-border);
    border-left: 5px solid var(--scholarly-accent-burgundy);
    padding: 4rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(201, 169, 97, 0.1);
    position: relative;
}

.articles-hero::before {
    content: '❝';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--scholarly-accent-burgundy);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.articles-hero::after {
    content: '❞';
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--scholarly-accent-burgundy);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.articles-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--scholarly-accent-burgundy) 0%, var(--scholarly-accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
}

.articles-hero p {
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--scholarly-text-secondary);
    font-style: italic;
}

/* ============================================
   ARTICLES CONTAINER
   ============================================ */
.articles-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
    margin-bottom: 5rem;
    position: relative;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 47, 57, 0.15) 0%, rgba(45, 95, 95, 0.1) 100%);
    border-left: 5px solid var(--scholarly-accent-burgundy);
    border-right: 1px solid var(--scholarly-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--scholarly-accent-burgundy) 0%, var(--scholarly-accent-teal) 100%);
}

.category-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--scholarly-accent-gold);
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.article-card {
    background: linear-gradient(135deg, rgba(26, 24, 32, 0.9) 0%, rgba(18, 16, 24, 0.95) 100%);
    border: 2px solid var(--scholarly-border);
    border-left: 4px solid var(--scholarly-accent-teal);
    border-radius: 0;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--scholarly-accent-burgundy);
    border-right: 2px solid var(--scholarly-accent-burgundy);
    opacity: 0.3;
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 47, 57, 0.3);
    border-left-color: var(--scholarly-accent-burgundy);
}

.article-card:hover::before {
    opacity: 0.6;
    width: 60px;
    height: 60px;
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    color: var(--scholarly-text-primary);
    transition: color 0.3s ease;
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card:hover h3 a {
    color: var(--scholarly-accent-gold);
}

.article-description {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--scholarly-text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ============================================
   ARTICLE TAGS
   ============================================ */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, rgba(139, 47, 57, 0.25) 0%, rgba(45, 95, 95, 0.2) 100%);
    border: 1px solid var(--scholarly-accent-burgundy);
    color: var(--scholarly-accent-gold);
    padding: 0.4rem 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(139, 47, 57, 0.4) 0%, rgba(45, 95, 95, 0.3) 100%);
    transform: translateY(-2px);
}

/* ============================================
   LANGUAGE BADGES
   ============================================ */
.languages-badge {
    display: inline-flex;
    gap: 1rem;
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: rgba(45, 95, 95, 0.15);
    border: 1px solid var(--scholarly-accent-teal);
    border-radius: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
}

.lang-flag {
    color: var(--scholarly-text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.lang-flag:hover {
    color: var(--scholarly-accent-gold);
}

/* ============================================
   READ MORE LINK
   ============================================ */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--scholarly-accent-burgundy);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--scholarly-accent-gold);
    transform: translateX(5px);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* ============================================
   FOOTER
   ============================================ */
body[data-page="articles-index"] footer {
    background: linear-gradient(180deg, rgba(13, 13, 20, 0.9) 0%, rgba(26, 24, 32, 0.95) 100%);
    border-top: 3px solid var(--scholarly-accent-burgundy);
    margin-top: 5rem;
    padding: 3rem 2rem;
    position: relative;
}

body[data-page="articles-index"] footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--scholarly-accent-teal) 25%,
        var(--scholarly-accent-burgundy) 50%,
        var(--scholarly-accent-teal) 75%,
        transparent 100%);
}

body[data-page="articles-index"] footer p {
    color: var(--scholarly-text-secondary);
    font-family: 'EB Garamond', serif;
}

body[data-page="articles-index"] footer a {
    color: var(--scholarly-text-secondary);
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

body[data-page="articles-index"] footer a:hover {
    color: var(--scholarly-accent-gold);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.scholarly-ornament {
    text-align: center;
    margin: 3rem auto;
    font-size: 1.5rem;
    color: var(--scholarly-accent-burgundy);
    opacity: 0.4;
    letter-spacing: 1rem;
}

/* ============================================
   SINGLE ARTICLE PAGE STYLES
   ============================================ */

/* Article Hero */
body[data-page="article"] {
    background: #0d0d14;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 47, 57, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(45, 95, 95, 0.06) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="paper"><feTurbulence type="fractalNoise" baseFrequency="0.04" numOctaves="5" /></filter><rect width="200" height="200" filter="url(%23paper)" opacity="0.03"/></svg>');
    color: var(--scholarly-text-primary);
    font-family: 'EB Garamond', Georgia, serif;
}

body[data-page="article"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

body[data-page="article"] > * {
    position: relative;
    z-index: 2;
}

.article-hero {
    background: linear-gradient(135deg, rgba(139, 47, 57, 0.25) 0%, rgba(45, 95, 95, 0.2) 100%);
    border: 2px solid var(--scholarly-border);
    border-left: 5px solid var(--scholarly-accent-burgundy);
    padding: 4rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(201, 169, 97, 0.1);
    position: relative;
}

.article-hero::before {
    content: '❝';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 5rem;
    color: var(--scholarly-accent-burgundy);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--scholarly-accent-burgundy) 0%, var(--scholarly-accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--scholarly-text-secondary);
}

.article-meta span {
    padding: 0.5rem 1rem;
    background: rgba(139, 47, 57, 0.15);
    border: 1px solid var(--scholarly-accent-burgundy);
}

/* Article Container */
.article-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Language Selector */
.language-selector {
    background: linear-gradient(135deg, rgba(26, 24, 32, 0.9) 0%, rgba(18, 16, 24, 0.95) 100%);
    border: 2px solid var(--scholarly-border);
    border-left: 4px solid var(--scholarly-accent-teal);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.language-selector h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--scholarly-accent-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.lang-btn {
    background: linear-gradient(135deg, rgba(45, 95, 95, 0.15) 0%, rgba(45, 95, 95, 0.1) 100%);
    border: 2px solid var(--scholarly-accent-teal);
    color: var(--scholarly-text-secondary);
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
    transition: left 0.5s ease;
}

.lang-btn:hover {
    background: linear-gradient(135deg, rgba(45, 95, 95, 0.25) 0%, rgba(45, 95, 95, 0.2) 100%);
    border-color: var(--scholarly-accent-gold);
    color: var(--scholarly-accent-gold);
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--scholarly-accent-burgundy) 0%, rgba(139, 47, 57, 0.8) 100%);
    color: var(--scholarly-text-primary);
    border-color: var(--scholarly-accent-burgundy);
    box-shadow: 0 0 20px rgba(139, 47, 57, 0.4);
}

/* Article Content */
.article-content {
    display: none;
    background: linear-gradient(135deg, rgba(26, 24, 32, 0.9) 0%, rgba(18, 16, 24, 0.95) 100%);
    border: 2px solid var(--scholarly-border);
    border-left: 5px solid var(--scholarly-accent-burgundy);
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    line-height: 1.9;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 60px;
    height: 60px;
    border-top: 2px solid var(--scholarly-accent-burgundy);
    border-right: 2px solid var(--scholarly-accent-burgundy);
    opacity: 0.3;
}

.article-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

.article-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--scholarly-accent-gold);
    font-size: 2.2rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--scholarly-accent-burgundy);
    letter-spacing: 0.02em;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--scholarly-text-primary);
    font-size: 1.7rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.article-content p {
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--scholarly-text-primary);
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    line-height: 2;
    text-align: justify;
}

.article-content p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 0.8;
    float: left;
    margin: 0.1rem 0.8rem 0 0;
    color: var(--scholarly-accent-burgundy);
    font-weight: 700;
}

.article-content strong {
    color: var(--scholarly-accent-gold);
    font-weight: 700;
}

.article-content em {
    font-style: italic;
    color: var(--scholarly-text-secondary);
}

.article-content blockquote {
    background: linear-gradient(135deg, rgba(139, 47, 57, 0.15) 0%, rgba(45, 95, 95, 0.1) 100%);
    border-left: 4px solid var(--scholarly-accent-burgundy);
    border-right: 1px solid var(--scholarly-border);
    padding: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--scholarly-text-secondary);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--scholarly-text-primary);
    font-size: 1.15rem;
}

.article-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Scholarly ornament separator */
.article-content hr {
    border: none;
    text-align: center;
    margin: 3rem auto;
    position: relative;
    height: 2rem;
}

.article-content hr::before {
    content: '◆  ◆  ◆';
    color: var(--scholarly-accent-burgundy);
    font-size: 1.2rem;
    opacity: 0.5;
    letter-spacing: 1rem;
}

/* Navigation Buttons */
body[data-page="article"] header {
    background: linear-gradient(180deg, rgba(26, 24, 32, 0.95) 0%, rgba(26, 24, 32, 0.85) 100%);
    border-bottom: 3px solid var(--scholarly-accent-burgundy);
    box-shadow: 0 4px 20px var(--scholarly-shadow);
}

body[data-page="article"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--scholarly-accent-teal) 25%,
        var(--scholarly-accent-burgundy) 50%,
        var(--scholarly-accent-teal) 75%,
        transparent 100%);
}

body[data-page="article"] .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--scholarly-accent-burgundy) 0%, var(--scholarly-accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

body[data-page="article"] .tagline {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--scholarly-text-secondary);
    letter-spacing: 0.05em;
}

body[data-page="article"] nav {
    background: rgba(13, 13, 20, 0.9);
    border-bottom: 2px solid var(--scholarly-border);
    backdrop-filter: blur(10px);
}

body[data-page="article"] nav a {
    color: var(--scholarly-text-secondary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

body[data-page="article"] nav a:hover {
    color: var(--scholarly-accent-burgundy);
}

body[data-page="article"] footer {
    background: linear-gradient(180deg, rgba(13, 13, 20, 0.9) 0%, rgba(26, 24, 32, 0.95) 100%);
    border-top: 3px solid var(--scholarly-accent-burgundy);
    margin-top: 5rem;
    padding: 3rem 2rem;
}

body[data-page="article"] footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--scholarly-accent-teal) 25%,
        var(--scholarly-accent-burgundy) 50%,
        var(--scholarly-accent-teal) 75%,
        transparent 100%);
}

body[data-page="article"] footer p {
    color: var(--scholarly-text-secondary);
    font-family: 'EB Garamond', serif;
}

body[data-page="article"] footer a {
    color: var(--scholarly-text-secondary);
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

body[data-page="article"] footer a:hover {
    color: var(--scholarly-accent-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 2.5rem;
    }

    .articles-hero p {
        font-size: 1.2rem;
    }

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

    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .article-card {
        padding: 2rem;
    }

    /* Single Article Responsive */
    .article-hero {
        padding: 3rem 1.5rem;
    }

    .article-hero h1 {
        font-size: 2.2rem;
    }

    .article-content {
        padding: 2.5rem 1.5rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content h3 {
        font-size: 1.4rem;
    }

    .article-content p {
        font-size: 1.1rem;
    }

    .lang-btn {
        padding: 0.7rem 1.5rem;
        margin: 0.3rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        padding: 3rem 1.5rem;
    }

    .articles-hero h1 {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .article-hero h1 {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 2rem 1rem;
    }

    .article-content p:first-of-type::first-letter {
        font-size: 3rem;
    }
}
