/* Font chữ thân storefront = Inter (nạp từ Google Fonts ở 2 base template). Trước
   08/10/2026 là "Roboto Condensed-Bold" — tên KHÔNG tồn tại ⇒ rơi về Helvetica/Arial,
   lệch với các trang có main.css (Inter). Xem docs/frontend/SOP_FONT_TIENG_VIET.md. */
body {
  margin: 0;
  font-family: "Inter", Helvetica, Arial, sans-serif;
}

.header {
  background: #000;
  color: #fff;
  padding: 0;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 80px;
  gap: 0;
}

.header-col {
  display: flex;
  align-items: center;
}

.logo-col {
  flex: 0 0 auto;
}

.menu-search-col {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.menu {
  flex: 0 1 auto;
}

.menu ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu ul li a {
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.menu ul li a:hover {
  color: #86d10f;
}

.header-search-form {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.header-search-input {
  padding: 8px 14px;
  border: 1px solid #86d10f;
  border-radius: 5px 0 0 5px;
  font-size: 15px;
  outline: none;
  height: 38px;
  width: 200px;
  background: #fff;
  color: #222;
  transition: border 0.2s;
}

.header-search-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #86d10f;
  border-left: none;
  background: #86d10f;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-btn:hover {
  background: #6bb300;
}

.icon-col {
  flex: 0 0 auto;
  gap: 12px;
  display: flex;
  align-items: center;
}

.header-icon {
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon:hover {
  background: rgba(134, 209, 15, 0.15);
  transform: scale(1.1);
}

.logo-img {
  width: 180px;
  height: auto;
  display: block;
}

@media (max-width: 988px) {
  .header-container {
    flex-direction: row;
    padding: 0 10px;
    min-height: 56px;
  }
  .logo-img {
    width: 100px;
  }
  .menu-search-col {
    gap: 10px;
  }
  .menu {
    display: none;
  }
  .header-search-form {
    margin-left: 0;
  }
  .header-search-input {
    width: 100px;
    font-size: 13px;
    height: 32px;
  }
  .header-search-btn {
    height: 32px;
    padding: 0 8px;
  }
  .icon-col {
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 4px;
    min-height: 0;
  }
  .logo-col {
    justify-content: center;
    margin-bottom: 2px;
  }
  .menu-search-col {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .header-search-form {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .header-search-input {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    height: 30px;
  }
  .header-search-btn {
    height: 30px;
    padding: 0 6px;
  }
  .icon-col {
    justify-content: center;
    gap: 4px;
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1290px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.logo img {
  width: 209px;
  height: 93px;
}

.icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-wrapper {
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hiệu ứng hover */
.icon-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Hiệu ứng click */
.icon-wrapper:active {
  transform: scale(0.9);
}

.icons-mobile {
  display: none;
}

#search-input {
  display: none !important;
}

#search-btn {
  padding: 8px;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#search-btn:hover {
  background: darkgreen;
}

.section-title {
  margin-top: 75px;
  text-align: center;
  color: #86d10f; /* Màu xanh lá cây */
  font-family: inherit;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

@media (max-width: 988px) {
  .section-title {
    margin-top: 0px;
    text-align: center;
  }

  .icons {
    display: none;
  }

  .logo img {
    width: 89px;
    height: 40px;
    object-fit: contain;
  }

  .icons-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .menu {
    display: none; /* Ẩn menu desktop trên mobile */
  }

  .mobile-overlay {
    display: none; /* Ẩn lớp phủ nếu không cần */
  }

  /* Tuỳ chọn popup hiển thị */
  #cart-popup,
  #search-popup {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    padding: 16px;
    display: none;
  }

  .popup-header.active {
    display: block;
  }

  .popup-header input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
}

/* Popup Header Styles */
.popup-header {
  display: none;
  position: absolute;
  top: 120px;
  width: 300px;
  left: 70%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 9999;
}

.popup-header .popup-content {
  padding: 15px;
  max-width: 300px;
  margin: 0 auto;
}

.popup-header h2 {
  color: #86d10f;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.popup-header input[type="text"] {
  width: 90%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* Custom Theme for Header Popup */
.popup-header {
  background-color: white;
  border: 1px solid #86d10f;
}

.popup-header h2 {
  color: #86d10f;
  font-weight: bold;
}

.popup-header input[type="text"] {
  border: 1px solid #86d10f;
}

/* Responsive Styles for Mobile */
@media (max-width: 988px) {
  .popup-header {
    width: 90%;
  }
}

.banner-home {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: flex;
  position: relative;
  transition: transform 0.5s ease-in-out;
  height: auto; /* Đảm bảo chiều cao đầy đủ cho carousel */
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.slide img {
  max-width: 100%;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicators div {
  width: 25px;
  height: 25px;
  background-color: #86d10f;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.carousel-indicators div.active {
  opacity: 1;
  background-color: #ffffff;
}

.icon-sport-container {
  display: flex;
  justify-content: center; /* Đặt các icon vào giữa màn hình */
  align-items: center;
  gap: 43px; /* Khoảng cách giữa các icon */
  height: 200px;
}

.icon-sport {
  width: 97px; /* Kích thước vòng tròn bên ngoài */
  height: 97px;
  background-color: #86d10f; /* Màu nền xanh lá cây */
  border-radius: 50%; /* Tạo hình tròn */
  display: flex;
  justify-content: center; /* Căn giữa nội dung */
  align-items: center;
}

.icon-sport img {
  width: 70px; /* Kích thước icon */
  height: 70px;
}

@media (max-width: 988px) {
  .icon-sport-container {
    display: flex;
    justify-content: center; /* Đặt các icon vào giữa màn hình */
    align-items: center;
    gap: 43px; /* Khoảng cách giữa các icon */
    height: 100px;
  }

  .icon-sport {
    width: 43px; /* Kích thước vòng tròn bên ngoài */
    height: 43px;
    background-color: #86d10f; /* Màu nền xanh lá cây */
    border-radius: 50%; /* Tạo hình tròn */
    display: flex;
    justify-content: center; /* Căn giữa nội dung */
    align-items: center;
  }
  .icon-sport img {
    width: 36px; /* Kích thước icon */
    height: 36px;
  }
}

.tirst-part {
  text-align: center;
  margin-top: 40px;
}

.sports-carousel {
  position: relative;
  height: 170px;
  margin: 0 auto;
  overflow: clip;
  width: calc(100% - 268px);
}

.carousel-track {
  width: calc(100% - 268px);
  display: flex;
  width: max-content;
  transition: transform 0.5s ease-in-out;
}

.sport-item {
  position: relative;
  width: 268px;
  height: 170px;
  margin-right: 23px;
  background-color: #d9d9d9;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  user-select: none; /* Ngăn chọn ảnh */
  /* pointer-events: none; */
}

.sport-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.sport-item p {
  color: #fff;
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal;
  z-index: 2;
  margin: 0;
  word-wrap: break-word;
  width: 90%;
  text-align: center;
}
.carousel-sport {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-sport div {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #d9d9d9;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.carousel-sport div.active {
  background-color: #86d10f;
}

@media (max-width: 988px) {
  .section-title {
    text-align: center;
    margin-top: 25px;
    font-size: 16px;
  }

  .sub-title {
    font-size: 12px !important;
  }

  .section-title h2 {
    color: #86d10f; /* Màu xanh lá cây */
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 45px;
  }

  .carousel-sport {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
  }

  .sports-carousel {
    position: relative;
    height: 170px;
    margin: 0 auto;
    overflow: clip;
    width: calc(100% - 16px);
  }
}

.products-home {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.products-home .product-img {
  width: 218px;
  height: 218px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease-in-out;
}

.products-home .product-variants {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.products-home .product-variants .variant {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  border: 1px solid #000;
  background: #d9d9d9;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ảnh bên trong variant */
.products-home .product-variants .variant img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(2.5);
}

.product-name,
.product-price {
  color: #000;
  font-family: inherit;
  font-size: 15px;
  margin: 5px 0;
}

.product-rating {
  display: none;
}

@media (max-width: 988px) {
  .section-title h2 {
    font-size: 16px;
    gap: 6px;
  }

  .products-home {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    gap: 12px;
    padding: 10px;
    scroll-behavior: smooth;
    width: 100%;
    flex-wrap: nowrap;
    scrollbar-width: none; /* Firefox */
  }
  .products-home::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .product-home {
    flex: 0 0 auto;
    width: 173px;
    height: 256px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
    scroll-snap-align: start;
  }

  .products-home .product-img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .product-name {
    font-size: 13px;
    font-weight: 500;
    margin: 4px 0 2px;
    text-align: center;
  }

  .product-price {
    font-size: 13px;
    font-weight: bold;
    margin-top: 6px;
    color: #000;
    text-align: center;
  }

  .color-options {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    gap: 4px;
  }

  .color-option {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccc; /* màu xám mẫu */
    border: 1px solid #999;
  }

  .product-rating {
    font-size: 12px;
    background: #fff9e5;
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 4px;
    font-weight: bold;
  }

  .fullscreen-banner {
    height: 237px !important;
  }

  .fullscreen-banner img {
    width: 100%;
    height: auto;
    max-width: 100vw;
    display: block;
  }
}
.new_arrival h2 {
  display: none;
}

.new-products {
  margin-top: 30px;
}

.sub-title {
  color: #86d10f;
  text-align: center;
  font-family: inherit;
  font-size: 20px;
}

.products-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.banner-new-products {
  margin-top: -50px;
  width: 447px;
  height: 226px;
  overflow: hidden;
  border-radius: 8px;
}

.banner-new-products img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.banner {
  width: 447px;
  height: 226px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-btn {
  width: 50px; /* Kích thước nút */
  height: 50px;
  border-radius: 50%; /* Bo tròn */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.carousel-btn img {
  width: 100%; /* Kích thước icon chiếm 60% của nút */
  height: auto;
}

.carousel-btn:hover {
  background-color: #75c00d; /* Hiệu ứng hover */
  /* transform: scale(1.1);  */
  /* Phóng to nhẹ */
}

.carousel-btn:active {
  /* transform: scale(0.95);  */
  /* Nhấn xuống thì nhỏ lại */
}

/* Banner tràn màn hình */
.fullscreen-banner {
  margin-top: 30px;
  width: 100%;
  height: 547px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ảnh nền của banner */
.fullscreen-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

@media (max-width: 988px) {
  .new_arrival h2 {
    color: #86d10f;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
  }

  .banner-wrapper {
    display: none;
  }

  .carousel-btn {
    display: none;
  }
}

.banner-content {
  position: absolute;
  top: 76%;
  left: 80%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

/* Nút chuyển hướng */
.banner-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 333px;
  height: 62px;
  border-radius: 39px;
  background: #000;
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  margin-top: 20px;
}

/* Icon trong nút */
.banner-button img {
  position: relative;
  width: 26px;
  height: 26px;
  z-index: 10;
  top: -2px;
}

/* Hover effect */
.banner-button:hover {
  background: #222;
  transform: scale(1.05);
}

.display-frame-container-right {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Banner hình ảnh */
.image-banner {
  width: 447px;
  height: 258px;
  border-radius: 12px;
  position: relative;
  overflow: hidden; /* Đảm bảo ảnh không bị tràn */
}

/* Ảnh nền lớn */
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh lấp đầy banner mà không méo */
  border-radius: 12px;
}

/* Danh sách sản phẩm */
.products-frame {
  display: flex;
  gap: 20px;
}

/* Khung sản phẩm */
.product-frame {
  position: relative;
  width: 217px;
  text-align: left;
}

/* Ảnh sản phẩm */
.product-img-frame {
  width: 217px;
  height: 217px;
  border-radius: 12px;
  display: block;
}

/* Lớp phủ chứa thông tin sản phẩm */
.product-overlay-frame {
  width: 197px;
  height: 49px;
  background: #000;
  z-index: 10;
  padding: 5px 10px;
  display: flex;
  flex-direction: row; /* Sắp xếp theo chiều ngang */
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 0;
  border-radius: 8px;
}

.product-info-frame {
  display: flex;
  flex-direction: row; /* Đưa tên và giá về cùng một hàng */
  align-items: center;
  gap: 10px; /* Khoảng cách giữa tên và giá */
}

/* Tên và giá sản phẩm */
.product-name-frame,
.product-price-frame {
  font-size: 12px;
  color: #fff;
  margin: 0;
  white-space: nowrap; /* Ngăn chữ bị xuống dòng */
}

/* Khung chứa tên và giá sản phẩm */
.product-info-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Canh trái */
}

@media (max-width: 988px) {
  /* Container bố trí mặc định (banner bên phải sản phẩm) */
  .display-frame-container-right.banner-on-top-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Đổi thứ tự hiển thị: banner lên trên */
  .display-frame-container-right.banner-on-top-mobile .image-banner {
    order: -1;
    width: 100%;
    max-width: 447px;
    height: 237px;
    border-radius: 12px;
    overflow: hidden;
  }

  .display-frame-container-right {
    display: flex;
    flex-direction: column; /* xếp dọc: banner trên, sản phẩm dưới */
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }

  /* Banner ảnh thu gọn */
  .image-banner {
    width: 100%; /* full chiều ngang container */
    max-width: 447px; /* max width như desktop */
    height: 237px; /* theo yêu cầu */
    border-radius: 12px;
    position: relative;
    overflow: hidden;
  }

  .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Khung sản phẩm: xếp ngang lướt được */
  .products-frame {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    justify-items: center;
    width: 100%;
    max-width: 447px;
    overflow: hidden;
    padding: 0 12px;
    height: 256px;
    padding-bottom: 15px;
  }

  .products-frame {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Khung sản phẩm */
  .product-frame {
    display: flex;
    width: 173px;
    height: 256px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.25);
  }

  /* Ảnh sản phẩm */
  .product-img-frame {
    width: 173px;
    height: 173px; /* Giữ tỉ lệ vuông */
    border-radius: 12px;
    display: block;
    object-fit: cover;
  }

  /* Lớp phủ chứa thông tin sản phẩm */
  .product-overlay-frame {
    width: 153px; /* nhỏ hơn ảnh để có padding */
    height: 49px;
    background-color: #fff;
    z-index: 10;
    padding: 5px 10px;
    display: flex;
    flex-direction: column; /* chỉnh lại thành cột */
    justify-content: center;
    position: absolute;
    bottom: 8px; /* cách đáy một chút */
    border-radius: 8px;
  }

  .product-info-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .product-name-frame,
  .product-price-frame {
    font-size: 12px;
    color: #000;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Bố cục chính */
.partner-library-section {
  display: flex;
  justify-content: center;
  gap: 41px;
  margin-top: 70px;
}

/* Khung chính cho từng phần */
.partner-card,
.library-card {
  width: 555px;
  height: 354px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Ảnh nền */
.partner-card img,
.library-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Lớp nền đen mờ */
.partner-overlay,
.library-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Tiêu đề */
.partner-title,
.library-title {
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 48px;
  margin: 0;
}

/* Nút hành động */
.partner-btn,
.library-btn {
  width: 218px;
  height: 49px;
  border-radius: 24.5px;
  background: #86d10f;
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 3px;
  transition: 0.3s ease-in-out;
}

/* Hover effect */
.partner-btn:hover,
.library-btn:hover {
  background: #75c00d;
  transform: scale(1.05);
}

@media (max-width: 988px) {
  .partner-library-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
  }

  .partner-card,
  .library-card {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .partner-card img,
  .library-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
  }

  .partner-card,
  .library-card {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
  }

  .partner-title,
  .library-title {
    font-size: 24px;
  }

  /* Nút hành động */
  .partner-btn,
  .library-btn {
    border-radius: 24.5px;
    padding: 10px 30px;
    gap: 10px;
    margin-top: 3px;
  }
}

/* Phần chính */
.sponsor-projects {
  text-align: center;
  margin: 40px 0;
}

/* Grid hình ảnh */
.sponsor-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 710px 360px 320px;
  grid-template-rows: 356px 364px;
  gap: 10px;
  justify-content: center;
}

/* Cấu trúc các hình */
.sponsor-item {
  border-radius: 12px;
  overflow: hidden;
}

/* Hình ảnh chiếm đúng kích thước */
.sponsor-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kích thước cụ thể của từng hình */
.sponsor-large {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  width: 710px;
  height: 356px;
}

.sponsor-medium {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 360px;
  height: 356px;
}

.sponsor-tall {
  grid-column: 3 / 4;
  grid-row: 1 / 3; /* Đảm bảo hình này chiếm cả 2 hàng */
  width: 320px;
  height: 730px;
}

.sponsor-small {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  width: 420px;
  height: 364px;
}

.sponsor-wide {
  margin-left: -292px;
  width: 654px;
  height: 364px;
  align-self: start; /* Đảm bảo nó không bị đẩy lên */
}

@media (max-width: 988px) {
  .sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột chia đều */
    grid-template-rows: auto;
    gap: 10px;
    padding: 0 10px;
  }

  /* Thu nhỏ tất cả ảnh còn lại */
  .sponsor-large,
  .sponsor-medium,
  .sponsor-small,
  .sponsor-wide,
  .sponsor-item {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2; /* giữ tỷ lệ hài hòa, ảnh không quá cao */
    border-radius: 12px;
    overflow: hidden;
  }

  .sponsor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .sponsor-wide {
    margin-left: 0 !important;
    align-self: auto !important;
  }

  .sponsor-large {
    height: 137px;
  }

  .sponsor-medium {
    height: 137px;
  }

  .sponsor-small {
    height: 137px;
  }

  .sponsor-wide {
    height: 137px;
  }
}

@media (max-width: 768px) {
  .sponsor-tall {
    display: none !important;
  }
}

/* Phần chính */
.customer-section {
  text-align: center;
  margin: 40px 0;
}

/* Bố cục carousel */
.customer-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  overflow: hidden; /* Ẩn logo ngoài phạm vi */
}

.customer-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

.customer-logos {
  display: flex;
  gap: 14px;
  width: 100%; /* Hoặc chỉnh theo thiết kế */
  max-width: 1200px;
  position: relative;
}

.logo-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Hiệu ứng trượt mượt */
  will-change: transform;
}

.logo-circle {
  flex: 0 0 calc(100% / 6 - 20px); /* Đảm bảo mỗi lần hiển thị đúng 6 logo */
  text-align: center;
}
.logo-circle {
  width: clamp(
    90px,
    25vw,
    178px
  ); /* Co giãn theo màn hình: min 90px, max 178px */
  aspect-ratio: 1 / 1; /* ✅ Giữ hình tròn tự động */
  border-radius: 50%;
  border: 3px solid #86d10f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-circle img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Bố cục comment của khách hàng */
.testimonial-section {
  text-align: center;
  margin: 40px 0;
}

/* Bố cục carousel */
.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

/* Khung chứa comment */
.testimonial-container {
  width: calc((273px + 20px) * 4); /* Hiển thị tối đa 4 comment */
  max-width: 100%;
  overflow: hidden;
}

/* Dòng trượt của comment */
.testimonial-wrapper {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

/* Thẻ nhận xét */
.testimonial-card {
  width: 273px;
  height: 535px;
  border-radius: 12px;
  background: rgba(134, 209, 15, 0.57);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0; /* Ngăn thẻ bị co lại */
}

/* Hình ảnh khách hàng */
.customer-img {
  border-width: 2px;
  border-style: solid;
  border-color: rgb(255, 255, 255);
  width: 270px;
  height: 270px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Tên khách hàng */
.customer-name {
  font-family: inherit;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 268px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #ededed;
    background: #fff;
    box-shadow: 4px 8px 4px 0px rgba(0, 0, 0, 0.25);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .customer-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
  }

  .customer-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
  }

  .customer-comment {
    font-size: 14px;
    color: #000;
    text-align: left;
    line-height: 1.5;
    width: 100%;
    margin-top: 8px;
  }
}

.rating-container {
  display: flex;
  align-items: center; /* Căn giữa theo chiều dọc */
  position: relative; /* Để dùng absolute cho star-rating */
  width: 100%;
}

.quote-icon {
  display: inline-block;
  flex-shrink: 0; /* Giữ nguyên kích thước */
  width: 20px; /* Điều chỉnh kích thước phù hợp */
  height: 35px;
  font-size: 60px;
  color: #fff;
}

.star-rating {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Đảm bảo căn giữa hoàn hảo */
  white-space: nowrap; /* Tránh bị xuống dòng */
}

.star-rating .star {
  font-size: 20px;
  color: #ffd700;
}

.star-rating .star.empty {
  color: transparent;
  -webkit-text-stroke: 1px #ffd700; /* Viền màu vàng */
}

/* Bình luận khách hàng */
.customer-comment {
  font-family: inherit;
  font-size: 14px;
  color: #444;
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 1280px) {
  .testimonial-container {
    width: calc(
      (273px + 20px) * 3
    ); /* Hiển thị 3 comment trên màn hình trung bình */
  }
}

@media (max-width: 1024px) {
  .testimonial-container {
    width: calc((273px + 20px) * 2); /* Hiển thị 2 comment trên tablet */
  }
}

@media (max-width: 768px) {
  .testimonial-container {
    width: calc((273px + 20px) * 1); /* Hiển thị 1 comment trên mobile */
  }
}

#alertBox {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 9999;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 15px;
}

.progress-bar div {
  height: 100%;
  background-color: #4caf50;
  width: 0;
  transition: width 3s linear;
}

/* đây là popup thông báo */
.popup {
  position: fixed;
  top: 90px;
  right: -100%;
  width: 350px;
  background-color: #fff;
  color: #333;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: right 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  z-index: 1000;
}

.popup-content {
  font-size: 16px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #86d10f;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Hiện nút */
#scrollToTopBtn.show {
  opacity: 1;
  transform: scale(1);
}

#scrollToTopBtn svg {
  width: 24px;
  height: 24px;
}

/* --- HEADER SEARCH & MENU FINAL FIX START --- */
.header .search-input {
  margin-left: 24px;
  margin-right: 8px;
  border: 1px solid #86d10f;
  border-radius: 5px 0 0 5px;
  font-size: 15px;
  outline: none;
  height: 36px;
  width: 180px;
  background: #fff;
  color: #222;
  transition: border 0.2s;
}
.header .search-button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #86d10f;
  border-left: none;
  background: #86d10f;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.2s;
}
.header .search-button:hover {
  background: #6bb300;
}
.menu {
  margin-left: 24px;
  margin-right: 24px;
}
.menu ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow-x: auto;
}
.menu ul li {
  white-space: nowrap;
  margin-right: 0;
}
.header .container {
  flex-wrap: nowrap;
  min-width: 0;
}
.menu ul li a {
  font-size: 13px;
  padding: 0 4px;
}
.mobile-header-search-container {
  margin-left: 24px;
  margin-right: 24px;
}
/* --- HEADER SEARCH & MENU FINAL FIX END --- */
