/* Design system overrides */
/* View All Positions button in benefits section */
.btn-secondary {
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #ddd !important;
  color: #000 !important;
}

.b5-active .card-title {
  border-bottom: unset;
}

/* Benefits section SVG icons */
.benefits-icon {
  height: 30px;
  margin-bottom: 10px;
}

.expanded-header .benefits-icon {
  margin-bottom: 0;
}

/* BEM classes for careers and their styles */
.careers {
  display: inline-block;
  vertical-align: top;
}

.careers--hero {
  min-height: 447px;
  background: #f7f7f7;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.careers__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.careers__overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}

.careers__content {
  background: rgba(0, 0, 0, 0.4);
  max-width: 455px;
  gap: 20px;
  backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
  .careers--hero {
    min-height: 300px;
  }

  .careers__content {
    padding-left: 0px;
    max-width: 100%;
    gap: 12px;
  }

  .benefits-icon {
  height: 14px;
  }
}
/* About Galls Section */
.about-galls-section {
  gap: 29px;
}

.about-galls-img {
  aspect-ratio: 770 / 367;
}

.about-galls-content {
  gap: 20px;
  padding-left: 80px;
}

.about-galls-btn {
  width: fit-content;
}
@media(max-width: 992px) {
  .about-galls-content {
    padding-left: 40px;
  }
}
@media (max-width: 768px) {
  .about-galls-section {
    gap: 12px;
  }
  .about-galls-content {
    gap: 20px;
    padding-left: 0px;
    padding: 12px;
  }
}

/* Benefits Section Interactive Styles */
.careers-benefits-section {
  position: relative;
  overflow: hidden;
}

.benefits-section-title {
  margin-bottom: 40px !important;
}

.benefits-grid {
  gap: 20px;
  margin-bottom: 40px;
  max-width: 760px;
  position: relative;
  transition: opacity 0.15s ease;
}

.benefits-card {
  padding: 20px !important;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  z-index: 1;
  text-align: center;
}

.benefits-card:hover {
  background: #fff !important;
  color: #000 !important;
}

.benefits-card:hover .benefits-icon path {
  stroke: #000;
  fill: #000;
}

.benefits-card .card-title {
  margin: 0;
}

/* Hide the detailed content inside cards */
.hidden-content {
  display: none;
}

/* Expanded overlay modal */
.expanded-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  color: #000;
  padding: 2rem 2rem 3rem;
  overflow-y: auto;
  z-index: 12;
  opacity: 0;
  transform: scale(0.98);
  box-sizing: border-box;
  border-radius: 8px;
  max-width: 780px;
  margin: auto;
}

.expanded-overlay.active {
  opacity: 1;
}

.expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.expanded-header h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  margin: 0;
  text-align: left;
}

.expanded-header .icon {
  width: 30px;
  height: 30px;
}

.expanded-header .icon path {
  stroke: #000;
  fill: #000;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 2.5rem !important;
  cursor: pointer;
  color: #000;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

.close-btn:hover {
  opacity: 0.7;
}

.expanded-content {
  text-align: left;
  max-width: 800px;
  margin-top: 1rem;
  line-height: 1.6;
}

.expanded-content ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
}

.expanded-content li {
  margin-bottom: 0.5rem;
}

.expanded-content p {
  margin-bottom: 1rem;
}

/* Clone animation element */
.card-clone {
   position: absolute;
  inset: 0;
  background: #fff;
  color: #000;
  padding: 2rem 2rem 3rem;
  overflow-y: auto;
  z-index: 12;
  opacity: 0;
  transform: scale(0.98);
  box-sizing: border-box;
  border-radius: 8px;
  max-width: 780px;
  margin: auto;
}

.card-clone .icon path {
  stroke: #000;
  fill: #000;
}

.card-clone .card-title {
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Fade out other cards when one is expanding */
.benefits-grid.fade-out .benefit-card {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
  .benefits-grid {
    gap: 10px;
  }

  .benefits-section-title,
  .benefits-grid {
    margin-bottom: 20px !important;
  }

  .expanded-overlay {
    padding: 1.5rem;
  }

  .expanded-header h3 {
    font-size: 1.2rem;
  }

  .close-btn {
    font-size: 1.5rem;
  }
}

/* Veterans Section */
.veterans-section {
  gap: 63px;
}

.veterans-img {
  min-height: 200px;
  aspect-ratio: 770 / 367;
}

.veterans-content {
  gap: 20px;
  padding-left: 80px;
}

.veterans-quote {
  max-width: 400px;
  border-left: 3px solid #e3e3e3;
}

.veterans-quote:before {
  content: unset;
}

/* Veterans avatar responsive size */
.veterans-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
}
@media(max-width: 992px) {
  .veterans-content {
    padding-left: 40px;
  }
}
@media (max-width: 768px) {
  .veterans-avatar {
    width: 124px;
    height: 124px;
  }
  .veterans-section {
    gap: 12px;
  }
  .veterans-content {
    padding-left: 0px;
    padding: 12px;
  }
}


/* CTA Section */
.cta-section.card {
  max-width: 476px;
  margin: 0 auto 20px auto;
  border: 2px solid #000;
  box-shadow: none;
}

.cta-section.card h2 {
  font-family: var(--galls-font-gt-america-standard);
  margin-bottom: 20px;
}

.cta-btn {
  width: fit-content;
}

@media (max-width: 768px) {
  .cta-section.card {
    padding: 12px;
    margin:  20px;
  }
  .cta-section.card h2 {
    margin-bottom: 12px;
  }
}