* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", Arial, sans-serif; }
body { background: #f7f7fb; color: #333; }

/* HEADER */
header {
  background: #e6e0f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  height: 70px;
  position: relative;
}
header img {height: 150px;}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: 0.2s;
}

.main-nav ul li a:hover {color: #5b47d0;}

/* Feature */
.feature {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background: #f5f3fe;
}
.feature .img-home {
  width: 45%;
  border-radius: 8px;
  margin-right: 40px;
}
.feature .img-about {
  width: 45%;
  border-radius: 8px;
  margin-left: 40px;
}
.feature .text {
  width: 50%;
}
.feature h2 {
  font-size: 24px;
  color: #2e2ab6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
}
.feature p strong {
  color: #000;
}

/* Form Section */
.form-section {
  position: relative;
  overflow: hidden;
  padding: 120px 50px 80px;
}
.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #e6e0f9, transparent 90%);
  z-index: 0;
}

/* Wave top (tầng 2) */
.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}
.wave-top svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Nội dung form */
.form-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  z-index: 2;
}

.form-content img {
  width: 40%;
  border-radius: 12px;
  transform: scaleX(-1); 
}
.form-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 30px;
    width: 100%;
    box-shadow: none;
}
.form-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #2e2ab6;
}
.form-box p {
  color: #666;
  margin-bottom: 25px;
  font-size: 14px;
}

.job-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.job-form input,
.job-form select {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

/* upload */
.file-upload {
  grid-column: 2/3; /* nằm cột 2, cùng hàng với select bên trái */
}

.file-upload label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.file-upload label:hover {
  border-color: #999;
}

.file-upload .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('upload-icon.png') no-repeat center center / contain;
}

/* ẩn input file gốc */
.file-upload .file-input {
  display: none;
}

/* nút submit full width */
button {
  grid-column: 1 / 3; /* chiếm 2 cột */
  padding: 14px;
  font-size: 16px;
  background: #ffd500;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  background: #f5c400;
  width: 35px;
  padding: 5px;
}

.footer {
  background: linear-gradient(to right, #ede9fb, #d8cff9);
  padding: 40px 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 cột bằng nhau */
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #000;
}

.footer-col p,
.footer-col li {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller (≤991px) */
@media (max-width: 991px) {
  /* Header adjustments */
  header {
    padding: 15px 30px;
    flex-wrap: wrap;
    height: auto;
    min-height: 70px;
  }
  
  header img {
    height: 120px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  /* Feature sections - stack vertically */
  .feature {
    flex-direction: column;
    padding: 40px 30px;
  }
  
  .feature .img-home,
  .feature .img-about {
    width: 100%;
    margin: 0 0 30px 0;
    order: 1;
  }
  
  .feature .text {
    width: 100%;
    order: 2;
  }
  
  /* Form sections - stack vertically */
  .form-section {
    padding: 80px 30px 60px;
  }
  
  .form-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .form-content img {
    width: 100%;
    order: 1;
  }
  
  .form-box {
    order: 2;
  }
  
  /* Footer - stack columns */
  .footer {
    padding: 30px 30px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-col[style*="text-align:right"] {
    text-align: center !important;
  }
  
  .footer-col h4[style*="padding-right"] {
    padding-right: 0 !important;
  }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  /* Header - mobile navigation */
  header {
    padding: 15px 20px;
    height: 70px;
  }
  
  header img {
    height: 50px;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide navigation by default on mobile */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e6e0f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  /* Show navigation when nav-open class is added */
  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    text-align: center;
    width: 100%;
  }
  
  .main-nav ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .main-nav ul li:last-child {
    border-bottom: none;
  }
  
  .main-nav ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  
  .main-nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #5b47d0;
  }
  
  /* Hide form section image on mobile homepage */
  .form-content img {
    /*display: none;*/
  }
  
  /* Feature sections - mobile optimizations */
  .feature {
    padding: 30px 20px;
  }
  
  .feature h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .feature p {
    font-size: 14px;
  }
  
  /* Form sections - mobile optimizations */
  .form-section {
    padding: 60px 20px 40px;
  }
  
  .form-box {
    padding: 20px;
  }
  
  .form-box h3 {
    font-size: 18px;
  }
  
  .form-box p {
    font-size: 13px;
  }
  
  /* Form grid - single column on mobile */
  .job-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .file-upload {
    grid-column: 1;
  }
  
  button {
    grid-column: 1;
    width: 100%;
    padding: 16px;
    font-size: 15px;
  }
  
  /* Footer - mobile optimizations */
  .footer {
    padding: 25px 20px;
  }
  
  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .footer-col p,
  .footer-col li {
    font-size: 13px;
  }
}

/* Additional responsive rules for specific pages */

/* Jobs page responsive */
@media (max-width: 991px) {
  .jobs-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .job-img {
    order: -1;
    height: auto;
  }
  
  .job-img img {
    height: auto;
    object-fit: contain;
  }
}

/* Hide job image on mobile */
@media (max-width: 576px) {
  .job-img {
    display: none !important;
  }
  
  .jobs-container {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0;
  }
  
  .job-list {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
}

/* Contact page responsive */
@media (max-width: 991px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .contact-box {
    padding: 15px;
  }
  
  .contact-box img {
    width: 140px;
    height: 140px;
  }
  
  .for-applicant {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 30px 15px;
  }
  
  .contact-container {
    display: block !important;
    max-width: 100%;
    margin: 0;
  }
  
  .contact-box {
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    margin: 0;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eee;
  }
  
  .contact-box img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 15px auto 0 auto;
  }
  
  .contact-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  .for-applicant {
    padding: 20px;
    width: 100%;
    margin-top: 10px;
  }
  
  .for-applicant h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
  }
  
  .for-applicant ul li {
    line-height: 1.8;
    font-size: 14px;
  }
}

/* Number list responsive */
.number-list {
  list-style: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
  margin-top: 12px;
}

.number-list li {
  counter-increment: item;
  margin-bottom: 12px;
  line-height: 1.6;
  position: relative;
  padding-left: 30px;
}

.number-list li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

@media (max-width: 576px) {
  .number-list li {
    padding-left: 25px;
    font-size: 14px;
  }
}