﻿:root {
  --primary: rgb(48,209,88);
  --primary-hover: rgb(40,180,75);
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


.header { background: var(--bg-dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.logo span { display: inline-block; font-size: 22px; font-weight: 800; line-height: 1; color: #fff; white-space: nowrap; }
.desktop-nav { display: flex; gap: 24px; align-items: center; }
.desktop-nav a { color: #f8fafc; font-size: 16px; font-weight: 500; }
.desktop-nav a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; cursor: pointer; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; }
.drawer { position: fixed; top: 0; left: -320px; width: 280px; height: 100%; background: #fff; z-index: 1000; transition: left 0.3s ease; display: flex; flex-direction: column; }
.drawer.active { left: 0; }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.drawer-header .logo span { color: var(--text-main); }
.close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); }
.drawer-nav { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.drawer-nav a { font-size: 16px; color: var(--text-main); padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; font-weight: 500; }
.drawer-nav a:hover { color: var(--primary); }
.footer { background: var(--bg-dark); color: #94a3b8; padding: 60px 0 24px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .logo span { color: #fff; }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.8; max-width: 400px; }
.footer-nav h4 { color: #f8fafc; margin-bottom: 20px; font-size: 18px; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 24px; font-size: 14px; }

@media(max-width: 768px){
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
}


.t-header { background: #fff; padding: 50px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.t-badge { display: inline-block; background: rgba(48,209,88,0.1); color: var(--primary); padding: 6px 12px; border-radius: 4px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.t-title { font-size: 32px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.t-desc { font-size: 16px; color: var(--text-muted); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.article-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: all 0.3s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary); }
.card-img { display: block; overflow: hidden; }
.card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .card-img img { transform: scale(1.05); }
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.card-tags { font-size: 12px; color: var(--primary); font-weight: 500; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-weight: 500; transition: all 0.3s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }