 /* === Section Giới thiệu Doanh nghiệp === Home*/
.intro-section {
  background: linear-gradient(135deg, #f9f5f0, #fffdf9);
  padding: 38px 20px;
}

.intro-container {
  max-width: 1260px;
  margin: 0 auto;
  text-align: center;
}

.intro-heading h2 {
  font-size: 36px;
  color: #633918;
  margin-bottom: 10px;
}
h2.vp18h-title {
  font-family: 'Playball', cursive;
  font-size: 51px;
  color: #FF8B22;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.intro-heading p {
  font-size: 18px;
  line-height: 1.6em;
  color: #555;
  margin-bottom: 40px;
}

/* Grid Layout */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.intro-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.intro-card:nth-child(2) {
  animation-delay: 0.2s;
}
.intro-card:nth-child(3) {
  animation-delay: 0.4s;
}

.intro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.intro-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.intro-card h3 {
  font-size: 22px;
  color: #633918;
  margin-bottom: 10px;
}

.intro-card p {
  color: #444;
  font-size: 16px;
  line-height: 1.6;
}

/* Hiệu ứng xuất hiện */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 992px) {
  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-heading h2 {
    font-size: 28px;
  }

  .intro-heading p {
    font-size: 16px;
  }
}
/* Slide chứng nhận - Home*/
.cert-carousel-section {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/img/bg-cert.jpg') center/cover no-repeat;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.cert-subtitle {
  font-size: 16px;
  margin-bottom: 30px;
}

.cert-carousel {
  overflow: hidden;
  max-width: 1260px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: fit-content;
}

.carousel-track img {
  width: calc(100% / 5);
  flex-shrink: 0;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .carousel-track img {
    width: calc(100% / 3);
  }
}

/* === Popup === */
.cert-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  display: none;
}

.cert-popup.active {
  display: flex;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}
.popup-autoplay {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #FF9634;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  z-index: 4;
}
.popup-content {
  position: relative;
  background: #111;
  border: 3px solid #FF9634;
  border-radius: 12px;
  padding: 20px;
  z-index: 3;
}
.popup-content lite-youtube {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: #fff;
  color: #FF9634;
  border: 2px solid #FF9634;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  z-index: 4;
}
.cert-carousel-wrapper {
  position: relative;
  max-width: 1260px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-prev, .cert-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF9634;
  color: white;
  border: none;
  font-size: 28px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.cert-prev { left: 0; }
.cert-next { right: 0; }

.cert-carousel:hover .carousel-track {
  animation-play-state: paused;
}
#popup-stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
/* End dieu huong */
.popup-main {
  position: relative;
  text-align: center;
}

.popup-main img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.popup-prev,
.popup-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.popup-content:hover .popup-prev,
.popup-content:hover .popup-next {
  display: block;
}

.popup-prev { left: 10px; }
.popup-next { right: 10px; }

#autoPlayToggle {
  margin: 10px auto;
  display: block;
  padding: 6px 12px;
  background: #633918;
  color: white;
  border: none;
  cursor: pointer;
}

/* Thumbnails */
.popup-thumbs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-thumbnails {
  display: flex;
  overflow-x: auto;
  max-width: 90%;
  gap: 10px;
  padding: 10px 0;
  scroll-behavior: smooth;
}

.popup-thumbnails img {
  height: 60px;
  opacity: 0.6;
  cursor: pointer;
}

.popup-thumbnails img.active,
.popup-thumbnails img:hover {
  opacity: 1;
}

.thumb-scroll {
  font-size: 24px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .popup-thumbnails img {
    height: 50px;
  }
}
/* Slide video Home*/
.vp18h-carousel-wrapper {
    position: relative;
    overflow: hidden;
}
.vp18h-carousel-track {
  display: flex;
  gap: 2px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.vp18h-video-thumb {
  flex: 0 0 calc(100% / 6 - 2px);
  cursor: pointer;
  position: relative;
}

.vp18h-video-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.vp18h-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 5px;
}
@media (max-width: 768px) {
  .vp18h-video-thumb {
    flex: 0 0 calc(100% / 2 - 2px);
  }
}
/* Popup */
    .vp18h-popup {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .vp18h-popup.active {
      display: flex;
    }

    .vp18h-popup-inner {
      position: relative;
      max-width: 90%;
      width: 900px;
      background: white;
      border: 3px solid #FF9634;
      border-radius: 12px;
      z-index: 10;
    }

    .vp18h-popup-inner iframe {
      width: 100%;
      height: 500px;
      border: none;
      border-radius: 10px;
    }

    #vp18h-close-popup {
      position: absolute;
      top: -16px;
      right: -16px;
      background: #FF9634;
      color: white;
      border: none;
      font-size: 22px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
    }

    #vp18h-stars {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
    }
/* End Slide video home */
/* Nhung con so biet noi - Home */
.vp18h-stats-section {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(to bottom, #E7C183 0%, #A77D54 30%, #845a36 70%, #633918 100%);
  color: #fff;
  overflow: hidden;
}

#vp18h-stats-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.vp18h-stats-content {
  position: relative;
  max-width: 1260px;
  margin: auto;
  z-index: 1;
  text-align: center;
}

.vp18h-stats-center-logo img {
  width: 160px;
  height: auto;
  margin: 0 auto 60px;
  animation: pulse 6s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.vp18h-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.vp18h-stats-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 16px;
  border-radius: 12px;
  transition: transform 0.4s, box-shadow 0.4s;
  backdrop-filter: blur(6px);
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.vp18h-stats-item:nth-child(2) { animation-delay: 0.2s; }
.vp18h-stats-item:nth-child(3) { animation-delay: 0.4s; }
.vp18h-stats-item:nth-child(4) { animation-delay: 0.6s; }
.vp18h-stats-item:nth-child(5) { animation-delay: 0.8s; }
.vp18h-stats-item:nth-child(6) { animation-delay: 1s; }

.vp18h-stats-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.vp18h-stats-item h3 {
  font-size: 32px;
  color: #FF8B22;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.vp18h-stats-item p {
  font-size: 16px;
  color: #eee;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .vp18h-stats-center-logo img {
    width: 100px;
    margin-bottom: 40px;
  }

  .vp18h-stats-item h3 {
    font-size: 24px;
  }

  .vp18h-stats-item p {
    font-size: 14px;
  }
}

/* Khoi video home */
.main-video lite-youtube {
  display: block;
  width: 100%;
  max-width: 1260px;
  aspect-ratio: 16 / 9;
  margin: auto;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 200;
}
.container-video-slider {
    max-width: 1260px;
    margin: auto;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
/* Cột trái */
.main-video { width: 100%; }
.video-section { padding: 20px; background-color: #f9f9f9; }


/* Nút điều hướng */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }


@media (max-width: 768px) {
    .container-video-slider {
        flex-direction: column;
    }
    
    .slider-track {
        width: 200%;
    }

}
/* Tin tức */
.vp18h-title-container h2 {
    position: relative; 
    display: inline-block; 
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 23px;
}

.vp18h-title-container h2::after {
    content: "";
    display: block;
    width: 80%;
    height: 4px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    position: absolute;
    padding-left: 50px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}