/* Literature Magazine - Wildflower Vintage Theme */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,700;1,400&family=Great+Vibes&family=Cinzel+Decorative:wght@400;700&family=Lora:ital,wght@0,400;0,500;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    /* Refined Color Palette - Harmonized from Logo */
    --olive-moss: #5A6B47;           /* Primary - Navbar, buttons, accents (darker for contrast) */
    --wild-rose-red: #A23C4D;        /* Accent - Buttons, highlights, hover */
    --marigold-gold: #C48833;        /* Highlight - CTA hover, icons (darker for readability) */
    --antique-parchment: #F3E9D3;    /* Neutral 1 - Background base */
    --dusty-clay: #D4B896;           /* Neutral 2 - Card backgrounds (darker for contrast) */
    --charcoal-ink: #1a1a1a;         /* Text - Body text (darker for readability) */
    --misty-lavender: #9B8FB5;       /* Link Hover - Hovered text, borders (darker) */
    
    /* Typography */
    --heading-font: 'Cormorant Garamond', 'Playfair Display', serif;
    --body-font: 'Lora', 'EB Garamond', serif;
    --decorative-font: 'Great Vibes', 'Cinzel Decorative', cursive;
    
    /* Legacy color mappings for compatibility */
    --wild-rose-red: var(--wild-rose-red);
    --golden-marigold: var(--marigold-gold);
    --olive-green: var(--olive-moss);
    --dusty-peach: var(--dusty-clay);
    --antique-paper: var(--antique-parchment);
    --charcoal-black: var(--charcoal-ink);
    --typewriter-pink: var(--wild-rose-red);
    --lavender-mist: var(--misty-lavender);
    
    /* Additional legacy mappings */
    --vintage-rose: var(--wild-rose-red);
    --mustard-yellow: var(--marigold-gold);
    --ivory: var(--antique-parchment);
    --muted-maroon: var(--charcoal-ink);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent horizontal overflow */
*, *::before, *::after {
    max-width: 100%;
}

.container, main, section, div {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #2a2a2a;
    background: var(--antique-parchment);
    background-image: 
        /* Visible paper grain texture */
        radial-gradient(circle at 20% 30%, rgba(139, 130, 110, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(160, 140, 115, 0.20) 0%, transparent 35%),
        radial-gradient(circle at 50% 10%, rgba(180, 160, 130, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(200, 180, 150, 0.18) 0%, transparent 38%),
        
        /* Strong paper fiber patterns */
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 2px,
            rgba(160, 140, 115, 0.08) 2px,
            rgba(160, 140, 115, 0.08) 4px
        ),
        repeating-linear-gradient(
            120deg,
            transparent,
            transparent 3px,
            rgba(180, 160, 130, 0.06) 3px,
            rgba(180, 160, 130, 0.06) 6px
        ),
        
        /* Vintage stains and spots */
        radial-gradient(ellipse at 25% 75%, rgba(139, 130, 110, 0.12) 0%, transparent 25%),
        radial-gradient(ellipse at 75% 25%, rgba(160, 140, 115, 0.10) 0%, transparent 28%),
        radial-gradient(ellipse at 60% 40%, rgba(180, 160, 130, 0.08) 0%, transparent 20%),
        
        /* Crackled paper effect */
        repeating-linear-gradient(
            45deg,
            rgba(139, 130, 110, 0.04) 0px,
            transparent 1px,
            transparent 3px,
            rgba(160, 140, 115, 0.03) 4px,
            transparent 5px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(180, 160, 130, 0.03) 0px,
            transparent 2px,
            transparent 4px,
            rgba(139, 130, 110, 0.02) 5px,
            transparent 6px
        );
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section Styles */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem 2rem;
    background: linear-gradient(135deg, rgba(162,60,77,0.05) 0%, rgba(196,136,51,0.05) 100%);
    background-image: 
        /* Pronounced vintage paper texture */
        radial-gradient(circle at 20% 50%, rgba(139, 130, 110, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(160, 140, 115, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 40% 80%, rgba(180, 160, 130, 0.12) 0%, transparent 38%),
        radial-gradient(circle at 70% 40%, rgba(200, 180, 150, 0.10) 0%, transparent 32%),
        
        /* Visible manuscript patterns */
        repeating-linear-gradient(
            25deg,
            transparent,
            transparent 2px,
            rgba(139, 130, 110, 0.06) 2px,
            rgba(139, 130, 110, 0.06) 4px
        ),
        repeating-linear-gradient(
            65deg,
            transparent,
            transparent 3px,
            rgba(160, 140, 115, 0.05) 3px,
            rgba(160, 140, 115, 0.05) 6px
        ),
        
        /* Age spots and foxing */
        radial-gradient(ellipse at 30% 70%, rgba(180, 160, 130, 0.08) 0%, transparent 25%),
        radial-gradient(ellipse at 70% 30%, rgba(200, 180, 150, 0.06) 0%, transparent 28%),
        radial-gradient(ellipse at 15% 85%, rgba(139, 130, 110, 0.07) 0%, transparent 22%);
    border-radius: 20px;
    margin: 3rem 0;
    border: 1px solid rgba(90,107,71,0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217,164,65,0.03) 0%, transparent 70%);
    animation: gentleRotate 60s linear infinite;
}

@keyframes gentleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-quote {
    font-size: 1.7rem;
    font-style: italic;
    color: #1f1f1f;
    font-family: var(--heading-font);
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: none;
    font-weight: 600;
}

.hero-quote::before,
.hero-quote::after {
    content: '❋';
    font-size: 1.2rem;
    color: var(--wild-rose-red);
    opacity: 0.8;
    margin: 0 1rem;
    vertical-align: middle;
}

.hero-quote::before {
    content: '❋ ';
}

.hero-quote::after {
    content: ' ❋';
}

.hero-ornament {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgba(107,119,85,0.95) 0%, rgba(107,119,85,0.90) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--antique-parchment);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(217,164,65,0.3);
    box-shadow: 0 4px 20px rgba(107,119,85,0.15);
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1rem;
}

.logo-img {
    height: 90px;
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--heading-font);
    color: #d4a144;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

nav {
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}

/* New Navigation Link Styling */
.nav-link {
    background: transparent;
    color: #f8f4e6;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    border-radius: 6px;
    font-family: var(--body-font);
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav-link:hover {
    color: var(--misty-lavender);
    background: rgba(193,182,212,0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--marigold-gold);
    font-weight: 600;
    background: rgba(217,164,65,0.1);
}

/* Dropdown Styles */
.auth-dropdown, .user-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--antique-paper);
    border: 1px solid rgba(162,60,77,0.2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.auth-dropdown:hover .dropdown-menu,
.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--muted-maroon);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(115,50,61,0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(192,108,132,0.1);
    color: var(--vintage-rose);
}

/* Publications Section */
.publications-section {
    margin: 3rem 0;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 700;
    color: #7a1f2e;
    text-align: center;
    margin: 4rem 0 3rem 0;
    position: relative;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.section-title::before {
    content: '✿';
    position: absolute;
    left: 50%;
    top: -1.5rem;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #b8941f;
    opacity: 0.9;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--marigold-gold), transparent);
    border-radius: 2px;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.publication-card {
    background: var(--dusty-clay);
    background-image: 
        /* Enhanced paper grain texture */
        radial-gradient(circle at 25% 35%, rgba(139, 130, 110, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(160, 140, 115, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 50% 15%, rgba(180, 160, 130, 0.15) 0%, transparent 35%),
        
        /* Visible fiber patterns */
        repeating-linear-gradient(
            35deg,
            transparent,
            transparent 2px,
            rgba(139, 130, 110, 0.08) 2px,
            rgba(139, 130, 110, 0.08) 4px
        ),
        repeating-linear-gradient(
            125deg,
            transparent,
            transparent 3px,
            rgba(160, 140, 115, 0.06) 3px,
            rgba(160, 140, 115, 0.06) 6px
        ),
        
        /* Age spots */
        radial-gradient(ellipse at 80% 20%, rgba(180, 160, 130, 0.10) 0%, transparent 30%),
        radial-gradient(ellipse at 20% 80%, rgba(200, 180, 150, 0.08) 0%, transparent 25%);
    border: 1px solid rgba(90,107,71,0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(90,107,71,0.12);
    position: relative;
    overflow: hidden;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wild-rose-red), var(--marigold-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(90,107,71,0.18);
    border-color: var(--wild-rose-red);
    background: var(--antique-parchment);
    background-image: 
        /* Enhanced paper texture on hover */
        radial-gradient(circle at 30% 40%, rgba(160, 140, 115, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(160, 140, 115, 0.05) 0%, transparent 40%);
}

.publication-card:hover::before {
    opacity: 1;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    background: var(--wild-rose-red);
    color: var(--antique-parchment);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--body-font);
    box-shadow: 0 2px 8px rgba(162,60,77,0.2);
}

.category-badge a {
    color: var(--antique-parchment);
    text-decoration: none;
}

.publication-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    text-shadow: none;
}

.publication-card:hover .publication-title {
    color: var(--wild-rose-red);
}

.publication-excerpt {
    color: #3d3d3d;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 500;
}

.publication-author {
    color: #2d3d2a;
    font-style: italic;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--heading-font);
    font-size: 1.05rem;
}

.publication-author::before {
    content: "by ";
    font-style: normal;
    opacity: 1;
    font-size: 0.95rem;
    color: #404040;
}

.publication-author a {
    color: #2d3d2a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-author a:hover {
    color: var(--wild-rose-red);
    text-decoration: underline;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wild-rose-red);
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--wild-rose-red);
    box-shadow: 0 4px 15px rgba(162,60,77,0.25);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.read-more:hover {
    background: var(--marigold-gold);
    color: var(--charcoal-ink);
    border-color: var(--marigold-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217,164,65,0.3);
}

.read-more:hover::before {
    left: 100%;
}

/* Download button styling for symmetry */
.download-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--olive-moss) !important;
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-family: var(--heading-font) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--olive-moss) !important;
    box-shadow: 0 4px 15px rgba(90,107,71,0.25) !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 120px !important;
    text-align: center !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

.download-btn:hover {
    background: var(--marigold-gold) !important;
    color: var(--charcoal-ink) !important;
    border-color: var(--marigold-gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(196,136,51,0.3) !important;
}

/* Publication actions container for better button alignment */
.publication-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Ensure consistent button heights and alignment */
.publication-actions a {
    flex-shrink: 0;
    white-space: nowrap;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--wild-rose-red), transparent);
    margin: 3rem 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--marigold-gold);
    color: var(--charcoal-ink);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(217,164,65,0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--wild-rose-red);
    color: var(--antique-parchment);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162,60,77,0.3);
}

.btn-secondary {
    background: var(--olive-moss);
    color: var(--antique-parchment);
    box-shadow: 0 3px 12px rgba(107,119,85,0.25);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--dusty-clay);
    color: var(--charcoal-ink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224,193,163,0.3);
}

/* Card Styles */
.card {
    background: var(--antique-parchment);
    background-image: 
        /* Pronounced paper texture */
        radial-gradient(circle at 20% 30%, rgba(139, 130, 110, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(160, 140, 115, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(180, 160, 130, 0.08) 0%, transparent 35%),
        
        /* Paper fibers */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(160, 140, 115, 0.04) 2px,
            rgba(160, 140, 115, 0.04) 4px
        ),
        
        /* Aging spots */
        radial-gradient(ellipse at 15% 85%, rgba(200, 180, 150, 0.06) 0%, transparent 25%);
    border: 1px solid rgba(90,107,71,0.15);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 6px 25px rgba(90,107,71,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wild-rose-red), var(--marigold-gold), var(--wild-rose-red));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(90,107,71,0.18);
    border-color: var(--wild-rose-red);
}

.card:hover::before {
    opacity: 1;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--charcoal-ink) 0%, rgba(43,43,43,0.95) 100%);
    background-image: 
        /* Dark parchment texture */
        radial-gradient(circle at 20% 30%, rgba(217, 164, 65, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(193, 182, 212, 0.06) 0%, transparent 35%),
        
        /* Subtle vintage grain */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(243, 233, 211, 0.02) 1px,
            rgba(243, 233, 211, 0.02) 2px
        ),
        
        /* Additional depth */
        radial-gradient(ellipse at 40% 60%, rgba(217, 164, 65, 0.04) 0%, transparent 30%);
    color: #f8f5f0;
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
    border-top: 2px solid var(--marigold-gold);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--marigold-gold), transparent);
    opacity: 0.6;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245,241,227,0.2);
    max-width: 900px;
    margin: 0 auto 2rem auto;
    flex-wrap: wrap;
}

.footer-section {
    text-align: center;
    min-width: 180px;
    flex: 0 0 auto;
}

.footer-section h4 {
    color: #f4e96c !important;
    font-family: var(--heading-font);
    font-size: 2rem !important;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-align: center;
    font-weight: 800 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-section li {
    margin-bottom: 0.5rem;
    text-align: center;
}

.footer-section a {
    color: #f0ede6 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
}

.footer-section a:hover {
    color: #f4e96c;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 1.3rem !important;
    color: #f0ede6 !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
}

.footer-tagline {
    font-style: italic;
    color: #e6e2db !important;
    font-family: var(--heading-font);
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
}

footer:before {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--mustard-yellow);
    margin: 0 auto 2rem auto;
    opacity: 0.6;
}

/* Force footer centering - override any conflicting styles */
footer * {
    text-align: center !important;
}

/* Force footer text colors - override global dark text rules */
footer, footer *, footer h4, footer a, footer p, footer li {
    color: #f0ede6 !important;
}

footer h4 {
    color: #f4e96c !important;
}

footer .footer-tagline {
    color: #e6e2db !important;
}

footer .footer-links {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start;
    text-align: center !important;
}

footer .footer-section {
    text-align: center !important;
}

footer .footer-bottom {
    text-align: center !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-links {
        gap: 2rem;
        max-width: 600px;
        justify-content: space-around;
    }
    
    .footer-section {
        min-width: auto;
        flex: 1 1 150px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 300px;
        align-items: center;
    }
    
    footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-section {
        min-width: auto;
        width: 100%;
        flex: none;
    }
}

/* Header Navigation Responsive */
@media (max-width: 1200px) {
    .header-content {
        gap: 0.8rem;
    }
    
    nav ul {
        gap: 1.2rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
}

@media (max-width: 1000px) {
    nav ul {
        gap: 0.8rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .header-content {
        gap: 0.5rem;
    }
}

@media (max-width: 850px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 0;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .publications-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .logo-img { height: 60px; }
}

@media (max-width: 600px) {
    .header-content { flex-direction: column; gap: 1rem; }
    .logo-img { height: 40px; }
    .container { padding: 0 8px; }
    .hero { padding: 2rem 0.5rem 1.5rem 0.5rem; }
    .publication-container { grid-template-columns: 1fr; }
    .authors-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-container { padding: 2rem; margin: 1rem; }
}

h1, h2, h3, .logo-text {
    font-family: var(--heading-font);
}

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

html { font-size: 100%; }

.container { max-width: 75rem; padding: 1rem; margin: 0 auto; }

/* Enhanced text readability - simplified */
h1, h2, h3, h4, h5, h6 {
    color: #000000 !important;
    font-weight: 600 !important;
}

p, span, div, li, text, label {
    color: #000000 !important;
    font-weight: 500 !important;
}

/* BEAUTIFUL COLOR SCHEME - SOPHISTICATED & READABLE */

/* Reset aggressive overrides */
*, *::before, *::after {
    text-shadow: none !important;
}

/* Beautiful Typography Colors */
h1, h2, h3, h4, h5, h6 {
    color: #2C1810 !important; /* Rich dark brown */
    font-weight: 600 !important;
    text-shadow: none !important;
}

/* Body text - elegant dark gray */
p, span, div, li, text, label {
    color: #3D3D3D !important; /* Sophisticated dark gray */
    font-weight: 400 !important;
    text-shadow: none !important;
}

/* Publication cards - refined colors */
.publication-title, .publication-title * {
    color: #2C1810 !important; /* Rich brown for titles */
    font-weight: 600 !important;
    text-shadow: none !important;
}

.publication-excerpt, .publication-excerpt * {
    color: #5A5A5A !important; /* Medium gray for excerpts */
    font-weight: 400 !important;
    text-shadow: none !important;
    line-height: 1.6 !important;
}

.publication-author, .publication-author * {
    color: #8B2635 !important; /* Elegant burgundy */
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Author cards */
.author-name, .author-name * {
    color: #2C1810 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.author-bio, .author-bio * {
    color: #5A5A5A !important;
    font-weight: 400 !important;
    text-shadow: none !important;
}

.author-email, .author-email * {
    color: #8B2635 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Meta information */
.publication-meta, .publication-meta * {
    color: #8B6F47 !important; /* Warm brown for dates */
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* Specific element overrides */
.publication-title {
    color: #000000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.publication-excerpt {
    color: #000000 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

.publication-author {
    color: #000000 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

.author-name {
    color: #000000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.author-bio {
    color: #000000 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

.author-email {
    color: #8B2635 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

/* FORCE BLACK TEXT ON FOOTER TOO - MEGA SIZE */
footer, footer *, 
.footer-section, .footer-section *,
.footer-bottom, .footer-bottom *,
.footer-tagline, .footer-tagline *,
.footer-section h4, .footer-section a, .footer-section p,
footer h4, footer a, footer p, footer li, footer ul {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

/* MODERN PUBLICATION CARDS */
.publication-card {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.publication-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

/* BEAUTIFUL BUTTONS */
.read-more, a.read-more {
    background: linear-gradient(135deg, #8B2635, #A73D4A) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
    text-shadow: none !important;
    border: none !important;
}

.read-more:hover, a.read-more:hover {
    background: linear-gradient(135deg, #A73D4A, #C54A5C) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(139, 38, 53, 0.3) !important;
}

.download-btn, a.download-btn {
    background: linear-gradient(135deg, #4A5639, #5A6B47) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    border: none !important;
}

.download-btn:hover, a.download-btn:hover {
    background: linear-gradient(135deg, #5A6B47, #6B7C57) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(74, 86, 57, 0.3) !important;
}

/* ELEGANT FOOTER */
.footer-section h4, footer h4 {
    font-size: 1.2rem !important;
    color: #2C1810 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

.footer-section a, footer a, .footer-section li, footer li {
    font-size: 1rem !important;
    color: #8B2635 !important;
    text-shadow: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.footer-section a:hover, footer a:hover {
    color: #A73D4A !important;
}

.footer-bottom p, .footer-tagline, footer p {
    font-size: 0.9rem !important;
    color: #5A5A5A !important;
    text-shadow: none !important;
    font-weight: 400 !important;
}

/* BUTTON TEXT FIXES - FORCE BLACK TEXT ON BUTTONS */
.read-more, a.read-more, .publication-actions .read-more {
    color: #000000 !important;
    background: var(--wild-rose-red) !important;
    text-shadow: none !important;
    font-weight: 500 !important;
}

.download-btn, a.download-btn, .publication-actions .download-btn {
    color: #000000 !important;
    background: var(--olive-green) !important;
    text-shadow: none !important;
    font-weight: 500 !important;
}

/* Extra specific targeting for buttons */
.publication-card .read-more, .publication-card a.read-more,
article .read-more, article a.read-more {
    color: #000000 !important;
    background: var(--wild-rose-red) !important;
    text-shadow: none !important;
}

/* Keep only header nav with original colors */
header nav, header nav * {
    color: inherit !important;
}

/* Improved link readability */
a {
    color: #8B2635 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

a:hover {
    color: #4A5639 !important;
    text-decoration: underline;
}

/* Enhanced text contrast - simplified */
.category-name {
    color: #000000 !important;
    font-weight: 600 !important;
}

.publication-content, .author-info p {
    color: #000000 !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
}

/* New styles from the code block */

/* Breadcrumb Navigation */
.breadcrumb {
    margin: 2rem 0;
    color: var(--muted-maroon);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--vintage-rose);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--mustard-yellow);
    text-decoration: underline;
}

/* Author Profile */
.author-profile {
    background: var(--ivory);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(115,50,61,0.1);
}

.author-avatar {
    width: 120px;
    height: 120px;
    background: var(--vintage-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--antique-paper) !important;
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--heading-font);
}

.author-name {
    font-size: 2.5rem;
    color: #1a1a1a !important;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
    font-weight: 800;
    text-shadow: none !important;
}

.author-email {
    color: #8B2635 !important;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
    font-weight: 700;
    text-shadow: none !important;
}

.author-email:hover {
    color: #4A5639 !important;
    text-decoration: underline;
}

.author-bio {
    color: #2a2a2a !important;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 600;
    text-shadow: none !important;
}

.author-stats {
    background: rgba(115,50,61,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: inline-block;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--vintage-rose);
    display: block;
    font-family: var(--heading-font);
}

.stat-label {
    color: var(--muted-maroon);
    font-size: 1rem;
}

/* Category Header */
.category-header {
    background: var(--ivory);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(115,50,61,0.1);
}

.category-icon {
    width: 100px;
    height: 100px;
    background: var(--vintage-rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: #1a1a1a;
    font-size: 2.5rem;
}

.category-name {
    font-size: 2.5rem;
    color: var(--muted-maroon);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.category-slug {
    color: var(--muted-maroon);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.category-stats {
    background: rgba(115,50,61,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: inline-block;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.author-card {
    background: var(--ivory);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 1.5rem;
    border: 1px solid rgba(115,50,61,0.1);
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.author-info {
    flex: 1;
}

.author-info .author-name {
    font-size: 1.5rem;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
    text-shadow: none !important;
}

.author-info .author-email {
    color: #8B2635 !important;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
    font-weight: 700 !important;
    text-shadow: none !important;
}

.author-info .author-bio {
    color: #2a2a2a !important;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.author-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.publication-count {
    background: var(--olive-green);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.view-works {
    background: var(--vintage-rose);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.view-works:hover {
    background: var(--mustard-yellow);
    color: var(--muted-maroon);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background: var(--ivory);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(115,50,61,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card .category-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--muted-maroon);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.category-card .category-slug {
    color: var(--muted-maroon);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.category-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-card .publication-count {
    background: var(--olive-green);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.percentage {
    background: var(--mustard-yellow);
    color: var(--muted-maroon);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.view-publications {
    background: var(--vintage-rose);
    color: #1a1a1a;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: inline-block;
}

.view-publications:hover {
    background: var(--mustard-yellow);
    color: var(--muted-maroon);
}

/* Stats Section */
.stats-section {
    background: var(--ivory);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(115,50,61,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    padding: 1rem;
}

.stats-section .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--vintage-rose);
    display: block;
    font-family: var(--heading-font);
}

.stats-section .stat-label {
    color: var(--muted-maroon);
    font-size: 1rem;
}

/* Publication Detail Page */
.publication-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.publication-main {
    background: var(--ivory);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(115,50,61,0.1);
}

.publication-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(115,50,61,0.1);
}

.publication-main .publication-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--muted-maroon);
    line-height: 1.2;
    font-family: var(--heading-font);
}

.publication-main .publication-author {
    font-style: italic;
    color: var(--vintage-rose);
    font-weight: 500;
    font-size: 1.1rem;
}

.publication-main .publication-author a {
    color: var(--vintage-rose);
    text-decoration: none;
}

.publication-main .publication-author a:hover {
    color: var(--mustard-yellow);
}

.publication-date {
    color: var(--muted-maroon);
    font-size: 0.9rem;
}

.publication-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted-maroon);
}

.publication-content p {
    margin-bottom: 1.5rem;
}

/* Publication Sidebar */
.publication-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.author-info-card, .other-works-card {
    background: var(--ivory);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(115,50,61,0.1);
}

.author-info-card h3, .other-works-card h3 {
    color: var(--muted-maroon);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.author-info-card h4 {
    color: var(--vintage-rose);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.author-info-card p {
    color: var(--muted-maroon);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-author {
    background: var(--vintage-rose);
    color: #1a1a1a;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: inline-block;
}

.contact-author:hover {
    background: var(--mustard-yellow);
    color: var(--muted-maroon);
}

.other-works-card ul {
    list-style: none;
    padding: 0;
}

.other-works-card li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(115,50,61,0.1);
}

.other-works-card li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.other-works-card a {
    color: var(--vintage-rose);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.other-works-card a:hover {
    color: var(--mustard-yellow);
}

.work-category {
    background: var(--mustard-yellow);
    color: var(--muted-maroon);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a, .pagination span {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: var(--olive-green);
    color: var(--antique-paper);
}

.pagination a:hover {
    background: var(--lavender-mist);
    color: var(--charcoal-black);
}

.pagination .current {
    background: var(--wild-rose-red);
    color: var(--antique-paper);
}

.pagination .disabled {
    background: rgba(162,60,77,0.2);
    color: var(--charcoal-black);
    cursor: not-allowed;
}

/* No Publications Message */
.no-publications {
    text-align: center;
    background: var(--dusty-peach);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(162,60,77,0.15);
}

.no-publications h3 {
    color: var(--wild-rose-red);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.no-publications p {
    color: var(--charcoal-black);
}

/* Form Styles */
.form-container {
    background: var(--antique-parchment);
    background-image: 
        /* Subtle paper texture */
        radial-gradient(circle at 25% 25%, rgba(160, 140, 115, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(160, 140, 115, 0.03) 0%, transparent 40%);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 8px 30px rgba(90,107,71,0.15);
    border: 1px solid rgba(90,107,71,0.15);
    max-width: 650px;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wild-rose-red), var(--marigold-gold), var(--wild-rose-red));
}

.form-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--wild-rose-red);
    font-family: var(--heading-font);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(90,107,71,0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--body-font);
    background: var(--dusty-clay);
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--wild-rose-red);
    box-shadow: 0 0 0 3px rgba(162,60,77,0.15);
    background: var(--antique-parchment);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--marigold-gold);
    color: var(--charcoal-ink);
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: var(--body-font);
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(217,164,65,0.3);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.form-submit:hover {
    background: var(--wild-rose-red);
    color: var(--antique-parchment);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(162,60,77,0.4);
}

.form-submit:hover::before {
    left: 100%;
}

.form-links {
    text-align: center;
    margin-top: 1.5rem;
}

.form-links a {
    color: var(--wild-rose-red);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--lavender-mist);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(92,184,92,0.1);
    color: #5cb85c;
    border: 1px solid rgba(92,184,92,0.3);
}

.alert-error {
    background: rgba(217,83,79,0.1);
    color: #d9534f;
    border: 1px solid rgba(217,83,79,0.3);
}

.alert-info {
    background: rgba(91,192,222,0.1);
    color: #5bc0de;
    border: 1px solid rgba(91,192,222,0.3);
}

/* Responsive Design */
@media (max-width: 900px) {
    .publications-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .logo-img { height: 60px; }
}

@media (max-width: 600px) {
    .header-content { flex-direction: column; gap: 1rem; }
    .logo-img { height: 40px; }
    .container { padding: 0 8px; }
    .hero { padding: 2rem 0.5rem 1.5rem 0.5rem; }
    .publication-container { grid-template-columns: 1fr; }
    .authors-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-container { padding: 2rem; margin: 1rem; }
}

h1, h2, h3, .logo-text {
    font-family: var(--heading-font);
}

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

html { font-size: 100%; }

.container { max-width: 75rem; padding: 1rem; margin: 0 auto; } 

/* Ensure submission buttons are always visible and spaced */
.submission-actions {
    display: flex; /* Use flexbox to align buttons */
    gap: 0.5rem;   /* Space between buttons */
    align-items: center; /* Vertically align them */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Ensure disabled buttons have distinct styling that doesn't hide them */
.action-btn[disabled] {
    opacity: 0.6; /* Make disabled buttons slightly faded */
    cursor: not-allowed; /* Indicate they can't be clicked */
    pointer-events: none; /* Prevent any hover/click events */
}

/* Override any potential hidden states for buttons (add if needed, but flex should handle it) */
.action-btn {
    display: inline-block; /* Ensure they are block-level for sizing, but respect flow */
}
