/*
Theme Name: Edshare
Theme URI: https://edshare.se/
Description: New wordpress theme for Edshare.se portal.
Author: Ahmad Alkhlif
Author URI: https://dk.se/
Template: hello-elementor
Version: 2.0.0
Text Domain: edshare
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: edshare, academedia
*/

/* Add your custom styles here */

/** epshare_latest_posts css here */
.category-filter {
  text-align: center;
  margin: 0;
  margin-bottom: 20px;
  padding: 0;
}

.category-filter li {
  cursor: pointer;
  list-style: none;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-weight: var(--e-global-typography-primary-font-weight);
  border-radius: 75px;
  margin: 15px 5px 20px;
  padding: 7px 20px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-abaf2e3);
  border-radius: 30px;
  color: var(--e-global-color-65660d3);
  background-color: #6ec1e400;
}

.category-filter li.active {
  color: #fff;
  background-color: #000;
  border-color: #000;
}

.custom-posts-container {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: calc(-10px / 2);
  margin-right: calc(-10px / 2);
}

.custom-posts-container .post-item {
  width: 33.33%;
  margin-bottom: 10px;
  padding: 8px;
}

.custom-posts-container .post-item-wrapper {
  background-color: #f5f5f5;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: var(--e-global-color-abaf2e3);
  border-radius: 30px;
  padding: 20px;
  height: 100%;
  position: relative;
}

.custom-posts-container.odd-box .post-item-wrapper {
  padding: 10px;
}

.post-thumb-wrapper {
  position: relative;
  overflow: hidden;
}

.post-thumb {
  overflow: hidden;
  position: relative;
}

.post-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 30px !important;
  margin: 0 !important;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  display: block;
}

.post-content-wrapper {
  background-color: #f5f5f5;
  padding: 10px 0;
}

.post-content-top {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

.post-content-title {
  font-family: "Nimbus", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 0px;
  /* height: 45px;
  overflow: hidden; */
}

.post-content-wrapper a {
  color: #777;
  font-family: "Nimbus", Sans-serif;
  font-weight: 400;
  box-shadow: none;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.post-content-wrapper a:hover {
  color: #D7572A;
}

.post-content-title a {
  color: #000;
  font-size: 20px;
}

.post-content {
  color: #000;
  font-family: "Nimbus", Sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* number of lines to show */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 40px;
}

button.load-more-posts {
  display: block;
  margin: 20px auto 30px;
}

.custom-posts-container.odd-box .post-thumb:after {
  position: absolute;
  width: 100%;
  height: 100%;
  content: " ";
  background: #00000033;
  top: 0;
  left: 0;
  border-radius: 30px;
}

.custom-posts-container.odd-box .post-item:hover .post-thumb {
  scale: 1.03;
  transition: 0.3s ease-out;
}

.custom-posts-container.odd-box .post-item:first-child {
  width: 59%;
}

.custom-posts-container.odd-box .post-item:nth-child(2) {
  width: 40%;
}

.custom-posts-container.odd-box .post-item .post-thumb img {
  height: 250px;
}

.custom-posts-container.odd-box .post-item:first-child .post-thumb img,
.custom-posts-container.odd-box .post-item:nth-child(2) .post-thumb img {
  height: 350px;
}

.custom-posts-container.odd-box .post-content-wrapper {
  background: none;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 30px;
}

.custom-posts-container.odd-box a,
.custom-posts-container.odd-box .post-content {
  color: #fff;
}

/* spinner/processing state, errors */
.load-more-posts .spinner {
  display: none;
}

.load-more-posts.loading .spinner {
  display: block;
}

.load-more-posts.loading .button-text {
  display: none;
}

.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}

.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.spinner:before,
.spinner:after {
  position: absolute;
  content: '';
}

.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #c36;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}

.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #c36;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


.custom-posts-container .kalendarium .post-content-wrapper {
  position: static;
  background-color: #313131;
  border-radius: 30px;
  height: 300px;
  padding: 30px;
}

.kalendarium .post-category {
  color: #fff;
  margin-bottom: 40px;
}

.kalendarium .post-content-title {
  margin-bottom: 20px;
}

.kalendarium .post-content-title a {
  color: #fff;
  font-size: 3.3rem;
}

.kalendarium .post-content {
  color: #fff;
  max-width: 320px;
  width: 100%;
}

.kalendarium .post-content-wrapper a {
  color: #fff;
  margin-top: 20px;
}


@media screen and (max-width: 786px) {

  .custom-posts-container .post-item,
  .custom-posts-container.odd-box .post-item:nth-child(2) {
    width: 50%;
  }

  .custom-posts-container.odd-box .post-item:first-child {
    width: 100%;
  }

  .custom-posts-container.odd-box .post-item:nth-child(2) .post-thumb img {
    height: 250px;
  }

  .post-content-wrapper>a {
    color: #D7572A;
  }
}

@media screen and (max-width: 500px) {
  .custom-posts-container .post-item {
    width: 100% !important;
  }

  .custom-posts-container.odd-box .post-item:not(.kalendarium) {
    display: none !important;
  }

  .custom-posts-container.odd-box .post-item:first-child {
    display: block !important;
  }

  .custom-posts-container.odd-box .post-item-wrapper {
    border: 0;
    padding: 0;
  }

  .custom-posts-container.odd-box .post-item:first-child .post-thumb img {
    height: 295px;
  }

}