@charset "UTF-8";
p {
  color: black;
}

:root {
  --swiper-image-ratio: 52.34%;
  --swiper-width: 53.666%;
  --swiper-inactive-scale: 1;
  --swiper-mobile-width: 100%;
  --swiper-mobile-inactive-scale: 1;
  --swiper-navigation-size: 2rem;
  --swiper-theme-color: #f15a24;
}

.layout-vocational-training {
  position: relative;
  overflow: hidden; /* QUAN TRỌNG: tránh icon tràn gây scroll ngang */
  background-image: url("/images/icon2/vatication.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.layout-vocational-training .container-1600 {
  position: relative;
  z-index: 2;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  fill: white;
}

/* ================= ICON DESKTOP ================= */
/* Icon bên phải */
.layout-vocational-training::after {
  content: "";
  position: absolute;
  top: 5%;
  right: 0;
  width: 390px;
  height: 310px;
  background: url("/images/icon2/vatication-right.svg") no-repeat center/contain;
  pointer-events: none;
  z-index: 1;
}

/* Icon bên trái */
.layout-vocational-training::before {
  content: "";
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 219px;
  height: 190px;
  background: url("/images/icon2/vatication-left.svg") no-repeat center/contain;
  pointer-events: none;
  z-index: 1;
}

.swiper-button-next {
  --swiper-navigation-size: 64px;
  width: 65px;
  margin-right: calc(50% - 49vw);
  display: flex;
  justify-content: flex-end;
}
.swiper-button-next svg {
  width: unset;
}

.swiper-button-prev {
  --swiper-navigation-size: 64px;
  width: 65px;
}

/* ================= LAPTOP / TABLET NGANG ================= */
@media (max-width: 1200px) {
  .layout-vocational-training {
    background-size: 85%;
  }
  .layout-vocational-training::after {
    width: 300px;
    height: 240px;
    right: -30px;
    top: 8%;
  }
  .layout-vocational-training::before {
    width: 180px;
    height: 160px;
    left: -30px;
    bottom: 8%;
  }
}
/* ================= TABLET DỌC ================= */
@media (max-width: 992px) {
  .layout-vocational-training {
    background-size: cover;
  }
  .layout-vocational-training::after {
    width: 220px;
    height: 180px;
    opacity: 0.6;
  }
  .layout-vocational-training::before {
    width: 140px;
    height: 120px;
    opacity: 0.6;
  }
}
/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .layout-vocational-training {
    background-size: cover;
    background-image: unset;
    padding: 1rem;
    background: #fff;
  }
  .layout-vocational-training .container-1600 {
    position: relative;
    overflow: hidden; /* QUAN TRỌNG: tránh icon tràn gây scroll ngang */
    background-image: url("/images/icon2/vatication.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
  }
  .layout-vocational-training::after {
    width: 120px;
    height: 100px;
    right: -40px;
    top: 12%;
    opacity: 0.35;
  }
  .layout-vocational-training::before {
    width: 100px;
    height: 90px;
    left: -40px;
    bottom: 12%;
    opacity: 0.35;
  }
}
/* ================= MOBILE NHỎ ================= */
@media (max-width: 480px) {
  .layout-vocational-training::before,
  .layout-vocational-training::after {
    display: none;
  }
}
.news-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.news-slider-wrapper .newsSwiper {
  position: relative;
  width: 100%;
  height: calc(var(--swiper-width) * var(--swiper-image-ratio));
  overflow: hidden;
  padding: 40px 0 80px;
}
@media (max-width: 768px) {
  .news-slider-wrapper .newsSwiper {
    height: calc(var(--swiper-mobile-width) * var(--swiper-image-ratio));
  }
}
.news-slider-wrapper .swiper-slide {
  position: relative;
  width: var(--swiper-width);
  opacity: 1;
  transform: scale(var(--swiper-inactive-scale));
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  border-radius: 20px;
}
@media (max-width: 768px) {
  .news-slider-wrapper .swiper-slide {
    width: var(--swiper-mobile-width);
    transform: scale(var(--swiper-mobile-inactive-scale));
  }
}
.news-slider-wrapper .swiper-slide.swiper-slide-active {
  transform: scale(1) !important;
  opacity: 1 !important;
}
@media (max-width: 768px) {
  .news-slider-wrapper .swiper-backface-hidden .swiper-slide {
    transform: scale(var(--swiper-mobile-inactive-scale)) translateZ(0);
  }
}
.news-slider-wrapper .swiper-backface-hidden .swiper-slide.swiper-slide-active {
  transform: scale(1) translateZ(0) !important;
}
.news-slider-wrapper .news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}
.news-slider-wrapper .news-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.news-slider-wrapper .news-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  width: 100%;
  padding-top: var(--swiper-image-ratio);
}
.news-slider-wrapper .news-image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.news-slider-wrapper .news-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.news-slider-wrapper .news-link:hover .news-image img {
  transform: scale(1.05);
}
.news-slider-wrapper .news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
  color: white;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 2;
  min-height: 110px;
}
@media (max-width: 1023px) {
  .news-slider-wrapper .news-content {
    padding: 30px 20px 20px;
    gap: 10px;
    align-items: center;
  }
}
@media (max-width: 767px) {
  .news-slider-wrapper .news-content {
    padding: 24px 16px 16px;
    gap: 8px;
    min-height: 60px;
  }
}
.news-slider-wrapper .news-badge {
  background: rgba(255, 255, 255, 0.97);
  color: #e67e22;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
  .news-slider-wrapper .news-badge {
    font-size: 10px;
    padding: 4px 12px;
  }
}
.news-slider-wrapper .news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1023px) {
  .news-slider-wrapper .news-title {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .news-slider-wrapper .news-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}
.news-slider-wrapper .news-nav-prev,
.news-slider-wrapper .news-nav-next {
  padding: 8px;
  width: 28px;
  height: 28px;
  margin-top: 0;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s ease;
}
.news-slider-wrapper .news-nav-prev::after,
.news-slider-wrapper .news-nav-next::after {
  color: #fff;
  font-size: 18px;
}
.news-slider-wrapper .news-nav-prev:hover,
.news-slider-wrapper .news-nav-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
@media (max-width: 768px) {
  .news-slider-wrapper .news-nav-prev,
  .news-slider-wrapper .news-nav-next {
    width: 24px;
    height: 24px;
    padding: 6px;
  }
  .news-slider-wrapper .news-nav-prev::after,
  .news-slider-wrapper .news-nav-next::after {
    font-size: 14px;
  }
}
.news-slider-wrapper .news-nav-next {
  transform: translate(50%, -50%);
  right: calc((100% - var(--swiper-width)) / 2);
}
@media (max-width: 768px) {
  .news-slider-wrapper .news-nav-next {
    right: calc((100% - var(--swiper-mobile-width)) / 2);
  }
}
.news-slider-wrapper .news-nav-prev {
  transform: translate(-50%, -50%);
  left: calc((100% - var(--swiper-width)) / 2);
}
@media (max-width: 768px) {
  .news-slider-wrapper .news-nav-prev {
    left: calc((100% - var(--swiper-mobile-width)) / 2);
  }
}
.news-slider-wrapper .news-pagination {
  text-align: center;
  margin-top: 40px;
}
.news-slider-wrapper .news-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #d0d0d0;
  opacity: 0.7;
  margin: 0 6px;
  transition: all 0.3s ease;
  transform: unset;
}
.news-slider-wrapper .news-pagination .swiper-pagination-bullet:hover {
  background: #999;
}
.news-slider-wrapper .news-pagination .swiper-pagination-bullet-active {
  background: #e67e22 !important;
  width: 32px;
  border-radius: 5px;
  opacity: 1;
}
@media (max-width: 768px) {
  .news-slider-wrapper .layout-new-home {
    padding: 50px 15px;
  }
}
.news-slider-wrapper .layout-new-home h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: #2c3e50;
  font-weight: 700;
}
@media (max-width: 767px) {
  .news-slider-wrapper .layout-new-home h2 {
    font-size: 24px;
  }
}
.news-slider-wrapper .layout-new-category {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.news-slider-wrapper .layout-new-category .item-category a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.news-slider-wrapper .layout-new-category .item-category a:hover, .news-slider-wrapper .layout-new-category .item-category a.active {
  color: #e67e22;
  border-bottom-color: #e67e22;
  font-weight: 600;
}
.news-slider-wrapper .layout-news {
  margin-top: 30px;
}

.videos-slider-wrapper .swiper-button-next,
.videos-slider-wrapper .swiper-button-prev {
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.videos-slider-wrapper .swiper-button-next:hover,
.videos-slider-wrapper .swiper-button-prev:hover {
  transform: scale(1.1);
  background: #f5f5f7;
  font-weight: 700;
}
