/* =============================================
   Career Path & Education Page
   ============================================= */

/* --- Page Hero --- */
.career-hero {
  background: var(--primary);
  padding: 5rem 48px;
  text-align: center;
}

.career-hero .hero-eng {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.career-hero .hero-jp {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
}

/* --- Anchor Nav --- */
.career-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  padding: 80px 0;
}

.career-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 200px;
  height: 48px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  background: #fff;
  transition: background 0.3s, color 0.3s;
}

.career-nav a:hover {
  background: var(--primary);
  color: #fff;
  opacity: 1;
}

.career-nav a i {
  font-size: 12px;
}

/* --- Career Path Section --- */
.careerpath-section {
  padding: 50px 0 80px;
  background: #fff;
}

.careerpath-section .cp-desc {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 2;
  margin-bottom: 40px;
  text-align: center;
}

/* Career Path Diagram */
.cp-diagram-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 10px;
}

.cp-diagram-title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  margin: auto;
  width: 60px;
  height: 1px;
  background: var(--primary);
}

/* Career Detail Items */
.cp-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.cp-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.cp-detail-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.cp-detail-label {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: center;
}

.cp-detail-label .cp-year {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cp-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid #fff;
  box-shadow: 0 5px 10px rgb(0 0 0/.3);
  position: relative;
}

.cp-pin::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
}

.cp-detail-item.color-1 .cp-pin::after {
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.cp-detail-item.color-2 .cp-pin::after {
  background: linear-gradient(to bottom, #7FBF3F, transparent);
}

.cp-detail-item.color-3 .cp-pin::after {
  background: linear-gradient(to bottom, #FFB84D, transparent);
}

.cp-detail-item.color-4 .cp-pin::after {
  background: linear-gradient(to bottom, #FF91A4, transparent);
}

.cp-detail-item.color-1 .cp-pin {
  background: var(--primary);
}

.cp-detail-item.color-1 .cp-year,
.cp-detail-item.color-1 .cp-role-name {
  color: var(--primary);
}

.cp-detail-item.color-2 .cp-pin {
  background: #7FBF3F;
}

.cp-detail-item.color-2 .cp-year,
.cp-detail-item.color-2 .cp-role-name {
  color: #7FBF3F;
}

.cp-detail-item.color-3 .cp-pin {
  background: #FFB84D;
}

.cp-detail-item.color-3 .cp-year,
.cp-detail-item.color-3 .cp-role-name {
  color: #FFB84D;
}

.cp-detail-item.color-4 .cp-pin {
  background: #FF91A4;
}

.cp-detail-item.color-4 .cp-year,
.cp-detail-item.color-4 .cp-role-name {
  color: #FF91A4;
}

.cp-detail-body {
  flex: 1;
}

.cp-detail-body .cp-role-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cp-detail-body p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* Closing box with gradient border */
.cp-closing {
  background: #fff;
  padding: 24px 32px;
  text-align: center;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 2;
  border: 1px solid #20B2D3;
  box-shadow: 0 2px 10px rgb(0 0 0/.08);
}

/* --- Training Section --- */
.training-section {
  padding: 50px 0 80px;
  background: var(--bg-light);
}

/* Training Timeline Diagram */
.tr-diagram {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 40px;
}

.tr-stage {
  flex: 1;
  background: #fff;
  border: 2px solid;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.tr-stage.stage-1 {
  border-color: rgba(32, 178, 211, 0.3);
}

.tr-stage.stage-2 {
  border-color: rgba(127, 191, 63, 0.3);
}

.tr-stage.stage-3 {
  border-color: rgba(255, 145, 164, 0.3);
}

.tr-stage .tr-stage-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tr-stage.stage-1 .tr-stage-label {
  color: var(--primary);
}

.tr-stage.stage-2 .tr-stage-label {
  color: #7FBF3F;
}

.tr-stage.stage-3 .tr-stage-label {
  color: #FF91A4;
}

.tr-stage .tr-item-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1.5px solid;
  margin: 3px 2px;
}

.tr-stage.stage-1 .tr-item-tag {
  color: var(--primary);
  border-color: var(--primary);
}

.tr-stage.stage-2 .tr-item-tag {
  color: #7FBF3F;
  border-color: #7FBF3F;
}

.tr-stage.stage-3 .tr-item-tag {
  color: #FF91A4;
  border-color: #FF91A4;
}

/* Arrow between stages */
.tr-arrow {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #ccc;
  flex-shrink: 0;
}

/* Training Detail Cards */
.tr-detail-card {
  background: #fff;
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgb(0 0 0/.08);
}

.tr-detail-card .tr-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid;
}

.tr-detail-card.color-1 .tr-card-title {
  color: var(--primary);
}

.tr-detail-card.color-2 .tr-card-title {
  color: #7FBF3F;
}

.tr-detail-card.color-3 .tr-card-title {
  color: #FF91A4;
}

.tr-detail-card p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
}

/* --- Benefits Section --- */
.benefits-section {
  padding: 50px 0 80px;
  background: #fff;
}

.benefits-section .benefits-desc {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  background: #fff;
  border: 1.5px solid var(--primary);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.benefit-card .benefit-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.6;
}

.benefit-card .benefit-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .career-hero .hero-eng {
    font-size: 44px;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .career-hero {}

  .career-hero .hero-eng {
    font-size: 32px;
  }

  .career-nav {
    flex-wrap: wrap;
    padding: 40px 0;
  }

  .career-nav a {
    width: 45%;
    font-size: 13px;
    text-align: center;
    padding: 5px;
    height: auto;
  }

  .careerpath-section,
  .training-section,
  .benefits-section {
    padding: 40px 0 50px;
  }

  .cp-diagram-steps,
  .cp-diagram-labels {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .cp-detail-item {
    flex-direction: column;
    gap: 8px;
  }

  .cp-detail-label {
    width: auto;
  }

  .cp-detail-body {
    padding-left: 16px;
  }

  .tr-diagram {
    flex-direction: column;
    gap: 12px;
    overflow-x: scroll;
  }

  .career-pass-img {
    overflow-x: scroll;
  }

  .career-pass-img img,
  .tr-diagram img {
    min-width: 1000px;
  }

  .tr-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}