﻿.hero-categories.list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-categories.list a {
  color: #fff;
  background-color: #2F2F2F;
  padding: .25rem .875rem;
  border-radius: 4px;
  position: relative;
  text-decoration: none;
}

.hero-categories.list a:hover {
  color: #fff;
  background-color: #232323;
  padding: .25rem .875rem;
  border-radius: 4px;
  position: relative;
}

#template-list ul.list,
#template-list-grid ul.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  padding: 0;
}

#template-list.grid4 ul.list,
#template-list-grid.grid4 ul.list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#template-list-grid ul.list {
  margin-top: 2rem;
}

#template-list ul.list li,
#template-list-grid ul.list li {
  list-style: none;
}


.template_type_item {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  z-index: 90;
}

#template-list .template_type_item {
  max-width: 380px;
}

.template_type_item .template-title {
  font-family: var(--font-medium);
  color: var(--main-dark);
  font-size: 1rem;
  margin-top: 0.75rem;
  letter-spacing: -0.2px;
  width: 100%;
}

#hero-wrapper .template_type_item .template-title {
  color: var(--white);
}


.template_type_item:not(.hero-list .template_type_item)::before {
  content: "";
  display: block;
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0px 4px 24px 0px rgba(82, 103, 115, 0.15);
}

.template_type_item_img_wrapper:hover .template-details {
  opacity: 1;
}

.template_type_item_img_wrapper .template-details .template-title {
  margin-top: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.template_type_item_img_wrapper {
  height: auto;
  overflow: hidden;
  border-radius: 3px;
  transition: 0.2s ease-in-out;
  position: relative;
  border-radius: 8px;
  position: relative;
  aspect-ratio: 1.7 / 1;
}

.grid4 .template_type_item_img_wrapper {
  height: 240px;
}

.template_type_item_img_wrapper img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin-left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 395px) {
  #template-list ul.list li, #template-list-grid ul.list li {
    max-width: 90vw;
  }
  #template-list .template_type_item {
    max-width: 90vw;
    margin: 0;
  }
}

.grid4 .template_type_item_img_wrapper img {
  height: 240px;
}

.template_type_item .template-description {
  font-size: 0.8rem;
  margin: 0;
  text-overflow: ellipsis;
  position: relative;

  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;

}

.noresults .template_type_item_img_wrapper,
.noresults .template_type_item_img_wrapper img {
  height: 240px;
}

.hero-list .template_type_item_img_wrapper,
.hero-list .template_type_item_img_wrapper img {
  min-height: 240px;
  width: 100%;
}

.hero-list .template_type_item_img_wrapper img {
  height: 240px;
}

.template_type a {
  text-decoration: none;
}

.btn-view-template {
  font-size: 0.8rem;
  margin-top: auto;
}

.template-details {
  padding: 20px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 9;
  background: var(--bp-cream);
  display: flex;
  flex-direction: column;
  opacity: 0;

  transition: all 200ms ease-in-out;
}

#template-list-grid ul.list li:hover .template_type_item_img_wrapper {
  transform: scale(1.05);
}

.templates-categories-wrapper .list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.templates-categories-wrapper .list a {
  color: var(--main-dark);
  font-size: 0.7rem;
  background-color: var(--bp-offwhite);
  padding: .5rem .875rem;
  border-radius: 4px;
  position: relative;
  text-decoration: none;
}

.templates-categories-wrapper .list a:hover {
  background-color: var(--main-dark);
  color: var(--bp-offwhite);
}

/* Templates cards */
.template-card-row>div {
  margin-bottom: 20px;
}

.template-card-link {
  height: 100%;
  display: inline-block;
  width: 100%;
  text-decoration: none;
}

.template-card {
  height: 100%;
  border-radius: 10px;
  border: 1px solid #aaa;
  display: flex;
  flex-direction: column;
}

.card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.template-card .card-img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
}


.proposal-templates {
  border-radius: 6px;
}

.terms-list {
  padding: 0;
}

.terms-list li {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

[class^=ico-]:before,
[class*=" ico-"]:before {
  font-family: "better-proposals" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  speak: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap;
}

/* Sticky bar - Filters */


.sticky-sidebar {
  display: flex;
  flex-direction: row;
  width: 100%;
  position: sticky;
  top: 60px;
  z-index: 9990;
  align-items: center;
  justify-content: space-between;
  background: var(--bp-background-color);
  border-bottom: 1px solid lightgrey;
  padding: 1rem 0;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

#searchbar {
  flex: 1;
}

#filter {
  margin-bottom: 0;
  height: 44px;
  border: 1px solid rgba(10, 44, 61, 0.28);
}

.filters-and-search {
  display: flex;
  flex-direction: row;
  align-items: start;
  margin-left: auto;
  flex: 1;
}

.search-options {
  display: flex;
  width: 100%;
}

.sticky-sidebar .title {
  font-family: var(--font-regular);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.sticky-sidebar li.sidebar-menu-item-child {
  font-family: var(--font-medium);
  list-style: none;
  cursor: pointer;
}

.sticky-sidebar li.sidebar-menu-item-child h2 {
  white-space: nowrap;
  margin-right: 1rem;
}

.sticky-sidebar li.sidebar-menu-item-child .submenu-title {
  position: relative;
  background: white;
  margin: 0 0 0 auto;
  color: var(--bp-p-color);
  font-size: 0.8rem;
  width: 205px;
  max-width: 90%;
  border: 1px solid rgba(10, 44, 61, 0.28);
  outline: none;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -khtml-border-radius: 4px;
  transition: all 0.2s ease;
  height: 44px;
  padding-left: 1.2rem;
  transition: all 0.2s ease;
}

.sticky-sidebar li.sidebar-menu-item-child .ico-chevron {
  font-size: 0.6rem;
  transform: rotate(90deg);
  display: inline-flex;
  margin-left: 2px;
  margin-right: 1rem;
  opacity: 0.7;
  transition: all 200ms ease-in-out;
}

.sticky-sidebar li.sidebar-menu-item-child.open .ico-chevron {
  transform: rotate(-90deg);
}

.sticky-sidebar .submenu-title {
  display: flex;
  font-family: var(--font-medium);
  align-items: center;
  justify-content: space-between;
}

.sticky-sidebar li.sidebar-menu-item-child ul.sidebar-submenu {
  position: absolute;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 205px;
  max-height: 0;
  margin: 1rem 0;
  border: none;
  outline: none;
  opacity: 1;
  border-radius: 8px;
  overflow: hidden;
  overflow-y: scroll;
  visibility: visible;
  background: #FFFFFF;
  -webkit-box-shadow: 0px 4px 14px rgba(82, 103, 115, 0.15);
  box-shadow: 0px 4px 14px rgba(82, 103, 115, 0.15);
  transition: all 200ms ease-in-out;
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
  z-index: 9999;
}

.sticky-sidebar ul.sidebar-submenu li {
  display: flex;
  font-family: var(--font-medium);
  border-radius: 2px;
  list-style: none;
  transition: all 100ms ease-in-out;
  margin: 0.1rem 0.8rem;
}

.sticky-sidebar ul.sidebar-submenu li:first-child {
  margin-top: 0.5rem;
}


.sticky-sidebar ul.sidebar-submenu li label {
  width: 100%;
  padding: 0.4rem 0;
  cursor: pointer;
  margin-bottom: 0;
}

.sticky-sidebar li.sidebar-menu-item-child.open ul.sidebar-submenu {
  max-height: 500px;
}



@media (min-width: 769px) {
  .desktop-hide-flex {
    display: none !important;
  }
}

@media (max-width: 769px) {
  .desktop-hide-flex {
    display: none;
  }
}

.sticky-sidebar li.sidebar-menu-item-child ul.sidebar-submenu {
  padding: 0;
  position: absolute;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 205px;
  max-height: 0;
  margin: 1rem 0;
  border: none;
  outline: none;
  opacity: 1;
  border-radius: 8px;
  overflow: hidden;
  overflow-y: scroll;
  visibility: visible;
  background: #FFFFFF;
  -webkit-box-shadow: 0px 4px 14px rgba(82, 103, 115, 0.15);
  box-shadow: 0px 4px 14px rgba(82, 103, 115, 0.15);
  transition: all 200msease-in-out;
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
  z-index: 9999;
}


.control {
  display: block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

#tags-wrapper {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: margin-bottom 200ms ease-in-out;
  padding: 0 15px;
}

#tags-wrapper.contain-tag {
  margin-bottom: 1.5rem;
}

#tags-wrapper .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 5px 6px 10px;
  border: 1px solid #d8d8d8;
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  background: #f8f8f8;
  color: #555;
  border-radius: 1px;
  margin: 0;
  line-height: 1.6;
}

#tags-wrapper .tag:hover {
  background-color: #efefef;
  color: var(--main-dark);
  cursor: pointer;
}

#tags-wrapper .tag .ico-cross {
  font-size: 24px;
  margin-left: 3px;
  line-height: 0;
  padding: 4px;
  font-style: normal;
  opacity: 0.4;
}

#tags-wrapper .tag .ico-cross:after {
  display: inline-block;
  content: "\00d7";
  /* This will render the 'X' */
}

.sidebar-submenu .control--checkbox {
  padding-left: 0;
}

.sidebar-submenu .control--checkbox input {
  margin-top: 1px;
}


.template-slides.slick-slider {
  border-radius: 10px;
  overflow: hidden;
}

.themes span.green {
  background-color: #22AF8D;
}

.themes>span {
  transform: scale(1);
  transition: all .2s ease-in-out;
}

.themes span {
  width: 40px;
  height: 40px;
  background-color: grey;
  border-radius: 20px;
}







/*INTERACTIVE BLOCKS STYLES*/

.container .row .text {
  justify-items: start;
  display: flex;
  flex-direction: column;
}

.container .row .text * {
  text-align: left;
}

.container .row .text>a.btn {
  margin: 2rem auto 0 0;
  text-align: left;
}

.stacked-images video,
video {
  width: calc(100% - 1rem);
  border-radius: 10px;
  margin: 1rem .5rem;
}

.mix-blend-mode {
  mix-blend-mode: multiply;
}

#filter {
  background: #fff;
}

@media only screen and (max-width: 768px) {
  .filters-and-search {
    flex-direction: column;
  }

  #searchbar {
    width: 100%;
    margin-bottom: 1rem;
  }

  .sticky-sidebar li.sidebar-menu-item-child ul.sidebar-submenu,
  .sidebar-menu-item-child,
  .submenu-title {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

#searchbar {
  position:relative;
}

#searchbar i.ico-search {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  opacity: 1;
  height: 44px;
  width: 44px;
  font-size: 1.2rem;
  color: #bdc3c9;
  background-color: transparent;
  border-radius: 4px 0 0 4px;
  transition: 0.3s ease-in-out;
}

.ico-search::before {
  content: "\e00f";
}

#template-category-page-content button,
#template-category-page-content [type=submit],
#template-category-page-content [type=reset],
#template-category-page-content [type=button],
#template-category-page-content [type=file]::file-selector-button,
#template-category-page-content [role=button] {
  font-size: 0.8rem;
}