/* ---- from archive-case-studies.php (originally lines 246-534) ---- */
  .expertise-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.expertise-link:hover .expertise-card {
  transform: translateY(-4px);
  transition: 0.2s ease;
}

    .wholecase {
    background: var(--section-bg);

    border-radius: 20px;
}

/* FILTER CONTROLS - This will become sticky */
.filter-controls {
  position: sticky;
  top: 20px;
  z-index: 100;
  background: var(--section-bg);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 30px !important;

}

/* Optional: Add a subtle shadow when sticky */
.filter-controls.sticky-active {
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

  .expertise-section {
    color: white;
    position: relative;
    overflow: hidden;
  }

  .section-title {
    font-weight: 700;
  }

  /* Search Box Styles */
  .search-container {
    position: relative;

    margin-right: 15px;
  }

  .search-input {
    width: 100%;
    padding: 15px 35px 15px 15px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
  }

  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }

  /* ===== CUSTOM DROPDOWN STYLES ===== */
  .dropdown-filter-wrapper {
    display: flex;
    justify-content: flex-end;
  }

  .custom-dropdown {
    position: relative;
    width: 315px;
    z-index: 101;
  }

  .dropdown-trigger {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
  }

  .dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .dropdown-trigger.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--btn-color);
  }

  .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--section-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 102;
  }

  .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-item {
    padding: 10px 20px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .dropdown-item.active {
    background: var(--text-color);
    color: black;
    font-weight: 600;
    border-radius:8px;
  }

  /* Scrollbar for dropdown */
  .dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }

  .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }

  .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
  }

  .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
  }

  /* ===== UPDATED CARD STYLING WITH IMAGES ===== */
  .expertise-card {
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
  }

  .expertise-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
  }

  /* Image container */
  .expertise-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
  }

  .expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .expertise-card:hover .expertise-image img {
    transform: scale(1.05);
  }

  /* Text content */
  .expertise-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .expertise-content h6 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
  }

  .expertise-content p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
  }

    @media (min-width: 768px) {
            .wholecase {

    padding: 0 3rem;

}

    }
  /* Responsive adjustments */
  @media (max-width: 768px) {

      .wholecase {

    padding: 0 20px;

}
    .dropdown-filter-wrapper {
      justify-content: flex-start;
      margin-top: 15px;
    }

    .custom-dropdown {
      width: 100%;
    }

    .search-container {
      max-width: 100%;
      margin-right: 0;
    }

    .filter-controls {
      position: relative;
      top: 0;
    }

    .expertise-image {
      height: auto;
    }
  }

  @media (max-width: 576px) {
    .expertise-image {
      height: 140px;
    }
  }
