/* News and Blog Pages — v3 */

/* ========== LIST ITEMS (card style, used in grid) ========== */

/* Both news-item and blog-item use article-card from app.css.
   These classes handle the legacy horizontal layout fallback. */

.news-page-label,
.blog-page-label {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ========== NEWS VIEW PAGE ========== */
.news-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
}

.news-article-wrapper {
    background: white;
    border-radius: 6px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.news-article { position: relative; }

.news-article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.news-article h1 {
    color: var(--text-color);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.news-breadcrumbs {
    background: #f8f9fa;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}

.news-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-breadcrumbs a:hover { text-decoration: underline; }

.news-date-wrapper {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date-wrapper i { color: var(--primary-color); }

.news-image-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.news-image-wrapper .news-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.news-description-wrapper {
    color: var(--text-color);
    line-height: 1.75;
    font-size: 1rem;
    margin: 1.5rem 0;
}

.news-description-wrapper p { margin-bottom: 1rem; }

.news-description-wrapper h2,
.news-description-wrapper h3,
.news-description-wrapper h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.news-description-wrapper ul,
.news-description-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.news-description-wrapper li { margin-bottom: 0.5rem; }

.news-additional-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-author .news-author-label { font-weight: 600; }
.news-author .news-author-name { color: var(--primary-color); font-weight: 500; }

.news-source-url-wrapper { margin-bottom: 1rem; }
.news-source-url-text { font-weight: 600; margin-right: 0.5rem; }
.news-source-url-wrapper a { color: var(--primary-color); text-decoration: none; }
.news-source-url-wrapper a:hover { text-decoration: underline; }

.news-links-wrapper {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.news-links-text { font-weight: 600; margin-right: 0.5rem; }
.news-links-wrapper a { color: var(--primary-color); text-decoration: none; margin-right: 0.5rem; }
.news-links-wrapper a:hover { text-decoration: underline; }

/* ========== BLOG VIEW PAGE ========== */
.blog-article-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px;
}

.blog-article-wrapper {
    background: white;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.blog-article { position: relative; }

.blog-article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.blog-article h1 {
    color: var(--text-color);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.blog-breadcrumbs {
    background: #f8f9fa;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}

.blog-breadcrumbs a { color: var(--primary-color); text-decoration: none; }
.blog-breadcrumbs a:hover { text-decoration: underline; }

.blog-date-wrapper {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date-wrapper i { color: var(--primary-color); }

.blog-image-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.blog-image-wrapper .blog-image {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.blog-description-wrapper {
    color: var(--text-color);
    line-height: 1.75;
    font-size: 1rem;
    margin: 1.5rem 0;
}

.blog-description-wrapper p { margin-bottom: 1rem; }

.blog-description-wrapper img {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 1rem auto;
}

.blog-description-wrapper h2,
.blog-description-wrapper h3,
.blog-description-wrapper h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.blog-description-wrapper h2 { font-size: 1.3rem; }
.blog-description-wrapper h3 { font-size: 1.1rem; }

.blog-description-wrapper ul,
.blog-description-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-description-wrapper li { margin-bottom: 0.5rem; }

.blog-additional-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-author .blog-author-label { font-weight: 600; }
.blog-author .blog-author-name { color: var(--primary-color); font-weight: 500; }

.blog-source-url-wrapper { margin-bottom: 1rem; }
.blog-source-url-text { font-weight: 600; margin-right: 0.5rem; }
.blog-source-url-wrapper a { color: var(--primary-color); text-decoration: none; }
.blog-source-url-wrapper a:hover { text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .news-article h1,
    .blog-article h1 {
        font-size: 1.5rem;
    }

    .news-article-content,
    .blog-article-content {
        padding: 16px 12px;
    }

    .news-article-wrapper,
    .blog-article-wrapper {
        padding: 1.25rem;
    }

    .news-additional-info,
    .blog-additional-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .news-article h1,
    .blog-article h1 {
        font-size: 1.3rem;
    }

    .news-article-wrapper,
    .blog-article-wrapper {
        padding: 1rem;
    }
}

/* ========== ARTICLE VIEW: blog-article inside cat-main-content ========== */
.cat-main-content .blog-article {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

/* ========== SIMILAR ARTICLES ========== */
.art-similar {
    margin-top: 28px;
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.art-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.art-similar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.art-similar-img-link { display: block; }

.art-similar-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.art-similar-title {
    font-size: .78rem;
    line-height: 1.35;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.art-similar-title:hover { color: #8bc34a; }

@media (max-width: 768px) {
    .art-similar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .art-similar-grid { grid-template-columns: 1fr; }
}
