/* Show Alert */
[show-alert] {
  position: fixed;
  top: 70px;
  right: 15px;
  z-index: 9999;
}

[show-alert].alert-hidden {
  animation-name: alert-hidden;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

@keyframes alert-hidden {
  from {
    right: 15px;
  }
  to {
    right: -100%;
    display: none;
  }
}

[show-alert] [close-alert] {
  background: #fffffc;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
}

/* Header */
.header .top-bar {
  font-size: 0.875rem;
}

.header .contact-info a:hover {
  opacity: 0.8;
}

.header .social-links a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.header .social-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0d6efd;
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  transition: all 0.3s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  padding-left: 2rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.footer .text-light-50 {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer .text-light-50:hover {
  color: rgba(255, 255, 255, 1);
}

.footer h5 {
  font-weight: 600;
  padding-bottom: 10px;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, transparent);
}

.footer .social-links .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer .social-links .btn:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  transform: translateY(-3px);
}

.footer ul li a {
  display: inline-block;
  transition: all 0.3s;
}

.footer ul li a:hover {
  color: #0d6efd !important;
  padding-left: 5px;
}

.footer .border-secondary {
  opacity: 0.2;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  transition: all 0.3s;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.back-to-top.show {
  display: flex;
}

/* Hero Carousel */
.hero-carousel {
  width: 100%;
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#heroCarousel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 720px;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-size: 100%, 100%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.carousel-indicators .active {
  width: 40px;
  border-radius: 6px;
  background-color: #fff;
}

/* ===== HERO CAROUSEL MODERN - KHÔNG CẮT ẢNH ===== */
.hero-carousel-modern {
  width: 100%;
  padding: 0;
  background: #000;
  position: relative;
}

#heroCarouselClean {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 700px;
  position: relative;
  overflow: hidden;
}

/* Hero Image - GIỮ NGUYÊN TỶ LỆ ẢNH - BỎ ANIMATION */
.hero-image {
  width: 100%;
  height: auto;
  min-height: 400px;
  max-height: 700px;
  object-fit: contain;
  object-position: center;
  background: #000;
  /* ⭐ BỎ transition để không có hiệu ứng phóng to */
  transition: none;
}

/* ⭐ XÓA HOẶC COMMENT animation kenBurns */
/* .carousel-item.active .hero-image {
  animation: kenBurns 8s ease-in-out forwards;
} */

/* ⭐ XÓA HOẶC COMMENT keyframes kenBurns */
/* @keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
} */

/* Carousel Controls - Modern Design */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 10;
}

#heroCarouselClean:hover .carousel-control-prev,
#heroCarouselClean:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-size: 24px;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Indicators - Sleek Design */
.carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
  z-index: 10;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  width: 40px;
  border-radius: 6px;
  background-color: #fff;
  transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  #heroCarouselClean {
    min-height: 350px;
    max-height: 550px;
  }
  
  .hero-image {
    min-height: 350px;
    max-height: 550px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev {
    left: 20px;
  }
  
  .carousel-control-next {
    right: 20px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 50px;
    height: 50px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  #heroCarouselClean {
    min-height: 280px;
    max-height: 400px;
  }
  
  .hero-image {
    min-height: 280px;
    max-height: 400px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 18px;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  
  .carousel-indicators .active {
    width: 24px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  #heroCarouselClean {
    min-height: 220px;
    max-height: 320px;
  }
  
  .hero-image {
    min-height: 220px;
    max-height: 320px;
  }
  
  .carousel-indicators {
    bottom: 15px;
  }
}

/* ===== END HERO CAROUSEL ===== */
