/* =========================================
   1. HỆ THỐNG BIẾN & SETUP
   ========================================= */
:root {
  /* COLORS */
  --primary-color: #0f4f8c;
  --primary-dark: #0d3c6e;
  --secondary-color: #fca311;
  --secondary-hover: #e09200;

  /* TEXT COLORS */
  --text-main: #1a202c;
  --text-heading: #0e1d34;
  --text-body: #555555;
  --text-desc: #4a5568;
  --text-muted: #999999;
  --text-white: #ffffff;
  --text-label: #6b7280;

  /* BACKGROUNDS */
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-light: #f8fbff;
  --bg-footer: #0a1118;
  --bg-map: #e5e7eb;
  --bg-map-hover: #d1d5db;
  --bg-blue-light: #e1f0ff;
  --bg-yellow-light: #fef6e7;

  /* BORDERS & SHADOWS */
  --border-color: #e2e8f0;
  --border-form: #e5e7eb;
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 24px;
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --box-shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.25);
  --transition: 0.3s ease;

  /* DIMENSIONS */
  --container-width: 1280px;
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* Quy ước: 1rem = 10px */
}

body {
  font-size: 1.6rem; /* 16px */
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* =========================================
   2. UTILITY CLASSES (DÙNG CHUNG)
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px; /* Padding an toàn cho mobile */
}

/* Layout & Spacing (Dùng PX theo yêu cầu) */
.section-padding {
  padding: 96px 0;
}
.bg-gray {
  background-color: var(--bg-gray);
}
.bg-white {
  background-color: var(--bg-white);
}
.text-center {
  text-align: center;
}

/* Typography (Dùng REM) */

.heading-xl {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 32px;
}
.heading-xl.heading--default {
  color: var(--text-main);
}
.heading-lg {
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.2;
}
.heading-md {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-heading);
}
.heading-sm {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.text-desc {
  font-size: 1.4rem;
  color: var(--text-body);
}
.text-subtitle {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 16px;
}

/* Section Header Shared */
.section-header {
  /* margin-bottom: 64px; */
  text-align: center;
}
.section-line {
  width: 96px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: -20px auto 21px;
}
.section-desc-text {
  text-align: center;
  color: var(--text-body);
  max-width: 672px;
  margin: 0 auto;
  font-size: 1.6rem;
}
.highlight {
  color: var(--secondary-color);
}

/* Card System (Dùng PX cho kích thước) */
.card-base {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg); /* 24px */
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-base:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-strong);
}

/* Buttons (Dùng PX cho padding, REM cho font) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--primary-color);
  color: var(--bg-white);
}
.btn--primary:hover {
  background: var(--primary-dark);
}
.btn--secondary {
  border: 1px solid var(--bg-white);
  background: transparent;
  color: var(--bg-white);
}
.btn--secondary:hover {
  background: var(--bg-white);
  color: var(--primary-color);
}
.btn--quote {
  background: var(--secondary-color);
  color: var(--bg-white);
  padding: 8px 32px;
  border-radius: 8px;
}
.btn--quote:hover {
  background-color: var(--secondary-hover);
  transition: all 0.3s ease;
}

/* Badges */
.badge {
  padding: 4px 12px;
  border-radius: 4px;
  color: var(--bg-white);
  font-size: 1rem;
  font-weight: 700;
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 10;
}
.badge--orange {
  background: var(--secondary-color);
}
.badge--blue {
  background: var(--primary-color);
}
.badge--green {
  background: #28a745;
}

/* UTILITY CLASSES (HỖ TRỢ CĂN CHỈNH ẢNH) */

/* Ưu tiên lấy phần TRÊN của ảnh (Ví dụ: Cần cẩu, tòa nhà cao) */
.obj-pos-top {
  object-position: center top !important;
}

/* Ưu tiên lấy phần DƯỚI của ảnh (Ví dụ: Đống cát, gạch dưới đất) */
.obj-pos-bottom {
  object-position: center bottom !important;
}

/* Ưu tiên lấy phần GIỮA (Mặc định - dùng khi muốn reset lại) */
.obj-pos-center {
  object-position: center center !important;
}
/* 2. Căn ngang (Horizontal)*/
.obj-pos-left {
  object-position: left center !important; /* Lấy phần BÊN TRÁI ảnh */
}

.obj-pos-right {
  object-position: right center !important; /* Lấy phần BÊN PHẢI ảnh */
}

/* =========================================
   3. COMPONENTS CHI TIẾT
   ========================================= */

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 25px 0;
  transition: all 0.3s ease;
}
.navbar--sticky {
  background-color: var(--primary-color);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

.navbar--sticky .logo-img {
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text__top {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
}
.logo-text__bottom {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  gap: 30px;
}
.navbar__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  font-weight: 600;
}
.navbar__link:hover,
.navbar__link--active {
  color: var(--bg-white);
}
.navbar__toggle {
  display: none;
  cursor: pointer;
}
.navbar__toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--bg-white);
  margin: 5px auto;
  transition: 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: none !important; /* Ghi đè hình cũ */
  overflow: hidden; /* Đảm bảo hình không bị tràn ra ngoài */
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Nằm dưới Overlay (z-index: 1) và Content (z-index: 2) */
}

/* 3. Thiết lập từng Slide */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* Trạng thái mặc định: Nằm chờ bên phải màn hình */
  transform: translateX(100%);
  transition: transform 1.5s ease-in-out; /* Thời gian trượt là 1.5s */
  will-change: transform;
}

/* 4. Trạng thái đang hiển thị */
.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

/* 5. Trạng thái đã trượt qua bên trái (biến mất) */
.hero-slide.exit {
  transform: translateX(-100%);
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(16, 76, 138, 0.9),
    rgba(16, 76, 138, 0.4)
  );
  z-index: 1;
}
/* --- BUTTON SLIDER NAVIGATION --- */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20; /* Cao hơn mọi thứ để bấm được */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.slider-btn-prev {
  left: 30px;
}

.slider-btn-next {
  right: 30px;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--bg-white);
  max-width: 800px;
  padding: 0 15px;
}
.hero__subtitle {
  color: var(--secondary-color);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.hero__title {
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero__description {
  font-size: 1.8rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin: 0 auto 30px;
}
.hero__actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* --- ABOUT --- */
.about__container {
  display: flex;
  gap: 80px;
  align-items: center;
}
.about__media {
  width: 596px;
  height: 580px;
  position: relative;
  padding-bottom: 30px;
  padding-right: 20px;
}
.about__img {
  width: 536px;
  height: 536px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  box-shadow: var(--box-shadow-strong);
}
.about__quote-box {
  position: absolute;
  top: 324px;
  left: 340px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 32px;
  width: 256px;
  height: 256px;
  border-radius: var(--border-radius-lg);
  border: 8px solid var(--bg-white);
  box-shadow: var(--box-shadow-strong);
  /* --- BỔ SUNG DÒNG NÀY --- */
  z-index: 10; /* Đảm bảo nó luôn nằm trên hình ảnh slider (z-index: 2) */
}
.about__quote-icon {
  font-size: 4.8rem;
  line-height: 0.8;
  color: var(--secondary-color);
  font-weight: 800;
}
.about__quote-text {
  font-size: 1.4rem;
  font-style: italic;
  padding-bottom: 16px;
}
.about__quote-author {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--secondary-color);
}
/* Wrapper thay thế cho thẻ img cũ */
.about-slider-wrapper {
  width: 536px; /* Kích thước giống hệt .about__img cũ */
  height: 536px;
  position: relative;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-strong);
  overflow: hidden; /* Cắt phần ảnh thừa */
}

/* Từng hình ảnh trong slider */
.about-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Mặc định ẩn */
  transition: opacity 1s ease-in-out; /* Thời gian mờ dần 1s */
  z-index: 1;
}

/* Ảnh đang hiển thị */
.about-slide-item.active {
  opacity: 1;
  z-index: 2;
}
.about__content {
  flex: 1;
}
.about__desc {
  color: var(--text-body);
  line-height: 1.56;
  margin-bottom: 32px;
  text-align: justify;
  font-size: 1.6rem;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 32px;
}
.features__item {
  display: flex;
  gap: 15px;
}
.features__icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.features__icon .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}
.features__icon--blue {
  background: var(--bg-blue-light);
}
.features__icon--blue .dot {
  background: var(--primary-color);
}
.features__icon--yellow {
  background: var(--bg-yellow-light);
}
.features__icon--yellow .dot {
  background: var(--secondary-color);
}
.features__label {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-heading);
  display: block;
}
.features__text {
  font-size: 1.4rem;
  color: var(--text-body);
}
.btn-download {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: var(--border-radius-sm);
}
.btn-download__arrow {
  margin-left: 10px;
  font-size: 1.2rem;
}

/* --- PRODUCTS --- */
.products .section-header {
  margin-bottom: 0;
}
/* =========================================
   SWIPER SLIDE & CARD STYLING (CLEAN VERSION)
   ========================================= */

/* 1. Cấu hình khung Swiper */
.product-swiper {
  /* Padding: Trên 20px, Dưới 60px (để chứa dấu chấm), Trái/Phải 15px */
  padding: 64px 16px 64px 16px !important;
  overflow: hidden;
  /* Nền trong suốt để lộ màu trắng của section */
  background: transparent !important;
}

/* 2. Cấu hình Slide (Khung chứa từng thẻ) */
.swiper-slide {
  height: auto; /* Quan trọng: Để các thẻ trong cùng 1 hàng cao bằng nhau */
  display: flex; /* Để thẻ con (.product-card) bung chiều cao 100% */
}
/* =========================================
   CUSTOM CIRCLE NAVIGATION BUTTONS
   ========================================= */

/* Class chung cho cả 2 nút */
.swiper-nav-btn-circle {
  /* 1. Kích thước cố định để tạo hình tròn */
  width: 50px !important;
  height: 50px !important;

  /* 2. Màu nền và viền */
  background-color: var(--bg-white); /* Nền trắng */
  border-radius: 50%; /* QUAN TRỌNG: Bo tròn hoàn toàn */

  /* 3. Căn giữa icon bên trong */
  display: flex;
  align-items: center;
  justify-content: center;

  /* 2. Màu nền trong suốt (Màu Primary 10%) */
  background-color: transparent;

  /* 6. Hiệu ứng mượt mà */
  transition: all 0.3s ease;

  /* Đảm bảo nằm trên các phần tử khác */
  z-index: 20;
}

/* Xóa mũi tên mặc định của Swiper (Rất quan trọng) */
.swiper-nav-btn-circle::after {
  display: none !important;
  content: "" !important;
}

/* Chỉnh kích thước icon bên trong */
.swiper-nav-btn-circle i {
  font-size: 1.6rem; /* Kích thước icon */
  font-weight: 700;
}

/* --- HIỆU ỨNG HOVER (Di chuột vào) --- */
.swiper-nav-btn-circle:hover {
  background-color: var(--secondary-color); /* Nền đổi thành xanh */
  color: var(--bg-white); /* Icon đổi thành trắng */
}

/* --- VỊ TRÍ ĐẶT NÚT --- */
/* Đẩy nút lùi ra sát mép hoặc đè lên slider một chút cho đẹp */
.swiper-button-prev {
  left: 0px !important;
}

.swiper-button-next {
  right: 0px !important;
}
/* 3. Giao diện Thẻ Sản Phẩm (Card) */
.product-card {
  width: 100%;
  height: 100%; /* Bung chiều cao theo cha (.swiper-slide) */

  /* Sử dụng biến màu gốc */
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg); /* 24px */
  box-shadow: var(--box-shadow);
  transition: var(--transition); /* 0.3s ease */

  overflow: hidden;
  display: flex;
  flex-direction: column; /* Xếp dọc nội dung */
  position: relative;
}

/* Hiệu ứng Hover lên Card */
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-strong);
}

/* --- PHẦN HÌNH ẢNH --- */
.product-card__media {
  position: relative;
  width: 100%;
  height: 256px;
  flex-shrink: 0; /* Đảm bảo ảnh không bị co lại */
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- NHÃN DÁN (BADGE) --- */
.badge {
  padding: 4px 12px;
  border-radius: 4px;
  color: var(--bg-white); /* Chữ trắng */
  font-size: 1rem;
  font-weight: 700;
  position: absolute;
  bottom: 32px;
  left: 32px;
  z-index: 10;
  text-transform: uppercase;
}

/* Màu nền badge theo biến */
.badge--orange {
  background-color: var(--secondary-color);
}
.badge--blue {
  background-color: var(--primary-color);
}
.badge--green {
  background-color: #28a745;
} /* Màu xanh lá (hardcode hoặc thêm biến nếu có) */

/* --- PHẦN NỘI DUNG CHỮ --- */
.product-card__content {
  padding: 32px;
  flex: 1; /* Chiếm hết khoảng trống còn lại -> Đẩy footer xuống đáy */
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-heading); /* Màu tiêu đề gốc */
  margin-bottom: 16px;
  line-height: 1.3;
  /* Giới hạn tiêu đề tối đa 2 dòng */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.12rem; /* 2.4rem * 1.3 * 1 = 3.12 em */
}

.product-card__desc {
  font-size: 1.4rem;
  color: var(--text-body); /* Màu chữ nội dung gốc */
  margin-bottom: 24px;
  line-height: 1.6;
  /* 2. Cắt chữ nếu dài hơn 3 dòng (Thêm dấu ...) */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn đúng 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* 3. Giữ cố định chiều cao (để text ngắn cũng chiếm chỗ bằng text dài) */
  /* Công thức: font-size * line-height * số dòng */
  /* 1.4rem * 1.6 * 3 = 6.72rem */
  height: 6.72rem;
}

/* --- DANH SÁCH THÔNG SỐ (UL/LI) --- */
.product-card__specs {
  margin-bottom: 32px;
  margin-top: auto; /* Mẹo: Luôn nằm sát phía dưới trước nút bấm */
}

.product-card__specs li {
  font-size: 1.4rem;
  padding-left: 24px;
  position: relative;
  color: var(--text-body);
  margin-bottom: 12px;
}

/* Dấu vuông nhỏ đầu dòng */
.product-card__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  background-color: var(--secondary-color); /* Màu cam/vàng chủ đạo */
  border-radius: 2px;
}

/* --- NÚT XEM CHI TIẾT --- */
.product-card__link {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color); /* Màu xanh chủ đạo */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: var(--transition);
}

.product-card__link:hover {
  color: var(--secondary-color); /* Hover đổi sang màu cam */
}

/* --- WORKFLOW --- */
.workflow__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 64px;
  gap: 40px;
}
.workflow__header .heading-xl {
  margin-bottom: 0;
}
.workflow__header-right {
  text-align: right;
  width: 425px;
}
.workflow__desc-text {
  color: var(--text-body);
  font-size: 1.4rem;
  text-align: left;
}
.workflow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.workflow__item {
  background: var(--bg-light);
  padding: 32px;
  position: relative;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
}
.workflow__item:hover {
  background: var(--bg-blue-light);
  /* 1. Di chuyển khối lên trên 10px */
  transform: translateY(-10px);

  /* 2. Thêm đổ bóng để tạo cảm giác nổi lên (tùy chọn nhưng nên có) */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.workflow__number {
  font-size: 7.2rem;
  font-weight: 900;
  color: rgba(16, 76, 138, 0.05);
  position: absolute;
  top: -20px;
  left: 20px;
}
.workflow__title {
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: 16px;
  color: var(--text-heading);
}
.workflow__desc {
  font-size: 1.4rem;
  color: var(--text-body);
}

/* --- STATS --- */
.stats {
  background: var(--primary-color);
  padding: 60px 0;
  color: var(--bg-white);
}
.stats__container {
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.stats__number {
  font-size: 4.8rem;
  font-weight: 800;
  color: var(--secondary-color);
}
.stats__label {
  font-weight: 600;
  font-size: 1.6rem;
}

/* Tùy chọn: Giúp số không bị giật layout khi tăng */
.counter {
  display: inline-block;
  min-width: 60px; /* Đặt chiều rộng tối thiểu tùy theo số lớn nhất */
  text-align: right; /* Căn số sang phải hoặc giữa tùy ý */
}

/* --- TESTIMONIALS SLIDER --- */
.testimonials .section-header {
  margin-bottom: 0;
}

/* Khung bao slider */
.testimonial-swiper {
  /* Thêm padding xung quanh để có chỗ cho thẻ phóng to mà không bị cắt */
  padding: 64px 16px 64px 16px !important;
  cursor: grab; /* Con trỏ hình bàn tay */
}

.testimonial-swiper:active {
  cursor: grabbing;
}

/* Cấu hình Slide */
.testimonial-swiper .swiper-slide {
  height: auto; /* Để các thẻ cao bằng nhau */
  display: flex; /* Giúp thẻ con (.card-base) bung chiều cao */
}

/* Thẻ Card (Sửa lại một chút để bung chiều cao) */
.testimonial-card {
  padding: 32px;
  width: 100%; /* Bung hết chiều rộng slide */
  height: 100%; /* Bung hết chiều cao slide */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Đẩy thông tin user xuống đáy nếu comment ngắn */
  /* 1. Thêm transition để hiệu ứng phóng to mượt mà */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease;

  /* Đảm bảo nền thẻ là màu trắng (để khi phóng to không bị trong suốt) */
  background: var(--bg-white);
  border-radius: 12px; /* Hoặc var(--border-radius-lg) */
}
/* 2. HIỆU ỨNG KHI HOVER (PHÓNG TO) */
.testimonial-card:hover {
  /* Tỉ lệ phóng to: 1.05 nghĩa là to lên 5% (Mức này vừa đẹp, không bị vỡ hạt) */
  transform: scale(1.05);

  /* Thêm đổ bóng đậm hơn để tạo cảm giác thẻ nổi lên trên */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* (Tùy chọn) Đảm bảo thẻ đang hover nằm đè lên các thẻ khác nếu bị che */
  z-index: 10;
  position: relative;
}
.testimonial-card__stars {
  color: var(--secondary-color);
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.testimonial-card__comment {
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 24px;
  font-size: 1.4rem;
  line-height: 1.6;

  /* Cắt chữ đẹp */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card__user {
  display: flex;
  align-items: center;
  gap: 15px;
  /* margin-top: auto; Mẹo: Đẩy user xuống đáy card */
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ddd;
  flex-shrink: 0;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  display: block;
  font-size: 1.4rem;
  color: var(--text-heading);
  font-weight: bold;
}

.testimonial-card__company {
  font-size: 1.2rem;
  color: var(--text-body);
}

/* --- PROJECTS --- */
.projects-showcase__container {
  display: flex;
  gap: 110px;
}
.projects-showcase__info {
  flex: 0.6;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}
.project-card-simple {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg-white);
  transition: var(--transition);
}
.project-card-simple:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.project-card-simple__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.project-card-simple__desc {
  font-size: 1.4rem;
  color: var(--text-desc);
  line-height: 1.5;
  margin: 0;
}
.btn-view-projects {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}
.btn-view-projects .btn-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-color);
  text-transform: uppercase;
}
.btn-view-projects .btn-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-view-projects:hover .btn-icon {
  background-color: var(--primary-dark);
  transform: translateX(5px);
}

.projects-showcase__gallery {
  flex: 1.1;
  display: flex;
  gap: 16px;
  height: 662px;
}
.projects-showcase__large {
  flex: 1.5;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  box-shadow: var(--box-shadow-strong);
  background-color: var(--bg-white); /* Màu nền dự phòng nếu ảnh chưa tải */
}
.projects-showcase__large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block; /* Loại bỏ khoảng trắng thừa dưới ảnh */
  /* QUAN TRỌNG: Transition cho opacity phải khớp với JS (0.5s) */
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  /* Đảm bảo thẻ img nằm đè lên background của khung chứa */
  position: relative;
  opacity: 1; /* Mặc định hiển thị */
}
.projects-showcase__large:hover img {
  transform: scale(1.1);
}
.projects-showcase__small {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.projects-showcase__small-item {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--box-shadow-strong);
  position: relative;
  background-color: var(--bg-white);
}
.projects-showcase__small-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Loại bỏ khoảng trắng thừa dưới ảnh */
  /* QUAN TRỌNG: Transition cho opacity phải khớp với JS (0.5s) */
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  /* Đảm bảo thẻ img nằm đè lên background của khung chứa */
  position: relative;
  opacity: 1; /* Mặc định hiển thị */
}
.projects-showcase__small-item:hover img {
  transform: scale(1.08);
}

/* 3. Class hỗ trợ JS để làm mờ ảnh khi đổi */
.fade-out-img {
  opacity: 0 !important;
}

/* --- NEWS --- */
.news__header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 64px;
  gap: 30px;
}
.news__header-left {
  max-width: 700px;
}
.news__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  text-decoration: none; /* Bỏ gạch chân mặc định của thẻ a */
  /* Hiệu ứng chuyển màu mượt mà */
  transition: color 0.3s ease;
}
/* --- HIỆU ỨNG HOVER --- */
.news__view-all:hover {
  /* Đổi sang màu vàng cam */
  color: var(--secondary-color);
}

/* --- XỬ LÝ ICON MŨI TÊN --- */
.news__view-all i {
  font-size: 1.8rem;
  /* Vị trí gốc */
  transform: translateY(-2px);
  /* Hiệu ứng mượt cho icon */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news__view-all:hover i {
  /* Khi hover: Icon bay lên trên và sang phải */
  transform: translate(3px, -5px);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
}
.news-card {
  border: 1px solid var(--border-light);
  border-radius: 16px;
}
.news-card__media {
  position: relative;
  height: 208px;
  overflow: hidden;
}
.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card__img {
  transform: scale(1.05);
}
.news-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.news-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 208px);
}
.news-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 16px;
}
.news-card__excerpt {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}
.news-card__link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.news-card__link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.news-card__link:hover i {
  transform: translateX(5px);
}

/* --- CONTACT --- */
.contact__container {
  display: flex;
  gap: 128px;
  align-items: flex-start;
}
.contact__desc {
  margin-bottom: 32px;
}
.contact__info {
  flex: 1.2;
  max-width: 576px;
}
.contact__list {
  margin-bottom: 32px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.contact__icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.contact__details {
  display: flex;
  flex-direction: column;
}
.contact__label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
}
.contact__value {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}
.contact__map-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-map);
  width: 100%;
  height: 320px;
  border-radius: 12px;
}

.contact__form-box {
  flex: 1;
  background: var(--bg-white);
  padding: 48px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-form);
}
.contact__form-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 32px;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-group {
  margin-bottom: 24px;
  width: 100%;
}
.form-label {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-label);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.form-input {
  width: 100%;
  padding: 16px 16px;
  background-color: var(--bg-gray-input);
  border: 1px solid var(--border-form);
  border-radius: 6px;
  font-size: 1.4rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(15, 79, 140, 0.1);
}
.form-textarea {
  height: 196px;
  resize: vertical;
}
.btn--submit {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 16px;
  font-size: 1.4rem;
  text-transform: uppercase;
  border-radius: 6px;
}
.btn--submit:hover {
  background-color: var(--primary-dark);
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-footer);
  color: var(--bg-white);
  padding: 96px 0;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.6fr 1.2fr;
  gap: 64px;
  padding-bottom: 40px;
}
.footer__title {
  margin-bottom: 32px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--secondary-color);
}
.footer__text {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text-muted);
}
.footer__link {
  color: var(--text-muted);
  display: block;
  margin-bottom: 24px;
  font-size: 1.4rem;
}
.footer__link::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  font-size: 1.2rem;
}
.footer__link:hover {
  color: var(--bg-white);
  padding-left: 5px;
}
.footer__contact-item {
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: #bbb;
}
.footer__contact-item i {
  width: 20px;
  color: var(--secondary-color);
}
.social-links {
  display: flex;
  gap: 24px;
}
.social-links__item {
  color: var(--bg-white);
  background: rgba(255, 255, 255, 0.1);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.social-links__item:hover {
  background: var(--primary-color);
}
.newsletter-form {
  display: flex;
  margin-top: 16px;
  height: 54px;
}
.newsletter-form__input {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.newsletter-form__btn {
  padding: 16px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.newsletter-form__btn:hover {
  background: var(--primary-dark);
}
.footer__bottom {
  border-top: 1px solid #222;
  padding-top: 32px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-muted);
}
/* =========================================
   13. RESPONSIVE (MOBILE & TABLET)
   ========================================= */

/* Mặc định: Ẩn nút menu 3 gạch trên PC */
.navbar__toggle {
  display: none;
}

/* =========================================
   A. TABLET & LAPTOP NHỎ (Max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
  /* --- 1. Global Layout --- */
  .container {
    padding: 0 24px;
  }

  /* Chuyển layout ngang sang dọc (Flex Column) */
  .about__container,
  .contact__container,
  .projects-showcase__container {
    flex-direction: column;
    gap: 48px;
    height: auto;
  }

  /* Full width cho các phần tử con */
  .about__media,
  .about__content,
  .contact__info,
  .projects-showcase__info,
  .projects-showcase__gallery {
    width: 100%;
    max-width: 100%;
  }

  /* --- 2. Grid System (Chuyển thành 2 cột) --- */
  .products__grid,
  .testimonials__grid,
  .news__grid,
  .footer__grid,
  .workflow__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* --- 3. About Section --- */
  .about-slider-wrapper {
    width: 100%;
    height: 400px;
  }
  .about__img {
    width: 100%;
    height: 400px;
  }
  .about__quote-box {
    position: relative;
    top: auto;
    left: auto;
    margin-top: -60px;
    margin-left: 40px;
    width: calc(100% - 80px);
    z-index: 10;
  }

  /* --- 4. Projects Section --- */
  .projects-showcase__gallery {
    height: auto;
  }
  .projects-showcase__large {
    height: 400px;
  }
}

/* =========================================
   B. MOBILE (Max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
  /* --- 1. Typography & Spacing --- */
  .section-padding {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }

  .heading-xl,
  .section-title {
    font-size: 2.8rem;
  }
  .hero__title {
    font-size: 3.2rem;
  }
  .hero__description {
    font-size: 1.6rem;
    padding: 0 10px;
  }

  /* --- 2. Navbar Mobile (Hamburger Menu) --- */
  .navbar {
    padding: 15px 0;
    background-color: var(--primary-color);
  }
  .logo-img {
    height: 35px;
  }
  .logo-text__top,
  .logo-text__bottom {
    font-size: 1.4rem;
  }
  .btn--quote {
    display: none;
  } /* Ẩn nút báo giá trên header */

  /* Nút Toggle 3 gạch */
  .navbar__toggle {
    display: block;
    z-index: 200;
  }
  .navbar__toggle .bar {
    background-color: var(--bg-white);
    transition: 0.3s;
  }
  /* Hiệu ứng X khi active */
  .navbar__toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar__toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar__toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Menu Dropdown */
  .navbar__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    text-align: center;
    padding: 0;

    /* Ẩn mặc định */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out,
      padding 0.4s ease;
    z-index: 150;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  /* Hiện menu khi có class active */
  .navbar__links.active {
    max-height: 500px;
    opacity: 1;
    padding: 20px 0;
  }
  .navbar__link {
    display: block;
    padding: 15px 0;
    font-size: 1.6rem;
    color: var(--bg-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  .navbar__link:last-child {
    border-bottom: none;
  }

  /* --- 3. Hero Section --- */
  .hero__actions {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  .hero__actions .btn {
    width: 100%;
  }

  /* --- 4. About Section --- */
  .about-slider-wrapper {
    height: 300px;
  }
  .about__media {
    width: 100%;
    position: relative;
    margin-bottom: 80px; /* Chừa chỗ cho box quote */
  }
  .about__img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
  }
  .about__quote-box {
    position: absolute;
    top: auto;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    margin: 0;
    border: 4px solid var(--bg-white);
    z-index: 10;
  }

  /* --- 5. Grid Layouts -> 1 Cột --- */
  .products__grid,
  .testimonials__grid,
  .news__grid,
  .footer__grid,
  .workflow__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* --- 6. Product & Project Cards --- */
  .product-card {
    height: auto;
    min-height: auto;
  }

  .projects-showcase__large {
    height: 250px;
  }
  .projects-showcase__small img {
    height: 200px;
  }

  /* --- 7. Slider Controls (Swiper & Old Slider) --- */
  /* Thu nhỏ nút bấm Swiper */
  .swiper-nav-btn-circle,
  .swiper-nav-btn-rect {
    width: 40px !important;
    height: 40px !important;
  }
  .swiper-nav-btn-circle i,
  .swiper-nav-btn-rect i {
    font-size: 1.2rem;
  }

  .prod-nav-btn,
  .slider-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  .prod-btn-prev,
  .slider-btn-prev {
    left: 0;
  }
  .prod-btn-next,
  .slider-btn-next {
    right: 0;
  }

  /* --- 8. Stats & Forms & News --- */
  .stats__container {
    flex-direction: column;
    gap: 40px;
  }

  .contact__form-box {
    padding: 24px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .news__header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .news__view-all {
    align-self: flex-start;
  }
}
