* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  background-color: rgb(0, 0, 0);
  color: white;
  overflow-x: hidden;
}

.career-heading {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#wrapper {
  width: 100vw;
  height: 100vh;
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 1;
}

.career-heading img {
  position: absolute;
  width: 50%;
}

.career-heading #img1 {
  width: 30%;
  left: -8%;
  transform: rotate(20deg);
}

.career-heading #img2 {
  width: 30%;
  right: -8%;
  transform: rotate(-20deg);
}

.career-heading h1 {
  font-size: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  line-height: 110px;
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* .career-heading h1 span {
  display: inline-flex;
  align-items: center;
} */

.career-heading h1 .text-line {
  overflow: hidden;
  height: fit-content;
  display: block;
}

/* Gradient and horizontal offset restored using nth-child */
.career-heading h1 .text-line:nth-child(1) {
  align-self: flex-start;
  transform: translateX(-30%);
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.career-heading h1 .text-line:nth-child(3) {
  align-self: flex-end;
  transform: translateX(30%);
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Middle span (with star) inherits same gradient */
.career-heading h1 .text-line:nth-child(2) {
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.career-heading h1 .text-line:nth-child(2) span {
  display: flex;
}

/* Star image animation inside text */
.career-heading h1 .text-line span img {
  width: 50px;
  height: 50px;
  position: static;
  animation: spinForever 6s linear infinite;
}

@keyframes spinForever {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.benefits {
  margin: 70px 30px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.benefits h2 {
  font-size: 4rem;
  font-weight: 400;
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.benefit-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Default: 3 columns */
  gap: 4rem;
  align-content: center;
  position: relative;
}

.benefit-cards .card {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  overflow: hidden; /* important for pseudo-element clipping */
}

.benefit-cards .card::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #dce7ce49, transparent);
  filter: blur(20px);
  z-index: 0;
  transition: all 0.6s;
}

.benefit-cards .card:nth-child(1):hover::after {
  background: radial-gradient(circle at center, #192ee44f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(2):hover::after {
  background: radial-gradient(circle at center, #1bb6b64f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(3):hover::after {
  background: radial-gradient(circle at center, #e644284f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(4):hover::after {
  background: radial-gradient(circle at center, #c530b94f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(5):hover::after {
  background: radial-gradient(circle at center, #31f0504f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(6):hover::after {
  background: radial-gradient(circle at center, #b6c5324f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(7):hover::after {
  background: radial-gradient(circle at center, #d82e914f, transparent);
  width: 200%;
  height: 200%;
}
.benefit-cards .card:nth-child(8):hover::after {
  background: radial-gradient(circle at center, #4e28d64f, transparent);
  width: 200%;
  height: 200%;
}

.benefit-cards .card > * {
  position: relative;
  z-index: 1;
}

.benefit-cards .card img {
  width: 20%;
}

.benefit-cards .card .content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.benefit-cards .card .content span {
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.benefit-cards .card .content p {
  color: #8d8c8c;
}

.seperator {
  width: 100vw;
  height: 0.1px;
  background-color: #4e4e4e73;
  margin: 50px 0;
}

.application-form {
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.application-form .heading h2 {
  font-size: 4rem;
  font-weight: 400;
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.application-form .main-content {
  display: flex;
  gap: 150px;
}

.application-form .wpcf7.js{
  width: 60%;
}

.application-form .main-content form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.current-opening .heading h3 {
  font-size: 2rem;
  margin: 0 0 30px 0;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion-item {
  background: #ffffff14;
  border-radius: 20px;
  border: 0.5px solid #ffffff33;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  color: #fff;
  position: relative;
}

.accordion-item::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #dce7ce49, transparent);
  filter: blur(20px);
  z-index: 0;
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 1.5rem 2rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.accordion-header .icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-header .icon img {
  width: 24px;
}

.accordion-header.active .icon {
  transform: rotate(180deg); /* plus turns into X */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.95rem;
  color: #ccc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-content p {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  color: #fff;
  font-size: 1rem;
}

.accordion-content ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.accordion-content ul li {
  margin-bottom: 0.6rem;
  line-height: 1.2;
  color: #ccc;
}
.accordion-item.open .accordion-content {
  padding: 0 2rem 2rem;
  max-height: 1000px; /* large enough for scroll height */
}

.marquee {
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
}

.marquee .marquee-haeding {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marquee .marquee-haeding h3 {
  padding: 0 30px;
  font-size: 4rem;
  font-weight: 400;
  background: -webkit-linear-gradient(#333, #eee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marquee .marquee-haeding a.hover-gsap {
  width: 110px;
  height: 110px;
  background-color: white;
  color: black;
  text-decoration: none;
  margin: 0 30px 0 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.marquee .marquee-haeding a.hover-gsap:hover {
  background-color: black;
  color: white;
}

.marquee .marquee-haeding a.hover-gsap:hover::before {
  border-color: white;
}

/* .marquee-wrapper {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  gap: 70px;
  width: max-content;
}

.marquee-track img {
  width: 25vw;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 20px;
  pointer-events: none;
  user-select: none;
} */

.marquee {
  margin: 0 auto;
  width: 100%;
  height: 50%;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  background: #000;
  padding: 20px 0;
}
.marquee:before,
.marquee:after {
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  content: "";
  z-index: 1;
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
}

.marquee-track,
.marquee__content {
  display: flex;
  gap: 70px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__content:hover {
  animation-play-state: paused;
}

/* Image list styling */
.list-inline {
  display: flex;
  gap: 70px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-inline li img {
  width: 25vw;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 20px;
  pointer-events: none;
  user-select: none;
}

@-webkit-keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-66.6%);
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-66.6%);
  }
}

@keyframes rotateOutline {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hover-gsap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  overflow: visible;
  transition: all 0.5s ease;
}

.hover-gsap::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border-radius: 50%;
  border: 2.5px dotted #777;
  animation: rotateOutline 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.hover-gsap .content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

@media (max-width: 1440px) {
  .application-form .main-content {
    gap: 100px;
  }

  .application-form .main-content .current-opening {
    width: 50%;
  }

  .current-opening .cards .card {
    width: 100%;
  }
}

@media (max-width: 1279px) {
  .career-heading h1 {
    font-size: 5.5rem;
    line-height: 80px;
  }

  .career-heading h1 .text-line span img {
    width: 30px;
    height: 30px;
  }

  .benefit-cards {
    gap: 2rem;
  }

  .benefit-cards .card {
    padding: 1.5rem 1rem;
  }

  .marquee-track,
  .marquee__content {
    gap: 40px;
  }

  .list-inline {
    gap: 40px;
  }

  .list-inline li img {
    height: 350px;
  }

  .marquee .marquee-haeding h3 {
    font-size: 3rem;
  }
}

@media (max-width: 1023px) {
  .benefit-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-heading h1 {
    font-size: 4.5rem;
    line-height: 65px;
  }

  .career-heading h1 .text-line span img {
    width: 25px;
    height: 25px;
  }

  .benefit-cards {
    gap: 1.5rem;
  }

  .benefits h2 {
    font-size: 3rem;
  }

  .application-form .heading h2 {
    font-size: 2.5rem;
  }

  .application-form .main-content {
    gap: 70px;
  }

  .application-form .main-content .current-opening .cards .card {
    padding: 1.5rem 1.5rem;
  }

  .current-opening .cards .card h4 {
    font-size: 1.3rem;
  }
  .current-opening .cards .card p {
    font-size: 14px;
    line-height: 18px;
  }

  .current-opening .heading h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {
  .career-heading h1 {
    font-size: 4rem;
    line-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .career-heading h1 .text-line:nth-child(1) {
    transform: translateX(0);
    align-self: center;
  }

  .career-heading h1 .text-line:nth-child(3) {
    transform: translateX(0);
    align-self: center;
  }

  .career-heading h1 .text-line span img {
    width: 25px;
    height: 25px;
  }

  .benefits h2 {
    font-size: 2.5rem;
  }

  .application-form .main-content {
    flex-direction: column;
  }

  .application-form .wpcf7.js{
    width: 100%;
  }

  .application-form .main-content form {
    order: 2;
  }

  .application-form .main-content .current-opening {
    order: 1;
    width: 100%;
  }

  .list-inline li img {
    width: 40vw;
    height: 300px;
  }

  .marquee .marquee-haeding h3 {
    font-size: 2.5rem;
  }

  .marquee .marquee-haeding a.hover-gsap {
    width: 90px;
    height: 90px;
  }

  .accordion-header {
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 600px) {
  .benefits {
    margin: 70px 20px;
  }

  .benefit-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-heading #img1 {
    width: 50%;
    left: -8%;
    top: 20%;
    transform: rotate(20deg);
  }

  .career-heading #img2 {
    width: 50%;
    right: -8%;
    bottom: 20%;
    transform: rotate(-20deg);
  }

  .career-heading h1 {
    font-size: 3.5rem;
  }

  .career-heading h1 .text-line span img {
    width: 20px;
    height: 20px;
    margin: 10px 0 0 0;
  }

  .application-form .heading h2 {
    font-size: 2.5rem;
  }

  .application-form {
    padding: 20px 20px;
  }

  .application-form form {
    margin: 0 0 50px 0;
  }

  .controls a.hover-gsap {
    margin: 30px 0 0 12px;
  }

  .list-inline li img {
    width: 60vw;
    height: 300px;
  }

  .marquee .marquee-haeding {
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  .marquee .marquee-haeding a.hover-gsap {
    margin: 30px 0 0 30px;
  }
}

@media (max-width: 479px) {
  .benefit-cards {
    grid-template-columns: 2fr;
  }
}
