@font-face {
  font-family: "chuatambao";
  src: url("../fonts/TPHanZi-Regular.woff2") format("woff2"),
    url("../fonts/TPHanZi-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-color: #e2a760;
  --secondary-color: #b21913;
  --swiper-theme-color: #3C1F57;
}

body {
  background-image: url("../images/bg1.jpg");
  object-fit: cover;
  /* overflow: hidden; */
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  cursor: pointer;
}
.text-chua {
  font-family: "chuatambao";
  color: #b21913;
  background-color: #e2a760;
  font-weight: 600;
  font-style: normal;
}
.item {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Để item tự động xuống dòng nếu không đủ chỗ */
}
.my-scroll {
  overflow-y: scroll;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* Firefox */

  /* Cho cảm giác iOS-style */
  -webkit-overflow-scrolling: touch;
}

/* WebKit (Chrome, Safari) */
.my-scroll::-webkit-scrollbar {
  width: 6px;
}

.my-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.card {
  flex: 1 1 30%; /* Đảm bảo các item có kích thước đều nhau và chiếm 30% chiều rộng */
  margin: 10px;
  padding: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid #ccc;
  border-radius: 15vw 15vw 1vw 1vw;
  -webkit-border-radius: 15vw 15vw 1vw 1vw;
  -moz-border-radius:  15vw 15vw 1vw 1vw;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 82vh;
  overflow: auto;
  background-image: radial-gradient(#fff, #fbb4cd);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  border-collapse: collapse;
}
@supports not (border-radius: 15vw) {
  .card {
      border-radius: 270px 270px 5px 5px;
  }
}
@media (max-width: 768px) {
  .text-chua {
    font-size: 1.5rem;
  }
  .card {
      border-radius: 270px 270px 5px 5px;
  }
}
.card-body {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
  flex-grow: 1; /* Để nội dung chiếm toàn bộ chiều cao còn lại của card */
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: bottom;
  object-fit: cover;
  background-size: auto 15%;
  background-image: url("../images/flower-1.png");
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Căn trên */
  align-items: center; /* Căn giữa theo chiều ngang */
  position: relative;
}

.card-body .list-wrapper {
  margin-top: auto;
  margin-bottom: auto;
}

ul.list-unstyled {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Đảm bảo các mục con cũng được căn giữa */
  align-items: center;
}

.search-container {
  position: absolute;
  top: 4px;
  left: 0;
  transform: translateX(0%);
  display: flex;
  align-items: center;
  z-index: 100;
}

#search-icon {
  cursor: pointer;
  font-size: 24px;
  padding: 8px;
  background: white;
  border-radius: 50%;
}

#search-box {
  margin-left: 10px;
  transition: all 0.3s ease;
}

#clear-search {
  margin-left: 10px;
  display: none;
}

.search-container.expanded #search-box,
.search-container.expanded #clear-search {
  display: inline-block;
}

.d-none {
  display: none;
}

.btn {
  border: none;
  cursor: pointer;
  margin-left: 10px;
  padding: 8px;
  border-radius: 50%;
  font-size: 24px;
  width: 70px;
}

.action-container {
  position: absolute;
  top: 10px;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 10;
}

button.owl-dot,
.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn:active:focus,
.btn:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.action-container > .btn {
  border: none;
  border-radius: none;
  width: 50px;
  height: 50px;
  color: #fff;
}

.btn-refresh::before {
  content: "\21bb"; /* Unicode for refresh icon */
}

.btn-fullscreen::before {
  content: "\26F6"; /* Unicode for fullscreen icon */
}

.fullscreen-active .btn-fullscreen::before {
  content: "\26F6"; /* Unicode for fullscreen exit icon */
}

@media (max-width: 767.98px) {
  .card {
    flex: 1 1 90%;
  }
}

/* Ngăn chặn scroll ngang */
.swiper-container {
  width: 100%;
  overflow: hidden; /* Ẩn phần dư thừa */
}

/* Đảm bảo wrapper không vượt quá kích thước container */
.swiper-wrapper {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

/* Đảm bảo slide không bị quá rộng */
.swiper-slide {
  max-width: 100%;  /* Đảm bảo không lớn hơn container */
  box-sizing: border-box;
}