/* CSS for Case Studies listing */

.acf-layout-case-studies-listing {
  /* padding: 60px 0; */
  background-color: #000000;
  color: #ffffff;
}

/* Featured Case Study Section */

.featured-case-study-image-wrapper {
  width: 100%;
  height: 480px;
  overflow: hidden;
  position: relative;
}

.featured-case-study-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.featured-case-study-row:hover .featured-case-study-image-wrapper img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.featured-case-study-content {
  padding: 20px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.featured-case-study-title {
  text-align: left;
}

.featured-case-study-title span {
  color: #ed9d21;
}

.featured-case-study-desc {
  text-align: left;
  padding: 0;
  margin: 0;
}

/* "New" Badge Box Heading Tag */
.acf-layout-case-studies-listing .box-heading-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border: 2px solid #ffffff !important;
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  font-family: "Funnel Display", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 120% !important;
  text-transform: capitalize !important;
  position: relative;
  width: fit-content;
  box-sizing: border-box;
}

.acf-layout-case-studies-listing .box-heading-tag .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--color-1, #e65125) !important;
  z-index: 3;
}

.acf-layout-case-studies-listing .box-heading-tag .dot.dot-tl {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}
.acf-layout-case-studies-listing .box-heading-tag .dot.dot-tc {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.acf-layout-case-studies-listing .box-heading-tag .dot.dot-tr {
  top: 0;
  left: 100%;
  transform: translate(-50%, -50%);
}
.acf-layout-case-studies-listing .box-heading-tag .dot.dot-br {
  top: 100%;
  left: 100%;
  transform: translate(-50%, -50%);
}
.acf-layout-case-studies-listing .box-heading-tag .dot.dot-bc {
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.acf-layout-case-studies-listing .box-heading-tag .dot.dot-bl {
  top: 100%;
  left: 0;
  transform: translate(-50%, -50%);
}

/* Metrics Row */
.featured-case-study-metrics {
  margin-top: 20px;
}

.metric-item {
  text-align: left;
  margin-bottom: 20px;
}

.metric-percentage {
  font-family: "Funnel Display", var(--font-secondary), sans-serif;
  font-size: clamp(2rem, 1.5rem + 1.2vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 110%;
  margin-bottom: 8px;
}

.metric-label {
  font-family: "Funnel Sans", var(--font-primary), sans-serif;
  font-size: 13px;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.6);
}

.featured-case-study-btn-wrapper {
  margin-top: 10px;
  text-align: left;
}

/* Search & Filter Controls */
.case-studies-controls-row {
  margin-bottom: 40px;
}

.case-studies-search-box {
  position: relative;
  width: 100%;
}

.case-studies-search-field {
  width: 100%;
  padding: 13px 20px;
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
  font-family: "Funnel Sans", sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.case-studies-search-field:focus {
  border-color: #ffffff;
}

.case-studies-search-icon-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.case-studies-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.case-studies-filter-tab {
  background-color: #111111;
  border: 1.5px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Funnel Display", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  text-transform: capitalize;
}

.case-studies-filter-tab:hover {
  color: #ffffff;
  background-color: #1a1a1a;
}

.case-studies-filter-tab.active {
  border-color: #ffffff;
  color: #ffffff;
  background-color: #111111;
  font-weight: 700;
}

@media (max-width: 991px) {
  .case-studies-filter-bar {
    justify-content: flex-start;
  }
  .featured-case-study-image-wrapper {
    height: 380px;
  }
  .featured-case-study-content {
    padding: 20px 0;
  }
  .featured-case-study-metrics {
    margin: 0;
  }
}

/* Case Study Grid & Cards */
.case-studies-item-col {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 40px;
  overflow: hidden;
}

.case-study-card-image-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin-bottom: 20px;
}

.case-study-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.case-study-card:hover .case-study-card-image-wrapper img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.case-study-card-title {
  text-align: left;
  font-family: "Funnel Display", var(--font-secondary), sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.case-study-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-study-card-title a:hover {
  color: var(--color-1, #e65125);
  text-decoration: none;
}

.case-study-card-categories {
  font-family: "Funnel Sans", var(--font-primary), sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-1, #e65125);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.case-study-card-desc {
  text-align: left;
  color: #cccccc;
  font-family: "Funnel Sans", var(--font-primary), sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .case-study-card-image-wrapper {
    height: 240px;
  }
}

@media (max-width: 767px) {
  .case-study-card-image-wrapper {
    height: 280px;
  }
  .featured-case-study-image-wrapper {
    height: 300px;
  }
}

/* Pagination load more */
.hidden-item {
  display: none !important;
}

.hidden-load-more {
  display: none !important;
}

.case-studies-item-col.featured-item-grid-card {
  display: none !important;
}
