/* =========================================================
  RESET & BASE
  - Reset margin/padding
  - Base typography & colors
========================================================= */
:root {
  /* Brand colors */
  --c-brand: #001e62;     /* xanh */
  --c-accent: #c4161c;    /* đỏ */
  --c-text: #222;
  --c-muted: #555;
  --c-white: #fff;

  /* Layout */
  --max-w: 1200px;
  --nav-w: 980px;

  /* Radius */
  --r-pill: 999px;
  --r-8: 8px;
  --r-24: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.18);
  --shadow-card-hover: 0 26px 60px rgba(0, 0, 0, 0.25);

  /* Z-index scale */
  --z-header: 20;
  --z-overlay: 49;
  --z-drawer: 50;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.material-symbols-rounded{
  font-variation-settings: 'FILL' 0, 'wght' 180, 'GRAD' 0, 'opsz' 20;
  color:#C61B1F;
  font-size:40px;
}
html,
body {
  overflow-x: hidden; /* an toàn cho mobile drawer */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--c-white);
  color: var(--c-text);
}

/* Ảnh/video cơ bản */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Link mặc định inherit màu (tuỳ chỗ sẽ set text-decoration) */
a {
  color: inherit;
}

/* A11y: focus rõ ràng khi dùng bàn phím */
:focus-visible {
  outline: 3px solid rgba(196, 22, 28, 0.45);
  outline-offset: 2px;
}

/* hidden attribute support */
[hidden] {
  display: none !important;
}

/* =========================================================
  HELPERS: Desktop/Mobile visibility
========================================================= */
.desktop-only { display: block; }
.mobile-only  { display: none; }

/* =========================================================
  HEADER (sticky)
========================================================= */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}


.header-top {
  padding: 12px 24px 16px;
}

.header-top-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 28px;
  width: auto;
}

/* =========================================================
  Header middle (Desktop contact + search)
========================================================= */
.header-middle {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 1; /* cho phép giãn rộng */
}

/* Contact pill */
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--c-white);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.contact-item:hover {
  background: var(--c-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.contact-icon {
  width: 20px;
  height: 20px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-text {
  white-space: nowrap;
}

.tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
  Search bar (desktop + mobile)
========================================================= */
.search-bar {
  display: flex;
  align-items: stretch;
  background: var(--c-white);
  border-radius: 4px;
  overflow: hidden;
}

.header-search {
  flex: 1;
  max-width: 280px; /* tăng/giảm tuỳ ý */
}

.header-search input {
  flex: 1;
  border: 1px solid var(--c-brand);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  color: var(--c-muted);
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.search-btn {
  width: 44px;
  border: none;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-icon {
  width: 20px;
  height: 20px;
  stroke: var(--c-white);
  fill: none;
}

/* =========================================================
  Mobile menu button (hamburger)
  - Mặc định ẩn desktop, chỉ bật ở breakpoint
========================================================= */
.mobile-menu-btn {
  border: none;
  background: var(--c-brand);
  padding: 0;
  display: none; /* desktop: ẩn */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobile-menu-btn span { display: none; } /* không dùng span text */

.mobile-menu-icon {
  width: 22px;
  height: 22px;
  fill: var(--c-white);
}

/* =========================================================
  DESKTOP MAIN NAV
========================================================= */
.main-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--c-accent);
}

.nav-inner {
  max-width: var(--nav-w);
  margin: 0 auto;
  padding: 16px 80px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 16px;
  font-weight: 600;
}
.feature-icon img{
  width: 150%;
}
.nav-inner a,
.nav-inner .nav-link {
  text-decoration: none;
  color: var(--c-white);
  position: relative;
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

/* underline hover */
.nav-inner a::after,
.nav-inner .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-white);
  transition: width 0.15s ease;
}

.nav-inner a:hover::after,
.nav-inner .nav-link:hover::after {
  width: 100%;
}

/* Dropdown desktop */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-icon {
  width: 14px;
  height: 14px;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  transition: transform 0.15s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--c-white);
  padding: 16px 20px;
  border-radius: var(--r-8);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: var(--z-drawer);
}

.dropdown-menu a {
  color: #333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  padding: 3px 0;
  white-space: normal;
}

.dropdown-menu a:hover {
  color: var(--c-accent);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown:hover .nav-icon svg,
.nav-dropdown:focus-within .nav-icon svg {
  transform: rotate(180deg);
}
/* 1) Cho nav-inner full width để có "góc phải thật" */
.main-nav .nav-inner{
  max-width: 100% !important;
  margin: 0 !important;
  padding: 16px 24px !important;   /* khoảng cách mép trái/phải của thanh đỏ */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 2) Menu (nav-left) vẫn căn giữa trong khung 980px */
.main-nav .nav-left{
  max-width: 980px;
  margin: 0 30PX;                  /* căn giữa cụm menu */
  display: flex;
  align-items: center;
  gap: 30px;
}

/* 3) Nút Signature sát góc phải */
.main-nav .nav-right{
  margin-right: 30PX;
  margin-left: auto;               /* đẩy sang phải */
  display: flex;
  align-items: center;
}

/* 4) CTA style (bạn có thể giữ style cũ nếu muốn) */
.main-nav .nav-cta-signature{
  background: #ffffff;
  color: #c4161c;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

/* Không underline */
.main-nav .nav-cta-signature::after{
  display: none !important;
}

/* =========================================================
  MOBILE MENU (OFF-CANVAS)
========================================================= */
/* overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: var(--z-overlay);
}

/* panel drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: var(--c-accent);
  color: var(--c-white);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: var(--z-drawer);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-inner {
  padding: 18px 18px 24px;
  height: 100%;
  overflow-y: auto;
}

/* close button */
.mobile-menu-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--c-white);
  cursor: pointer;
  margin-left: auto;
  display: block;
}

/* contacts inside drawer */
.mobile-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.mobile-contact-row .contact-item {
  flex: 1 1 calc(50% - 3px);
  font-size: 13px;
  padding: 6px 10px;
  justify-content: flex-start;
}

/* mobile search */
.mobile-search {
  margin-bottom: 8px;
}

.mobile-search input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  color: var(--c-muted);
}

.mobile-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 10px 0 8px;
}

/* mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.mobile-nav-item {
  text-decoration: none;
  color: var(--c-white);
  font-weight: 600;
}

.mobile-nav-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.mobile-sublist {
  list-style: none;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #ffe9e9;
}

/* open state */
.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
  HERO (video background + overlay + center text)
========================================================= */
.hero {
  position: relative;
  min-height: 60vh;
  color: var(--c-white);
  overflow: hidden;
  padding: 80px 0;
}

/* video full-bleed */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-inner-center { text-align: center; }

.hero-subtext {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffefc5;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-rotating-title {
  font-size: 44px;
  font-weight: 800;
  color: var(--c-white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

.hero-rotating-title.fade-in {
  animation: heroFadeIn 0.6s ease-out;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
  FEATURE SECTION (8 BOX)
  - Section “tràn” lên hero bằng margin âm
========================================================= */
.feature-section {
  background: transparent;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.feature-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
}

/* grid cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: -60px; /* card “chui” lên hero */
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--c-white);
  border-radius: var(--r-24);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-card);
  color: #111;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 32px;
  height: 32px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}


.feature-icon-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* =========================================================
  RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only  { display: block; }

  .mobile-menu-btn { display: flex; }

  .header-top { padding: 10px 16px; }
  .logo img   { height: 24px; }

  /* HERO: bỏ padding cố định để text canh bằng padding-top */
  .hero {
    min-height: 55vh;
    padding: 0;
  }

  .hero-inner {
    padding: 0 16px;
    padding-top: 10vh;   /* đẩy chữ xuống vừa mắt */
    padding-bottom: 32px;
  }

  .hero-subtext {margin-bottom: 6px; }
  .hero-rotating-title {
    font-size: 36px;
    line-height: 1.3;
    max-width: 100%;
  }

  .feature-section {
    padding: 40px 16px 0px;
    margin-top: -120px;
  }

  .feature-inner {
    padding: 40px 16px 60px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -40px;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 45vh; } /* giữ padding = 0 để tránh conflict */
  .hero-inner { padding-top: 0vh; }

  .hero-rotating-title { font-size: 24px; }

  .card-grid { grid-template-columns: 1fr; }
}
/* ============= SIGNATURE CTA SECTION ============= */
.signature-section{
  padding: 40px 24px 80px;
  background: #ffffff;
}

.signature-inner{
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signature-title{
  font-size: 28px;
  font-weight: 800;
  color: #001e62;
}

.signature-desc{
  font-size: 15px;
  color: #555555;
  max-width: 640px;
  line-height: 1.6;
}

.signature-btn{
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: #c4161c;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.signature-btn:hover{
  background: #001e62;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

/* Mobile */
@media (max-width: 768px){
  .signature-section{
    padding: 30px 16px 60px;
  }
  .signature-title{
    font-size: 22px;
  }
  .signature-btn{
    width: min(320px, 100%);
  }
}
/* ============= SIGNATURE CARDS (4) ============= */
.signature-cards-section{
  padding: 10px 24px 90px;
  background: #ffffff;
}

.signature-cards-inner{
  max-width: 1200px;
  margin: 0 auto;
}

.signature-cards-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Card link */
.sig-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #111111;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sig-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.20);
}

/* Image */
.sig-card-img{
  width: 100%;
  aspect-ratio: 16 / 10;   /* giữ khung ảnh đẹp */
  background: #f2f2f2;
  overflow: hidden;
}

.sig-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.sig-card:hover .sig-card-img img{
  transform: scale(1.04);
}

/* Text */
.sig-card-body{
  padding: 16px 16px 18px;
}

.sig-card-title{
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #001e62;
  margin-bottom: 6px;
}

.sig-card-org{
  font-size: 13px;
  font-weight: 600;
  color: #555555;
}

/* Responsive */
@media (max-width: 1024px){
  .signature-cards-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px){
  .signature-cards-section{
    padding: 10px 16px 70px;
  }
  .signature-cards-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px){
  .signature-cards-grid{
    grid-template-columns: 1fr;
  }
}

/*footer*/
