/* ================= BASE ================= */
:root {
  --primary-green: #059669;
  --primary-green-hover: #047857;
  --light-green: #10b981;
  --yellow: #facc15;
  --dark: #111;
  --text-main: #333;
  --text-muted: #666;
  --bg-light: #f9f9f9;
  --border: #e5e5e5;
  --white: #fff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: all 0.2s; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
ul { list-style: none; }
.container { width: 1200px; max-width: 94%; margin: 0 auto; }
.right-align { text-align: right; }

/* ================= TOP LANGUAGE ================= */
.top-language { background: #fff; padding: 5px 0; border-bottom: 1px solid var(--border); }
.lang-btn { font-size: 12px; font-weight: 600; color: #555; cursor: pointer; }

/* ================= HEADER ================= */
.site-header { background: #fff; }
.header-inner { text-align: center; padding: 25px 0; }
.logo { display: inline-flex; align-items: center; gap: 5px; }
.logo-icon { display: flex; gap: 2px; }
.logo-icon span { 
  width: 36px; height: 48px; display: flex; align-items: center; justify-content: center; 
  font-size: 32px; font-weight: 900; border-radius: 6px; color: #fff;
}
.l-green { background: var(--primary-green); }
.l-yellow { background: var(--yellow); color: var(--dark) !important; border-radius: 50% !important; }
.logo-text { font-size: 48px; font-weight: 900; letter-spacing: -2px; color: var(--dark); }

.main-nav-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-light); }
.nav-inner { display: flex; align-items: center; gap: 25px; padding: 12px 0; }
.nav-inner a { font-size: 13px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-inner a:hover, .nav-inner a.active { color: var(--primary-green); }
.nav-search { margin-left: auto; font-size: 18px; cursor: pointer; }

/* ================= BANNER ================= */
.banner-ad { margin: 20px 0; }
.banner-ad img { width: 100%; border-radius: 4px; }

/* ================= SECTIONS ================= */
.section-block { margin-bottom: 40px; }
.sec-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.sec-header h2, .sec-header h1 { font-size: 18px; font-weight: 800; color: var(--dark); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; margin: 0; }
.sec-line { flex: 1; height: 1px; background: var(--border); }

/* Slots Grid */
.slots-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; }
.sf-card { position: relative; border-radius: 4px; overflow: hidden; display: block; }
.sf-card img { height: 320px; width: 100%; transition: transform 0.3s; }
.sf-card:hover img { transform: scale(1.05); }
.sf-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 15px 15px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-size: 15px; font-weight: 600; }

.slots-small-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.ss-card { position: relative; border-radius: 4px; overflow: hidden; display: block; background: #fff; border: 1px solid var(--border); }
.ss-card img { height: 100px; width: 100%; }
.ss-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 8px 8px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; }
.ss-card.text-only { background: #555; color: #fff; display: flex; align-items: center; justify-content: center; padding: 15px; text-align: center; font-size: 12px; font-weight: 600; }

/* News Grid */
.news-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.list-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.news-card { display: block; }
.news-card img { height: 140px; width: 100%; border-radius: 4px; margin-bottom: 10px; transition: opacity 0.3s; }
.news-card:hover img { opacity: 0.8; }
.nc-tag { font-size: 12px; font-weight: 700; color: var(--primary-green); display: block; margin-bottom: 5px; }
.news-card h3 { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--dark); }
.news-card p { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Carousel Nav */
.carousel-nav { display: flex; gap: 5px; margin-top: 15px; }
.nav-btn { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; cursor: pointer; border-radius: 4px; color: #888; }
.nav-btn:hover { background: var(--bg-light); color: var(--dark); }

/* ================= FOOTER ================= */
.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 60px; }
.footer-top { display: flex; align-items: flex-start; gap: 40px; padding: 40px 0; }
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.footer-logo .logo-icon span { width: 24px; height: 32px; font-size: 22px; }
.footer-logo .logo-text { font-size: 28px; }
.footer-about h3 { font-size: 16px; font-weight: 800; margin-bottom: 15px; color: var(--dark); }
.footer-about p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; max-width: 600px; }
.footer-about a { color: var(--primary-green); font-weight: 600; }

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-light); color: var(--dark); font-weight: bold; font-size: 16px; border: 1px solid var(--border); }
.footer-social a:hover { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

.footer-bottom { background: var(--dark); color: #fff; padding: 15px 0; }
.fb-inner { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.fb-right { display: flex; align-items: center; gap: 10px; }
.badge-18 { border: 1px solid #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 11px; }

/* ================= ARTICLE PAGE ================= */
.article-container { padding: 40px 0; }
.article-wrapper { max-width: 800px; margin: 0 auto; }
.article-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 30px; }
.article-header h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: var(--dark); }
.article-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 14px; }
.article-content { font-size: 16px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 24px; margin: 30px 0 15px; color: var(--dark); }
.article-footer { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 20px; }
.article-nav { display: flex; justify-content: space-between; }
.article-nav div { flex: 1; }
.article-nav .nav-next { text-align: right; }
.article-nav span { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 5px; text-transform: uppercase; font-weight: 700; }
.article-nav a { color: var(--primary-green); font-weight: 700; font-size: 15px; }

/* ================= PAGINATION ================= */
.custom-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.custom-pagination a, .custom-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; background: #fff; border: 1px solid var(--border); color: var(--dark); border-radius: 4px; font-weight: 600; font-size: 14px; }
.custom-pagination a:hover, .custom-pagination .current { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .slots-featured { grid-template-columns: 1fr 1fr; }
  .slots-small-grid, .news-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .list-news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
  .slots-featured { grid-template-columns: 1fr; }
  .sf-card img { height: 250px; }
  .slots-small-grid, .news-grid-5, .list-news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-about { text-align: center; }
  .footer-social { justify-content: center; }
  .article-header h1 { font-size: 28px; }
  .article-nav { flex-direction: column; gap: 20px; }
  .article-nav .nav-next { text-align: left; }
}
@media (max-width: 480px) {
  .slots-small-grid, .news-grid-5, .list-news-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 32px; }
  .logo-icon span { width: 24px; height: 32px; font-size: 22px; }
}