@import "../fonts/fonts.css";

body {
  margin: 0;
  padding: 0;
  font-family: "Founders Grotesk", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --headergray: #f2f2f2;
  --gray: #d3d3d3;
  --hovergray: #7f7f7f;
  --bordergray: #dadada;
  --red: rgb(168, 33, 40);
  --red-lightened: #e46267;
  --newGray: #ebebeb;
  --primaryColor: #fe6e1e;
  --newGreen: #49842a;
  --sliderBgBlue: #9bc4d8;
  --headerHeight: 150px;
  --containerWidth: 960px;
  --containerPadder: 20px;
}

.hidden {
  display: none;
}

#jobkarusell_content {
  margin-inline: auto;
}

#jobkarusell_content .carousel_image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 0.75rem;
  margin: 0;
  background: var(--newGray);
}
#jobkarusell_content .carousel_image img {
  object-fit: contain;
  max-width: 100%;
  max-height: 130px;
}
.jobads-counter {
  margin-top: 5px;
}
#jobkarusell_content .header {
  box-sizing: border-box;
  width: 100%;
  padding: 0 30px;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}
#jobkarusell_content .header .combiner {
  display: flex;
}

#jobkarusell_content .header a,
#jobkarusell_content .header .combiner h3 {
  font-size: 10pt;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: start;
}
#jobkarusell_content .header .combiner h3.sitename .logo-text {
  background: url("../img/frifagbevegelsejobbsort.png");
  background-repeat: no-repeat top left;
  background-size: cover;
  width: 130px;
  height: 30px;
}

#jobkarusell_content .header img {
  max-height: 15px;
}

@media (min-width: 620px) {
  #jobkarusell_content .header img {
    max-height: 30px;
  }
  #jobkarusell_content .header .combiner h3.sitename .logo-text {
    height: 34px;
    width: 135px;
  }
}
@media (min-width: 299px) {
  #jobkarusell_content .header .combiner h3.sitename .logo-text {
    height: 37px;
    width: 146px;
  }
}
#jobkarusell_content .header a {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-direction: column;
}
#jobkarusell_content a,
#jobkarusell_content a:visited,
#jobkarusell_content a:hover,
#jobkarusell_content a:active {
  color: black;
  text-decoration: none;
}

#jobkarusell_content {
  max-width: 980px;
  /* background-color: var(--sliderBgBlue); */
  height: 360px;
  position: relative;
  border-top: #7f7f7f6b 1px solid;
  border-bottom: #7f7f7f6b 1px solid;
}

#jobkarusell_content .prev_button,
#jobkarusell_content .next_button {
  position: absolute;
  /*   background: red; */
  bottom: 0;
  height: 80%;
  width: 15%;
  z-index: 100;
}
#jobkarusell_content .next_button {
  right: 0;
  cursor: pointer;
  padding: 5px;
}
#jobkarusell_content .prev_button {
  cursor: pointer;
  padding: 5px;
}

#jobkarusell_content .carousel_holder {
  margin: 0 20px;
}

#jobkarusell_content .my_slider {
  margin: 0 0.5rem;
  position: relative;
  height: 347px;
}

#jobkarusell_content .my_slider::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: var(--primaryColor);
  z-index: 100;
}

#jobkarusell_content .my_slider h2 {
  padding: 0;
  margin: 0;
  font-family: "Founders Grotesk X-Condensed", sans-serif;
  line-height: 1;
  font-weight: 500;
  font-size: 1.5rem;
  display: flex;
  align-items: flex-end;
  color: #000;
  text-decoration: none;
  width: 100%;
  padding-bottom: 0.25rem;
  height: 40px;
}
#jobkarusell_content .my_slider a.text {
  display: flex;
  /* align-items: flex-end; */
  flex-direction: column;

  padding: 10px;
}

#jobkarusell_content .my_slider a.text .listing_info {
  font-family: "Founders Grotesk", sans-serif;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  justify-content: space-between;
  overflow: hidden;
  line-height: 1;
  padding-bottom: 1.5rem;
  padding-top: 10px;
  gap: 5px;
}
/* #jobkarusell_content .my_slider a.text .listing_info span {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
} */
#jobkarusell_content .my_slider a.text .listing_info span:first-child {
  margin-right: 1rem;
}

@media (min-width: 980px) {
  #jobkarusell_content .my_slider h2 {
    height: 120px;
  }
  #jobkarusell_content {
    width: 980px;
  }
  #jobkarusell_content .my_slider .carousel_image img {
    max-width: 265px;
  }
}

@media (min-width: 728px) and (max-width: 979px) {
  #jobkarusell_content {
    width: 728px;
  }
  #jobkarusell_content .my_slider .carousel_image img {
    max-width: 220px;
  }
}

@media (min-width: 620px) and (max-width: 727px) {
  #jobkarusell_content {
    width: 620px;
  }
  #jobkarusell_content .my_slider {
    max-width: 220px;
  }
  #jobkarusell_content .carousel_image img {
    max-height: 80px;
  }
}

@media (min-width: 468px) and (max-width: 619px) {
  #jobkarusell_content {
    width: 468px;
  }
  #jobkarusell_content .my_slider {
    max-width: 180px;
  }
  #jobkarusell_content .carousel_image img {
    max-height: 60px;
  }
  #jobkarusell_content .my_slider a.text .listing_info {
    display: block;
  }
  #jobkarusell_content .my_slider a.text .listing_info span {
    display: block !important;
  }
  /* #jobkarusell_content .my_slider a.text {
    height: 140px;
  }
  #jobkarusell_content .my_slider h2 {
    height: 40px;
  } */
}

@media (max-width: 467px) {
  #jobkarusell_content {
    width: 320px;
  }
  #jobkarusell_content .carousel_image img {
    max-height: 100px;
  }
}

@media (max-width: 319px) {
  #jobkarusell_content {
    width: 300px;
  }
  #jobkarusell_content .my_slider {
    max-width: 100%;
  }
  #jobkarusell_content .carousel_image img {
    max-height: 80px;
  }
}
