*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c0392b;
  --red-dark: #a93226;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-400: #9aa0a6;
  --gray-600: #5f6368;
  --gray-800: #202124;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 2px 8px rgba(0,0,0,.15);
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--font); background: var(--gray-50); color: var(--gray-800); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* HEADER */
.site-header { background: var(--red); color: var(--white); box-shadow: var(--shadow-md); position: sticky; top: 0; z-index: 100; }
.header-top { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: #ffd700; }
.search-bar { flex: 1; max-width: 480px; display: flex; background: rgba(255,255,255,.15); border-radius: 24px; overflow: hidden; }
.search-bar input { flex: 1; background: none; border: none; outline: none; padding: 8px 16px; color: var(--white); font-size: .9rem; }
.search-bar input::placeholder { color: rgba(255,255,255,.7); }
.search-bar button { background: none; border: none; padding: 0 14px; cursor: pointer; color: var(--white); font-size: 1rem; }
.header-date { font-size: .8rem; opacity: .85; white-space: nowrap; margin-left: auto; }

.nav-bar { background: var(--red-dark); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { display: block; padding: 10px 14px; color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: all .15s; border-bottom: 2px solid transparent; }
.nav-inner a:hover, .nav-inner a.active { color: var(--white); border-bottom-color: #ffd700; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* FEATURED */
.featured-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--gray-800); box-shadow: var(--shadow-md); margin-bottom: 24px; }
.featured-card .img-wrap { height: 420px; }
@media (max-width: 600px) { .featured-card .img-wrap { height: 240px; } }
.featured-card .img-wrap img { height: 100%; }
.featured-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%); padding: 40px 24px 24px; color: var(--white); }
.featured-overlay .cat-badge { display: inline-block; background: var(--red); padding: 3px 10px; border-radius: 3px; font-size: .78rem; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.featured-overlay h2 { font-size: 1.55rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.featured-overlay h2 a:hover { color: #ffd700; }
.featured-overlay .summary { font-size: .9rem; opacity: .9; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-overlay .meta { font-size: .78rem; opacity: .75; }

/* SECTION TITLE */
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title h2 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.section-title .bar { width: 3px; height: 20px; background: var(--red); border-radius: 2px; }

/* ARTICLE GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 750px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card .img-wrap { height: 180px; overflow: hidden; }
.article-card .img-wrap img { height: 100%; transition: transform .3s; }
.article-card:hover .img-wrap img { transform: scale(1.04); }
.article-card .card-body { padding: 14px; }
.article-card .cat-badge { display: inline-block; color: var(--red); font-size: .74rem; font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.article-card h3 { font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.article-card h3 a:hover { color: var(--red); }
.article-card .summary { font-size: .82rem; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.article-card .meta { font-size: .75rem; color: var(--gray-400); }

/* LIST STYLE (category/search) */
.articles-list { display: flex; flex-direction: column; gap: 20px; }
.list-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 200px 1fr; }
@media (max-width: 600px) { .list-card { grid-template-columns: 120px 1fr; } }
.list-card .img-wrap { height: 140px; overflow: hidden; }
.list-card .img-wrap img { height: 100%; transition: transform .3s; }
.list-card:hover .img-wrap img { transform: scale(1.04); }
.list-card .card-body { padding: 16px; }
.list-card .cat-badge { color: var(--red); font-size: .74rem; font-weight: 600; text-transform: uppercase; display: inline-block; margin-bottom: 6px; }
.list-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.list-card h3 a:hover { color: var(--red); }
.list-card .summary { font-size: .85rem; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.list-card .meta { font-size: .75rem; color: var(--gray-400); }
.no-image-card { grid-template-columns: 1fr; }

/* SIDEBAR */
.sidebar {}
.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 20px; }
.widget-title { font-size: .95rem; font-weight: 700; color: var(--gray-800); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--red); display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ''; width: 3px; height: 16px; background: var(--red); }

.cat-list { list-style: none; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { font-size: .88rem; color: var(--gray-800); transition: color .15s; }
.cat-list a:hover { color: var(--red); }
.cat-list .count { font-size: .75rem; background: var(--gray-100); color: var(--gray-600); padding: 2px 7px; border-radius: 10px; }

.recent-list { list-style: none; }
.recent-list li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.recent-list li:last-child { border-bottom: none; }
.recent-list .thumb { width: 72px; height: 52px; border-radius: 4px; overflow: hidden; }
.recent-list .thumb img { height: 100%; }
.recent-list .info a { font-size: .83rem; font-weight: 500; line-height: 1.4; color: var(--gray-800); display: block; margin-bottom: 4px; }
.recent-list .info a:hover { color: var(--red); }
.recent-list .info .date { font-size: .73rem; color: var(--gray-400); }

/* ARTICLE DETAIL */
.article-detail { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
@media (max-width: 600px) { .article-detail { padding: 20px 16px; } }
.article-detail .cat-badge { display: inline-block; background: var(--red); color: var(--white); padding: 4px 12px; border-radius: 3px; font-size: .78rem; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.article-detail h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.3; margin-bottom: 14px; color: var(--gray-800); }
@media (max-width: 600px) { .article-detail h1 { font-size: 1.4rem; } }
.article-detail .article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--gray-600); padding: 14px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; }
.article-detail .article-meta span { display: flex; align-items: center; gap: 5px; }
.article-detail .hero-img { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; max-height: 480px; }
.article-detail .hero-img img { max-height: 480px; border-radius: var(--radius); }
.article-detail .summary-lead { font-size: 1.05rem; font-weight: 500; color: var(--gray-800); border-left: 3px solid var(--red); padding-left: 16px; margin-bottom: 24px; line-height: 1.7; }
.article-content { font-size: .96rem; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; color: var(--gray-800); }
.article-content h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 10px; }
.article-content img { border-radius: var(--radius); margin: 16px 0; max-height: 400px; object-fit: contain; }
.article-content blockquote { border-left: 3px solid var(--red); padding: 8px 16px; margin: 20px 0; background: var(--gray-50); font-style: italic; color: var(--gray-600); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 6px; }

.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.tags-wrap .tag { background: var(--gray-100); color: var(--gray-600); padding: 4px 12px; border-radius: 20px; font-size: .8rem; transition: all .15s; }
.tags-wrap .tag:hover { background: var(--red); color: var(--white); }

.related-section { margin-top: 32px; }

/* PAGE HEADER */
.page-header { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 24px; }
.page-header h1 { font-size: 1.4rem; font-weight: 700; }
.page-header h1 span { color: var(--red); }
.page-header p { font-size: .88rem; color: var(--gray-600); margin-top: 4px; }
.breadcrumb { font-size: .82rem; color: var(--gray-400); margin-bottom: 8px; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--red); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: .95rem; }

/* FOOTER */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,.7); margin-top: 48px; padding: 32px 16px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-logo span { color: #ffd700; }
.footer-desc { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { font-size: .85rem; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* PLACEHOLDER IMAGE */
.img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 2rem; }
