/* ==========================================================================
   MODERN CSS RESET 2026 - STANDARD VERSION
   ========================================================================== */

/* 1. Thiết lập Box-sizing chuẩn cho toàn bộ trang */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Reset các thẻ HTML cơ bản */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 62.5%;
}

body {
  line-height: 1.5;
  /* Giúp font chữ hiển thị mượt mà hơn trên macOS/iOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  text-rendering: optimizeSpeed;
}

/* 3. Reset Typography & Links */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul,
ol {
  list-style: none;
}

/* 4. Reset Media Elements (Ảnh, Video, SVG) */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Reset Form Elements (Rất quan trọng cho UX) */
input,
button,
textarea,
select {
  font: inherit; /* Thừa hưởng font từ body thay vì dùng font trình duyệt */
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   BASE STYLES (Dành riêng cho dự án của bạn)
   ========================================================================== */

/* Gán biến màu và font chữ mặc định */
body {
  font-family: "Google Sans", sans-serif;
  color: var(--gray-900, #20283d);
  background-color: #fff;
}

/* Cấu hình độ đậm nhạt chuẩn cho toàn hệ thống */
h1,
h2,
h3,
h4,
.section-title,
.nav__link,
.stats-value,
.btn {
  font-weight: 700;
}

p,
span,
a,
label,
input,
textarea {
  font-weight: 400;
}

/* Variable font cho các con số hoặc tiêu đề cực đậm */
.stats-value,
.fs-timer-val {
  font-variation-settings: "weight" 800;
}
/* ==========================================================================
   2. CUSTOM GRID SYSTEM & VARIABLES (Hệ thống lưới tùy chỉnh và biến màu sắc)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Helper class để dàn hàng ngang nhanh */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Define varible (Khai báo biến) */
:root {
  --text-primary: #000000;
  --brand-color-1: #2167dd;
  --brand-color-2: #fa8c16;
  --brand-color-3: #047857;
  --brand-color-3-light:#f5faf2;
  --brand-color-1-dark: #054a76;
  --brand-color-1-light: #c4e5f9;
  --blue-50: #f0fbff;
  --blue-100: #eaeffa;
  --blue-150: #c1d0f6;
  --blue-200: #acc0f3;
  --blue-300: #769dea;
  --blue-400: #306de4;
  --blue-500: #1250dc;
  --blue-600: #0037c1;
  --blue-700: #002c9a;
  --blue-800: #002174;
  --blue-900: #00164d;
  --blue-1000: #000b27;
  --black: #000;
  --white: #fff;
  --white-200: #fcfcfc;
  --gray-100: #f6f7f9;
  --gray-150: #edf0f3;
  --gray-200: #e4e8ed;
  --gray-300: #d9dfe5;
  --gray-400: #c1c8d1;
  --gray-500: #a9b2be;
  --gray-600: #657384;
  --gray-700: #4a4f63;
  --gray-800: #2f364a;
  --gray-800-80: rgba(47, 54, 74, 0.8);
  --gray-900: #20283d;
  --gray-1000: #020b27;
  --red-100: var(--white) bfa;
  --red-200: #fef3f2;
  --red-300: #fee4e2;
  --red-400: #ffcdca;
  --red-500: #fda29b;
  --red-600: #fa7066;
  --red-700: #f04438;
  --red-800: #d92d20;
  --red-900: #b42318;
  --red-1000: #912018;
}
/* END VARIABLES */

/* ==========================================================================
   TỐI ƯU SVG ICONS
   ========================================================================== */

/* 1. Cấu hình chung cho khung chứa */
.js-svg-inject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* 2. ICON DẠNG NÉT (Dùng cho: Map-pin, File-text, Quy trình, Stats...) */
.js-svg-inject:not(.footer__social-link .js-svg-inject):not([data-icon="star"]):not([data-icon="zalo"]) svg path, 
.js-svg-inject:not(.footer__social-link .js-svg-inject):not([data-icon="star"]):not([data-icon="zalo"]) svg circle, 
.js-svg-inject:not(.footer__social-link .js-svg-inject):not([data-icon="star"]):not([data-icon="zalo"]) svg line,
.js-svg-inject:not(.footer__social-link .js-svg-inject):not([data-icon="star"]):not([data-icon="zalo"]) svg rect {
    stroke-width: 1.5 !important;
    vector-effect: non-scaling-stroke !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* 3. ICON MẠNG XÃ HỘI (Facebook, Instagram, Youtube, Tiktok...) */
.footer__social-link .js-svg-inject svg path,
.footer__social-link .js-svg-inject svg circle,
.footer__social-link .js-svg-inject svg polygon {
    fill: #ffffff !important;
    stroke: none !important;
    transition: all 0.3s ease;
}

/* Hiệu ứng hover cho các icon mạng xã hội */
.footer__social-link:hover {
    transform: translateY(-3px);
    background: var(--brand-color-1); /* Hoặc màu xanh bạn thích */
}

/* 4. CÁC TRƯỜNG HỢP ĐẶC BIỆT */

/* Icon Zalo - Thường cần giữ màu trắng đặc hoặc màu thương hiệu */
[data-icon="zalo"] svg path {
    fill: #ffffff !important;
    stroke: none !important;
}

/* Icon Ngôi sao - Luôn tô màu vàng/cam */
[data-icon="star"] svg path, 
[data-icon="star"] svg polygon {
    fill: #ff9f43 !important; /* Màu cam vàng chuẩn */
    stroke: none !important;
}

/* Icon Check-circle xanh ở Header/Chính sách */
[data-icon="circle-check-big"] svg path,
[data-icon="circle-check-big"] svg circle {
    stroke: #22c55e !important;
    fill: none !important;
}


[data-icon="quote"] svg {
    width: 100%;
    height: 100%;
    width: 100px;
    color:rgba(33, 103, 221, 0.1);
    margin: 0 0 60px 0;
}
/* END SVG ICONS */

/* ==========================================================================
   3. CUSTOM COMPONENTS (Các thành phần tùy chỉnh riêng cho dự án)
   ========================================================================== */ 
.section-header {
  margin-bottom: 30px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-desc {
  text-align: center;
  max-width: 650px;
  color: var(--gray-600);
  font-size: 1.6rem;
  line-height: 1.6;
}

/* ======================================================================
   4. UTILITY CLASSES (Các lớp tiện ích nhanh) - Có thể dùng lại ở bất kỳ đâu
   ========================================================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}
.text-normal-case {
  text-transform: none;
}
/* END UTILITY CLASSES */