/* ========================================
   Articles listing & single article styles
   ======================================== */

/* --- Force readable text on article pages --- */
.articles-listing,
.article-single {
    background: #ffffff !important;
    color: #2a2a2a !important;
    padding: 2rem 1.5rem;
    border-radius: 8px;
}

.articles-listing *,
.article-single * {
    color: inherit;
}

/* --- Listing page --- */
.articles-listing h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #1a1a1a !important;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

a.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
    overflow: hidden;
}

a.article-card:hover {
    border-color: #E7CD52;
    background: rgba(231, 205, 82, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-card-inner {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6d00;
    background: rgba(231, 205, 82, 0.18);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.article-card .article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0.5rem 0 0.75rem;
    color: #1a1a1a !important;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55) !important;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 1rem;
}

.article-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a88a15;
    transition: color 0.2s ease;
}

a.article-card:hover .article-read-more {
    color: #E7CD52;
}

/* --- Single article page --- */
.article-single {
    max-width: 740px;
    margin: 0 auto;
}

a.article-back {
    display: inline-block;
    color: #a88a15;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s ease;
}

a.article-back:hover {
    opacity: 0.8;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-header h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0.75rem 0 1rem;
    color: #1a1a1a !important;
}

.article-header .article-meta {
    font-size: 0.85rem;
}

.article-separator {
    color: rgba(0, 0, 0, 0.3);
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #2a2a2a !important;
}

.article-content p,
.article-content li,
.article-content blockquote {
    color: #2a2a2a !important;
}

.article-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a !important;
}

.article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a !important;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content strong {
    color: #000;
}

.article-content blockquote {
    border-left: 3px solid #E7CD52;
    margin: 1.2rem 0;
    padding: 0.5rem 1rem;
    background: rgba(231, 205, 82, 0.08);
    color: #2a2a2a;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }
}
