/* ========================================
   STILLINGSANNONSER
======================================== */


/* INTRO */

.jobs-intro {
  padding: 5rem 0 2.5rem;
  background: #081724;
  color: #fff;
}


.jobs-intro .section-kicker {
  color: #7eb6da;
}


.jobs-intro .section-title {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}


.jobs-intro-text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}



/* ========================================
   LISTE MED STILLINGER
======================================== */

.jobs-list {
  padding: 1rem 0 5rem;
  background: #081724;
}



/* ========================================
   STILLINGSKORT
======================================== */

.job-card {
  max-width: 1050px;
  margin: 0 auto 2rem;
  padding: 2.5rem;

  background: #f8fafc;

  border: 1px solid rgba(126, 182, 218, 0.18);
  border-radius: 20px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.27);
}



/* ========================================
   TOPP AV ANNONSEN
======================================== */

.job-card-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
}


.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 110px;
  height: 85px;

  flex-shrink: 0;

  padding: 0.75rem;

  background: #fff;

  border: 1px solid #dce5eb;
  border-radius: 14px;
}


.company-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.job-title {
  min-width: 0;
}


.company-name {
  margin: 0 0 0.4rem;

  color: #397fa8;

  font-size: 0.85rem;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.job-title h3 {
  margin: 0;

  color: #0b2438;

  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.3;
}



/* ========================================
   FANER
======================================== */

.job-tabs {
  margin-bottom: 2rem;
  border-bottom: 1px solid #dce5eb;
}


.job-tabs .nav-link {
  position: relative;

  padding: 0.8rem 1.1rem;

  color: #71818c;

  background: transparent;

  border: none;
  border-radius: 0;

  font-weight: 600;
}


.job-tabs .nav-link:hover {
  color: #174f73;
  border: none;
}


.job-tabs .nav-link.active {
  color: #174f73;
  background: transparent;
  border: none;
}


.job-tabs .nav-link.active::after {
  content: "";

  position: absolute;

  left: 1.1rem;
  right: 1.1rem;
  bottom: -1px;

  height: 3px;

  background: #397fa8;

  border-radius: 3px 3px 0 0;
}



/* ========================================
   STILLINGSBESKRIVELSE
======================================== */

.job-description {
  max-width: 780px;

  margin-bottom: 2rem;

  color: #526572;

  line-height: 1.75;
}



/* ========================================
   NØKKELINFORMASJON
======================================== */

.job-details {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1rem;
}


.job-detail {
  display: flex;
  align-items: center;

  gap: 0.9rem;

  min-height: 85px;

  padding: 1rem;

  background: #eaf1f5;

  border-radius: 12px;
}


.job-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  flex-shrink: 0;

  background: #d7e8f2;

  border-radius: 10px;

  font-size: 1.05rem;
}


.job-detail span {
  display: block;

  margin-bottom: 0.15rem;

  color: #72838f;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}


.job-detail strong {
  display: block;

  color: #0b2438;

  font-size: 0.95rem;
  line-height: 1.4;
}



/* ========================================
   MER INFO
======================================== */

.job-info {
  max-width: 820px;

  color: #526572;

  line-height: 1.75;
}


.job-info h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;

  color: #0b2438;

  font-size: 1.05rem;
  font-weight: 700;
}


.job-info h4:first-child {
  margin-top: 0;
}


.job-info ul {
  padding-left: 1.3rem;
}


.job-info li {
  margin-bottom: 0.4rem;
}



/* ========================================
   KNAPP
======================================== */

.job-card-footer {
  display: flex;
  justify-content: flex-end;

  margin-top: 2.3rem;
  padding-top: 1.5rem;

  border-top: 1px solid #dce5eb;
}


.job-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.8rem;

  padding: 0.9rem 1.5rem;

  color: #fff;

  background: #123b59;

  border-radius: 8px;

  font-weight: 600;

  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}


.job-button span {
  transition: transform 0.2s ease;
}


.job-button:hover {
  color: #fff;

  background: #1a557c;

  text-decoration: none;

  transform: translateY(-2px);
}


.job-button:hover span {
  transform: translateX(3px);
}



/* ========================================
   OPPDATERINGER NEDERST
======================================== */

.jobs-update {
  padding: 0 0 5rem;
  background: #081724;
}


.jobs-update-box {
  padding: 3.5rem 2rem;

  color: #fff;

  background: #102f49;

  border: 1px solid rgba(126, 182, 218, 0.15);
  border-radius: 20px;

  text-align: center;
}


.jobs-update-box .section-kicker {
  color: #7eb6da;
}


.jobs-update-box h2 {
  margin-bottom: 1.25rem;

  color: #fff;

  font-size: clamp(2rem, 4vw, 3rem);
}


.jobs-update-box > p:last-child {
  max-width: 800px;

  margin: 0 auto;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1.05rem;
  line-height: 1.75;
}



/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {

  .job-details {
    grid-template-columns: 1fr;
  }

}



/* ========================================
   MOBIL
======================================== */

@media (max-width: 768px) {

  .jobs-intro {
    padding: 3.5rem 0 2rem;
  }


  .jobs-list {
    padding-bottom: 3.5rem;
  }


  .job-card {
    padding: 1.5rem;
    border-radius: 16px;
  }


  .job-card-top {
    align-items: flex-start;
    gap: 1rem;
  }


  .company-logo {
    width: 85px;
    height: 70px;
  }


  .job-card-footer {
    justify-content: stretch;
  }


  .job-button {
    width: 100%;
  }


  .jobs-update {
    padding-bottom: 3.5rem;
  }


  .jobs-update-box {
    padding: 2.5rem 1.5rem;
  }

}



/* ========================================
   LITEN MOBIL
======================================== */

@media (max-width: 500px) {

  .job-card-top {
    flex-direction: column;
  }


  .company-logo {
    width: 105px;
    height: 75px;
  }


  .job-tabs {
    display: flex;
  }


  .job-tabs .nav-item {
    flex: 1;
  }


  .job-tabs .nav-link {
    width: 100%;
    text-align: center;
  }

}