@import url('https://fonts.googleapis.com/css2?family=Phudu:wght@300..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');


/* ==========================================================================
   Gilroy / SVN-Gilroy Local Font Faces (assets/fonts)
   ========================================================================== */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Light%20Italic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Medium%20Italic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20SemiBold%20Italic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Bold%20Italic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/SVN-Gilroy%20Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Alias SVN-Gilroy */
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('../fonts/SVN-Gilroy%20Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Gilroy';
  src: url('../fonts/SVN-Gilroy%20Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Gilroy';
  src: url('../fonts/SVN-Gilroy%20SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SVN-Gilroy';
  src: url('../fonts/SVN-Gilroy%20Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Tam Đa - Responsive & Fluid Clamp Typography Stylesheet
   Chuẩn hóa Responsive, Fluid Typography (CSS clamp), W3C & WCAG Accessibility
   ========================================================================== */

:root {
  /* Fluid Typography Scale using CSS clamp(min, preferred, max)
     Calculated smoothly from 320px viewport to 1440px+ viewport */
  --text-hero: clamp(1.85rem, 1.15rem + 3.5vw, 3.75rem);       /* ~30px -> 60px */
  --text-h1: clamp(1.65rem, 1.15rem + 2.5vw, 3rem);            /* ~26px -> 48px */
  --text-h2: clamp(1.35rem, 1rem + 1.75vw, 2.25rem);           /* ~22px -> 36px */
  --text-h3: clamp(1.15rem, 0.95rem + 1vw, 1.65rem);           /* ~18px -> 26px */
  --text-h4: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);         /* ~17px -> 21px */
  --text-lead: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);          /* ~16px -> 19px */
  --text-body: clamp(0.875rem, 0.84rem + 0.2vw, 1rem);         /* ~14px -> 16px */
  --text-sm: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem);       /* ~12px -> 14px */
  --text-stat: clamp(2rem, 1.4rem + 3vw, 3.5rem);              /* ~32px -> 56px */

  /* Spacing & Layout Tokens */
  --header-height: 80px;
  --topbar-height: 48px;
}

/* Base HTML & Body Settings for Anti-Overflow */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  font-size: var(--text-body);
  line-height: 1.6;
}

/* Fluid Heading Utilities */
.text-clamp-hero {
  font-size: var(--text-hero) !important;
  line-height: 1.15 !important;
}

.text-clamp-h1 {
  font-size: var(--text-h1) !important;
  line-height: 1.2 !important;
}

.text-clamp-h2 {
  font-size: var(--text-h2) !important;
  line-height: 1.25 !important;
}

.text-clamp-h3 {
  font-size: var(--text-h3) !important;
  line-height: 1.3 !important;
}

.text-clamp-h4 {
  font-size: var(--text-h4) !important;
  line-height: 1.35 !important;
}

.text-clamp-lead {
  font-size: var(--text-lead) !important;
  line-height: 1.5 !important;
}

.text-clamp-body {
  font-size: var(--text-body) !important;
}

.text-clamp-stat {
  font-size: var(--text-stat) !important;
  line-height: 1.1 !important;
}

/* Responsive Image Guard */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent container breaking on mobile */
.container {
  width: 100%;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

/* ==========================================================================
   Header & Slant Layout Fixes
   ========================================================================== */

/* Slant background padding compensation so "TRANG CHỦ" is never clipped */
.nav-slant {
  clip-path: polygon(42px 0, 100% 0, 100% 100%, 0% 100%);
}

.nav-slant-sticky {
  clip-path: polygon(48px 0, 100% 0, 100% 100%, 0% 100%);
}

@media (min-width: 1024px) {
  .nav-slant-inner {
    padding-left: 2rem;
  }
}

/* ==========================================================================
   Floating Hotline Widget: Smart Mobile Responsive
   ========================================================================== */

@keyframes phone-ring-shake {
  0%, 100% {
    transform: rotate(0) scale(1);
  }
  10%, 20% {
    transform: rotate(-12deg) scale(1.05);
  }
  30%, 40% {
    transform: rotate(12deg) scale(1.05);
  }
  50%, 60% {
    transform: rotate(-12deg) scale(1.05);
  }
  70%, 80% {
    transform: rotate(12deg) scale(1.05);
  }
  90% {
    transform: rotate(0) scale(1);
  }
}

.phone-shake {
  animation: phone-ring-shake 1.3s ease-in-out infinite;
}

/* On mobile (< 768px), keep hotline compact icon to not obscure cards/buttons */
.floating-hotline-btn {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: clamp(1rem, 3vw, 1.75rem);
  z-index: 50;
  display: flex;
  align-items: center;
  user-select: none;
  text-decoration: none;
}

.floating-hotline-text {
  display: none;
  background-color: #233869;
  color: #ffffff;
  padding: 0.5rem 1.25rem 0.5rem 2.5rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  margin-left: -1.75rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .floating-hotline-text {
    display: flex;
  }
}

/* Expand text on mobile touch/hover if user interacts */
.floating-hotline-btn:hover .floating-hotline-text,
.floating-hotline-btn:focus .floating-hotline-text {
  display: flex;
}

/* ==========================================================================
   Card & Grid Micro-Adjustments on Mobile
   ========================================================================== */

/* Safe touch target sizes for mobile */
button, a {
  touch-action: manipulation;
}

/* Accessible focus visible ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #233869;
  outline-offset: 2px;
}




/* Font nội dung (nd): Gilroy chính hãng trong assets/fonts */
body,
.font-sans,
.font-gilroy,
p,
li,
input,
textarea,
select,
button:not(.font-phudu) {
  font-family: 'Gilroy', 'SVN-Gilroy', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

/* Font tiêu đề: Phudu */
.font-phudu {
  font-family: 'Phudu', sans-serif !important;
}


/* Font XS upgrade to SM policy */
.text-xs {
  font-size: var(--text-sm) !important;
}
