.career-hero {
  width: 100%;
  height: 800px;
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/images/career/hero_banner.webp") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    113deg,
    rgba(0, 0, 0, 0.6) 9.56%,
    rgba(0, 0, 0, 0.2) 89%
  );
  z-index: 1;
}

.hero-floating-img {
  position: absolute;
  right: 0;
  bottom: -80px;
  width: 374px;
  height: 272px;
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 15px 15px 40px 0px rgba(0, 0, 0, 0.2);
}

.hero-floating-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.career-container {
  width: 1398px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.mission-section {
  padding: 120px 0 0px;
  text-align: center;
  position: relative;
}

.mission-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/career/section_bg.webp") center/cover
    no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.mission-section .career-container {
  position: relative;
  z-index: 1;
}

.mission-img {
  width: 1400px;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 15px 15px 40px 0px rgba(0, 0, 0, 0.2);
  margin: 20px auto 20px;
  position: relative;
}

.mission-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(19, 29, 69, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.mission-text {
  width: 1183px;
  margin: 0 auto;
  color: #515050;
  font-family: "Merriweather", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
}

.culture-section {
  padding: 20px 0;
  text-align: center;
}

.section-title-navy {
  color: #131d45;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 24px;
}

.culture-summary {
  max-width: 894px;
  margin: 0 auto 20px;
  color: #515050;
  text-align: center;
  font-family: "Merriweather", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
}

.culture-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.culture-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.culture-card {
  width: 442px;
  height: 254px;
  padding: 24px 32px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #212121;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.culture-icon-box {
  width: 94px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  filter: grayscale(100%);
}

.culture-icon-box img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.culture-card h3 {
  color: #1f215e;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.culture-card p {
  color: #515050;
  font-family: "Merriweather", serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin: 0;
}

.growth-section {
  width: 100%;
  padding: 20px 0;
  position: relative;
  background-color: #fff;
  text-align: center;
}

.growth-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/career/section_bg.webp") center/cover
    no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.growth-section .career-container {
  position: relative;
  z-index: 1;
}

.growth-text {
  width: 1362px;
  margin: 20px auto 0;
  color: #515050;
  text-align: center;
  font-family: "Merriweather", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
}

.involvement-section {
  padding: 20px 0;
  text-align: center;
}

.involvement-grid {
  display: flex;
  gap: 32px;
  margin: 20px auto 0;
  justify-content: center;
  max-width: 1400px;
}

.involvement-card {
  width: 677px;
  height: 795px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(81, 80, 80, 0.5);
  padding: 40px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}

.involvement-img {
  width: 621px;
  height: 344px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.involvement-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.involvement-card h3 {
  color: #1f215e;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.involvement-card p {
  width: 583px;
  color: #515050;
  font-family: "Merriweather", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  margin: 0;
}

.join-team-section {
  padding: 40px 0;
  position: relative;
  background-color: #fff;
  text-align: center;
}

.join-team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  z-index: 0;
}

.join-team-section .career-container {
  position: relative;
  z-index: 1;
}

.join-team-summary {
  width: 1092px;
  height: 80px;
  margin: 30px auto 40px;
  color: #515050;
  text-align: center;
  font-family: "Merriweather", serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.job-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(81, 80, 80, 0.25);
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  text-align: left;
}

.job-card.expanded {
  height: auto;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.job-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-tags {
  display: flex;
  gap: 12px;
}

.tag-new {
  background: #212121;
  color: #fff;
  padding: 4px 16px;
  border-radius: 16px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.tag-dept {
  padding: 4px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
}

.job-title {
  color: #212121;
  font-family: "Merriweather", serif;
  font-size: 30px;
  font-weight: 400;
  margin: 0;
}

.job-toggle {
  width: 36px;
  height: 40px;
  background: #212121;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-image: url("../assets/images/career/up.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  transition: transform 0.3s ease;
}

.job-card.expanded .job-toggle {
  transform: rotate(180deg);
}

.job-details {
  display: none;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(33, 33, 33, 0.25);
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
}

.job-card.expanded .job-details {
  display: flex;
  text-align: left; /* Ensure expanded text is left-aligned */
}

.detail-section {
  flex: 1;
  max-width: 70%;
}

.detail-section h4 {
  color: #212121;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.detail-section p {
  color: #212121;
  font-family: "Merriweather", serif;
  font-size: 18px;
  line-height: 32px;
  margin: 0;
  white-space: pre-line;
}

.job-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 40px;
  gap: 24px;
  min-width: 240px;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #212121;
  font-family: "Merriweather", serif;
  font-size: 16px;
}

.meta-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0);
}

.icon-time {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

.icon-location {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.apply-btn {
  background: #212121;
  color: #fff;
  padding: 12px 0;
  width: 100%;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-family: "Merriweather", serif;
  font-size: 16px;
  transition: background 0.3s ease;
}

.apply-btn:hover {
  background: #000;
}

@media (max-width: 1440px) {
  .hero-content,
  .career-container,
  .culture-grid,
  .involvement-grid {
    width: 100%;
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 1024px) {
  .hero-content,
  .career-container,
  .culture-grid,
  .involvement-grid {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-floating-img {
    width: 280px;
    height: 200px;
    bottom: -50px;
  }
  .mission-img {
    width: 90%;
    height: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .mission-text {
    width: 100%;
    padding: 0 40px;
    font-size: 18px;
  }
  .culture-summary,
  .growth-text,
  .join-team-summary {
    width: 100%;
    height: auto;
    font-size: 18px;
    padding: 0 40px;
  }

  .culture-grid {
    flex-wrap: wrap;
  }
  .involvement-grid {
    flex-direction: column;
    align-items: center;
  }
  .involvement-card {
    width: 100%;
    height: auto;
  }
  .involvement-img {
    width: 100%;
    height: 300px;
  }
  .involvement-card p {
    width: 100%;
  }

  .job-details {
    flex-direction: column;
  }
  .detail-section {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mission-section {
    padding: 30px 0 0;
  }

  .mission-img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin: 15px 0;
  }

  .career-container {
    padding: 0 20px;
  }

  .culture-section,
  .growth-section,
  .involvement-section,
  .join-team-section {
    padding: 20px 0;
  }

  .culture-grid,
  .involvement-grid {
    padding: 0;
    gap: 20px;
  }

  .section-title-navy {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .mission-text,
  .culture-summary,
  .growth-text,
  .join-team-summary {
    padding: 0;
    font-size: 15px;
    line-height: 28px;
    margin-top: 10px;
  }

  .culture-card {
    width: 100%;
    height: auto;
    padding: 24px;
  }

  .culture-card h3 {
    font-size: 20px;
  }

  .involvement-card {
    padding: 24px 20px;
  }

  .involvement-card h3 {
    font-size: 20px;
  }

  .involvement-card p {
    font-size: 15px;
    line-height: 28px;
  }

  .job-card {
    padding: 24px;
  }

  .job-title {
    font-size: 20px;
  }

  .job-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .job-toggle {
    margin-top: 0;
    align-self: center;
  }
  .job-details {
    padding-top: 24px;
    margin-top: 24px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .section-title-navy {
    font-size: 22px;
  }
  .mission-text,
  .culture-summary,
  .growth-text,
  .join-team-summary,
  .involvement-card p,
  .detail-section p,
  .meta-item {
    font-size: 14px;
  }
  .culture-card h3,
  .involvement-card h3,
  .job-title,
  .detail-section h4 {
    font-size: 18px;
  }
}
