/** Nova widgets common **/
.novawidgets-wrapper .loading::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  border-radius: 32px;
}
.novawidgets-wrapper .loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px; /* center the spinner */
  border: 3px solid rgba(0,0,0,0.2);
  border-top-color: #000;   /* spinner color */
  border-radius: 50%;
  animation: novawidgets-loading-spin 0.6s linear infinite;
  z-index: 9999;
}
@keyframes novawidgets-loading-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.novawidgets-post-item a:hover {
  color: #fff;
  opacity: 0.7;
}

.novawidgets-post-item .content > p,
.novawidgets-post-item .content > a > p
{
  font-size: 1rem;
  font-weight: 400;
}

.novawidgets-post-item .content h2,
.novawidgets-post-item .content h3,
.novawidgets-post-item .content h4
{
  font-size: clamp(1.125rem, 0.9643rem + 0.7143vw, 1.5rem);
  font-weight: 600;   
  color: #fff;
}

.novawidgets-post-item .content .meta {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.novawidgets-post-item .content .meta-wrap {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}


/** Nova widgets - featured list */
.novawidgets-wrapper.featured-list {
  display: flex;
  gap: 20px;
  height: auto;
}

.novawidgets-wrapper.featured-list .left-column-items {
  flex: 1;
}

.novawidgets-wrapper.featured-list .right-column-items {
  flex: 2;
}

.novawidgets-wrapper.featured-list .left-column-items, 
.novawidgets-wrapper.featured-list .right-column-items,
.novawidgets-wrapper.featured-list .novawidgets-post-item,
.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .thumbnail {
  height: inherit;
}

.novawidgets-wrapper.featured-list .novawidgets-post-item {
  border-radius: 32px;
  position: relative;
  height: 100%;
}

.novawidgets-wrapper.featured-list .novawidgets-post-item .btn-outline {
  border: 1px solid #fff;
  border-radius: 64px;
  padding: 8px 40px 8px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.novawidgets-wrapper.featured-list .novawidgets-post-item a.read-more{
  position: relative;
}

.novawidgets-wrapper.featured-list .novawidgets-post-item a.read-more::after {
  position: absolute;
  content: url(../assets/img/arrow-right.svg);
  display: block;
  top: 2px;
  right: 5px;
  transition: transform 0.3s ease;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item::after {
  position: absolute;
  content: url(../assets/img/arrow-right.svg);
  display: block;
  top: 40%;
  right: 10px;
  transition: transform 0.3s ease;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item:hover::after {
  transform: rotate(-25deg);
}

.novawidgets-wrapper.featured-list .novawidgets-post-item .btn-outline:hover{
  background-color: #ffffff40;
}

.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .thumbnail img {
  width: 100% !important;
  border-radius: 32px;
  height: 100% !important;
  object-fit: cover;
}

.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .content {
  position: absolute;
  bottom: 0px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(112, 115, 114, 0.00) 3.48%, #707372 100%);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  width: 100%;
} 

.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .content > p {
  max-height: 80px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .content h2,
.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .content h3,
.novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item .content h4,
.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content > p 
{
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content h2,
.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content h3,
.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content h4
{
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content > p 
{
  margin-bottom: 0;
}


.novawidgets-wrapper.featured-list .right-column-items {
  display: flex;
      flex-direction: column;
      gap: 24px;
}

.novawidgets-wrapper.featured-list .right-column-items .btn.read-more {
  display: none;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item {
  display: flex;
  gap: 15px;
  height: auto;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 32px;
  padding: 24px;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .thumbnail {
  width: 15%;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content {
  width: 80%;
}

.novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .thumbnail img {
    width: 100% !important;
    object-fit: cover;
    height: 100% !important;
    border-radius: 24px;
}

/** List */
.novawidgets-wrapper.list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.novawidgets-wrapper.list .novawidgets-post-item {
  display: flex;
  gap: 20px;
}

.novawidgets-post-item.list .content > p {
  margin-bottom: 0;
}

.novawidgets-wrapper.list .novawidgets-post-item .thumb-wrapper {
  width: 30%;
  min-height: 242px;
  max-height: 418px;
}
.novawidgets-wrapper.list .novawidgets-post-item .content {
  width: 70%;
}

.novawidgets-wrapper.list .link_button_type_link .elementor-button-text {
  position: relative;
}
.novawidgets-wrapper.list .link_button_type_link .elementor-button-content-wrapper {
  display: block;
}
.novawidgets-wrapper.list .link_button_type_link .elementor-button-text::before {
  border-bottom: 1px solid #fff;
  display: inline-block;
  position: absolute;
  bottom: 0;
  content: '';
  width: 100%;
  height: 1px;
}
.novawidgets-wrapper.list .link_button_type_link .elementor-button-text::after {
  content: "\f35d";
  font-family: 'Font Awesome 5 Free';
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  margin-inline-start: 5px;
}

.novawidgets-wrapper.list .novawidgets-post-item h2,
.novawidgets-wrapper.list .novawidgets-post-item h3,
.novawidgets-wrapper.list .novawidgets-post-item h4 {
  margin: 0;
  padding: 0;
}


.novawidgets-wrapper.list .novawidgets-post-item .thumbnail {
  border-radius: 32px;
}
.novawidgets-wrapper.list .novawidgets-post-item .thumbnail img {
  border-radius: 32px;
  width: 100%;
  object-fit: cover;
  height: 100%;
}


/** Grid */
.novawidgets-wrapper.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.novawidgets-wrapper.grid .novawidgets-post-item {
  display: flex;
  flex-direction: column;
  height: auto;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 32px;
}

.novawidgets-wrapper.grid .novawidgets-post-item .thumbnail {
  height: 14vw;
  max-height: 283px;
  min-height: 232px;
}

.novawidgets-wrapper.grid .novawidgets-post-item .thumbnail img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.novawidgets-post-item.grid .content {
  padding: 24px;
}

.novawidgets-post-item.grid .content > p {
  max-height: 145px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  margin-bottom: 0;
}

.novawidgets-post-item.grid .content h2, 
.novawidgets-post-item.grid .content h3,
.novawidgets-post-item.grid .content h4
{
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/** minimal grid */
.novawidgets-wrapper.minimal-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.novawidgets-post-item.minimal-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* 4 Columns */
.novawidgets-post-item.minimal-grid.columns-4 {
    flex: 1 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
}

/* 5 Columns */
.novawidgets-post-item.minimal-grid.columns-5 {
    flex: 1 0 calc(20% - 20px);
    max-width: calc(20% - 20px);
}

/* 6 Columns */
.novawidgets-post-item.minimal-grid.columns-6 {
    flex: 1 0 calc(16.666% - 20px);
    max-width: calc(16.666% - 20px);
}

.novawidgets-post-item.minimal-grid .thumbnail,
.novawidgets-post-item.minimal-grid .thumbnail img {
  border-radius: 32px;
  background-color: #fff;
}

.novawidgets-post-item.minimal-grid .content {
    text-align: center;
}

/** controls and filters */
.novawidgets-pagination .page-numbers {
  margin-top: 3rem;
}

.novawidgets-pagination .page-numbers li a {
  border: 1px solid #fff;
  border-radius: 64px;
  width: 41px;
  height: 41px;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 500;
  justify-content: center;
}


.novawidgets-pagination .page-numbers li a.active {
  background-color: #fff;
  color: #000;
}

.novawidgets-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
}

.novawidgets-pagination .page-numbers li a.prev.disabled,
.novawidgets-pagination .page-numbers li a.next.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: none;
}

.novawidgets-pagination .page-numbers li a.prev::before {
  content: url(../assets/img/chevron-right.svg);
  scale: -0.8;
  height: 35px;
  width: 30px;
}

.novawidgets-pagination .page-numbers li a.next::before {
  content: url(../assets/img/chevron-right.svg);
  height: 35px;
  width: 30px;
  scale: 0.8;
}

.novawidgets-controls {
  margin-bottom: 3rem;
  display: flex;
  justify-content: end;
  align-items: center;
}

.novawidgets-controls-wrapper {
  display: flex;
  width: 490px;
  gap: 24px;
}

.novawidgets-controls .select_container  {
  width: 50%;
}

.novawidgets-controls input[type="text"], 
.novawidgets-controls .select_container select {
  background: rgba(255, 255, 255, 0.20) !important;
  padding: 12px 28px 12px 24px;
  border: 1px solid #fff;
  border-radius: 8px;
  width: 100%;
}

.novawidgets-controls .select_container::after {
  right: 15px;
}

.novawidgets-search-wrapper {
  position: relative;
  width: 50%;
}

.novawidgets-search-wrapper::after {
  content: url(../assets/img/search.svg);
  display: block;
  position: absolute;
  right: 10px;
  top: 13px;
}

/** slider */
.novawidgets-wrapper.slider-minimal .novawidgets-post-item {
  cursor: pointer;
}

.novawidgets-wrapper.slider-minimal .thumbnail {
  background-color: #fff;
  border-radius: 32px;
  text-align: center;
  height: 180px;
}
.novawidgets-wrapper.slider-minimal .thumbnail img {
  border-radius: 32px;
  object-fit: contain;
  height: 100%;
}

.novawidgets-wrapper.slider-minimal h2,
.novawidgets-wrapper.slider-minimal h3,
.novawidgets-wrapper.slider-minimal h4 {
  font-size: 16px;
  text-align: center;
  font-weight: 400;
}

.novawidgets-wrapper.slider-minimal {
  --swiper-navigation-sides-offset: 10px;
  --swiper-navigation-top-offset: 40%;
}


.swiper-button-next:after, 
.swiper-rtl .swiper-button-prev:after {
  content: url(../assets/img/chevron-right.svg);
  height: 45px;
  width: 30px;
  scale: 0.8;
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
  content: url(../assets/img/chevron-right.svg);
  height: 45px;
  width: 30px;
  scale: -0.8;
}

.swiper-button-prev, .swiper-container-rtl .swiper-button-next,
.swiper-button-next, .swiper-container-rtl .swiper-button-prev
{
background-image: none;
border-radius: 64px;
background-color: rgba(0,0,0, 0.5);
width: 40px;
height: 40px;
}

/** popup */
.novawidgets-popup-container {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.novawidgets-popup-container.popup-visible {
  opacity: 1;
  transform: translateY(0);
}

.novawidgets-popup-content-wrapper {
  position: absolute;
  width: 50%;
  height: 50vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 32px;
  border-radius: 32px;
}

.novawidgets-popup-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.novawidgets-popup-close {
  position: absolute;
  background-color: transparent !important;
  cursor: pointer;
  color: #000 !important;
  font-size: 1.5em !important;
}

.novawidgets-popup-content h3, 
.novawidgets-popup-content h3 p {
  font-size: 24px;
  font-weight: 500;
  text-transform: capitalize;
  margin: 10px 0;
}

.novawidgets-popup-content p,
.novawidgets-popup-content figcaption,
.novawidgets-popup-content h2,
.novawidgets-popup-content h3,
.novawidgets-popup-content h4,
.novawidgets-popup-content h5,
.novawidgets-popup-content h6 {
  color: #000;
}

/** RTL **/
html[dir="rtl"] .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item::after {
  scale: -1;
  top: 32%;
  left: 10px;
  right: auto;
}
html[dir="rtl"] .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item:hover::after {
  transform: rotate(25deg);
}

html[dir="rtl"] .novawidgets-wrapper.featured-list .novawidgets-post-item .btn-outline {
  padding: 8px 24px 8px 40px;
}

html[dir="rtl"] .novawidgets-wrapper.featured-list .novawidgets-post-item a.read-more::after {
  scale: -1;
  top: -5px;
  left: 5px;
  right: auto;
}

html[dir="rtl"] .novawidgets-search-wrapper::after {
  right: auto;
  left: 10px;
}
html[dir="rtl"] .novawidgets-controls .select_container::after {
  left: 15px;
  right: auto;
}

html[dir="rtl"] .novawidgets-pagination .page-numbers li a.prev::before {
  margin-left: 5px;
  scale: none;
}
html[dir="rtl"] .novawidgets-pagination .page-numbers li a.next::before {
  margin-right: 5px;
  scale: -1;
}
/** End RTL **/


/** Responsive **/
@media (min-width: 769px) and (max-width: 1024px) {

  .novawidgets-wrapper.grid {
    grid-template-columns: 1fr 1fr;
  }

  .novawidgets-post-item.minimal-grid[class*="columns-"] {
    flex: 1 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }

}

@media (max-width: 768px) {

  .novawidgets-pagination ul.page-numbers {
    gap: 10px;
  }

  .novawidgets-wrapper.featured-list {
    height: auto;
    max-height: unset;
    flex-direction: column;
  }

  .novawidgets-wrapper.featured-list .left-column-items, 
  .novawidgets-wrapper.featured-list .right-column-items
  {
    height: 100vw !important;
  }

  .novawidgets-wrapper.featured-list .right-column-items .btn.read-more {
    display: inline-block;
  }

  .novawidgets-wrapper.featured-list .left-column-items .novawidgets-post-item.featured.index-0 {
    height: inherit;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item {
    height: inherit;
    flex-direction: column;
    padding: 0;
    background: none;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .thumbnail {
    height: inherit;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .thumbnail img {
    border-radius: 32px;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .thumbnail, 
  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content
  {
    width: 100%;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content {
    position: absolute;
    bottom: 0px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(112, 115, 114, 0.00) 3.48%, #707372 100%);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content h2, 
  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content h3, 
  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content h4 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content > p {
    margin-bottom: 1em;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item .content > p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .novawidgets-wrapper.featured-list .right-column-items .novawidgets-post-item::after {
    display: none;
  }

  .novawidgets-wrapper.grid {
    grid-template-columns: 1fr;
  }

  .novawidgets-wrapper.grid .novawidgets-post-item {
    height: 100%;
  }

  .novawidgets-wrapper.grid .novawidgets-post-item .thumbnail {
    height: 40vw;
  }

  .novawidgets-post-item.grid .content > p {
    max-height: 105px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .novawidgets-controls {
    margin-bottom: 2rem;
    width: 100%;
  }

  .novawidgets-controls-wrapper {
    width: 100%;
    gap: 16px;
    flex-direction: column;
  }

  .novawidgets-controls .select_container,
  .novawidgets-search-wrapper {
    width: 100%;
  } 

  .novawidgets-popup-content-wrapper {
    width: 95%;
    height: 70vh;
    padding: 15px 0;
  }

  .novawidgets-popup-content .col-md-5 {
    text-align: center;
  }
  .novawidgets-wrapper.slider-minimal {
    height: auto;
  }
  .novawidgets-wrapper.slider-minimal .swiper {
    height: inherit;
  }
  .swiper-nav-wrapper {
      margin-top: 3rem;
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
  }

  .swiper-grid>.swiper-wrapper {
    height: 80%;
  }

  .swiper-button-prev, .swiper-container-rtl .swiper-button-next,
  .swiper-button-next, .swiper-container-rtl .swiper-button-prev {
    position: relative; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background-color: transparent;
    border: 1px solid #fff;
  }

  .novawidgets-post-item.minimal-grid[class*="columns-"] {
    flex: 1 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .novawidgets-wrapper.list .novawidgets-post-item {
    flex-direction: column;
    align-items: center;
  }

  .novawidgets-wrapper.list .novawidgets-post-item .thumb-wrapper,
  .novawidgets-wrapper.list .novawidgets-post-item .content {
    width: 100%;
    text-align: center;
  }
}
