/* ===== Articles Page ===== */
.articles-page {
    max-width: 800px;
    margin: 0 auto;
}
.articles-header {
    margin-bottom: 32px;
}
.articles-header h1 {
    margin-bottom: 6px;
}

/* ===== Error & Empty States ===== */
.articles-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    color: #856404;
}
.articles-error h1 {
    font-size: 1.3em;
    margin-bottom: 8px;
}
.articles-error-hint {
    margin-top: 12px;
    font-size: 0.9em;
}
.articles-error-hint a {
    color: #1a5f2a;
}
.articles-empty {
    background: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.articles-empty p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* ===== Article Cards Grid ===== */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: box-shadow 0.2s;
}
.article-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.article-card-image {
    width: 220px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card-title {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.article-card-title a {
    color: #222;
    text-decoration: none;
}
.article-card-title a:hover {
    color: #1a5f2a;
}
.article-card-excerpt {
    color: #666;
    font-size: 0.92em;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}
.article-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 8px;
}
.article-read-more {
    color: #1a5f2a;
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none;
}
.article-read-more:hover {
    text-decoration: underline;
}

/* ===== Tags ===== */
.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.article-tag {
    background: #e9f5ec;
    color: #1a5f2a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78em;
    font-weight: 600;
}

/* ===== Pagination ===== */
.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 16px 0;
}
.pagination-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.92em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.pagination-prev,
.pagination-next {
    background: #1a5f2a;
    color: white;
}
.pagination-prev:hover,
.pagination-next:hover {
    background: #14491f;
}
.pagination-disabled {
    background: #e9ecef;
    color: #aaa;
    cursor: default;
}
.pagination-info {
    font-size: 0.9em;
    color: #666;
}

/* ===== Single Article View ===== */
.article-view-page {
    max-width: 740px;
    margin: 0 auto;
}
.article-breadcrumb {
    margin-bottom: 20px;
}
.article-breadcrumb a {
    color: #1a5f2a;
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 600;
}
.article-breadcrumb a:hover {
    text-decoration: underline;
}

/* Article Header */
.article-header {
    margin-bottom: 24px;
}
.article-title {
    font-size: 2em;
    font-weight: 800;
    line-height: 1.2;
    color: #222;
    margin: 0 0 10px;
}
.article-subtitle {
    font-size: 1.15em;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
}
.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9em;
    color: #888;
}

/* Hero Image */
.article-hero-image {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
}
.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body Content */
.article-content {
    color: #333;
    font-size: 1.05em;
    line-height: 1.75;
}
.article-content h1,
.article-content h2,
.article-content h3 {
    color: #222;
    margin-top: 28px;
    margin-bottom: 12px;
}
.article-content h2 { font-size: 1.4em; }
.article-content h3 { font-size: 1.15em; }
.article-content p {
    margin-bottom: 16px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}
.article-content a {
    color: #1a5f2a;
}
.article-content blockquote {
    border-left: 4px solid #1a5f2a;
    padding: 12px 20px;
    margin: 16px 0;
    background: #f8f9fa;
    border-radius: 0 6px 6px 0;
    color: #555;
    font-style: italic;
}
.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.article-content li {
    margin-bottom: 6px;
}
.article-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
}

/* CTA Section */
.article-cta {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5ec 100%);
    border-radius: 12px;
    border: 2px solid #d4edda;
    text-align: center;
}
.article-cta h3 {
    color: #1a5f2a;
    font-size: 1.3em;
    margin: 0 0 8px;
}
.article-cta p {
    color: #555;
    margin: 0 0 20px;
    font-size: 0.95em;
}

/* Back Link */
.article-back {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
.article-back a {
    color: #1a5f2a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92em;
}
.article-back a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .article-card {
        flex-direction: column;
    }
    .article-card-image {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }
    .article-title {
        font-size: 1.5em;
    }
    .article-cta {
        padding: 24px 20px;
    }
}
