/* ================= CAREERS PAGE ================= */

* {
  box-sizing: border-box;
}

body.inner-page {
  background: #f7f7f7;
  color: #002b5c;
}

/* ================= HERO ================= */

.careers-hero {
  min-height: 52vh;
  background:
    linear-gradient(rgba(0, 43, 92, 0.35), rgba(0, 43, 92, 0.45)),
    url("images/career1.jpeg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  color: #fff;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 2px;
}

/* ================= MAIN PAGE ================= */

.careers-page {
  background: #f7f7f7;
  padding: 100px 7%;
}

.careers-intro {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
}

.careers-intro h2,
.career-community h2,
.opportunities-section h2,
.career-team-section > h2 {
  font-size: 44px;
  font-weight: 300;
  color: #002b5c;
  margin-bottom: 28px;
}

.careers-intro p,
.career-community p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* ================= CAREERS COLLAGE ================= */

.careers-collage {
  max-width: 1500px;
  margin: 80px auto 110px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 20px;
}

.career-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.career-img.big {
  grid-row: span 2;
}

.career-message {
  background: linear-gradient(135deg, #7a1c2e, #9e2a3f);
  color: white;
  padding: 30px;
  text-align: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.career-message img {
  width: 74px;
  margin-bottom: 20px;
  background: white;
  border-radius: 50%;
  padding: 7px;
}

.career-message p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 340px;
}

/* ================= COMMUNITY ================= */

.career-community {
  max-width: 900px;
  margin: 0 auto 100px;
  text-align: center;
}

/* ================= OPPORTUNITIES ================= */

.opportunities-section {
  text-align: center;
  margin-bottom: 100px;
}

.opportunity-card {
  max-width: 560px;
  margin: 35px auto 25px;
  background: white;
  padding: 45px 50px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
}

.opportunity-card h3 {
  font-size: 26px;
  font-weight: 300;
  color: #333;
  margin-bottom: 25px;
}

.opportunity-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 22px;
}

.opportunity-card a {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 32px;
  border: 1px solid #002b5c;
  border-radius: 30px;
  color: #002b5c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.opportunity-card a:hover {
  background: #002b5c;
  color: white;
}

.career-note {
  font-size: 16px;
  color: #333;
}

/* ================= CAREER TEAM SLIDER ================= */

.career-team-section {
  padding: 80px 0 55px;
  background: #f7f7f7;
  text-align: center;
  overflow: hidden;
}

.career-team-section > h2 {
  font-size: 44px;
  font-weight: 300;
  color: #002b5c;
  margin-bottom: 45px;
}

.career-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 45px;
  overflow: hidden;
  padding: 0 70px 75px;
}

.career-slider-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  width: 100%;
  transition: transform 0.6s ease;
}

.career-slide {
  position: relative;
  width: 230px;
  height: 430px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ddd;
  opacity: 0.45;
  transform: scale(0.92);
  transition: all 0.45s ease;
}

.career-slide.active-career-slide {
  width: 520px;
  height: 500px;
  opacity: 1;
  transform: scale(1);
  border: 4px solid #0099e5;
  z-index: 5;
}

.career-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.career-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  z-index: 1;
}

.member-name {
  position: absolute;
  left: 26px;
  bottom: 32px;
  z-index: 2;
  color: #fff;
  font-size: 27px;
  font-weight: 300;
  line-height: 1.15;
  text-align: left;
  max-width: 85%;
}

.career-slide:not(.active-career-slide) .member-name {
  font-size: 22px;
  left: 24px;
  bottom: 28px;
}

/* ARROWS BOTTOM CENTER */

.career-arrow {
  position: absolute;
  bottom: 5px;
  top: auto;
  z-index: 30;

  width: 52px;
  height: 52px;

  border: none;
  background: #0099e5;
  color: #fff;

  font-size: 24px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.career-arrow.prev {
  left: calc(50% - 62px);
}

.career-arrow.next {
  left: calc(50% + 10px);
}

.career-arrow:hover {
  background: #002b5c;
}

/* DETAILS */

.career-details {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 24px;
}

.career-details h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 400;
  color: #002b5c;
  margin-bottom: 14px;
}

.career-details p {
  font-size: 17px;
  line-height: 1.7;
  color: #222;
}

/* ================= TABLET VIEW ================= */

@media (max-width: 900px) {
  .careers-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .career-img.big {
    grid-column: span 2;
    grid-row: auto;
    height: 360px;
  }

  .career-img {
    height: 260px;
  }

  .career-slider-wrapper {
    max-width: 100%;
    padding: 0 35px 75px;
  }

  .career-slider-track {
    gap: 24px;
    justify-content: center;
  }

  .career-slide {
    width: 170px;
    height: 340px;
  }

  .career-slide.active-career-slide {
    width: 390px;
    height: 420px;
  }
}

/* ================= MOBILE VIEW ================= */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .careers-hero {
    min-height: 42vh;
  }

  .hero-overlay h1 {
    font-size: 44px;
  }

  .careers-page {
    padding: 55px 18px;
  }

  .careers-intro {
    margin-bottom: 50px;
  }

  .careers-intro h2,
  .career-community h2,
  .opportunities-section h2,
  .career-team-section > h2 {
    font-size: 34px;
    line-height: 1.2;
  }

  .careers-intro p,
  .career-community p {
    font-size: 16px;
    line-height: 1.7;
  }

  .careers-collage {
    width: 100%;
    margin: 45px auto 70px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .career-img,
  .career-img.big {
    width: 100%;
    height: 260px;
    object-fit: cover;
    grid-column: auto;
    grid-row: auto;
  }

  .career-message {
    padding: 35px 24px;
  }

  .career-message p {
    font-size: 15px;
    line-height: 1.65;
  }

  .career-community,
  .opportunities-section {
    margin-bottom: 65px;
  }

  .opportunity-card {
    padding: 28px 22px;
  }

  .opportunity-card h3 {
    font-size: 23px;
  }

  .career-team-section {
    padding: 65px 0 35px;
  }

  .career-team-section > h2 {
    font-size: 34px;
    margin-bottom: 35px;
    padding: 0 20px;
  }

  .career-slider-wrapper {
    max-width: 100%;
    padding: 0 18px 75px;
    margin-bottom: 70px;
  }

  .career-slider-track {
    gap: 14px;
    justify-content: center;
  }

  .career-slide {
    width: 92px;
    height: 230px;
  }

  .career-slide.active-career-slide {
    width: 220px;
    height: 285px;
  }

  .member-name {
    font-size: 18px;
    left: 18px;
    bottom: 22px;
    max-width: 85%;
    text-align: left;
    transform: none;
  }

  .career-slide:not(.active-career-slide) .member-name {
    font-size: 13px;
    left: 14px;
    bottom: 18px;
  }

  .career-arrow {
    width: 42px;
    height: 42px;
    font-size: 19px;
    bottom: 10px;
  }

  .career-arrow.prev {
    left: calc(50% - 50px);
  }

  .career-arrow.next {
    left: calc(50% + 8px);
  }

  .career-details {
    padding: 0 22px;
  }

  .career-details h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .career-details p {
    font-size: 15px;
    line-height: 1.7;
  }

  .premium-back-wrapper {
    margin-top: 55px;
    gap: 14px;
  }

  .premium-nav-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ================= SMALL MOBILE VIEW ================= */

@media (max-width: 480px) {
  .careers-hero {
    min-height: 38vh;
  }

  .hero-overlay h1 {
    font-size: 38px;
  }

  .careers-intro h2,
  .career-community h2,
  .opportunities-section h2,
  .career-team-section > h2 {
    font-size: 30px;
  }

  .career-img,
  .career-img.big {
    height: 230px;
  }

  .career-slider-wrapper {
    padding: 0 10px 70px;
  }

  .career-slider-track {
    gap: 10px;
  }

  .career-slide {
    width: 78px;
    height: 210px;
  }

  .career-slide.active-career-slide {
    width: 195px;
    height: 260px;
  }

  .member-name {
    font-size: 16px;
    left: 16px;
    bottom: 20px;
  }

  .career-slide:not(.active-career-slide) .member-name {
    font-size: 12px;
    left: 10px;
    bottom: 15px;
  }

  .career-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .career-arrow.prev {
    left: calc(50% - 46px);
  }

  .career-arrow.next {
    left: calc(50% + 8px);
  }

  .career-details h2 {
    font-size: 24px;
  }

  .career-details p {
    font-size: 14px;
    line-height: 1.6;
  }
}