/* Overseas Employment (Abroad) page styles */
.abroad-hero {
  margin-top: 90px;
  height: 430px;
  background: url("../images/laowu.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #144290;
}

.abroad-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.abroad-hero .title {
  font-size: 68px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.abroad-hero .title-en {
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 700;
  text-align: center;
}

.abroad-hero .subline {
  text-align: center;
}

.abroad-hero .subline small {
  font-size: 20px;
}

.abroad-overview {
  background: #fff;
  padding: 60px 0;
  text-align: center;
}

.abroad-overview .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.abroad-overview .section-title {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.abroad-overview .section-tag {
  display: inline-block;
  background: #ffc107;
  color: #1a3c8e;
  font-size: 22px;
  font-weight: 700;
  padding: 4px 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 40px;
  border-radius: 5px;
}

.abroad-overview .intro {
  font-size: 18px;
  color: #333;
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  text-align-last: center;
}

.abroad-popular {
  padding: 80px 0;
  background: #eff6ff url("../images/bj3.png") bottom center no-repeat;
  background-size: 100% auto;
}

.abroad-popular .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.abroad-popular .section-title {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.abroad-popular .section-tag {
  display: inline-block;
  background: #ffc107;
  color: #1a3c8e;
  font-size: 22px;
  font-weight: 700;
  padding: 6px 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.abroad-popular .section-desc {
  font-size: 16px;
  color: #7C7C7C;
  margin-bottom: 60px;
}

.abroad-popular .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}

.abroad-popular .card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform .3s, box-shadow .3s;
}

.abroad-popular .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.abroad-popular .card .cover {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.abroad-popular .card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.abroad-popular .card:hover .cover img {
  transform: scale(1.05);
}

.abroad-popular .card .overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.abroad-popular .card .body {
  padding: 30px 25px;
}

.abroad-popular .card .item {
  margin-bottom: 25px;
}

.abroad-popular .card .item:first-child {
  min-height: 100px;
}

.abroad-popular .card .item:last-child {
  margin-bottom: 0;
}

.abroad-popular .card .item h3 {
  font-size: 20px;
  color: #333;
  font-weight: 700;
  margin-bottom: 8px;
}

.abroad-popular .card .item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .abroad-popular .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .abroad-popular .cards {
    grid-template-columns: 1fr;
  }
  .abroad-hero .title {
    font-size: 42px;
  }
  .abroad-hero {
    height: 300px;
    margin-top: 60px;
  }
}

.abroad-steps {
  background: #F8FAFC;
  padding: 100px 0;
  text-align: center;
}

.abroad-steps .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.abroad-steps .section-title {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.abroad-steps .section-tag {
  display: inline-block;
  background: #ffc107;
  color: #1a3c8e;
  font-size: 22px;
  font-weight: 700;
  padding: 6px 20px;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.abroad-steps .section-desc {
  font-size: 16px;
  color: #7C7C7C;
  margin-bottom: 80px;
}

.abroad-steps .steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.abroad-steps .step {
  flex: 1;
  padding: 0 20px;
  position: relative;
  text-align: center;
}

.abroad-steps .num {
  width: 235px;
  height: 235px;
  background: #DBEAFE;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 700;
  color: #2563EB;
  transition: all 0.3s;
}

.abroad-steps .step:hover .num {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(44, 83, 179, 0.2);
}

.abroad-steps .label {
  font-size: 30px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.abroad-steps .desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  padding: 0 10px;
}

/* Arrow between steps */
.abroad-steps .step:not(:last-child)::after {
  content: '>';
  font-family: monospace;
  /* Or just use a simple char */
  position: absolute;
  top: 305px;
  /* (140 - 30) / 2 */
  right: -15px;
  width: 30px;
  height: 30px;
  background: #ccc;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 30px;
  font-weight: bold;
  text-align: center;
  z-index: 1;
  border: 2px solid #fff;
}

@media (max-width: 991px) {
  .abroad-steps .num {
    width: 100px;
    height: 100px;
    font-size: 36px;
  }
  .abroad-steps .step:not(:last-child)::after {
    top: 35px;
  }
}

@media (max-width: 768px) {
  .abroad-steps .steps {
    flex-direction: column;
    gap: 40px;
  }
  .abroad-steps .step {
    padding: 0;
  }
  .abroad-steps .step:not(:last-child)::after {
    display: none;
    /* Hide arrows on mobile for cleaner look */
  }
  .abroad-steps .desc {
    max-width: 300px;
    margin: 0 auto;
  }
}

.abroad-why {
  background: #fff;
  padding: 100px 0;
}

.abroad-why .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.abroad-why .left-content {
  flex: 1;
}

.abroad-why .subtitle-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.abroad-why .subtitle-wrapper .line {
  width: 40px;
  height: 2px;
  background: #2c53b3;
}

.abroad-why .subtitle-wrapper .subtitle {
  color: #2c53b3;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.abroad-why .main-title {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  margin-bottom: 30px;
}

.abroad-why .benefit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.abroad-why .benefit-item {
  display: flex;
  gap: 20px;
}

.abroad-why .benefit-item .icon-box {
  width: 60px;
  height: 60px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.abroad-why .benefit-item .icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.abroad-why .benefit-item .text-box h3 {
  font-size: 18px;
  color: #2c53b3;
  font-weight: 700;
  margin-bottom: 8px;
}

.abroad-why .benefit-item .text-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Right Side */
.abroad-why .right-image {
  flex: 1;
  position: relative;
}

.abroad-why .main-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
}

.abroad-why .main-img {
  width: 100%;
  display: block;
}

/* Testimonial Card */
.abroad-why .testimonial-card {
  position: absolute;
  bottom: -100px;
  left: -100px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  max-width: 440px;
}

.abroad-why .quote-icon {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.abroad-why .quote-icon img {
  width: 24px;
}

.abroad-why .user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #eee;
}

.abroad-why .user-info .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.abroad-why .user-info .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.abroad-why .user-info .name {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.abroad-why .user-info .role {
  font-size: 14px;
  color: #666;
}

.abroad-why .quote-text {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .abroad-why .container {
    flex-direction: column;
    gap: 60px;
  }
  .abroad-why .right-image {
    padding-left: 0;
    width: 100%;
  }
  .abroad-why .testimonial-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: -40px;
    margin-left: 20px;
    margin-right: 20px;
    max-width: none;
    width: auto;
  }
}

.nav .dropdown-toggle.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #fff;
}

@media (max-width: 992px) {
  .abroad-hero {
    margin-top: 70px;
    height: auto;
    padding: 50px 0 30px;
  }
  .abroad-hero .title {
    font-size: 28px;
  }
  .abroad-popular .cards {
    grid-template-columns: 1fr;
  }
  .abroad-steps .steps {
    grid-template-columns: 1fr 1fr;
  }
  .abroad-why .container {
    grid-template-columns: 1fr;
  }
}
