.staff-comments-heading {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: #f9f9f9;
}

.submenu-tabs-3 {
  background-color: #23a36b;
  padding: 5.5rem 0;
  position: relative;
}

.submenu-tabs-3 .container-2 {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* xếp dọc để title và sub-title nằm dưới nhau */
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

/* Chữ giữa nền xanh */
.main-title-staff {
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.2;
}

.subtitle-staff {
  color: #fff;
  font-size: 24px;
  margin-top: 8px;
}
/* 2 line trắng mờ bên trái phải */
/* 2 line trắng mờ hai bên */
.submenu-tabs-3 .container-2::before,
.submenu-tabs-3 .container-2::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  /* background-color: rgba(255, 255, 255, 0.4); */
}

.submenu-tabs-3 .container-2::before {
  left: 5%;
}
.submenu-tabs-3 .container-2::after {
  right: 5%;
}

.creation-interview-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: #f9f9f9;
  margin: 60px 0;
}

.interview-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.interview-stack{
  --gap: 15px;
  --items: 5;
  display: flex;
  gap: var(--gap);
  width: 100%;
  align-items: stretch;           /* tất cả item cao bằng nhau */
  overflow: hidden;               /* không cho kéo tay, chỉ dùng mũi tên */
}


.stack-item {
  position: relative;
  flex: 0 0 calc((100% - (var(--items) - 1) * var(--gap)) / var(--items));
  overflow: hidden;
  transition: transform .25s ease;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stack-item:hover{ transform: scale(.96); }


.stack-item::after{
  content:"";
  position:absolute;
  inset: 0% 7% 0 7%;              /* top/right/bottom/left theo % => responsive */
  background: rgba(10,10,10,.65);
  transform: skew(-5deg);
  pointer-events:none;
  transition: opacity .25s ease;
}
.stack-item:hover::after{ opacity:.3; }

.popup-name{
  color:#f9f9f9;
}
.stack-name{
  position:absolute;
  right: 22%;
  bottom: 10%;
  width: 78%;
  padding: 6px 0;
  text-align: right;
  font-size: 18px;
  font-weight: 500;
  color:#fff;
  opacity:.95;
  transform: skew(-5deg);
  cursor: pointer;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.35) 20%,
    rgba(0,0,0,.35) 80%,
    rgba(0,0,0,0) 100%
  );
  border-radius: 2px;
  z-index: 2;
}
.slide-interview-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(231,226,226,.9);
  color: #111;
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.slide-interview-btn.prev{ left: 4px; }
.slide-interview-btn.next{ right: 4px; }
.slide-interview-btn[disabled]{ opacity:.35; pointer-events:none; }
/* Chặn cuộn khi popup mở */
body.popup-open {
  overflow: hidden;
  height: 100%; /* để tránh cuộn */
}
.interview-popup-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.35s ease;
  overflow: hidden;
}

.interview-popup-overlay.active {
  display: flex;
}

.popup-content {
  position: relative;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.interview-popup-overlay.active .popup-content {
  transform: scale(0.9);
  opacity: 1;
}

.popup-frame {
  position: relative;
  width: 400px;                 /* bạn có thể đổi: 400–460px */
  /* max-width: 86vw; */
  /* aspect-ratio: 3 / 4; */
  height: auto;
  overflow: visible;
  max-width: 80%;
  max-height: 80%;
}

.popup-frame img {
  max-width: 100%;
  /* height: auto; */
}

/* Ảnh nền xanh */
.popup-frame-bg {
  display: block;
  position: relative;
  z-index: 4;
  width: 100%;
  /* Cắt 2 cạnh chéo (xiết) – điều chỉnh 10%/90% nếu muốn xiết mạnh/nhẹ hơn */
  clip-path: polygon(16% 0, 100% 0, 86% 100%, 0 100%);
  z-index: 4;
  height: 500px;
}

/* Khung viền */
.popup-frame-top,
.popup-frame-bottom,
.popup-frame-left {
  position: absolute;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
}

.popup-frame-top {top: -6%;z-index: 3;}
.popup-frame-bottom {bottom: -2%;z-index: 5;height: 105%;}
.popup-frame-left {top: -6%;z-index: 5;}

/* Tiêu đề bên trong popup */
.popup-title {
  position: absolute;
  bottom: 6%;
  right: 13%;
  z-index: 6;
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  text-align: right;
}

/* Thanh gradient */
.popup-frame::before {
  content: "";
  position: absolute;
  bottom: 9%;
  left: 10%;
  width: 80%;
  height: 110px;
  transform: skew(-5deg);
  background: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgb(241 234 234 / 35%) 20%,
    rgb(201 180 180 / 35%) 80%,
    rgba(0,0,0,0) 100%
  );
  border-radius: 2px;
  z-index: 5;
}


/* Laptop vừa (dưới 1200px) */
@media (max-width: 1200px) {
  .interview-stack{ --items: 4; }
  .stack-name{ font-size: 16px; }
}




/* Tablet ngang (dưới 992px) */
@media (max-width: 992px) {
    .interview-stack{ --items: 3; }
  /* .slide-interview-btn{ font-size: 30px; } */
}



/* Tablet dọc (dưới 768px) */
@media (max-width: 768px) {
  .popup-frame-bg {

  height: 275px;
}


  .creation-interview-section {
    padding: 40px 0;
    margin: 40px 0;
  }
  .main-title-staff {
    font-size: 26px;
  }
  .subtitle-staff {
    font-size: 16px;
  }

  .popup-frame {
    width: 220px;
  }
  .popup-title {
    font-size: 14px;
  }
  .interview-stack{ --items: 2; }
  .stack-name{ font-size: 14px; }
}

@media (max-width: 600px) {
  .creation-interview-section {
    padding: 40px 0;
    margin: 40px 0;
  }
  .main-title-staff {
    font-size: 26px;
  }
  .subtitle-staff {
    font-size: 16px;
  }
}

/* Điện thoại (dưới 576px) */
@media (max-width: 576px) {
 .interview-stack{ --items: 1; }
  /* .slide-interview-btn{ font-size: 28px; } */
}


@media (max-width: 480px) {

  .popup-frame {
    width: 180px;
  }
  .popup-title {
    font-size: 12px;
  }

    .popup-frame-bg {

  height: 226px;
}
}

