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

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
}

/* Allow scrolling on article pages */
body.single-article {
    overflow: auto;
    height: auto;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

/* Slide content - base styles for all devices */
.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

/* Hide mobile inline nav on desktop */
.mobile-nav-inline {
    display: none;
}

/* Desktop slide content - wider max-width */
@media (min-width: 769px) {
    .slide-content {
        max-width: 1000px;
        padding: 0 2rem;
    }

    /* Hero slide - push content to top and button to bottom */
    .slide.hero .slide-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100vh;
        padding-top: 20vh;
        padding-bottom: 10vh;
    }

    .slide.hero .slide-content > * {
        flex-shrink: 0;
    }

    .slide.hero .slide-btn {
        margin-top: auto;
    }

    /* Position tags below the arrows (below 50% mark) */
    .article-tags {
        margin-top: 15vh;
    }
}

/* Navigation */
.slide-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Base arrow styles - always apply */
.slide-arrows {
    position: fixed;
    z-index: 1000;
}

.slide-arrow {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.slide-date {
    display: block;
    color: #999999;
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    margin: 0 1.5rem;
}

/* Desktop-specific positioning */
@media (min-width: 769px) {
    .slide-arrows {
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        pointer-events: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
    }

    .slide-arrow {
        position: relative;
        z-index: 1001;
        pointer-events: auto;
    }

    .slide-arrow:hover {
        transform: scale(1.1);
    }

    .slide-date {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 1002;
        margin: 0;
        padding: 2rem 0;
    }
}


/* Photo Credit */
.photo-credit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Slide Types */
.slide.hero {
    background-image: url('../images/personal-photo.jpg');
}

.slide.article-1 {
    background-image: url('../images/nachruf-correct.jpg');
}

.slide.article-2 {
    background-image: url('../images/stockholm-correct.png');
}

.slide.article-3 {
    background-image: url('../images/abitur-correct.jpeg');
}

.slide.article-4 {
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
}

.slide.about {
    background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
}

.slide.contact {
    background-image: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.contact-submit-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

/* Typography */
.slide h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.slide h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    white-space: pre-line;
}

.slide h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.slide p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slide-quote {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.5rem;
    color: #ffffff;
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* MOVED TO DESKTOP MEDIA QUERY - was overriding mobile hide */

/* Buttons */
.slide-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.slide-btn.primary {
    background: #ffffff;
    color: #000000;
}

.slide-btn.primary:hover {
    background: #f0f0f0;
}

/* Article Content */
.article-content {
    text-align: left;
    max-width: 900px;
}

/* Article tags - centered on all devices by default */
.article-tags {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    font-style: italic;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    transition: width 0.3s ease;
}

/* Slide Counter */
.slide-counter {
    position: fixed;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Mobile: Content above, arrows in middle, tags/button below */
@media (max-width: 768px) {
    /* Adjust personal photo position on mobile */
    .slide.hero {
        background-position: 20% 40%;
    }

    /* Mobile slide content - positioned 15% from top */
    .slide-content {
        position: absolute;
        top: 15%;
        left: 0;
        right: 0;
        padding: 2rem 1.5rem 0 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: 35vh;
        overflow: visible;
    }

    /* Only show heading/subtitle in top section on mobile */
    .slide-content > h1,
    .slide-content > h2,
    .slide-content > p:not(.mobile-date-inline) {
        max-height: 28vh;
    }

    /* Smaller headings on mobile */
    .slide h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .slide h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .slide p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Hide the desktop fixed arrows container on mobile */
    body:not(.single-article) .slide-arrows {
        display: none;
    }

    /* Mobile nav container - completely transparent, no interference */
    .mobile-nav-inline {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
        z-index: 3000 !important;
        display: block !important;
    }

    /* Re-enable pointer events on children */
    .mobile-nav-inline > * {
        pointer-events: auto !important;
    }

    /* Position mobile arrows at edges of screen */
    .mobile-arrow.mobile-prev {
        position: fixed !important;
        top: 50% !important;
        left: 1rem !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: #ffffff;
        font-size: 2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 3001;
        margin: 0 !important;
    }

    .mobile-arrow.mobile-next {
        position: fixed !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.5);
        color: #ffffff;
        font-size: 2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 3001;
        margin: 0 !important;
    }

    .mobile-arrow:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    /* Date centered between arrows */
    .mobile-date-inline {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        white-space: nowrap;
        text-align: center;
        z-index: 999;
        display: block !important;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        padding: 0.5rem 1.2rem;
        border-radius: 20px;
        border: 1px solid rgba(0, 0, 0, 0.3);
    }

    /* Hide spacer - not needed with fixed positioning */
    .mobile-date-spacer {
        display: none !important;
    }

    /* Tags and button positioned below arrows (below 50% screen) */
    .article-tags {
        position: fixed;
        top: 58%;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        width: 90%;
        max-width: 500px;
        z-index: 100;
    }

    .slide-btn {
        position: fixed;
        top: 75%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        width: 95%;
        max-width: none;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        /* Prevent jump on click */
        will-change: opacity;
    }

    /* Disable hover transform on mobile to prevent jump */
    .slide-btn:hover {
        transform: translateX(-50%);
    }

    /* Smooth click feedback */
    .slide-btn:active {
        transform: translateX(-50%) scale(0.98);
        opacity: 0.8;
    }

    /* Contact form needs special handling */
    /* Contact slide specific adjustments */
    .slide.contact .slide-content {
        top: 10px;
        max-height: calc(100vh - 20px);
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
        padding-top: 1rem;
        z-index: 2000 !important;
    }

    .contact-form {
        margin-top: 1rem;
        position: relative;
        z-index: 2000;
        padding: 0.5rem 1rem;
    }

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

    .contact-submit-btn {
        position: relative;
        z-index: 2001;
    }

    /* Hide only navigation dots on mobile */
    .slide-nav {
        display: none;
    }

    /* Hide slide counter on mobile */
    .slide-counter {
        display: none;
    }

    /* Position quote below arrows on mobile */
    .slide-quote {
        position: fixed;
        top: 65%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 500px;
        font-size: 1.2rem;
        margin: 0;
    }

    /* Keep progress bar visible on mobile */
    .progress-bar {
        display: block;
    }
}

/* Footer Styles */
.footer {
    padding: 2rem 0;
    background: #111111;
    color: #888888;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Hide footer on slides homepage (all devices) */
body.home .footer {
    display: none;
}

/* reCAPTCHA v3 Badge - Hide by default, controlled by JavaScript */
.grecaptcha-badge {
    z-index: 9999 !important;
    position: fixed !important;
    bottom: 14px !important;
    right: 14px !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Article Page Styles (from single.php) */
.article-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover,
.site-title a:focus {
    color: #f0f0f0;
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.site-title .full-name {
    display: inline;
}

.site-title .short-name {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.main-content {
    margin-top: 0;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2a2a2a 100%);
    min-height: calc(100vh - 80px);
}

/* Fullscreen background for article pages */
.article-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.article-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.article-main {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
    background: transparent !important;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.8rem 3rem 4rem 3rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--article-font-size, 100%);
    position: relative;
}


.desktop-article-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.desktop-nav-arrow {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.desktop-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.all-articles-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.all-articles-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.back-link:hover,
.back-link:focus {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Article page tags (single.php) - left aligned */
body.single-article .article-tags {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
    margin: 3rem 0 0 0;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    font-style: italic;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.article-author {
    font-size: 0.9rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Mobile Navigation with Date */
.mobile-article-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.mobile-nav-arrow {
    font-size: 2rem;
    color: #d4af37;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    user-select: none;
}

.mobile-nav-arrow:hover {
    color: #f4d03f;
}

.mobile-article-date {
    font-size: 0.9rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Hide original date on mobile, show mobile nav */
@media (max-width: 768px) {
    .article-meta {
        display: none;
    }
    
    .mobile-article-nav {
        display: flex;
    }
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


.article-body {
    color: #f5f5f5;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-top: 2rem;
    text-align: justify;
    transition: font-size 0.3s ease;
}

/* Text zoom functionality */
.text-zoom-controls {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 60px;
}

.zoom-btn:hover,
.zoom-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.zoom-level {
    color: #ffffff;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.25rem;
    font-weight: 500;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 4rem 0 2.5rem 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.article-body h2:first-child {
    margin-top: 2rem;
}

.article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.4;
    text-align: left;
}

.article-body p {
    margin-bottom: 2.5rem;
    color: #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: justify;
    max-width: none;
    text-indent: 1.5rem;
}

.article-body p:first-child {
    text-indent: 0;
}

.article-body p:last-child {
    margin-bottom: 0;
}

/* Improved accessibility */
.article-body h2,
.article-body h3,
.article-body h4 {
    scroll-margin-top: 100px;
}

.article-body a {
    color: #4fc3f7;
    text-decoration: underline;
    text-decoration-color: rgba(79, 195, 247, 0.5);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.article-body a:hover,
.article-body a:focus {
    color: #81d4fa;
    text-decoration-color: #81d4fa;
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
}

.article-body strong {
    color: #ffffff;
    font-weight: 600;
}

.article-body em {
    color: #e0e0e0;
    font-style: italic;
}

.article-body blockquote {
    border-left: 4px solid #4fc3f7;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
    font-style: italic;
    color: #e0e0e0;
    background: rgba(79, 195, 247, 0.05);
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.article-body blockquote p {
    margin-bottom: 1rem;
    text-indent: 0;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body blockquote {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.3rem;
    color: #ffffff;
    font-style: italic;
    line-height: 1.6;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 8px 8px 0;
}


/* Ensure proper scrolling on article pages */
body.single-article .main-content {
    overflow: visible;
    height: auto;
}

body.single-article .article-body {
    overflow: visible;
}

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

    .article-header {
        padding: 1rem 0;
    }

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

    .site-title .full-name {
        display: none;
    }

    .site-title .short-name {
        display: inline;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .main-content {
        margin-top: 0;
        padding: 2rem 0 4rem 0;
    }

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

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

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

    .article-body p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .text-zoom-controls {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        top: auto;
        transform: none;
        flex-direction: row;
        padding: 0.5rem;
    }

    .zoom-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 50px;
    }

    .article-hero {
        height: 50vh;
        margin-top: 0;
        padding-top: 80px;
    }

    .hero-content {
        padding: 1rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .article-content {
        padding: 1.5rem 1rem 2rem 1rem;
        margin-top: 80px;
    }

    .desktop-article-nav {
        gap: 1rem;
    }

    .desktop-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .all-articles-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

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

    .nav-links {
        gap: 1rem;
    }

    .site-title .full-name {
        display: none;
    }

    .site-title .short-name {
        display: inline;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .back-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .text-zoom-controls {
        bottom: 1rem;
        right: 1rem;
        padding: 0.4rem;
    }
    
    .zoom-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        min-width: 40px;
    }
    
    .zoom-level {
        font-size: 0.7rem;
    }
}

/* Accessibility improvements */
.article-content:focus-within {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

/* Better contrast for better readability */
.article-body strong {
    color: #ffffff;
    font-weight: 600;
}

.article-body em {
    color: #e0e0e0;
    font-style: italic;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .article-body {
        color: #ffffff;
    }
    .article-body p {
        color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}
