/* Style for amway.vpage.vn - Chuyên Trang Đánh Giá & Tiêu Dùng Thông Minh */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #064e3b;
  --primary-dark: #022c22;
  --secondary: #059669;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --blue: #0284c7;
  --bg-main: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #059669, #f59e0b);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  background-color: #022c22;
  color: #a7f3d0;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.site-header {
  background-color: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-badge {
  background: var(--accent);
  color: #022c22;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-text h1, .logo-text span {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  white-space: nowrap;
}
.logo-text small {
  display: block;
  font-size: 0.7rem;
  color: #a7f3d0;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.main-nav { flex-shrink: 0; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: inline-block;
}
.main-nav a:hover, .main-nav a.active { color: #fde68a; }

.nav-cta {
  background: var(--secondary);
  color: #fff !important;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease !important;
}
.nav-cta:hover { background: #047857 !important; }

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.breadcrumb { padding: 14px 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

.factcheck-banner {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 6px solid #16a34a;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.factcheck-icon {
  background: #16a34a;
  color: #fff;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.factcheck-body strong { display: block; font-size: 1.05rem; color: #14532d; margin-bottom: 4px; }
.factcheck-body p { color: #166534; font-size: 0.92rem; margin: 0; }

.alert-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 6px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}
.alert-box strong { color: #92400e; display: block; font-size: 1rem; margin-bottom: 4px; }
.alert-box p { color: #78350f; font-size: 0.92rem; margin: 0; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  padding: 30px 0 60px;
}
.article-content {
  background: #fff;
  padding: 36px 42px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.article-tag {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.author-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e293b;
}
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #a7f3d0;
  color: #065f46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.prose { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.prose p { margin-bottom: 1.4rem; }
.prose h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}
.prose ul, .prose ol { margin-bottom: 1.4rem; padding-left: 24px; }
.prose li { margin-bottom: 0.5rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.92rem;
}
.prose th, .prose td { border: 1px solid #cbd5e1; padding: 12px 14px; text-align: left; }
.prose th { background: #f8fafc; font-weight: 700; color: #0f172a; }
.prose tr:nth-child(even) { background: #fcfcfd; }

.faq-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px dashed #e2e8f0; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { background: #f1f5f9; }
.faq-answer { padding: 18px 20px; color: #334155; font-size: 0.95rem; line-height: 1.7; display: none; border-top: 1px solid var(--border); }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
}
.widget-list { list-style: none; }
.widget-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e2e8f0; }
.widget-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget-list a { color: #1e293b; text-decoration: none; font-size: 0.92rem; font-weight: 600; display: block; }
.widget-list a:hover { color: var(--secondary); }

.site-footer {
  background: #022c22;
  color: #94a3b8;
  padding: 50px 0 24px;
  margin-top: 60px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 36px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #a7f3d0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 0.82rem; }

@media (max-width: 1100px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #022c22;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: block !important; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .main-nav a { font-size: 1rem; display: block; width: 100%; padding: 6px 0; }
  .nav-cta { display: inline-block; margin-top: 6px; }
  .menu-toggle { display: block; }
}
@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .top-bar .container { white-space: normal; flex-direction: column; text-align: center; gap: 4px; font-size: 0.78rem; }
  .article-content { padding: 24px 20px; }
  .article-title { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
