/* #region Slider Hero trang home */
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: 70vh;
  padding: 0;
  margin: 0;
  position: relative;
}

@media (max-height: 500px), (max-width: 580px) {
  .hero .carousel {
    min-height: 100vh;
  }
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero .container {
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  position: relative;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-top: 4px solid var(--accent-color);
  z-index: 3;
}

@media (max-width: 1200px) {
  .hero .container {
    margin-left: 50px;
    margin-right: 50px;
  }
}

.hero h2 {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero .btn-get-started {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  transition: 0.3s;
  margin: 10px;
  border-radius: 5px;
  color: var(--contrast-color);
  background: var(--accent-color);
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

.hero .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}

.hero .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 50px;
  color: var(--contrast-color);
  transition: 0.3s;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

.hero .carousel-control-prev:hover .carousel-control-next-icon,
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon,
.hero .carousel-control-next:hover .carousel-control-prev-icon {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.hero .carousel-indicators li {
  cursor: pointer;
  background: var(--contrast-color);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 1;
  transition: 0.3s;
}

.hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--accent-color);
}
/* #endregion*/
/* #region Featured services trang home */
.featured-services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  z-index: 1;
  width: 100%;
}

.featured-services .service-item:before {
  content: "";
  position: absolute;
  background: var(--accent-color);
  inset: 100% 0 0 0;
  transition: all 0.3s;
  z-index: -1;
}

.featured-services .service-item .icon {
  margin-bottom: 10px;
}

.featured-services .service-item .icon img {
  /* color: var(--accent-color);
  font-size: 36px;
  transition: ease-in-out 0.3s; */
  max-height: 50px;
}

.featured-services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.featured-services .service-item h4 a {
  color: var(--accent-color);
  transition: ease-in-out 0.3s;
}

.featured-services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  transition: ease-in-out 0.3s;
}

.featured-services .service-item:hover h4 a,
.featured-services .service-item:hover .icon i,
.featured-services .service-item:hover p {
  color: var(--contrast-color);
}

.featured-services .service-item:hover:before {
  background: var(--accent-color);
  inset: 0;
  border-radius: 0px;
}
/*#endregion*/
/* #region Values */
.values .card {
  background-color: var(--surface-color);
  color: var(--default-color);
  padding: 30px;
  box-shadow: 0px 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s;
  height: 100%;
  border: 0;
}

.values .card img {
  padding: 30px 50px;
  transition: 0.5s;
  transform: scale(1.1);
}

.values .card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.values .card:hover {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.values .card:hover img {
  transform: scale(1);
}
/*#endregion*/
/* #region About */
.about {
  padding-top: 100px;
}

.about .content h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: var(--accent-color);
  border-radius: 7px;
  display: inline-block;
}

.about .content h2 {
  font-weight: 700;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content .read-more {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 5px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about .content .read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.about .content .read-more:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  padding-right: 19px;
}

.about .content .read-more:hover i {
  margin-left: 10px;
}

/* Căn giữa các icon-box */
.about .icon-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.about .icon-box {
  background-color: var(--surface-color);
  padding: 50px 40px;
  box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease-out 0s;
  text-align: center; /* Căn giữa nội dung trong box */
  width: 100%; /* Đảm bảo width đầy đủ */
  max-width: 350px; /* Giới hạn width tối đa */
}

.about .icon-box i {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto; /* Căn giữa icon */
  font-size: 32px;
  line-height: 0;
  transition: all 0.4s ease-out 0s;
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: var(--accent-color);
}

.about .icon-box .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex; /* Thay đổi từ inline-flex thành flex */
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto; /* Căn giữa icon */
  font-size: 32px;
  line-height: 0;
  transition: all 0.4s ease-out 0s;
}

.about .icon-box .icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.about .icon-box h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center; /* Căn giữa tiêu đề */
}

.about .icon-box p {
  margin-bottom: 0;
  text-align: center; /* Căn giữa mô tả */
}

.about .icon-box:hover i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

/* .about .icon-boxes .col-md-6:nth-child(2) .icon-box,
.about .icon-boxes .col-md-6:nth-child(4) .icon-box {
  margin-top: -40px;
}

@media (max-width: 768px) {
  .about .icon-boxes .col-md-6:nth-child(2) .icon-box,
  .about .icon-boxes .col-md-6:nth-child(4) .icon-box {
    margin-top: 0;
  }
} */
/*#endregion*/
/* #region WeAre trang home */
.weare {
  padding: 100px 0;
  position: relative;
  clip-path: inset(0);
}

.weare img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.weare:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.weare .container {
  position: relative;
  z-index: 3;
}

.weare h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--default-color);
}

.weare p {
  color: var(--default-color);
}

.weare .cta-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
}

.weare .cta-btn:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, black 15%);
}
/* #endregion*/
/* #region Blog Carousel trang home */
.blog .carousel-inner {
  padding: 20px 10px 20px;
  border-radius: 15px;
}
.blog .card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog .card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.blog .card-img-container {
  position: relative;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog .card .card-img-container img {
  transform: scale(1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog .card .card-img-container:hover img {
  transform: scale(1.1);
}

.blog .category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #f9c74f, #f8961e);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.blog .category-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog .card-body {
  padding: 20px 25px 20px 25px;
  /* background-image: url(https://www.vietnamairlines.com/Themes/VNANew/Portal/images/other/pattern_xanh.png); */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog .card-title a {
  color: #006c98;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
  /* Giới hạn title chỉ hiển thị 2 dòng */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog .card-text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog .card-stats {
  border-top: 1px solid #e2e8f0;
  padding: 15px 0 0 0;
  margin-top: 15px;
  flex-shrink: 0;
}

.blog .stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog .stats-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog .stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #888;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.blog .stat-item:hover {
  color: #0066cc;
}

/* .blog .stat-item i {
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
} */

.blog .look-btn {
  transition: all 0.3s ease;
}

.blog .look-btn:hover {
  color: #0066cc !important;
  /* transform: scale(1.1); */
}

.blog .like-btn {
  transition: all 0.3s ease;
}

.blog .like-btn:hover {
  color: #0066cc !important;
  /* transform: scale(1.1); */
}

.blog .like-btn.liked {
  color: #e74c3c !important;
}

.blog .share-btn {
  display: none;
}

.blog .share-btn:hover {
  color: #0066cc !important;
  /* transform: scale(1.1); */
}

.blog .post-date {
  color: #999;
  font-size: 0.85rem;
  white-space: nowrap;
}

.blog .post-date:hover {
  color: #0066cc !important;
}

.blog .carousel-control-prev,
.blog .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--default-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.blog .carousel-control-prev {
  left: -25px;
}

.blog .carousel-control-next {
  right: -25px;
}

.blog .carousel-control-prev:hover,
.blog .carousel-control-next:hover {
  opacity: 1;
  background: var(--accent-color);
}

.blog .carousel-control-prev-icon,
.blog .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.blog .carousel-bottom-controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 15;
  width: 100%;
}

.blog .carousel-bottom-controls .carousel-indicators {
  position: static; /* Override Bootstrap positioning */
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.blog .carousel-bottom-controls .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: none;
  margin: 0;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.blog .carousel-bottom-controls .carousel-indicators [data-bs-target].active {
  opacity: 1;
  transform: scale(1.2);
}

.blog .gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

/* Carousel Controls */
.carousel-bottom-controls .carousel-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.carousel-bottom-controls .carousel-controls .control-btn {
  width: 19px;
  height: 19px;
  background-color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-bottom-controls .carousel-controls .control-btn i {
  font-size: 12px;
  color: #fff;
  transition: color 0.3s ease;
}

.carousel-bottom-controls .carousel-controls .control-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Trạng thái paused */
.carousel-bottom-controls .carousel-controls .control-btn.paused {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.carousel-bottom-controls .carousel-controls .control-btn.paused i {
  color: #ffffff;
}

/* Nút restart */
.carousel-bottom-controls .carousel-controls .control-btn#restartBtn:hover {
  background-color: #28a745;
  border-color: #28a745;
}

.carousel-bottom-controls .carousel-controls .control-btn#restartBtn:hover i {
  color: #ffffff;
}

/* Đảm bảo tất cả các cột có chiều cao bằng nhau */
.blog .row.gy-4 {
  display: flex;
  align-items: stretch;
}

.blog .row.gy-4 > [class*="col-"] {
  display: flex;
}

/* Ẩn carousel ban đầu cho đến khi JavaScript xử lý xong */
#blogCarousel {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#blogCarousel.loaded {
  opacity: 1;
}

.loading {
  text-align: center;
  padding: 50px;
  color: #666;
}

@media (max-width: 768px) {
  .blog .card-img-container {
    height: 200px;
  }

  .blog .card-body {
    padding: 20px 20px 15px 20px;
  }

  .blog .card-title {
    font-size: 1.1rem;
  }
  .blog .stats-left {
    gap: 15px;
  }

  .blog .stat-item {
    font-size: 0.8rem;
  }

  .blog .post-date {
    font-size: 0.8rem;
  }

  .blog .carousel-control-prev,
  .blog .carousel-control-next {
    display: none;
  }
  .blog .category-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
    top: 10px;
    left: 10px;
  }
  .carousel-bottom-controls {
    gap: 20px;
    bottom: -45px;
  }
  .carousel-bottom-controls .carousel-controls {
    gap: 10px;
  }
  .carousel-bottom-controls .carousel-controls .control-btn {
    width: 18px;
    height: 18px;
  }

  .carousel-bottom-controls .carousel-controls .control-btn i {
    font-size: 10px;
  }

  .carousel-bottom-controls .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
  }
}

/* Ẩn carousel-indicators mặc định của Bootstrap */
.blog .carousel-indicators li {
  display: none !important;
}
/* #endregion */

/* #region Service */
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: #fff;
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--accent-color);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    height: 190px !important;
    object-fit: cover;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: #fff;
}

.service .service-item:hover a {
    padding-left: 45px !important;
    background: #fff;
    color: var(--accent-color) !important;
}
.service .service-item a {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: unset;
}
/* #endregion*/
