body {
    background-color: #f8f8f8;
}

.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
}

.article-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.article-header {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.article-header h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.date-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.date-container i {
    font-size: 18px;
    opacity: 0.9;
}

.article-content {
    padding: 0 40px 40px;
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.slider img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.slider-dot.active {
    background: #c41e3a;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-btn i {
    font-size: 18px;
}

.text-content1 {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: center;
}

.text-content p {
    margin-bottom: 24px;
}

.text-content p:last-child {
    margin-bottom: 0;
}

p {
    margin-bottom: 1em;
}

.bio-paragraph {
    background: linear-gradient(135deg, #fff8f5 0, #fff0e6 100%);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(196, 30, 58, 0.1);
    position: relative;
    text-align: left;
}

.bio-paragraph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #a01729);
    border-radius: 12px 12px 0 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c41e3a, #a01729);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
    background: linear-gradient(135deg, #333, #222);
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-4px);
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .main-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .article-header {
        padding: 30px 25px;
    }
    
    .article-content {
        padding: 30px 25px;
    }
    
    .slider {
        height: 300px;
    }
    
    .bio-paragraph {
        padding: 20px;
    }
    
    .text-content {
        font-size: 15px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
    }
    
    .article-header {
        padding: 25px 20px;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .slider {
        height: 250px;
    }
    
    .bio-paragraph {
        padding: 16px;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        padding: 10px;
    }

    .slider-btn i {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .slider,
    .back-button,
    .article-header::before {
        transition: none;
        animation: none;
    }
}

.back-button:focus {
    outline: 3px solid #c41e3a;
    outline-offset: 2px;
}

@media print {
    .back-button {
        display: none;
    }
    
    .article-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .slider-btn, .slider-dot {
        display: none;
    }

    .slider {
        display: block;
        height: auto;
    }

    .slider img {
        display: block;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}