/* Career Hero Section */
.career-hero {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.career-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 61, 98, 0.6); /* Dark overlay for better text contrast */
  z-index: 1;
}

.career-hero .hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.career-hero .hero-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.career-hero .hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.career-hero .cta-scroll-button {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.career-hero .cta-scroll-button:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .career-hero {
    height: 300px;
  }

  .career-hero .hero-text h1 {
    font-size: 2rem;
  }

  .career-hero .hero-text p {
    font-size: 1rem;
  }

  .career-hero .cta-scroll-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}




.career-page .job-category-section {
    background-color: #fff;
    padding: 2rem;
  }
  
  .career-page .apply-button-container {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .career-page .btn-apply {
    background-color: #006400;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-weight: bold;
    cursor: pointer;
  }
  
  .career-page .job-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .career-page .job-category-card {
    flex: 1 1 250px;
    border: 1px solid #ddd;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 10px;
    background: #fff;
  }
  
  .career-page .job-category-card .icon {
    font-size: 2rem;
    color: #006400;
  }
  
  /* Email Instruction Section */
  .career-page .email-instruction-section {
    margin-top: 3rem;
    background-color: #fcd84f;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  .career-page .email-instruction-text {
    flex: 1 1 300px;
    max-width: 600px;
  }
  
  .career-page .email-instruction-text p {
    font-style: italic;
    color: #333;
  }
  
  .career-page .btn-email {
    margin-top: 0.5rem;
    background-color: #006400;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
  }
  
  .career-page .email-instruction-image {
    flex: 1 1 300px;
    text-align: center;
  }
  
  .career-page .email-instruction-image img {
    max-width: 100%;
    border-radius: 15px;
    border: 5px solid #fff;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .career-page .email-instruction-section {
      flex-direction: column;
      text-align: center;
    }
  
    .career-page .job-categories {
      flex-direction: column;
    }
  }

  /* Careers Job Section Styling */
.career-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    background-color: #f7f9fc;
  }
  
  .section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #1a202c;
  }
  
  .job-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }
  
  .job-card {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
  }
  
  .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
  
  .job-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c5282;
  }
  
  .job-desc {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
  }
  
  .apply-button-container {
    margin-top: 40px;
  }
  
  .apply-button {
    background-color: #2b6cb0;
    color: white;
    padding: 12px 30px;
    font-size: 1em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .apply-button:hover {
    background-color: #2c5282;
  }
  /* Careers Job Section */
.career-section {
    background-color: #f7f9fc;
    padding: 60px 20px;
    text-align: center;
  }
  
  .section-title {
    font-size: 2.5em;
    color: #1a202c;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
  }
  
  .job-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 10px;
  }
  
  .job-card {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    flex: 1 1 300px;
    max-width: 300px;
  }
  
  .job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
  
.job-icon {
  font-size: 2.2rem;
    margin-bottom: 10px;
  color: #007bff;
}

.job-card.engineering .job-icon {
  color: #0a3d62;
  }
  
.job-card.accounting-supervisor .job-icon {
  color: #ff6b6b;
}

.job-card.accounting-personnel .job-icon {
  color: #1e90ff;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c5282;
  }
  
  .job-desc {
    font-size: 0.95em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

.job-qualifications {
  display: none;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.job-qualifications.show {
  display: block;
}

.job-qualifications {
  font-size: 0.98rem;
  color: #222;
}

.job-qualifications ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.job-qualifications li {
  margin-bottom: 5px;
  list-style: disc;
  }
  
  .apply-button-container {
    margin-top: 40px;
  }
  
  .apply-button {
    background-color: #2b6cb0;
    color: white;
    padding: 12px 30px;
    font-size: 1em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .apply-button i {
    margin-right: 8px;
  }
  
  .apply-button:hover {
    background-color: #2c5282;
  }
  
  /* Engagement Section */
  .engagement-section {
    background-color: #ffffff;
  
  }
  
  .engagement-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    background-color: #fcd84f;
  }
  
  .engagement-image {
    flex: 1 1 400px;
  }
  
  .engagement-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .engagement-text {
    flex: 1 1 500px;
  }
  
  .engagement-title {
    font-size: 2em;
    color: #1a202c;
    margin-bottom: 20px;
  }
  
  .engagement-title i {
    color: #38a169;
    margin-right: 10px;
  }
  
  .engagement-text p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .engagement-list {
    list-style: none;
    padding: 0;
  }
  
  .engagement-list li {
    font-size: 1em;
    color: #333;
    margin-bottom: 12px;
  }
  
  .engagement-list i {
    color: #392a48;
    margin-right: 10px;
  }

 /* Toggle Qualifications Button */
.toggle-qualifications {
  background-color: #007bff; /* Primary blue color */
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
}

.toggle-qualifications:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.toggle-qualifications:active {
  transform: translateY(0); /* Reset lift effect on click */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toggle-qualifications:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Focus ring for accessibility */
}
/* Chat Widget Styles */
#alto-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

/* --- MOBILE RESPONSIVE CAREER PAGE --- */
@media (max-width: 900px) {
  .career-page .job-categories {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .career-page .job-category-card {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .career-hero {
    height: 220px;
    padding: 0 5px;
  }
  .career-hero .hero-text h1 {
    font-size: 1.3rem;
  }
  .career-hero .hero-text p {
    font-size: 0.95rem;
  }
  .career-hero .cta-scroll-button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  .career-page .email-instruction-section {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 1.2rem 0.5rem;
  }
  .career-page .email-instruction-text,
  .career-page .email-instruction-image {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .career-section {
    padding: 20px 4px;
  }
  .section-title {
    font-size: 1.4em;
  }
  .section-subtitle {
    font-size: 1em;
  }
  .job-card-container {
    flex-direction: column !important;
    display: flex !important;
    gap: 14px;
    padding: 0 2px;
  }
  .job-card {
    max-width: 98vw;
    min-width: 0;
    padding: 16px 8px;
    font-size: 0.98em;
  }
  .job-title {
    font-size: 1.05rem;
  }
  .job-desc {
    font-size: 0.93em;
  }
  .apply-button {
    width: 100%;
    padding: 10px 0;
    font-size: 0.98em;
  }
  .apply-button-container {
    margin-top: 24px;
  }
  .engagement-wrapper {
    flex-direction: column;
    gap: 18px;
    padding: 1.2rem 0.5rem;
  }
  .engagement-image,
  .engagement-text {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .engagement-title {
    font-size: 1.2em;
  }
  .engagement-text p,
  .engagement-list li {
    font-size: 0.98em;
  }
}

/* Make chat widget not block content on mobile */
@media (max-width: 600px) {
  #alto-chat-widget {
    right: 8px;
    bottom: 8px;
    max-width: 90vw;
  }
}

 /* ===============================
       Career Section Scoped Styles
       =============================== */

    .career-section {
      text-align: center;
      padding: 60px 20px;
      background-color: #f9f9f9;
      position: relative;
      overflow: hidden;
    }

    .career-section .section-title {
      font-size: 2rem;
      margin-bottom: 10px;
    }

    .career-section .section-subtitle {
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 40px;
    }

    .career-section .job-card-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
    }

    .career-section .image-wrapper {
      width: 350px;
      height: 340px;  /* Portrait ratio */
      background-size: cover;
      background-position: center;
      border-radius: 12px;
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
      transition: transform 0.4s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .career-section .image-wrapper:hover {
      transform: scale(1.03);
    }

    .career-section .job-title {
      margin-top: 10px;
      font-size: 1.1rem;
      font-weight: bold;
      color: #333;
    }

    /* Enlarged state */
    .career-section .image-wrapper.enlarged {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 35vw;    /* Adjust enlarged width here */
      height: 55vh;   /* Adjust enlarged height here */
      transform: translate(-50%, -50%) scale(1);
      z-index: 10000;
      transition: all 0.4s ease-in-out;
      box-shadow: 0 0 40px rgba(0,0,0,0.3);
      border-radius: 15px;
      cursor: default;
    }

    /* Title overlay for enlarged view */
    .career-section-title-overlay.enlarged-title {
      position: fixed;
      top: 40px;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      font-size: 1.8rem;
      font-weight: bold;
      z-index: 10001;
      text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
      display: none;
    }

    .career-section-title-overlay.enlarged-title.active {
      display: block;
    }

    /* Close button inside the image */
    .enlarged-close {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      background-color: rgba(0, 0, 0, 0.7);
      color: white;
      border: none;
      font-size: 1.5rem;
      padding: 2px 10px;
      border-radius: 50%;
      cursor: pointer;
      display: none;
      line-height: 1;
    }

    .enlarged-close.active {
      display: block;
    }

    /* Apply button */
    .career-section .apply-button-container {
      margin-top: 50px;
    }

    .career-section .apply-button {
      background-color: #007BFF; /* 🔵 Blue apply button — change this color as needed */
      color: white;
      padding: 12px 28px;
      border-radius: 30px;
      text-decoration: none;
      font-size: 1.1rem;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      transition: background-color 0.3s ease;
    }

    .career-section .apply-button:hover {
      background-color: #0056b3; /* Hover color */
    }

    

    /* Responsive for smaller screens */
    @media (max-width: 768px) {
      .career-section .job-card-container {
        flex-direction: column;
        align-items: center;
      }

      .career-section .image-wrapper {
         width: 98vw;
    height: 55vw; /* Use aspect ratio for landscape, or try 60vw for portrait */
    min-height: 180px;
    max-height: 65vw;
    border-radius: 10px;
      }

      .career-section .image-wrapper.enlarged {
       width: 98vw;
    height: 65vw;
    min-height: 220px;
    max-height: 80vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 12px;
      }

      .career-section-title-overlay.enlarged-title {
        font-size: 1.3rem;
        top: 20px;
      }

      .enlarged-close {
        font-size: 1.3rem;
        top: 8px;
        right: 8px;
      }
    }
    @media (max-width: 600px) {
  .career-section .image-wrapper {
    width: 98vw;
    height: 55vw; /* Use aspect ratio for landscape, or try 60vw for portrait */
    min-height: 180px;
    max-height: 65vw;
    border-radius: 10px;
  }
  .career-section .image-wrapper.enlarged {
    width: 98vw;
    height: 65vw;
    min-height: 220px;
    max-height: 80vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 12px;
  }
}