@font-face {
  font-family: "Montserrat";
  src: local("Montserrat"), url("https://wpjobs.blob.core.windows.net/1231-jobwarede/237e9r/Montserrat.ttf") format("truetype");
}

@font-face {
  font-family: "SansBold";
  src: local("SansBold"), url("https://wpjobs.blob.core.windows.net/1231-jobwarede/237e9r/SourceSansPro-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Source Sans Pro Light";
  src: local("Source Sans Pro Light"), url("https://wpjobs.blob.core.windows.net/1231-jobwarede/237e9r/SourceSansPro-Light.ttf") format("truetype");
}

body {
  padding: 0;
  margin: 0;
  font-family: "Source Sans Pro Light", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  font-size: 1.313rem;
  line-height: 1.875rem;
  color: #1a171b;
}

.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 0;
}

header {
  position: relative;
  margin-bottom: -8px;
}

header .logo-img {
  position: absolute;
  width: 25%;
  left: 5%;
  top: 8%;
}

header .hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* typography */
h1 {
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  transition: font-size 0.15s;
}

h1.job-title {
  margin-top: 15px;
  font-size: 2.6rem;
  line-height: 2.8rem;
  font-weight: 700;
  word-break: break-word;
  animation: fadeIn 0.5s forwards;
  hyphens: auto;
}

p,
li {
  font-size: 1.313rem;
  line-height: 1.875rem;
}

h1#pensum {
  font-weight: 400;
  font-size: 2rem;
  line-height: 2rem;
  margin-top: -25px;
  animation: fadeIn 0.5s forwards;
}

h4 {
  font-family: "SansBold", sans-serif;
  font-size: 1.3rem;
  margin-top: 0;
}

h4.d-only-desktop {
  margin-bottom: 5px;
}

p.intro {
  margin-top: 0;
  margin-bottom: 0;
}

#block10 p {
  margin: 0;
}

/* tasks & benefits */
.expand-icon {
  margin-right: 5px;
  height: 30px;
  transition: all 0.15s ease-in-out;
}

ul {
  padding-left: 20px;
  margin: 0;
}

ul li {
  list-style-type: none;
  margin-bottom: 10px;
}

ul li:last-child {
  margin-bottom: 0; /* Remove margin for the last li item in each ul */
}

ul li::before {
  content: "\2022";
  display: inline-block;
  width: 12px;
  margin-left: -12px;
}

/* buttons & links */
a {
  color: inherit;
}

a#privacy-link,
a#linkedin {
  font-family: "Source Sans Pro Light", sans-serif;
  font-weight: 400;
}
a#linkedin {
  text-decoration: underline;
}

a:hover {
  color: #01b6ed; /* IWB brand blue */
}

a.cta,
button.cta {
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.2px;
  padding: 10px 20px;
  border-radius: 6px;
  border: solid 1px #1a171b;
  background-color: #1a171b;
  outline: none;
  color: white;
  transition: background-color 0.15s linear;
  cursor: pointer;
}

a.cta:hover,
button.cta:hover {
  cursor: pointer;
  background-color: white;
  color: #1a171b;
}

a.cta:focus,
button.cta:focus {
  outline: 3px solid #01b6ed;
}

.share-icons {
  display: flex;
  align-items: center;
}

.social-icon {
  display: inline-block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  background-repeat: no-repeat;
  margin-right: 12px;
  transition: background-image 0.2s ease-in-out;
}

button.social-icon {
  outline: none;
  border: none;
  background: none;
}

section {
  margin-top: 50px;
}

/* contact */
.contact-box {
  padding: 30px;
  border-radius: 8px;
  border: 3px solid rgb(158, 218, 243);
}

.contact-box p {
  margin-bottom: 0px;
}

.contact-container {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: stretch;
}

.contact-container h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-intro {
  max-width: 500px;
}
.contact-note {
  margin-top: 20px;
}

.contact-details {
  word-break: break-word;
}

.right-col {
  display: flex;
  align-items: stretch;
}

.contact-img {
  height: 140px;
  width: 140px;
  object-fit: cover;
  margin-right: 30px;
  border-radius: 50%;
  align-self: center;
}

.contact-name {
  font-family: "SansBold", sans-serif;
  margin-top: 30px;
}

.gradient {
  position: sticky;
  margin-top: -202px;
  bottom: 70px;
  width: 100%;
  height: 205px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.privacy-row {
  text-align: right;
}

footer {
  position: sticky;
  bottom: 0;
  background: white;
  width: 100%;
  border-top: 2px solid #e3e3e3;
  padding: 15px 0px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#mobile-contact-title {
  display: none;
  margin: 0;
}

/* utils */
.container {
  display: flex;
  flex-wrap: wrap;
}

.col {
  flex: 1;
}

.container .col:first-child {
  padding-right: 20px;
}

.container .col:last-child {
  padding-left: 20px;
}

.address.container .col:first-child {
  padding-right: 0px;
}
.address.container .col:last-child {
  padding-left: 5px;
}

.print-only {
  display: none;
}

.d-only-desktop {
  display: block;
}

.d-only-mobile {
  display: none;
}

.hidden {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#map-section {
  display: none;
}

#map-frame,
#youTubeFrame {
  margin-bottom: -9px;
}

/* media queries */

@media only screen and (min-width: 601px) {
  .d-only-mobile {
    display: none;
  }
  .d-only-desktop {
    display: block;
  }
}

@media only screen and (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-intro {
    max-width: fit-content;
  }
}

@media only screen and (max-width: 800px) {
  h1.job-title {
    font-size: 2.2rem;
    line-height: 2rem;
  }
}

@media only screen and (max-width: 750px) {
  .footer-inner {
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }
  .share-row {
    gap: 20px;
    margin-top: 5px;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }

  h1.job-title {
    font-size: 1.9rem;
    line-height: 1.9rem;
  }

  h1#pensum {
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin-top: -15px;
  }
}

@media only screen and (max-width: 600px) {
  #map-frame {
    margin-bottom: -4px;
  }

  #youTubeFrame {
    margin-bottom: -4px;
  }

  /* .share-intro {
    margin-top: 3px;
  } */
  header .logo-img {
    width: 40%;
  }
  .contact-box {
    padding: 0px;
    border-radius: 0;
    border: none;
  }

  body,
  p,
  li {
    font-size: 1.2rem;
    line-height: 1.4rem;
  }

  section,
  section#header-section {
    margin-top: 35px;
  }

  h1.job-title {
    font-size: 1.625rem;
    line-height: 1.625rem;
  }

  h1#pensum {
    font-size: 1.4rem;
    line-height: 1.4rem;
    margin-top: -15px;
    margin-bottom: 20px;
  }

  .contact-img {
    margin-right: 20px;
    height: 115px;
    width: 115px;
  }

  .container .col {
    min-width: 100%;
  }

  .container .col:first-child {
    padding-right: 0px;
  }

  .container .col:last-child {
    padding-left: 0px;
  }

  .col h4.d-only-mobile {
    margin: 0;
    padding: 15px 0px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  h4,
  .contact-name {
    font-size: 1.1rem;
    line-height: 1.4rem;
  }

  .contact-name {
    margin-top: -5px;
  }

  .col {
    border-bottom: 0.5px solid lightgrey;
  }
  .container:first-of-type .col:first-of-type {
    border-top: 0.5px solid lightgrey;
  }

  .container.address:first-of-type .col:first-of-type {
    border-top: none;
  }

  ul {
    padding-top: 0px;
    padding-bottom: 20px;
    padding-left: 20px;
  }

  #block10 p {
    margin-top: 0px;
    margin-bottom: 20px;
  }

  .d-only-desktop {
    display: none;
  }

  .gradient {
    display: none;
    position: absolute;
    margin: 0;
    bottom: 0;
  }
  .d-only-mobile {
    display: block;
  }
}

@media only screen and (max-width: 400px) {
  .contact-img {
    height: 90px;
    width: 90px;
  }
  h1.job-title {
    font-size: 1.5rem;
    line-height: 1.6rem;
  }

  a.social-icon,
  button.social-icon {
    margin-right: 5px;
    width: 36px;
    height: 36px;
    /* test */
  }
}

@media only screen and (max-width: 350px) {
  #desktop-contact-title {
    display: none;
  }

  #mobile-contact-title {
    display: block;
    margin-bottom: -10px;
  }

  .right-col {
    gap: 0;
  }

  .contact-container {
    gap: 35px;
  }

  header {
    margin-bottom: -5px;
  }
}

/* animations */

.slide-in-top {
  animation: slideInFromTop 0.7s forwards;
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-20%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInFromLeft 0.7s forwards;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInFromRight 0.7s forwards;
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
