/* ==========================================================================
   Bellesg Family - Modern Home & Family Lifestyle Theme
   Author: Ban Biên Tập Bellesg Family
   ========================================================================== */

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #14b8a6;
  --secondary: #059669;
  --accent: #f59e0b;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.68;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-dark); }

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

/* Header & Navigation Chống rớt dòng */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
}

.brand-logo span {
  color: var(--secondary);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background-color: #f0fdf4;
}

.nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: 30px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px;
}

/* Breakpoint 1100px chống vỡ menu */
@media (max-width: 1100px) {
  .mobile-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .nav-cta { width: 100%; text-align: center; margin-top: 8px; }
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.hero-banner h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-banner p {
  font-size: 1.15rem;
  max-width: 820px;
  margin: 0 auto 24px;
  opacity: 0.95;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Breadcrumb */
.breadcrumb-nav {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
}
.breadcrumb-list li+li:before {
  content: "/";
  margin-right: 8px;
  color: #94a3b8;
}

/* Main Layout */
.layout-wrapper {
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 36px;
  margin: 40px 0 60px;
}

@media (max-width: 992px) {
  .layout-wrapper { grid-template-columns: 1fr; }
}

/* Article & Content */
.main-content {
  background: #ffffff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.article-header { margin-bottom: 28px; }
.article-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.content-body h2 {
  font-size: 1.55rem;
  color: var(--primary-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ccfbf1;
}

.content-body h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin: 24px 0 12px;
}

.content-body p { margin-bottom: 18px; text-align: justify; }
.content-body ul, .content-body ol { margin: 0 0 20px 24px; }
.content-body li { margin-bottom: 8px; }

/* Callout Box & Alert */
.info-box {
  background: #f0fdf4;
  border-left: 4px solid var(--secondary);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.warning-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

/* Comparison Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.data-table th, .data-table td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--primary-dark);
}

/* FAQ Section */
.faq-block {
  margin-top: 40px;
  border-top: 2px solid var(--border-color);
  padding-top: 30px;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  background: #f8fafc;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 18px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ccfbf1;
}

.widget-links { list-style: none; }
.widget-links li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}
.widget-links li:last-child { border-bottom: none; }
.widget-links a { font-weight: 600; color: #334155; }
.widget-links a:hover { color: var(--primary); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 0.88rem;
}
