/* enno_project_post_widget shortcode CSS */

.enno_project_post_widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 40px;
}

.enno_project_post_widget ul.tags_list{
    list-style: none;
    padding: 0;
}

.enno_project_post_widget ul.tags_list li {
    padding: 2px 12px;
    border: 1px solid #717171;
    border-radius: 100px;
    display: inline-block;
    margin: 0 10px 10px 0px;
    font-size: 14px;
}

.enno_project_post_widget .item{
    position:relative;
    margin-bottom:80px;
}

.enno_project_post_widget .item .content a h4{
    margin-bottom:5px;
    color:#000;
}

.enno_project_post_widget .item .content .project-description {
    color:#000;
    font-size: 16px;
    line-height: 150%;
    /*font-weight: 400;*/
}

.enno_project_post_widget .item img{
    position: relative;
    top: -50px;
    object-fit: contain;
    width: 80%;
    margin: auto;
}

.enno_project_post_widget .item a.image_anchor{
    height: 400px;
    display: flex;
}
.enno_project_post_widget .item:not(.showcase_item-true) a.image_anchor{
    margin-bottom: -40px;
}

.enno_project_post_widget .item a.image_anchor::before {
    z-index: -1;
    content: " ";
    position: absolute;
    left: 0;
    right: 0;
    height: 350px;
    background: #f2f4f7;
    transition: all .2s ease-in-out;
    transform: scale(1.00);
    transform-origin: center;
}

.enno_project_post_widget .item:hover a.image_anchor::before {
    transition: all .2s ease-in-out;
    transform: scale(1.03);
    background-image: linear-gradient(312deg,#ffcc02,#fff0b3);
}
  
.enno_project_post_widget .item .content{
    max-width: 100%;
}

/* Showcase item styles */
.enno_project_post_widget .showcase_item-true.item.item-1 .content{
    max-width:500px;
}

.enno_project_post_widget .showcase_item-true.item.item-1{
    grid-column: 1/3;
}

.enno_project_post_widget .showcase_item-true.item.item-1 a.image_anchor{
    background-size: cover;
    background-position: center;
    height: 540px;
}

.enno_project_post_widget .showcase_item-true.item.item-1 a.image_anchor:before,
.enno_project_post_widget .showcase_item-true.item.item-1:hover a.image_anchor:before,
.enno_project_post_widget .showcase_item-true.item.item-1 img{
    display:none;
}
.enno_project_post_widget .showcase_item-true.item.item-1 h4{
    margin-top: 16px;
}

/* FILTER STYLES */
.enno-project-filter-container {
  margin-bottom: 80px;
}
@media screen and (max-width:767px){
  .enno-project-filter-container {
    margin-bottom: 40px;
  }
}

.enno-project-filter-container .filter-level-1 {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid #002B6466;
  padding-bottom: 0px;
}

.enno-project-filter-container .filter-level-2-inner {
    padding-top:24px;
    display:flex;
}

.enno-project-filter-container .filter-level-2-left {
    display:flex;
    flex-direction:row;
    gap:10px;
    justify-content: flex-start;
    align-items: flex-start;
    padding-right:20px;
    height:fit-content;
    position: relative;
    max-width: fit-content;
}
@media screen and (max-width:767px){
  .enno-project-filter-container .filter-level-2-left {
    padding-right:10px;
  }
}
.enno-project-filter-container .filter-level-2-left:after {
    content:"";
    height:70%;
    width:1px;
    background:#767676;
    position:absolute;
    right:0px;
    top:50%;
    transform:translateY(-50%);
}

.enno-project-filter-container .filter-level-2-right {
    display:flex;
    flex-direction:row;
    gap:8px;
    flex-wrap:wrap;
    padding-left:20px;
}
@media screen and (max-width:767px){
  .enno-project-filter-container .filter-level-2-right {
    padding-left:10px;
  }
}

.enno-project-filter-container button.filter-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  font-style: normal;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0%;
  color: #767676;
  padding: 0 0 8px 0;
  position: relative;
  transition: color 0.2s;
  padding-bottom:0;
  margin-bottom:-2px;
  border-bottom: 2px solid transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.enno-project-filter-container button.filter-btn.active,
.enno-project-filter-container button.filter-btn:hover {
  color: #002B64;
  border-bottom: 2px solid #002B64;
}

/* FILTER LEVEL 2 BUTTONS */
.enno-project-filter-container .filter-level-2 button.filter-close,
.enno-project-filter-container .filter-level-2 button.filter-all,
.enno-project-filter-container .filter-level-2 button.filter-term {
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0px;
  text-align: center;
  vertical-align: middle;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid #767676;
  color: #767676;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.enno-project-filter-container .filter-level-2 button.filter-term.active,
.enno-project-filter-container .filter-level-2 button.filter-all.active {
  border: 1px solid #002B64;
  color: #fff;
  background: #002B64;
}

.enno-project-filter-container .filter-level-2 button.filter-term:hover,
.enno-project-filter-container .filter-level-2 button.filter-all:hover {
  border: 1px solid #002B64;
  color: #fff;
  background: #002B64;
}

.enno-project-filter-container .filter-level-2 button.filter-close {
  min-width: 36px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #767676;
  color: #767676;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enno-project-filter-container .filter-level-2 button.filter-close:hover {
  border: 1px solid #002B64;
  color: #fff;
  background: #002B64;
}

.enno-project-filter-container .filter-btn .filter-badge,
.enno-project-filter-container .filter-btn.active .filter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #002B64;
    border-radius: 50px;
}

.enno-project-filter-container .filter-btn .filter-badge[style*="display:none"] {
  display: none !important;
}

@media screen and (max-width:767px){
  .enno_project_post_widget .item {
      margin-bottom: 40px;
  }
  .enno_project_post_widget{
        display: block;
  }
  .enno_project_post_widget .item img {
        top: 0;
        width: 100%;
    }
  .enno_project_post_widget .item a.image_anchor::before{
      top: 50px;
      height: 300px;
    }
  
  /* Hide showcase version and show standard version of first project on mobile */
  .enno_project_post_widget .showcase_item-true.item.item-1 {
      display: none !important;
  }
  .enno_project_post_widget .showcase_item-normal.item.item-1 {
      display: block !important;
  }
  
  /* Mobile Filter Styles */
  .enno-project-filter-container .filter-level-2 .filter-all {
    content: "All";
  }
  .enno-project-filter-container .filter-level-2-right {
    width:100%;
  }
  

  
  /* Hide desktop filter level 2 right column on mobile, but show mobile select button */
  .enno-project-filter-container .filter-level-2-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .enno-project-filter-container .filter-level-2-right .filter-term {
    display: none;
  }
  
  /* Mobile select button styles */
  .enno-project-filter-container .filter-mobile-select {
    display: none;
  }
  
  .enno-project-filter-container .filter-level-2-left {
    position: relative;
  }
  
  .enno-project-filter-container .filter-level-2-left:after {
    content: "";
    height: 70%;
    width: 1px;
    background: #767676;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Show mobile select button on mobile */
  .enno-project-filter-container .filter-mobile-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 100%;
    font-weight: 400;
    font-size: 18px;
    color: #767676;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #767676;
    border-radius: 30px;
    background: transparent;
    transition: all 0.2s;
    flex: 1;
    justify-content:space-between;
    width:100%;
  }
  
  .enno-project-filter-container .filter-mobile-select:hover,
  .enno-project-filter-container .filter-mobile-select.active {
    border: 1px solid #002B64;
    color: #fff;
    background: #002B64;
  }
  
  .enno-project-filter-container .filter-mobile-select img {
    width: 12px;
    height: 12px;
  }
}

/* Hide mobile select buttons on desktop */
@media screen and (min-width: 768px) {
  .enno-project-filter-container .filter-mobile-select {
    display: none !important;
  }
}

/* Mobile Filter Overlay */
.filter-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: none;
}

.filter-mobile-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-mobile-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding-top: 80px;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.filter-mobile-overlay-services .filter-mobile-overlay-content  {
  justify-content: flex-start;
}

button.filter-mobile-close {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background: #FFCC02;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10000;
}

.filter-mobile-close img {
  width: 24px !important;
  height: 24px !important;
}

.filter-mobile-terms {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin-top: 60px;
  align-items: flex-start;
  position: relative;
}

.filter-mobile-terms::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 69.16%, #FFFFFF 97.97%);
  pointer-events: none;
  z-index: 9998;
}

.filter-mobile-terms .filter-term {
  width: auto;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #767676;
  border-radius: 30px;
  background: #fff;
  color: #767676;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-mobile-terms .filter-term.active {
  border: 1px solid #002B64;
  color: #fff;
  background: #002B64;
}

.filter-mobile-terms .filter-term:hover {
  border: 1px solid #002B64;
  color: #fff;
  background: #002B64;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}

button.load-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #002B64;
}

button.load-more-btn:hover,
button.load-more-btn:focus {
  opacity: 1;
  background:none;
  color:initial;
}

button.load-more-btn img {
  transition: transform 0.2s ease-in-out;
  transform: translateY(0px);
  width: 32px;
  height: 32px;
}

button.load-more-btn:hover img {
  transform: translateY(3px);
}