/**
 * FRONT PAGE (page-front.php)
 */
:root {
  /* Palette from the existing theme (style.css + ACF page colors) */
  --ungi-navy: #002B54;
  --ungi-orange: #FF7D00;
  --ungi-lilac: #AD7FDF;
  --ungi-red: #98002E;
  --ungi-brown: #803F00;
  --ungi-blue: #27509B;
  --ungi-grey: #E6EFF0;
  --ungi-heading: #002B54;
  --ungi-text: #252525;
  --ungi-muted: #252525;
}

.front,
.front-hero,
.front h1,
.front h2,
.front-hero h1 {
  font-family: "Roboto", sans-serif;
}

/* Hero */
.front-hero {
  background-color: var(--ungi-navy);
}

.front-hero .container {
  padding-left: 0;
  padding-right: 0;
}

.front-hero_inner {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
}

.front-hero_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.front-hero_title {
  position: relative;
  max-width: 420px;
  margin: 0;
  padding: 30px;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

/* Intro */
.front-intro {
  max-width: 960px;
  margin: 50px auto 40px;
  color: var(--ungi-muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
}

/* Age cards */
.front-card {
  --card-color: var(--ungi-orange);
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 30px;
  border: 1px solid var(--card-color);
}

.front-card--lilac {
  --card-color: var(--ungi-lilac);
}

.front-card_label {
  padding: 16px 20px;
  background-color: var(--card-color);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.front-card_image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 467 / 190;
  object-fit: cover;
}

.front-card_body {
  flex: 1;
  padding: 20px;
}

.front-card_heading {
  margin-bottom: 10px;
  color: var(--ungi-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.front-card_text {
  color: var(--ungi-text);
  font-size: 18px;
  line-height: 1.4;
}

.front-card_buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  margin-top: 20px;
}

/* Buttons */
.front-button {
  display: inline-block;
  padding: 20px;
  background-color: var(--ungi-orange);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.front-button,
.front-button:hover,
.front-button:focus {
  color: #fff;
  text-decoration: none;
}

.front-button:hover,
.front-button:focus {
  filter: brightness(.9);
}

.front-button--red { background-color: var(--ungi-red); }
.front-button--brown { background-color: var(--ungi-brown); }
.front-button--blue { background-color: var(--ungi-blue); }
.front-button--lilac { background-color: var(--ungi-lilac); }
.front-button--purple { background-color: var(--ungi-navy); }

/* JobCafé */
.front-help {
  margin: 15px 0 40px;
  padding: 40px 30px;
  background-color: var(--ungi-navy);
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
}

.front-help_title {
  margin-bottom: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.front-help_text,
.front-help_text p {
  max-width: 760px;
  margin: 0 auto;
  font-weight: 300;
}

.front-help_text a {
  color: #fff;
}

/* "Nye ..." boxes */
.front-new {
  font-family: "Raleway", sans-serif;
}

.overview-box_empty {
  color: var(--ungi-navy);
}

/* Elevpladser */
.front-apprenticeship {
  margin: 20px 0 50px;
  background-color: var(--ungi-grey);
}

.front-apprenticeship_title {
  margin: 0;
  padding: 18px 22px;
  background-color: var(--ungi-navy);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.front-apprenticeship_media {
  position: relative;
}

.front-apprenticeship_image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 972 / 248;
  object-fit: cover;
  object-position: center 15%;
}

.front-apprenticeship_overlay {
  position: absolute;
  right: 36px;
  bottom: 40px;
  max-width: 260px;
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.front-apprenticeship_body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px 60px;
  padding: 50px 22px;
}

.front-apprenticeship_text {
  max-width: 620px;
  margin: 0;
  color: var(--ungi-text);
  font-size: 19px;
  line-height: 1.35;
}

.front-apprenticeship_body .front-button {
  flex-shrink: 0;
  margin-right: 60px;
}

/* Partners */
.front-partners-intro {
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--ungi-muted);
  text-align: center;
}

.front-partners-intro h2 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 700;
}

.front-partners-intro p {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.35;
}

.front .overview-box_footer a.front-join {
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-left: 15px;
  background-color: var(--ungi-blue);
  color: #fff;
}

@media (max-width: 767px) {
  .front-hero_inner {
    min-height: 220px;
  }

  .front-hero_title {
    padding: 20px;
    font-size: 26px;
  }

  .front-intro {
    margin: 30px auto;
    font-size: 19px;
  }

  .front-card_heading {
    font-size: 24px;
  }

  .front-card_text,
  .front-apprenticeship_text {
    font-size: 16px;
  }

  .front-help {
    padding: 30px 20px;
    font-size: 18px;
  }

  .front-help_title {
    font-size: 20px;
  }

  .front-apprenticeship_image {
    aspect-ratio: 4 / 3;
    object-position: 70% center;
  }

  .front-apprenticeship_overlay {
    right: 20px;
    bottom: 20px;
    font-size: 22px;
  }

  .front-apprenticeship_body {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
  }

  .front-apprenticeship_body .front-button {
    margin-right: 0;
  }

  .front-partners-intro p {
    font-size: 18px;
  }

  .front .overview-box_footer a {
    padding: 12px 10px;
    font-size: 16px;
  }
}
