.bm-casestudies {
  display: grid !important;
  gap: 20px;
}
.bm-casestudies__item-thumbnail img {
  border-radius: 8px;
  margin: 0 !important;
  width: 100%;
}
.bm-casestudies__item-content {
  text-align: center;
  padding: 20px;
  margin: 0 !important;
}
.bm-casestudies__item-content p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 8px;
  padding-bottom: 10px !important;
}
.bm-casestudies__item-content p span {
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 4px;
  font-size: 15px;
  color: #f9d74c !important;
}
.bm-casestudies__item-content h3 {
  font-size: 15px !important;
  margin: 0 !important;
}
.bm-casestudies__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #1f2125;
  border-radius: 8px;
  position: relative;
  top: 0;
  transition: all 0.2s ease-in-out;
}
.bm-casestudies__item:hover {
  top: -8px;
}
.bm-casestudies__item::before {
  content: "\2022\2022\2022";
  padding: 5px 12px;
  letter-spacing: 4px;
  font-weight: 900;
  color: white;
}
@media screen and (min-width: 659px) {
  .bm-casestudies {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 999px) {
  .bm-casestudies {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
  }
}
/* @media screen and (min-width: 1149px) {
  .bm-casestudies {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
} */

/****************************************
     * Filters
     */

.bm-casestudies-filters__list {
  width: 90%;
  margin: 0 auto;
  display: flex;
  column-gap: 45px;
  row-gap: 10px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  /* margin-bottom: 60px !important; */
}
.bm-casestudies-filters a {
  font-size: 14px;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

.bm-casestudies-filters a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0px;
  background: #f9d74c;
  height: 2px;
  transition: all 0.3s ease-in-out;
}

.bm-casestudies-filters a:hover::after,
.bm-casestudies-filters a.active::after {
  width: 100%;
}

.bm-casestudies__loading,
.bm-casestudies__empty {
  grid-column: span 3;
  text-align: center;
  font-size: 33px;
  text-transform: uppercase;
  font-weight: bold;
  margin: 20px;
  line-height: 1.2;
}

.bm-casestudies {
  opacity: 1; /* Fully visible */
  transition: opacity 0.3s ease; /* Smooth transition */
}

.bm-casestudies.hidden {
  opacity: 0; /* Hidden state */
}
.bm-casestudies-filters {
  margin-bottom: 50px !important;
}
.bm-casestudies-filters__toggle {
  border: 2px solid white;
  border-radius: 8px;
  padding: 10px 20px;
  display: block;
  text-align: center;
  margin-bottom: 40px !important;
}

.bm-casestudies-filters__list {
  overflow: hidden;
  max-height: 0;
  transition: all 0.2s ease-in-out;
}

.bm-casestudies-filters__list.expanded {
  max-height: 800px;
}

@media screen and (min-width: 769px) {
  .bm-casestudies-filters__toggle {
    display: none;
  }

  .bm-casestudies-filters__list {
    max-height: unset !important;
  }
}

.bm-case__services {
  --svg-height: 35px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media screen and (min-width: 800px) {
  .bm-case__services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bm-case__service-item {
  display: flex;
  align-items: center;
  column-gap: 10px;
  color: black;
  transition: all 0.2s !important;
}
.bm-case__service-item:hover {
  color: #ffd74b;
}
.bm-case__service-item:hover svg {
  fill: #ffd74b;
}
.bm-case__service-item svg {
  width: var(--svg-height);
  height: var(--svg-height);
  transition: all 0.2s !important;
}

.bm-casestudies__pagination {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.bm-casestudies__pagination {
  margin: 40px 0 80px 0 !important;
}

.bm-casestudies__pagination-btn,
.bm-casestudies__pagination-dots {
  font-size: 20px;
  line-height: 1;
}
.bm-casestudies__pagination-btn.active {
  color: white !important;
}

.bm-case__img-slider img {
  height: 25vh;
  min-height: 110px;
  width: 100%;
  object-fit: cover;
}

.bm-case__lightbox.active {
  position: fixed;
  inset: 0;
  z-index: 1231333;
  background: rgba(0, 0, 0, 0.6);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.bm-case__lightbox__container {
  position: relative;
  border-radius: 4px;
  max-height: 900px;
  display: flex;
  align-items: center;
}

.bm-case__lightbox__close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.bm-case__lightbox img {
  border-radius: 4px;
  width: auto;
  max-width: 85vw;
}

.bm-case__lightbox:not(.active) {
  display: none;
}

.slick-dots {
  bottom: -50px;
}

.slick-dots button::before {
  color: white !important;
}
