:root {
  --brand: #8f2c24;
  --brand-600: #7a2420;
  --brand-700: #651d1a;
  --brand-50: #faf7f6;
  --brand-100: #f5e6e4;
  --accent: #f59e0b;
  --accent-100: #fef3c7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --primary: #8f2c24;
  --primary-foreground: #fff;
  --ring: rgba(143, 44, 36, 0.25);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, Segoe UI,
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
}

.text-brand {
  color: var(--brand) !important;
}
.bg-brand {
  background: var(--brand) !important;
}
.bg-brand-soft {
  background: var(--brand-50) !important;
}
.bg-accent-soft {
  background: var(--accent-100) !important;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff;
  border: 0;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(143, 44, 36, 0.25);
  transition: 0.25s;
}
.btn-brand:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
}

.shadow-soft {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -6px rgba(0, 0, 0, 0.05);
}
.shadow-xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.rounded-2xl {
  border-radius: 1.25rem;
}
.rounded-3xl {
  border-radius: 2rem;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
@media (max-width: 991.98px) {
  .navbar .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }
  .navbar .navbar-collapse.show {
    padding: 0.5rem 0 1rem;
  }
  .navbar .navbar-nav {
    width: 100%;
    gap: 0.25rem;
  }
  .navbar .nav-link {
    padding-left: 0;
  }
  .navbar-toggler {
    margin-left: auto;
    padding: 0.4rem 0.6rem;
    border-radius: 0.75rem;
  }
}

/* Hero */
.hero {
  background: linear-gradient(
    135deg,
    var(--brand) 0%,
    var(--brand-600) 50%,
    #2d1b69 100%
  );
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 600px at 20% -10%,
      rgba(255, 255, 255, 0.15),
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 100% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 70%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    text-align: center;
  }
  .display-4 {
    font-size: 2.4rem;
  }
}

/* Feature cards */
.feature-card {
  transition: 0.25s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Stats */
.stat-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Table */
.modern-table {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}
.modern-table .table {
  margin-bottom: 0;
}
.modern-table thead th {
  background: var(--gray-50);
  border: 0;
  font-weight: 600;
  color: var(--gray-600);
  padding: 1rem;
}
.modern-table tbody td {
  border: 0;
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem;
}

/* Contact (NEW): 2-column layout */
.contact-wrap {
  position: relative;
}
.contact-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.contact-side {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff;
  border-radius: 1.25rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.contact-side::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      300px 200px at 20% 20%,
      rgba(255, 255, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      260px 220px at 80% 60%,
      rgba(255, 255, 255, 0.18),
      transparent 70%
    );
}
.contact-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.contact-form .form-control,
.contact-form .form-select {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: 0.2s;
}
.contact-form textarea.form-control {
  height: auto;
  min-height: 140px;
  resize: vertical;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem var(--ring);
}
.contact-form .btn {
  white-space: nowrap; /* không xuống hàng */
  display: inline-flex; /* icon + text canh giữa */
  align-items: center;
  gap: 6px; /* khoảng cách icon - chữ */
  padding: 0.6rem 1.2rem; /* nới padding */
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #cbd5e1;
}
.site-footer .footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.site-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer .social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  margin-right: 0.5rem;
}
.site-footer .social a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Utilities */
.py-7 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}
.mb-6 {
  margin-bottom: 3.5rem !important;
}
.p-lg-6 {
  padding: 3.5rem !important;
}
@media (max-width: 991.98px) {
  .py-7 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .mb-6 {
    margin-bottom: 2.5rem !important;
  }
  .p-lg-6 {
    padding: 2.5rem !important;
  }
}
img,
svg {
  max-width: 100%;
  height: auto;
}
/* ===== Fix khoảng cách hero -> section đầu ở mobile ===== */
@media (max-width: 768px) {
  /* thêm đệm dưới cho hero và bo góc nhẹ để tách nền */
  header.hero {
    padding-bottom: 1.25rem; /* đệm dưới */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  /* nới khoảng cách cho section ngay sau hero */
  header.hero + section {
    margin-top: 16px; /* ~1rem */
  }
}

/* tuỳ chọn: tạo bóng nhẹ dưới hero để tách nền rõ hơn */
@media (max-width: 768px) {
  header.hero {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
}
/* ===== Modern Table ===== */
.table-modern.card { border: 0; border-radius: 1.25rem; overflow: hidden; }

.table-modern .card-header { 
  background: #fff; 
  border: 0; 
  padding: 1.25rem 1.25rem 0.75rem;
}

.table-modern .card-footer { border: 0; background: #fff; }

.table-modern .table-responsive { border-top: 1px solid var(--gray-100); }

.table-modern .table { margin: 0; }

.table-modern .table thead th {
  background: linear-gradient(180deg,#fafafa, #f4f5f7);
  position: sticky; top: 0; z-index: 1;
  border: 0; padding: 0.9rem 1rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .3px; color: var(--gray-600);
  text-transform: uppercase;
}

.table-modern .table tbody td {
  border-color: var(--gray-100);
  padding: 1rem;
  vertical-align: middle;
}

.table-modern .table tbody tr:nth-child(even) td { background: #fcfcfc; }
.table-modern .table tbody tr:hover td { background: #fff7f6; }

.table-modern .icon-cell {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}

.table-modern .stack-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #f3f4f6; color: #111827;
  border-radius: 9999px; padding: .35rem .6rem; font-size: .85rem; font-weight: 600;
}

.table-modern .chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(143,44,36,.08); color: var(--brand);
  border-radius: 9999px; padding: .35rem .6rem; font-size: .8rem; font-weight: 600;
}

.table-modern .note-end { color: #6b7280; font-size: .9rem; }

/* small screens: compact paddings */
@media (max-width: 576px){
  .table-modern .card-header { padding: 1rem; }
  .table-modern .table thead th, 
  .table-modern .table tbody td { padding: .75rem .85rem; }
}
