/* ===== BLOG THEME — Tài Chính Thông Minh ===== */
:root {
  --navy: #0a1628;
  --navy-mid: #1a2d4a;
  --blue: #1a3c6e;
  --accent: #e8a020;
  --accent-light: #ffefd0;
  --green: #0a7d4e;
  --red: #c0392b;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 32px; height: 64px; }
.site-logo { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-logo span { color: var(--accent); }
.site-logo:hover { text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,0.12); text-decoration: none; }
.header-cta { background: var(--accent); color: var(--navy) !important; font-weight: 700 !important; border-radius: 8px !important; padding: 10px 18px !important; font-size: 13px !important; white-space: nowrap; }
.header-cta:hover { background: #f5b830 !important; transform: translateY(-1px); }

/* ===== HERO BANNER ===== */
.hero-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%); color: white; padding: 60px 20px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.hero-tag { display: inline-block; background: var(--accent); color: var(--navy); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hero-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.hero-excerpt { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 28px; line-height: 1.6; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--navy); font-weight: 700; padding: 14px 28px; border-radius: 10px; font-size: 15px; transition: all 0.2s; }
.hero-btn:hover { background: #f5b830; transform: translateY(-2px); text-decoration: none; }
.hero-image { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ===== LAYOUT ===== */
.page-container { max-width: 1200px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.page-container.full-width { grid-template-columns: 1fr; }

/* ===== SECTION TITLE ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.section-title { font-size: 20px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--accent); border-radius: 2px; display: block; }
.section-link { font-size: 13px; color: var(--blue); font-weight: 600; }
.section-link:hover { color: var(--accent); }

/* ===== POST CARD ===== */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); transition: all 0.25s; border: 1px solid var(--border); display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.post-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-category { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--navy); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--blue); text-decoration: none; }
.post-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border); }
.post-meta-left { display: flex; align-items: center; gap: 12px; }
.read-time { display: flex; align-items: center; gap: 4px; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.widget-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sidebar-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sidebar-post-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.sidebar-post-title a { color: inherit; }
.sidebar-post-meta { font-size: 11px; color: var(--text-muted); }

/* ===== CTA WIDGET (Sidebar) ===== */
.cta-widget { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: white; border-radius: var(--radius); padding: 24px; text-align: center; }
.cta-widget-icon { font-size: 40px; margin-bottom: 12px; }
.cta-widget h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.cta-widget p { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 16px; line-height: 1.5; }
.cta-code-box { background: rgba(255,255,255,0.1); border: 1px dashed rgba(255,255,255,0.4); border-radius: 8px; padding: 10px; margin-bottom: 16px; }
.cta-code-label { font-size: 11px; color: rgba(255,255,255,0.6); }
.cta-code { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: 2px; }
.cta-btn { display: block; background: var(--accent); color: var(--navy); font-weight: 800; padding: 12px; border-radius: 8px; font-size: 14px; transition: all 0.2s; }
.cta-btn:hover { background: #f5b830; text-decoration: none; transform: translateY(-2px); }

/* ===== ARTICLE CTA BLOCK ===== */
.article-cta { background: linear-gradient(135deg, #0a1628, #1a3c6e); border-radius: 16px; padding: 36px; color: white; text-align: center; margin: 40px 0; position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; background: rgba(232,160,32,0.1); border-radius: 50%; pointer-events: none; }
.article-cta-tag { display: inline-block; background: var(--accent); color: var(--navy); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.article-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 15px; }
.cta-benefits { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.cta-benefit { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.9); }
.article-cta-code { display: inline-block; background: rgba(255,255,255,0.1); border: 2px dashed var(--accent); border-radius: 10px; padding: 12px 24px; margin-bottom: 24px; }
.article-cta-code .label { font-size: 12px; color: rgba(255,255,255,0.6); }
.article-cta-code .code { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: 3px; }
.article-cta-btn { display: inline-block; background: var(--accent); color: var(--navy); font-weight: 800; padding: 16px 36px; border-radius: 12px; font-size: 16px; transition: all 0.2s; }
.article-cta-btn:hover { background: #f5b830; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,160,32,0.4); }
.article-cta-note { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 14px; }

/* ===== ARTICLE PAGE ===== */
.article-header { background: var(--navy); color: white; padding: 48px 20px 40px; }
.article-header-inner { max-width: 860px; margin: 0 auto; }
.article-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.article-breadcrumb a { color: rgba(255,255,255,0.6); }
.article-title { font-size: 30px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.article-meta-bar { display: flex; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.article-meta-bar span { display: flex; align-items: center; gap: 6px; }
.article-body { max-width: 860px; margin: 0 auto; padding: 40px 20px 60px; }
.article-thumbnail { border-radius: 16px; overflow: hidden; margin-bottom: 36px; }
.article-thumbnail img { width: 100%; max-height: 460px; object-fit: cover; }
.article-content { font-size: 16px; line-height: 1.85; color: #2d3748; }
.article-content h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 36px 0 14px; padding-left: 16px; border-left: 4px solid var(--accent); }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--navy-mid); margin: 28px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 16px 0 18px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-content table th, .article-content table td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.article-content table th { background: var(--navy); color: white; font-weight: 700; }
.article-content table tr:nth-child(even) { background: var(--bg); }
.article-content strong { color: var(--navy); }
.article-content em { color: var(--text-muted); }
.article-disclaimer { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--text-muted); border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 40px; font-size: 13px; color: var(--text-muted); }

/* ===== STATIC PAGES ===== */
.static-page { max-width: 860px; margin: 0 auto; padding: 48px 20px; }
.static-page h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.static-page .lead { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.static-page h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.static-page p { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.static-page ul { margin: 12px 0 16px 24px; }
.static-page li { margin-bottom: 8px; line-height: 1.7; }

/* ===== CONTACT FORM ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.contact-form { background: white; padding: 36px; border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; background: white; color: var(--text); }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,60,110,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #f5b830; }
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card { background: white; padding: 24px; border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; background: var(--accent-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.info-card h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.info-card p { font-size: 13px; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); margin-top: 60px; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 48px 20px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-size: 13px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-disclaimer { max-width: 1200px; margin: 0 auto; padding: 16px 20px 0; font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.6; }

/* ===== CATEGORY TABS ===== */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tab { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-muted); background: white; cursor: pointer; transition: all 0.2s; }
.cat-tab.active, .cat-tab:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); color: var(--text-muted); background: white; transition: all 0.2s; }
.page-btn.active, .page-btn:hover { border-color: var(--blue); color: var(--blue); background: #eff6ff; text-decoration: none; }

/* ===== MOBILE ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin-left: auto; }
.hamburger span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .page-container { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; gap: 4px; }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .site-logo { font-size: 17px; }
  .header-cta { display: none; }
  .hero-title { font-size: 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
  .footer-main { grid-template-columns: 1fr; }
  .cta-benefits { flex-direction: column; align-items: center; }
}

/* ===== ADMIN ===== */
.admin-body { font-family: 'Be Vietnam Pro', sans-serif; background: #f1f5f9; min-height: 100vh; }
.admin-header { background: var(--navy); color: white; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.admin-header h1 { font-size: 17px; font-weight: 700; flex: 1; }
.admin-main { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
.admin-card { background: white; border-radius: 12px; box-shadow: var(--card-shadow); border: 1px solid var(--border); overflow: hidden; }
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h2 { font-size: 17px; font-weight: 700; color: var(--navy); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8fafc; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; vertical-align: middle; }
.admin-table tr:hover td { background: #fafbfc; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
