/* Khung ngoài cùng */
.UIAdvertisement_quancaocheo {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Khung quảng cáo */
.UIAdvertisement_quancaocheo .AdvertisementBottomRight {
  position: relative;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
}

/* Thanh điều khiển tiêu đề */
.UIAdvertisement_quancaocheo .AdvertTitleBar {
  position: relative;
  height: 24px;
}
.UIAdvertisement_quancaocheo .AdvertTitleBar .Collapse,
.AdvertTitleBar .Expand {
  display: inline-block;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Ẩn toàn bộ trên mobile */
@media only screen and (max-width: 700px) {
  .UIAdvertisement_quancaocheo {
    display: none;
  }
}

/* Khung nội dung */
.UIAdvertisement_quancaocheo .AdvertContent {
  position: relative;
  width: 100%;
  height: 120px; /* chỉnh chiều cao tuỳ ý */
  box-shadow: 0 0 1px #b7b7b7;
  overflow: hidden;
  border-radius: 6px;
}

/* Slider */
.UIAdvertisement_quancaocheo .AdvertContent .slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide items */
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* Link bao quanh ảnh */
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Ảnh trong slide */
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.5s ease, filter 0.5s ease;
  cursor: pointer;
  border-radius: 6px;
}

/* Hiệu ứng hover */
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item:hover img {
  transform: scale(1.05);   /* phóng to nhẹ */
  filter: brightness(1.1);  /* sáng hơn */
}

/* Animation cho 5 ảnh */
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item:nth-child(1) {
  animation: fade1 25s infinite;
}
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item:nth-child(2) {
  animation: fade2 25s infinite;
}
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item:nth-child(3) {
  animation: fade3 25s infinite;
}
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item:nth-child(4) {
  animation: fade4 25s infinite;
}
.UIAdvertisement_quancaocheo .AdvertContent .slider .slider_item:nth-child(5) {
  animation: fade5 25s infinite;
}

/* Keyframes với fade in/out mượt */
@keyframes fade1 {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  18%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes fade2 {
  0%, 20% { opacity: 0; }
  22% { opacity: 1; }
  38% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes fade3 {
  0%, 40% { opacity: 0; }
  42% { opacity: 1; }
  58% { opacity: 1; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes fade4 {
  0%, 60% { opacity: 0; }
  62% { opacity: 1; }
  78% { opacity: 1; }
  80% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes fade5 {
  0%, 80% { opacity: 0; }
  82% { opacity: 1; }
  98% { opacity: 1; }
  100% { opacity: 0; }
}
