/* frontend/css/resource_article_style.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.article-wrapper {
    width: min(210mm, 100%);
    margin: 40px auto;
    background: white;
    padding: 60px 80px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-content {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #444;
}

.article-content h1 {
    color: #d18900;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    line-height: 1.2;
}

.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    text-align: left;
}

.article-content h2 {
    color: #dd9f1a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    border-bottom: 2px solid #fcf2d9;
    padding-bottom: 8px;
}

.article-content p {
    margin-bottom: 20px;
}

/* Image styles */
.article-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.article-image-container img {
    max-width: 90%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-image-title {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
    max-width: 80%;
}

/* Navbar override for consistency */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 950px) {
    .article-wrapper {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 30px 20px;
        box-shadow: none;
    }
    
    .article-content h1 {
        font-size: 1.8rem;
    }
}
