/* ================================
   GLOBAL STYLES
================================ */
body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  font-family: "DM Sans", sans-serif;
  color: #11184A;
  overflow-x: hidden;
}

.career-page {
  overflow: hidden;
}

/* ================================
   TWO-COLUMN LAYOUT
================================ */
.career-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 8%;
  gap: 80px;
  flex-wrap: wrap;
}

.career-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  max-width: 1400px;
  flex-wrap: wrap;
}

/* ================================
   LEFT SIDE - JOB LIST
================================ */
.career-jobs {
  flex: 1;
  min-width: 480px;
  max-width: 650px;
}

.career-job {
  border: 2px solid #11184A;
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.career-job:hover {
  box-shadow: 0 8px 20px rgba(17, 24, 74, 0.15);
}

.career-job-header {
  background: none;
  border: none;
  width: 100%;
  color: #11184A;
  text-align: left;
  font-size: 1.5rem;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.career-job-header:hover {
  opacity: 0.85;
}

.career-job-header .toggle-icon {
  font-size: 2rem;
  color: inherit;
  margin-left: 15px;
  flex-shrink: 0;
}

/* ================================
   JOB BODY (ENHANCED STYLE)
================================ */
.career-job-body {
  display: none;
  background: #FCE570;
  border-top: 1px solid #eee;
  border-radius: 0 0 20px 20px;
  padding: 35px 40px;
  animation: fadeIn 0.4s ease forwards;
  text-align: left;
  box-shadow: inset 0px 5px 0px rgba(206, 178, 60, 0.25);
  position: relative;
}

.career-job-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  bottom: 25px;
  width: 4px;
  border-radius: 2px;
  background: rgba(206, 178, 60, 0.45);
}

.career-job-body h3 {
  margin-top: 10px;
  font-size: 1.3rem;
  color: #11184A;
  font-weight: 600;
  margin-bottom: 10px;
}

.career-job-body ul {
  margin: 10px 0 25px 25px;
  line-height: 1.6;
  color: #11184A;
  font-weight: 300;
}

.career-job p {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* ================================
   RIGHT SIDE - HERO SECTION
================================ */
.career-hero {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: right;
  padding: 20px;
}

.career-hero-inner {
  max-width: 500px;
  color: #11184A;
}

.career-hero-inner h1 {
  text-shadow: 5px 3px 0px #FBE971;
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.1;
}

.career-hero-inner p {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 300;
}

/* ================================
   BUTTON STYLE (BOTTOM-TO-TOP FILL)
================================ */
.button-group {
  margin-top: 20px;
}

.emailtous {
  position: relative;
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #11184A;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #11184A;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Fill animation from bottom to top */
.emailtous::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background-color: #11184A;
  z-index: 0;
  transition: height 0.5s ease;
}

.emailtous span {
  position: relative;
  z-index: 1;
  transition: color 0.5s ease;
}

/* On hover: fill and turn text white */
.emailtous:hover::before {
  height: 100%;
}

.emailtous:hover span {
  color: #fff;
}

.emailtous:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* ================================
   NO JOBS MESSAGE
================================ */
.no-jobs {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ================================
   ANIMATION
================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 992px) {
  .career-layout {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 60px;
    padding: 60px 5%;
  }

  .career-hero {
    text-align: center;
  }

  .career-hero-inner h1 {
    font-size: 3rem;
  }

  .career-jobs {
    min-width: 100%;
  }

  .career-job-body::before {
    display: none;
  }
}
