/* ==========================================================================
   HoaHocTro.com.vn - Gen Z Youth & School Life Theme
   ========================================================================== */

:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --secondary: #fb923c;
  --accent: #8b5cf6;
  --bg-light: #fff1f2;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #fecdd3;
  --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: #fffafb;
  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 & Nav */
.site-header {
  background: #ffffff;
  border-bottom: 2px solid #fecdd3;
  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);
  white-space: nowrap;
}

.brand-logo svg { width: 36px; height: 36px; }
.brand-logo span { color: var(--secondary); font-weight: 700; }

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

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

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

.nav-cta {
  background: linear-gradient(135deg, #e11d48 0%, #fb923c 100%);
  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(225, 29, 72, 0.25);
}

.nav-cta:hover { opacity: 0.9; }

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

@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; }
}

/* Banner */
.hero-banner {
  background: linear-gradient(135deg, #e11d48 0%, #fb923c 100%);
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
}

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

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

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

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

/* 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.05rem;
  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.5rem;
  color: var(--primary-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffe4e6;
}

.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; }

/* Alerts */
.info-box {
  background: #fff1f2;
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

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

/* Data 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: #fff5f5; font-weight: 700; color: var(--primary-dark); }

/* FAQ */
.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: #fff5f5;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.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 #ffe4e6;
}
.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: #1e1b4b;
  color: #cbd5e1;
  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: #cbd5e1; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #312e81;
  font-size: 0.88rem;
}
