
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
}

.top-banner {
  width: 88%;
  margin: 30px auto;
  padding: 80px 3%;
  text-align: center;
  color: white;
  border-radius: 30px;
  background: #008acf url('/images/career page banner-03.png') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.top-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.top-banner h1 {
  font-size: 55px;
  font-weight: bold;
  margin: 0;
  position: relative;
  z-index: 2;
}

.job-listing-container {
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.job-card {
  background: #f8f9fa;
  width: 95%;
  border: 3px solid #dee2e6;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.job-header h2,
.job-header p {
  color: #008acf;
}

.job-header h2 {
  font-size: 38px;
  margin-bottom: 5px;
}

.job-header p {
  font-size: 22px;
}

.job-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* === BUTTONS === */
.apply-now-btn {
  background: linear-gradient(90deg, #005B96, #0099DE);
  color: white;
  padding: 12px 25px;
  font-size: 28px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;   /* changed from flex → inline-flex so it sizes like a button */
  align-items: center;
  gap: 10px;
  text-decoration: none;  /* remove underline */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;        /* make it clickable */
}

.apply-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.apply-now-btn img {
  height: 1.1em;
}


.toggle-details-btn {
  background-color: #fff;
  border: 2px solid #008acf;
  color: #008acf;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toggle-details-btn img {
  height: 50px;
  width: 50px;
  transition: transform 0.4s ease;
}

.toggle-details-btn.active img {
  transform: rotate(180deg);
}

/* === JOB DETAILS === */
.job-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: #fff;
  transition: max-height 0.6s ease, opacity 0.4s ease, margin-top 0.6s ease;
  border-top: 3px solid #dee2e6;
}

.job-details.visible {
  max-height: 5000px;
  opacity: 1;
  margin: 25px -20px -20px;
  padding: 25px 20px 20px;
}

.job-details h3 {
  font-size: 28px;
  font-weight: 600;
  color: #008acf;
  display: flex;
  align-items: center;
  margin: 25px 0 15px;
}

.job-details h3 img {
  height: 60px;
  margin-right: 12px;
}

.job-details ul,
.job-details p {
  color: #333;
  font-size: 18px;
  line-height: 1.7;
  padding-left: 60px;
}

.job-details ul {
  list-style-type: disc;
  margin: 0 0 20px;
}

/* === BENEFITS GRID === */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
  justify-items: center;
}

.benefit-grid div {
  border: 2px solid #e0e0e0;
  padding: 20px 15px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 180px;
  width: 300px;
}

.benefit-grid img {
  height: 80px;
  width: auto;
}

/* === SHARE ICON === */
.share {
  font-size: 28px;
  font-weight: 500;
  color: #008acf;
  display: flex;
  align-items: center;
}

.share img {
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
}

/* === SECTION HEADER === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h3 {
  margin: 0;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 992px) {
  .top-banner h1 {
    font-size: 45px;
  }

  .job-header h2 {
    font-size: 28px;
  }

  .job-header p {
    font-size: 18px;
  }

  .apply-now-btn {
    font-size: 18px;
    padding: 10px 20px;
  }

  .toggle-details-btn {
    width: 45px;
    height: 45px;
  }

  .toggle-details-btn img {
    width: 45px;
    height: 45px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid div {
    width: 250px;
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    width: auto;
    margin: 10px;
    padding: 50px 20px;
    border-radius: 20px;
  }

  .top-banner h1 {
    font-size: 32px;
  }

  .job-listing-container {
    padding: 20px 15px;
  }

  .job-card {
    padding: 15px;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-right: 60px;
    position: relative;
  }

  .job-header h2 {
    font-size: 22px;
    margin-top: 2px;
  }

  .job-header p {
    font-size: 16px;
  }

  .toggle-details-btn {
    position: absolute;
    top: 0;
    right: 0;
  }

  .job-header-actions {
    width: 100%;
    justify-content: center;
    padding: 10px 40px;
  }

  .apply-now-btn {
    padding: 12px 30px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid div {
    width: 100%;
    box-sizing: border-box;
  }

  .job-details.visible {
    margin: 0 -15px -15px;
    padding: 20px 15px 15px;
  }
}

/* === EMAIL MODAL === */
/* === EMAIL MODAL === */

/* Modal Background */
.email-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal Content Box */
.email-modal-content {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  font-family: 'Segoe UI', sans-serif;
}

/* Close Button */
.close-email-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

/* === New Layout & Styles === */

/* Large Title */
.email-modal-title {
  text-align: center;
  font-size: 45px;
  font-weight: bold;
  color: #008acf;
  margin-bottom: 5px;
  margin-top: 0px;
}

#emailJobTitle {
  margin-bottom: 20px;
  font-weight: 500;
  color: #444;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Individual Column */
.form-column {
  flex: 1;
  min-width: 220px;
}

/* Group Styles */
.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

/* Label Styling */
.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

/* Input Styling */
.form-group input[type="text"],
.form-group input[type="email"] {
  padding: 10px 12px;
  border: 2px solid #1f2d3d;
  border-radius: 5px;
  font-size: 14px;
  transition: border 0.3s ease;
}

.form-group input:focus {
  border-color: #008acf;
  outline: none;
}

/* Button Center Align */
.form-submit {
  text-align: center;
  margin-top: 20px;
}

/* Submit Button */
form button[type="submit"] {
  background: linear-gradient(to right,#005B96, #008acf);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #008acf;
  color: #eee;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Layout */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .form-column {
    width: 100%;
  }
}
