.entry-title {
  display: none !important;
}

.cursor-pointer {
  cursor: pointer;
}

.menu-item {
  cursor: pointer;
}

.menu-item.active {
  border-bottom: 3px solid #32c0e6;
}

.menu-item:hover h2,
.menu-item.show h2,
.menu-item.active h2,
.sub-menu-item:hover p {
  color: #4ac7e9;
}

.menu-item .sub-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out;
}

.menu-item.show .sub-menu {
  max-height: 500px;
  opacity: 1;
}

.menu-item.show .elementor-icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease-in-out;
  color: #4ac7e9 !important;
  border-color: #4ac7e9 !important;
}

.menu-item.show .elementor-icon svg {
  fill: #4ac7e9 !important;
}

.menu-mobile {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.menu-mobile.show {
  max-width: 100%;
  opacity: 1;
  pointer-events: auto;
}

.menu-mobile .main-menu-mobile {
  z-index: 9999;
  transform: translateX(100%); /* đẩy ra ngoài màn hình bên phải */
  opacity: 0;
  transition:
    transform 0.4s ease-in-out,
    opacity 0.3s ease-in-out;
}

.menu-mobile.show .main-menu-mobile {
  transform: translateX(0); /* trượt vào đúng vị trí */
  opacity: 1;
}

.mobile-sub-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out;
}

.menu-mobile-item.active + .mobile-sub-menu {
  max-height: 500px;
  opacity: 1;
}

.menu-mobile-item.active .sub-menu-toggle .elementor-icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease-in-out;
}

/* Banner Home */

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

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-container {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.position-relative {
  position: relative;
}

.banner-content {
  position: absolute;
  top: 120px;
  left: 8px;
  max-width: 600px;
  z-index: 3;
}

.banner-title {
  font-size: 48px;
  font-weight: 400;
  color: #1689ca;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 24px;
  font-family: "VIP Outfit Regular";
}

.banner-description {
  font-size: 20px;
  color: #0a3f5c;
  font-weight: 400;
  line-height: 1.5;
  font-family: "VIP Outfit Regular";
}

.banner-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px; /* khoảng cách với đoạn description phía trên */
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.banner-dot.active {
  width: 48px;
  border-radius: 8px;
  background: #4ac7e9;
}

:root {
  --dur: 0.8s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dist: 40px;
}

.reveal {
  opacity: 0;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  will-change: opacity, transform;
}

.fade-in {
}

/* Fade in từ dưới lên (mặc định hay dùng nhất) */
.fade-in-up {
  transform: translateY(var(--dist));
}

/* Fade in từ trên xuống */
.fade-in-down {
  transform: translateY(calc(var(--dist) * -1));
}

/* Fade in từ trái sang */
.fade-in-left {
  transform: translateX(calc(var(--dist) * -1));
}

/* Fade in từ phải sang */
.fade-in-right {
  transform: translateX(var(--dist));
}

/* Zoom in nhẹ kèm fade */
.zoom-in {
  transform: scale(0.85);
}

/* Zoom out nhẹ kèm fade */
.zoom-out {
  transform: scale(1.15);
}

/* Flip theo trục X */
.flip-up {
  transform: perspective(600px) rotateX(40deg);
}

/* Xoay nhẹ kèm fade */
.rotate-in {
  transform: rotate(-8deg) scale(0.95);
}

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0) rotateX(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.25s;
}
.delay-3 {
  transition-delay: 0.4s;
}
.delay-4 {
  transition-delay: 0.55s;
}

.duration-slow {
  transition-duration: 1.4s;
}
.duration-fast {
  transition-duration: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.video-section {
  height: 675px;
}

.before-text {
  display: flex;
  align-items: center;
  width: fit-content;
}

.before-text::before {
  content: "";
  display: flex;
  width: 3px;
  height: 13px;
  background: #4ac7e9;
  margin-right: 11px;
  margin-top: 7px;
}

.news-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-slider-track-container {
  overflow: hidden;
  width: 100%;
}

.news-slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
}

.news-slide-item {
  flex: 0 0 calc((100% - 60px) / 3); /* 3 item mỗi hàng, trừ khoảng gap */
  min-width: 0;
}

.news-slide-thumb {
  display: block;
  width: 100%;
  height: 231px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
}

.news-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-slide-thumb:hover img {
  transform: scale(1.05);
}

.news-slide-title {
  font-family: "VIP Outfit Regular";
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 8px;
}

.news-slide-title a {
  color: #292e7a;
  text-decoration: none;
}

.news-slide-excerpt {
  font-size: 14px;
  color: #292e7a;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
  font-family: "Fz Poppins";
}

.news-slide-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: #1689ca;
  text-decoration: none !important;
  font-family: "VIP Outfit Regular";
}

.news-slider-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #363ca0;
  background: #fff;
  color: #363ca0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-slider-arrow:hover {
  background: #4a7fc9;
  color: #fff;
}

.news-slider-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.text-primary {
  color: #292e7a;
}

/* Responsive: 2 item trên tablet, 1 item trên mobile */
@media (max-width: 992px) {
  .home-banner {
    height: 100vh;
  }

  .news-slide-item {
    flex: 0 0 calc((100% - 30px) / 2);
  }

  .video-section {
    height: fit-content;
  }
}

@media (max-width: 600px) {
  .banner-title {
    font-size: 28px;
  }

  .banner-description {
    font-size: 14px;
  }

  .news-slide-item {
    flex: 0 0 100%;
  }
}
