/* ======================================== */
/* articles.css — Article module styles    */
/* ======================================== */

/* --- Index page --- */
.articles-hero { background: linear-gradient(135deg, #024A57, #04A5B5); padding: 48px 0 40px; text-align: center; }
.articles-hero h1 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.articles-hero p { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 0; }
.articles-hero-breadcrumb { margin-top: 16px; }
.articles-hero-breadcrumb .breadcrumb-list { justify-content: center; margin-bottom: 0; padding: 0; }
.articles-hero-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.6); }
.articles-hero-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.articles-hero-breadcrumb .breadcrumb-current { color: rgba(255,255,255,.9); }
.articles-hero-breadcrumb .breadcrumb-item::after { color: rgba(255,255,255,.3); }

.articles-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 16px 72px; }

.articles-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.articles-cat { padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; text-decoration: none;
    background: #f5f5f5; color: #555; border: 1px solid #eee; transition: all .2s; }
.articles-cat:hover, .articles-cat.active { background: #04A5B5; color: #fff; border-color: #04A5B5; }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card { background: #fff; border: 1px solid #eee; border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.article-card-img { width: 100%; height: 200px; object-fit: cover; background: #f0f0f0; }
.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card-meta { display: flex; gap: 12px; align-items: center; font-size: .75rem; color: #999; margin-bottom: 10px; }
.article-card-cat { background: #E8F8FA; color: #04A5B5; padding: 2px 10px; border-radius: 10px; font-weight: 600; font-size: .72rem; }
.article-card-title { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; line-height: 1.4; }
.article-card-excerpt { font-size: .84rem; color: #666; line-height: 1.7; flex: 1; }
.article-card-footer { padding: 0 20px 16px; display: flex; justify-content: space-between; align-items: center; }
.article-card-read { font-size: .8rem; font-weight: 600; color: #04A5B5; text-decoration: none; }
.article-card-time { font-size: .75rem; color: #bbb; }

.articles-empty { text-align: center; padding: 60px 20px; color: #999; font-size: .95rem; }

.articles-pagination { display: flex; justify-content: center; margin-top: 32px; }
.articles-pagination .pagination { display: flex; gap: 4px; list-style: none; padding: 0; }
.articles-pagination .page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: .82rem; font-weight: 600; color: #555; background: #f5f5f5; text-decoration: none; transition: all .2s; }
.articles-pagination .page-link:hover { background: #04A5B5; color: #fff; }
.articles-pagination .active .page-link { background: #04A5B5; color: #fff; }

/* --- Show page --- */
.article-show-hero { background: linear-gradient(135deg, #024A57, #04A5B5); padding: 48px 0 36px; text-align: center; }
.article-show-hero h1 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 10px; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.4; }
.article-show-meta { display: flex; gap: 16px; justify-content: center; align-items: center; font-size: .82rem; color: rgba(255,255,255,.6); }
.article-show-meta span { display: flex; align-items: center; gap: 4px; }

.article-show-wrap { max-width: 800px; margin: 0 auto; padding: 40px 16px 72px; }

.article-show-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 32px; }

.article-body { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 36px 40px; }
.article-body h2 { font-size: 1.15rem; font-weight: 700; color: #024A57; margin: 32px 0 14px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 { font-size: 1.02rem; font-weight: 700; color: #333; margin: 24px 0 10px; }
.article-body p { font-size: .88rem; line-height: 1.9; color: #444; margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { font-size: .86rem; line-height: 1.8; color: #555; margin-bottom: 4px; }
.article-body strong { color: #1a1a1a; }
.article-body a { color: #04A5B5; text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .84rem; }
.article-body table th { background: #024A57; color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.article-body table td { padding: 10px 14px; border-bottom: 1px solid #eee; color: #555; }
.article-body table tr:hover td { background: #f9fafb; }
.article-body blockquote { border-left: 4px solid #04A5B5; margin: 20px 0; padding: 12px 20px; background: #f0fafb; border-radius: 0 8px 8px 0; }
.article-body blockquote p { color: #024A57; margin-bottom: 0; }
.article-body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.article-body hr { border: none; border-top: 1px solid #eee; margin: 28px 0; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.article-tag { padding: 4px 14px; border-radius: 16px; font-size: .78rem; font-weight: 600; background: #E8F8FA; color: #04A5B5; }

.article-share { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.article-share span { font-size: .82rem; font-weight: 600; color: #999; }
.article-share a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; color: #555; text-decoration: none; font-size: .85rem; transition: all .2s; }
.article-share a:hover { background: #04A5B5; color: #fff; }

/* --- Related --- */
.article-related { margin-top: 48px; }
.article-related h2 { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }
.article-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .article-related-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
    .article-body { padding: 24px 20px; }
    .article-show-hero h1 { font-size: 1.3rem; padding: 0 16px; }
}
