/* ============================================================
   BS5 Theme — SaleBaoHiem
   Design: Green insurance brand, Be Vietnam Pro
   ============================================================ */

/* ── TOKENS ── */
:root {
  --p:      #1d7a3a;
  --p2:     #135c2a;
  --p3:     #0d3d1f;
  --pl:     #f0faf3;
  --pl2:    #d8edd9;
  --txt:    #0a1f10;
  --muted:  #6b7c70;
  --border: #e0ece2;
  --radius: 14px;
}

/* ── BASE ── */
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--txt);
}

a { text-decoration: none; transition: color 0.2s; }

img { max-width: 100%; height: auto; }

.hidden { display: none !important; }
.img-responsive { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR ── */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 !important;
  min-height: 68px;
}
.main-nav .navbar-brand img { height: 38px; }
.main-nav .nav-link {
  color: #333 !important; font-size: 14px; font-weight: 500;
  padding: 8px 4px !important; position: relative;
}
.main-nav .nav-link::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--p); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.2s;
}
.main-nav .nav-link:hover { color: var(--p) !important; }
.main-nav .nav-link:hover::before,
.main-nav .nav-item.active > .nav-link::before { transform: scaleX(1); }

/* Navbar toggler */
.main-nav .navbar-toggler { border: none; }
.main-nav .navbar-toggler:focus { box-shadow: none; }

/* Navbar dropdown */
.main-nav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 8px 0;
  white-space: nowrap;
}
.main-nav .dropdown-item {
  font-size: 13px; padding: 8px 16px;
  color: var(--txt); transition: all 0.2s;
}
.main-nav .dropdown-item:hover { background: var(--pl); color: var(--p); }

@keyframes nvDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-nav-phone {
  color: var(--p) !important; font-weight: 700; font-size: 14px;
}
.btn-nav-zalo {
  background: var(--p); color: #fff !important; padding: 9px 20px;
  border-radius: 8px; font-weight: 700; font-size: 13px;
  transition: background 0.2s; white-space: nowrap; display: inline-block;
}
.btn-nav-zalo:hover { background: var(--p2); color: #fff !important; }

/* Header: 2 khối trái / phải */
.main-nav .header-left { flex-shrink: 0; }
.main-nav .header-right {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
@media (min-width: 992px) {
  .main-nav .header-right .navbar-collapse {
    align-items: center;
    justify-content: flex-end;
  }
  .main-nav .header-right .navbar-collapse .nv-block {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 991.98px) {
  /* header-right "biến mất" khỏi flex layout, con cái thành flex item trực tiếp của container */
  .main-nav .header-right { display: contents; }
  /* Toggler đẩy sang phải (margin-left: auto trong flex container) */
  .main-nav .header-right .navbar-toggler { margin-left: auto; }
  /* navbar-collapse kế thừa flex-basis: 100% từ Bootstrap → xuống dòng full width */
}

/* ── BREADCRUMB ── */
.breadcrumb-nav {
  background: url('../images/bg-overlay.jpg') center center / cover no-repeat fixed;
  position: relative;
  text-align: center;
  padding: 48px 0;
  margin-bottom: 20px;
}
.breadcrumb-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.breadcrumb-nav .container { position: relative; z-index: 1; }
.breadcrumb-nav .page-title {
  font-size: 2rem; font-weight: 700; color: #fff;
  margin: 0 0 10px; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.breadcrumb {
  background: transparent; padding: 0; margin: 0;
  font-size: 13px; justify-content: center;
}
.breadcrumb-item a { color: rgba(255,255,255,0.85); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }
.breadcrumb-item.active { color: rgba(255,255,255,0.85); }

/* ── HERO ── */
.hero-section {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #edf8f1 0%, #f3f0fb 50%, #fce9ee 100%);
  min-height: 88vh;
  display: flex; align-items: center;
}
.hero-section::before {
  content: ''; position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,122,58,0.09) 0%, transparent 70%);
  top: -140px; left: -100px; pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,130,210,0.09) 0%, transparent 70%);
  bottom: -60px; left: 32%; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pl); color: var(--p); border: 1px solid var(--pl2);
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 24px;
}
.hero-section h1 {
  font-size: clamp(30px, 3.5vw, 52px); font-weight: 900; color: var(--txt);
  line-height: 1.1;
}
.hero-section h1 .hl { color: var(--p); }
.hero-divider { width: 52px; height: 4px; background: var(--p); border-radius: 2px; margin: 22px 0; }
.hero-section p.lead { font-size: 16px; color: var(--muted); line-height: 1.75; }

.btn-zalo {
  background: #0068ff; color: #fff; padding: 13px 24px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-zalo:hover {
  box-shadow: 0 6px 22px rgba(0,104,255,0.35); transform: translateY(-1px); color: #fff;
}
.btn-call-outline {
  border: 1.5px solid var(--pl2); color: var(--p); padding: 13px 24px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
  background: var(--pl);
}
.btn-call-outline:hover { border-color: var(--p); background: #e4f5e8; color: var(--p); }

.hero-stats { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 36px; }
.stat-n { font-size: 26px; font-weight: 900; color: var(--p); }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.hero-img-wrap {
  position: relative; display: flex;
  justify-content: center; align-items: flex-end; height: 100%;
}
.hero-img-wrap img {
  max-height: 520px; width: auto; max-width: 100%;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.10));
  position: relative; z-index: 1;
}
.hero-float-badge {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hero-float-badge.top  { top: 18%; left: 0; }
.hero-float-badge.bottom { bottom: 16%; right: 0; }
.hfb-icon { font-size: 20px; }
.hfb-n { font-size: 14px; font-weight: 900; color: var(--p); }
.hfb-l { font-size: 11px; color: #888; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--pl);
  border-top: 1px solid var(--pl2);
  border-bottom: 1px solid var(--pl2);
  padding: 18px 0;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--p2);
}
.trust-item span:first-child { font-size: 18px; }

/* ── SECTION COMMONS ── */
.section-label {
  font-size: 11px; font-weight: 700; color: var(--p);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 2.5vw, 34px); font-weight: 800; color: var(--txt);
}
.section-heading {
  font-size: clamp(20px, 2vw, 28px); font-weight: 800; color: var(--txt);
}
.section-sub {
  font-size: 14px; color: var(--muted); margin-top: 8px;
}
.news-arrows { display: flex; gap: 8px; }

/* ── PRODUCTS ── */
.products-section { background: #fff; padding: 80px 0; }
.prod-card {
  background: var(--pl); border: 1.5px solid var(--pl2);
  border-radius: var(--radius); padding: 28px 16px;
  text-align: center; text-decoration: none; display: block;
  transition: all 0.25s; height: 100%;
}
.prod-card:hover {
  background: var(--p); border-color: var(--p);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(29,122,58,0.2);
}
.prod-card:hover .prod-name { color: #fff; }
.prod-card:hover .prod-sub  { color: rgba(255,255,255,0.65); }
.prod-card:hover .prod-arrow { color: rgba(255,255,255,0.8); }
.prod-icon  { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.prod-emoji { font-size: 32px; }
.prod-thumb { width: 48px; height: 48px; object-fit: contain; }
.prod-name  { font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 4px; transition: color 0.25s; }
.prod-sub   { font-size: 11px; color: var(--muted); transition: color 0.25s; }
.prod-arrow { font-size: 15px; color: var(--p); margin-top: 14px; transition: color 0.25s; }

/* ── USP ── */
.usp-section { background: var(--p3); padding: 80px 0; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px; border-radius: 16px; overflow: hidden;
}
.usp-cell {
  background: rgba(255,255,255,0.04); padding: 40px 28px;
  transition: background 0.2s; position: relative;
}
.usp-cell::before {
  content: attr(data-n); position: absolute; top: 16px; right: 16px;
  font-size: 11px; color: rgba(255,255,255,0.2); font-weight: 700;
}
.usp-cell:hover { background: rgba(255,255,255,0.07); }
.usp-big { font-size: 44px; font-weight: 900; color: #5dde80; margin-bottom: 8px; }
.usp-h   { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.usp-p   { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ── NEWS ── */
.news-section { background: #fff; padding: 80px 0; overflow: hidden; }
.news-scroll-outer { overflow: hidden; }
.news-scroll {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 0 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.news-scroll::-webkit-scrollbar { display: none; }
.news-scroll::before { content: ''; flex: 0 0 calc(max(24px, (100% - 1320px)/2 + 24px)); }
.news-scroll::after  { content: ''; flex: 0 0 calc(max(24px, (100% - 1320px)/2 + 24px)); }
.nc-card {
  flex: 0 0 300px; scroll-snap-align: start;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: block;
  transition: box-shadow 0.25s, transform 0.25s; background: #fff; color: var(--txt);
}
.nc-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,.10); transform: translateY(-3px); }
.nc-card.featured { flex: 0 0 380px; }
.nc-img {
  height: 185px;
  background: linear-gradient(135deg, var(--p) 0%, #5dde80 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-card.featured .nc-img { height: 210px; }
.nc-body  { padding: 20px; }
.nc-tag   { font-size: 10px; font-weight: 800; color: var(--p); letter-spacing: 0.08em; margin-bottom: 8px; text-transform: uppercase; }
.nc-title { font-size: 14px; font-weight: 700; color: var(--txt); line-height: 1.45; margin-bottom: 10px; }
.nc-card.featured .nc-title { font-size: 16px; }
.nc-date  { font-size: 11px; color: #bbb; }
.news-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all 0.2s; color: var(--p);
  line-height: 1;
}
.news-arrow:hover { background: var(--p); color: #fff; border-color: var(--p); }

/* ── HOTLINE ── */
.hotline-section { background: var(--p); padding: 52px 0; }
.hotline-section h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 900; color: #fff; }
.hotline-section p  { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 6px; margin-bottom: 0; }
.btn-hl-white {
  background: #fff; color: var(--p); padding: 13px 28px; border-radius: 8px;
  font-weight: 800; font-size: 14px; text-decoration: none; transition: background 0.2s; white-space: nowrap;
}
.btn-hl-white:hover { background: #e8f5ec; color: var(--p); }
.btn-hl-outline {
  border: 1.5px solid rgba(255,255,255,0.35); color: #fff; padding: 13px 28px;
  border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.btn-hl-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── FOOTER ── */
footer { background: #0a1a0d; padding: 64px 0 32px; }
footer img.footer-logo  { height: 36px; filter: brightness(10); margin-bottom: 18px; }
footer .footer-desc     { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; }
footer .footer-info a {
  font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none;
  display: block; margin-bottom: 6px; transition: color 0.2s;
}
footer .footer-info a:hover { color: #5dde80; }
footer h5 {
  color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: color 0.2s; }
footer ul a:hover { color: #5dde80; }
.btn-footer-zalo {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0068ff; color: #fff; padding: 11px 18px; border-radius: 8px;
  font-weight: 700; font-size: 13px; text-decoration: none;
  transition: background 0.2s; margin-bottom: 16px;
}
.btn-footer-zalo:hover { background: #0050cc; color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; margin-top: 48px;
  font-size: 12px; color: rgba(255,255,255,0.2); text-align: center;
}

/* ── ZALO FLOAT ── */
.zalo-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #0068ff; color: #fff; border-radius: 50px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 16px; font-weight: 700; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,104,255,0.4);
  transition: transform 0.2s;
  animation: zPulse 2.5s ease-in-out infinite;
}
.zalo-float:hover { transform: scale(1.04); color: #fff; }
.zalo-float .zdot {
  position: absolute; top: -3px; right: -3px;
  width: 11px; height: 11px; background: #ff4b4b;
  border-radius: 50%; border: 2px solid #fff;
}
@keyframes zPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,104,255,0.4); }
  50%       { box-shadow: 0 6px 32px rgba(0,104,255,0.65); }
}

/* ── INNER PAGES ── */
/* Card blocks (sidebar) */
.card { border: 1px solid var(--border); border-radius: 8px; }
.card-header {
  background: var(--p); color: #fff;
  font-weight: 600; font-size: 13px; letter-spacing: 0.3px; text-transform: uppercase;
  padding: 10px 15px; border-radius: 8px 8px 0 0 !important;
}
.card-body { padding: 15px; }
.nv-block { margin-bottom: 15px; }
.nv-block-simple { margin-bottom: 15px; }
.nv-block-simple .nv-block-title {
  font-weight: 600; font-size: 13px; color: var(--p); text-transform: uppercase;
  padding: 8px 0; border-bottom: 2px solid var(--p); margin-bottom: 10px;
}

/* Pagination (BS5) */
.pagination { margin-top: 20px; }
.page-item .page-link { color: var(--p); border-color: var(--border); font-size: 14px; }
.page-item.active .page-link { background: var(--p); border-color: var(--p); }
.page-item .page-link:hover { background: var(--pl); color: var(--p2); }

/* Insurance viewcat */
.insurance-viewcat-page .product-card { transition: box-shadow 0.25s, transform 0.25s; }
.insurance-viewcat-page .product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.10); transform: translateY(-3px);
}
.insurance-viewcat-page .product-card .card-title a { color: var(--txt); font-weight: 700; }
.insurance-viewcat-page .product-card .card-title a:hover { color: var(--p); }
.insurance-viewcat-page .card-img-top { height: 180px; object-fit: cover; }

/* Cookie notice */
.cookie-notice {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,26,13,0.95); color: #ccc;
  z-index: 9999; padding: 12px 20px; font-size: 13px;
}
.cookie-notice button {
  background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; float: right;
}

/* NukeViet system */
.nv-alert { padding: 10px 15px; border-radius: 4px; margin-bottom: 10px; }
.nv-alert.success { background: #d1e7dd; color: #0f5132; }
.nv-alert.error   { background: #f8d7da; color: #842029; }
.wraper { max-width: 1200px; margin: 0 auto; }
