/*
 Theme Name:   Soledad Child
 Template:     soledad
 Author:       PenciDesign
 Author URI:   https://pencidesign.net/
 Description:  Child theme for Soledad
 Version:      1.0
*/

/* filter css start */
.main-filter,
.main-filter .date-range-filter,
.main-filter .filter-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.main-filter {
  margin-bottom: 40px;
}

.main-filter .date-range-filter,
.main-filter .filter-buttons {
  justify-content: flex-start;
  width: auto;
}

.date-range-filter-box input {
  border: none;
  box-sizing: border-box;
  outline: 0;
  padding: 0;
  position: relative;
  width: 100%;
  font-size: 16px;
  background-image: url(./images/calendar_icon.svg);
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right center;
}

.date-range-filter-box input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: -18px;
  width: auto;
}

.date-range-filter-box input[type="date"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.date-range-filter-box input[type="date"]::-webkit-clear-button {
  margin-right: 75px;
}

.date-range-filter .date-range-filter-box {
  border: 1px solid #000;
  padding: 8px 14px;
  position: relative;
  width: 100%;
  max-width: 182px;
}

.date-range-filter .date-range-filter-box label {
  font-size: 14px;
}

.post-item-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 50px;
  position: relative;
  min-height: 500px;
}

.post-item-wrapper>* {
  overflow: hidden;
}

.post-item-card {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  height: 100%;
}

.post-item-card:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 35px;
  height: 1px;
  background-color: #000;
  transition: width 0.3s ease;
}

.post-item-card:hover:after {
  width: 160px;
}

.post-item-card .post-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 58%;
}

.post-item-card .post-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item-card .post-thumbnail .post-label {
  display: inline-block;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background-color: #2A608D;
  font-family: "Source Serif Pro", Sans-serif;
  font-size: 12px;
  font-weight: 500;
  fill: #FFFFFF;
  color: #FFFFFF;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #2A608D;
  border-radius: 0px 0px 0px 0px;
  padding: 9px 13px;
}

.post-item-card .post-thumbnail .post-label i {
  margin-right: 15px;
}

.post-item-card .post-content {
  margin-top: 20px;
}

.post-item-card .post-content h2 {
  font-family: "canada-type-gibson", Sans-serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.7rem;
}

.post-item-card .post-content h2+span {
  color: #1E1E1E;
  font-family: "Jost", Sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: none;
  font-style: normal;
  text-decoration: none;
  line-height: 21px;
  letter-spacing: 0px;
  word-spacing: 0px;
  margin-top: 5px;
  display: inline-block;
}

.post-item-card .post-content ul li {
  margin-top: 20px;
}

.post-item-card .post-content ul li p {
  font-family: "Source Serif Pro", Sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--e-global-color-secondary);
  line-height: 1.3;
  position: relative;
  padding-left: 29px;
}

.post-item-card .post-content ul li p i {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  height: 17px;
  margin-block: auto;
}

.loader {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 32%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
}

.main-filter .filter-buttons button {
  background-color: #000000;
  color: #fff;
  transition: all 0.3s ease;
}

.main-filter .filter-buttons button.active,
.main-filter .filter-buttons button:hover {
  color: #000000;
  background-color: #fff;
}

.post-item-card .post-content a:after {
  content: '';
  position: absolute;
  inset: 0;
}

.main-filter .category-filter {
  margin-left: auto;
}

.main-filter .category-filter select {
  border: 1px solid #000;
  color: #000000;
  background-color: #fff;
  font-family: "Source Serif Pro", Sans-serif;
  padding-block: 10px;
  font-size: 16px;
  font-weight: 600;
  padding-right: 34px;
}

.fritidsnytt-slider .slick-list {
  margin: 0 -20px;
}

.fritidsnytt-slider .slick-track {
  display: flex;
}

.fritidsnytt-slider .slick-slide {
  margin: 0 20px;
  height: auto;
}

.fritidsnytt-slider button.slick-arrow {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  color: #fff;
  background-color: #111;
  left: -20px;
  margin-top: -25px;
  cursor: pointer;
  text-align: center;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.fritidsnytt-slider button.slick-arrow.slick-next {
  right: -20px;
  left: auto;
  transform: scale(-1);
}

.fritidsnytt-slider button.slick-arrow:after {
  content: '';
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  margin: auto;
  transform: rotate(45deg) translate(15%, -15%);
}

.fritidsnytt-slider .post-item-card .post-thumbnail {
  padding-top: 75.1%;
  min-height: 280px;
}

/* filter css end */

@media (max-width:1199px) {
  .main-filter .filter-buttons {
    width: 100%;
  }
}

@media (max-width:1024px) {
  .post-item-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 30px;
  }

  .date-range-filter .date-range-filter-box {
    max-width: 260px;
  }

  .main-filter .date-range-filter {
    width: 76%;
  }
}

@media (max-width:767px) {
  .post-item-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .date-range-filter .date-range-filter-box {
    max-width: calc(50% - (20px / 2));
  }

  .main-filter .date-range-filter {
    width: 100%;
  }

  .main-filter .category-filter {
    margin-left: 0;
  }
}

/* @media (max-width:575px) {
.date-range-filter .date-range-filter-box {
max-width: 100%;
}
} */