/* Trang Tài liệu / Knowledge Base — template page-landing-tai-lieu.php */

/* ──────────────────────────────────────────────────────── HERO */
.docs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #060f1e 0%, #0c1e3a 50%, #0d2d52 100%);
  padding: 3.5rem 1.5rem 3.75rem;
  color: #fff;
}

.docs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 15% 30%, rgba(14,165,233,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 70%, rgba(99,102,241,0.14) 0%, transparent 50%);
}

.docs-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.7) 40%, rgba(99,102,241,0.5) 65%, transparent);
}

.docs-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.docs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.docs-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #fff;
}

.docs-hero-desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 520px;
}

/* Thanh tìm kiếm */
.docs-hero-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  overflow: hidden;
  max-width: 560px;
  margin-bottom: 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-hero-search:focus-within {
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
}

.docs-hero-search-icon {
  padding: 0 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.docs-hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 0.5rem 0.9rem 0;
  font-size: 0.95rem;
  color: #fff;
  font-family: inherit;
  min-width: 0;
}

.docs-hero-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.docs-hero-search-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  cursor: pointer;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  font-family: inherit;
  white-space: nowrap;
  align-self: stretch;
  transition: opacity 0.2s;
}

.docs-hero-search-btn:hover {
  opacity: 0.88;
}

/* Quick links */
.docs-hero-quick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.docs-hero-quick-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.docs-hero-quick-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, color 0.2s;
}

.docs-hero-quick-link:hover {
  background: rgba(14,165,233,0.2);
  color: #38bdf8;
}

/* Stats bên phải hero */
.docs-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.docs-stat {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  text-align: center;
  min-width: 130px;
}

.docs-stat-num {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.docs-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────── NHÓM */
.docs-groups {
  padding: 3rem 1.5rem 3.5rem;
  max-width: 1240px;
}

.docs-groups-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  letter-spacing: -0.025em;
  margin: 0 0 1.75rem;
}

.docs-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.docs-group-card {
  background: var(--bg-card, #fff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.docs-group-card:hover {
  border-color: rgba(14,165,233,0.3);
  box-shadow: 0 12px 36px rgba(14,165,233,0.08);
  transform: translateY(-3px);
}

.docs-group-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0;
  line-height: 1.3;
}

.docs-group-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.55;
}

.docs-group-list {
  list-style: none !important;
  margin: 0.25rem 0 0;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.docs-group-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  list-style: none !important;
}

.docs-group-item svg {
  flex-shrink: 0;
  color: var(--accent, #0ea5e9);
  margin-top: 0.1rem;
}

.docs-group-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border, #e2e8f0);
  margin-top: auto;
}

.docs-group-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent, #0ea5e9);
  text-decoration: none;
  transition: gap 0.2s;
}

.docs-group-link:hover {
  gap: 0.5rem;
  color: var(--btn-primary-hover, #0284c7);
}

/* ──────────────────────────────────────────────────────── CTA */
.docs-cta {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
  padding: 2.5rem 1.5rem;
}

.docs-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.docs-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0369a1;
  box-shadow: 0 4px 16px rgba(14,165,233,0.12);
}

.docs-cta-text {
  flex: 1;
  min-width: 220px;
}

.docs-cta-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.docs-cta-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted, #64748b);
  line-height: 1.55;
}

.docs-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.docs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.docs-cta-btn--primary {
  background: var(--accent, #0ea5e9);
  color: #fff;
  border: 2px solid var(--accent, #0ea5e9);
}

.docs-cta-btn--primary:hover {
  background: var(--btn-primary-hover, #0284c7);
  border-color: var(--btn-primary-hover, #0284c7);
  transform: translateY(-2px);
}

.docs-cta-btn--ghost {
  background: transparent;
  color: var(--accent, #0ea5e9);
  border: 2px solid var(--accent, #0ea5e9);
}

.docs-cta-btn--ghost:hover {
  background: var(--accent-soft, #e0f2fe);
}

/* ──────────────────────────────────────────────────────── RESPONSIVE */
@media (max-width: 1024px) {
  .docs-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .docs-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-hero-stats {
    flex-direction: row;
    justify-content: center;
  }

  .docs-stat {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .docs-hero {
    padding: 2.5rem 1rem 3rem;
  }

  .docs-hero-title {
    font-size: 1.6rem;
  }

  .docs-groups-grid {
    grid-template-columns: 1fr;
  }

  .docs-groups {
    padding: 2rem 1rem 2.5rem;
  }

  .docs-hero-search {
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .docs-hero-search-btn {
    width: 100%;
    padding: 0.7rem;
    text-align: center;
    justify-content: center;
  }

  .docs-hero-stats {
    flex-direction: column;
  }

  .docs-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .docs-cta-actions {
    justify-content: center;
  }

  .docs-cta-icon {
    margin: 0 auto;
  }
}
