/* ===========================
   GLOBAL / PAGE BACKGROUND
   =========================== */

.home-header-section {
  background-image: linear-gradient(
    150deg,
    var(--e-global-color-dark-marron) 1%,
    var(--e-global-color-dark-icons-background) 10%
  );
}

/* Careers page body override */
body {
  background: var(--e-global-color-dark-icons-background);
}

/* Make hero use the same font as the rest of the site */
.career-hero,
.career-hero * {
  font-family: inherit !important;
}


/* ===========================
   GENERIC SECTION HEADING
   =========================== */

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 2.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.section-heading p {
  color: #b5b5c7;
  font-size: 0.98rem;
}


/* ===========================
   HERO
   =========================== */

.career-hero {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.career-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #f43334;
  margin-bottom: 0.7rem;
}

/* main hero heading */
.career-title,
.career-title span {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.career-title {
  font-size: 3.3rem;
  line-height: 1.1;
  text-transform: none;
  color: #ffffff;
}

.career-title span {
  color: #f43334;
}

/* larger on big screens */
@media (min-width: 1200px) {
  .career-title {
    font-size: 3.8rem;
  }
}

/* subtitle paragraph under typewriter line */
.career-subtitle {
  color: #dcdce6;
  max-width: 540px;
  font-size: 0.98rem;
  margin: 0 auto 1.8rem;
}


/* ===========================
   TYPEWRITER LINE (UNDER H1)
   =========================== */

.career-typed-line {
  margin: 0.2rem 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #f9fafb;
  padding: 2% 0%;
}

#career-typed-roles {
  font-weight: 600;
  font-family: inherit;
  color: #ff4040;
}

#career-typed-cursor {
  display: inline-block;
  width: 0.7ch;
  margin-left: 2px;
  animation: careerBlink 1s step-end infinite;
}

@keyframes careerBlink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}


/* ===========================
   HERO METRICS + BUTTONS
   =========================== */

.career-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1.2rem;
  min-width: 130px;
  backdrop-filter: blur(10px);
}

.metric-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.1rem;
}

.metric-card p {
  font-size: 0.8rem;
  color: #aaaacc;
}

/* buttons */
.btn-primary-red,
.btn-outline-red {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.career-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}

.btn-primary-red {
  background: #f43334;
  border-color: #f43334;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 64, 64, 0.4);
}

.btn-primary-red:hover {
  background: #ff2626;
  border-color: #ff2626;
  transform: translateY(-1px);
}

.btn-outline-red {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-red:hover {
  border-color: #ff4040;
  color: #ffaaaa;
}


/* ===========================
   JOBS SECTION
   =========================== */

.career-jobs {
  padding: 1rem 0 3.2rem;
}

.job-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  text-align: center;
  padding: 1.8rem 1.9rem;
  border-radius: 22px;
  background:
    radial-gradient(1200px 300px at -10% -40%, rgba(244, 51, 52, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(20, 20, 24, 0.95), rgba(8, 8, 10, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.job-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

.job-cta .job-cta-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.job-cta .job-cta-copy p {
  color: #c9c9d9;
  margin-bottom: 0;
}

.job-cta .btn-primary-red {
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .job-cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .job-cta .job-cta-copy {
    max-width: 70%;
  }
}

.job-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.job-filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  padding: 0.45rem 1.2rem;
  background: transparent;
  color: #f5f5ff;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.job-filter-btn.active,
.job-filter-btn:hover {
  background: #f43334;
  border-color: #ff4040;
  box-shadow: 0 0 18px rgba(255, 64, 64, 0.4);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  /* background: rgba(255, 255, 255, 0.04); */
  background: rgba(41, 41, 41, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 1.2rem;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  border-color: rgba(255, 64, 64, 0.6);
  box-shadow: 0 0 22px rgba(255, 64, 64, 0.3);
  transform: translateY(-2px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.job-title {
  font-size: 1.12rem;
  margin-bottom: 0.1rem;
}

.job-meta {
  font-size: 0.82rem;
  color: #babacd;
  margin-bottom: 0;
}

.job-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.job-toggle i {
  font-size: 0.7rem;
}

.job-toggle:hover {
  border-color: #f43334;
  color: #f43334;
}

.job-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.22s ease;
  margin-top: 0;
}

.job-card.open .job-body {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.9rem;
}

.job-card.open .job-toggle i {
  transform: rotate(180deg);
}

.job-summary {
  font-size: 0.9rem;
  color: #d6d6e4;
  margin-bottom: 0.8rem;
}

.job-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin-bottom: 0.8rem;
}

.job-columns h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.job-columns ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.job-columns li {
  font-size: 0.86rem;
  color: #d7d7e5;
  margin-bottom: 0.25rem;
}

.job-apply-inline {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  padding: 0.4rem 0.95rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.job-apply-inline:hover {
  border-color: #ff4040;
  color: #ffb2b2;
}


/* ===========================
   APPLICATION FORM SECTION
   =========================== */

.career-apply {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.career-apply h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: #f43334;
}

.apply-subtitle {
  font-size: 0.96rem;
  color: #d6d6e3;
  margin-bottom: 1rem;
}

.apply-highlights {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.apply-highlights li {
  font-size: 0.9rem;
  color: #e5e5f0;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.apply-highlights i {
  color: #22c55e;
}

/* form container */
.career-form {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.75);
}

.career-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.career-form .form-group {
  margin-bottom: 0.9rem;
}

.career-form label {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 0.3rem;
  color: #f4f4ff;
}

.career-form label span {
  color: #f97373;
}

.career-form input,
.career-form select,
.career-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.career-form input:focus,
.career-form select:focus,
.career-form textarea:focus {
  border-color: #ff4040;
  box-shadow: 0 0 0 1px rgba(255, 64, 64, 0.35);
  background: rgb(48, 48, 48);
}

.career-form textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-full {
  width: 100%;
  margin-top: 0.3rem;
}

.form-note {
  font-size: 0.75rem;
  color: #a7a7b8;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #4ade80;
}

.form-success.show {
  display: block;
}


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 991.98px) {
  .career-hero {
    padding-top: 3.5rem;
  }

  .career-title {
    font-size: 2.2rem;
  }

  .career-metrics {
    margin-bottom: 1.4rem;
  }

  .career-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .career-hero {
    padding-top: 3rem;
  }

  .career-title {
    font-size: 1.9rem;
  }

  .job-columns {
    grid-template-columns: 1fr;
  }

  .career-apply {
    padding-bottom: 3rem;
  }

  .career-form {
    padding: 1.25rem 1.1rem;
  }
}


.job-columns h4{
  color: #f43334;
}

.footer-section {
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-outer-margin .row > div {
  margin-bottom: 24px;
}

.footer-bar {
  margin-top: 32px;
  /* padding-top: 16px; */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-us-ul .addres-list i {
  margin: 0 6px 0 2px;
  color: #f43334;
}




/* Portal Card Styling */
.portal-card {
    /* Dark background */
    background: var(--e-global-color-dark-icons-background); 
    
    /* Option 1: A very thin, subtle solid red border definition */
    border: 1px solid rgba(244, 51, 52, 0.3); /* using var(--e-global-color-btn-red) with low opacity */

    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    
    /* THE RED GLOW SHADOW */
    /* We use the RGB value of your bright red (f43334 = 244, 51, 52) with opacity */
    box-shadow: 0 5px 15px rgba(244, 51, 52, 0.3); 
    
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portal-card:hover {
    transform: translateY(-5px);
    
    /* Intensify border on hover */
    border-color: var(--e-global-color-btn-red);

    /* Intensify the red glow shadow on hover */
 box-shadow: 0 10px 30px rgba(244, 51, 52, 0.5);
}

/* (The rest of the CSS for icons and text remains the same as the previous step) */
.portal-icon {
    width: 80px;
    height: 80px;
    background: rgba(244, 51, 52, 0.1); 
    color: var(--e-global-color-btn-red); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.portal-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--e-global-color-white); 
}

.portal-content p {
    font-size: 16px;
    color: var(--e-global-color-grey-icons); 
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.btn-portal {
    background-color: var(--e-global-color-btn-red); 
    color: var(--e-global-color-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-portal:hover {
    background-color: var(--e-global-color-red-active); 
    color: var(--e-global-color-white);
    box-shadow: 0 5px 15px rgba(244, 51, 52, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .portal-card {
        padding: 40px 20px;
    }
    .portal-content h3 {
        font-size: 22px;
    }
}