/* Why Nokasoft Section */
.bg-home-2 {
  background-image: url("../images/bg-home-2.svg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.why-nokasoft-title {
  padding-top: 300px;
  font-size: 32px;
  font-weight: 400;
  color: #313a3b;
}

.why-nokasoft-title::after {
  content: url("../images/after-sub-title.svg");
  position: absolute;
  left: 50%;
  transform: translate(-50%, -15%);
  z-index: -1;
}

.why-nokasoft-description {
  margin-top: 40px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.why-nokasoft-features-container {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 1200px;
  margin: 80px auto;
}

.wn-features-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

.wn-feature-item {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* PC icon - top left */
.item-1 {
  top: 8%;
  left: 35%;
}

/* Team icon - top right */
.item-2 {
  top: 8%;
  right: 35%;
}

/* Shield icon - middle right */
.item-3 {
  top: 35%;
  left: 22%;
}

/* Clock icon - bottom right */
.item-4 {
  bottom: 35%;
  right: 22%;
}

/* Handshake icon - bottom center */
.item-5 {
  bottom: 10%;
  left: 35%;
}

.item-6 {
  bottom: 10%;
  right: 35%;
}

.wn-feature-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.wn-feature-popup {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #0fe47e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.wn-feature-popup::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0fe47e;
}

.wn-feature-popup h3 {
  color: #313a3b;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: left;
}

.wn-feature-popup p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

/* Hover effects */
.wn-feature-item:hover .wn-feature-popup {
  opacity: 1;
  visibility: visible;
  top: -140px;
}

.wn-feature-item:hover img {
  transform: translateY(5px);
}

/* Background ellipse */
.wn-features-grid::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 400px;
  background: rgba(15, 228, 126, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .bg-home-2 {
    background-image: none;
  }

  .why-nokasoft-title {
    padding-top: 64px;
  }

  .why-nokasoft-description {
    text-align: left;
    margin: 24px 20px;
    font-size: 12px;
  }
}

/* SP Styles */
.wn-features-grid-sp {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 0 20px;
  background-color: #eefff7;
}

.wn-feature-item-sp {
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wn-feature-icon-sp {
  width: 85px;
  height: 110px;
  align-self: center;
}

.wn-feature-icon-sp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wn-feature-content-sp {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wn-feature-title-sp {
  font-size: 14px;
  font-weight: 400;
}

.wn-feature-text-sp {
  font-size: 12px;
  line-height: 1.6;
  color: #666666;
  text-align: left;
}

@media (max-width: 768px) {
  .why-nokasoft-features-container.pc {
    display: none;
  }

  .why-nokasoft-features-container.sp {
    height: auto;
  }

  /* Điều chỉnh kích thước cho màn hình nhỏ hơn */
  .wn-features-grid-sp {
    gap: 12px;
    padding: 0 16px;
  }

  .wn-feature-item-sp {
    padding: 12px;
  }
}

@media (min-width: 769px) {
  .why-nokasoft-features-container.sp {
    display: none;
  }
}
