/* Modern Portal Styling for amway.24g.vn */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
  --primary: #0b2545;
  --primary-light: #134074;
  --secondary: #0077b6;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --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;
}

/* Reading Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0077b6, #d97706);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.top-bar {
  background-color: #06182c;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header {
  background-color: var(--primary);
  color: #ffffff;
  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: 16px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.logo-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.logo-text h1, .logo-text span {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}
.logo-text small {
  display: block;
  font-size: 0.75rem;
  color: #93c5fd;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: #38bdf8;
}
.nav-cta {
  background: #0284c7;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s ease !important;
}
.nav-cta:hover {
  background: #0369a1 !important;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Breadcrumbs */
.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;
}

/* Fact-Check Callout Box */
.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 / Warning Box */
.alert-box {
  background: var(--accent-light);
  border: 1px solid #fde68a;
  border-left: 6px solid var(--accent);
  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;
}

/* Legal Quote Box */
.legal-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 6px solid #334155;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.93rem;
  color: #334155;
}
.legal-box .legal-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Article Layout */
.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: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  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: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Article Prose */
.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 strong {
  color: #0f172a;
}
.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: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}
.prose tr:nth-child(even) {
  background: #f8fafc;
}

/* FAQ Accordion */
.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;
  transition: background 0.2s ease;
}
.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 */
.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;
  position: relative;
  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;
  transition: color 0.2s ease;
  display: block;
  line-height: 1.45;
}
.widget-list a:hover {
  color: var(--secondary);
}

/* Author Box */
.author-card {
  display: flex;
  gap: 16px;
  align-items: center;
}
.author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Footer */
.site-footer {
  background: #06182c;
  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;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #38bdf8;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .article-content {
    padding: 24px 20px;
  }
  .article-title {
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
