#jobDetailModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 0;
  backdrop-filter: blur(3px);
  animation: fadeInModal 0.4s ease forwards;
}

.job-modal-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.left-side {
  flex: 1;
  background: linear-gradient(
      to bottom right,
      rgba(172, 0, 255, 0.9),
      rgba(95, 5, 170, 0.8),
      rgba(57, 0, 94, 0.8)
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #fff;
  animation: slideInLeft 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.left-side::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/bg-left2.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.12;
  z-index: 0;
}

.left-side > * {
  position: relative;
  z-index: 1;
}

.left-side img {
  max-height: 80%;
  width: auto;
}

.gender-switch {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.gender-switch button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  font-size: 24px;
  cursor: pointer;
  background-color: #f2caca;
  color: #5c4949;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.gender-switch button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gender-switch button.active {
  background-color: #fff;
  color: #222;
}

.right-side {
  flex: 2;
  background: #e9f3ff;
  padding: 40px;
  overflow-y: auto;
  animation: slideInRight 0.6s ease forwards;
}

#jobName {
  font-family: 'Prompt', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #111;
}

#jobDescription {
  margin-top: 10px;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

#moreLink {
  display: inline-block;
  margin-top: 10px;
  color: #333;
  text-decoration: underline;
  font-weight: 500;
}

.tab-selector {
  display: flex;
  margin: 30px 0 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #d0dce9;
}

.tab-selector button {
  flex: 1;
  padding: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.tab-selector button.active {
  background: #fff;
  color: #333;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

#skillList {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

#skillList li {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeInItem 0.5s ease forwards;
  opacity: 0;
}


.skill-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #444;
}

.skill-text strong {
  font-size: 15px;
  color: #000;
}

.skill-text span {
  font-size: 14px;
  color: #555;
  margin-top: 3px;
}

#skillList img {
  width: 30px;
  height: 30px;
}

.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #cc5c5c;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  z-index: 10000;
}

.class-tree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.class-stage {
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeInItem 0.5s ease forwards;
}

.class-stage img {
  width: 115px;
  height: auto;
}

.arrow {
  font-size: 30px;
  color: #888;
  animation: fadeInItem 0.5s ease forwards;
}

/* Keyframes */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInItem 0.4s ease forwards;
}

@media (max-width: 768px) {
  .job-modal-content {
    flex-direction: column;
  }

  .left-side, .right-side {
    flex: none;
    width: 100%;
    height: auto;
  }

  .left-side {
    padding: 20px;
  }

  .right-side {
    padding: 30px 20px;
  }

  .gender-switch {
    margin-bottom: 20px;
  }
}

.swiper-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.swiper-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #888;
  border-radius: 50%;
  opacity: 1;
  transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
  background-color: #5189f5;
}

/* ลูกศรเล็ก */
.swiper-button-prev, .swiper-button-next {
  position: static;
  width: 28px;
  height: 28px;
  color: #5189f5;
  background: transparent;
}

.swiper-button-prev::after, .swiper-button-next::after {
  font-size: 22px;
  font-weight: bold;
}
