.ExpertCategoriesPage_wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #f8fafc;
}

/* Header */
.ExpertCategoriesPage_wrapper .page_header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ExpertCategoriesPage_wrapper .btn_back,
.ExpertCategoriesPage_wrapper .btn_search_icon {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #0f172a;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ExpertCategoriesPage_wrapper .header_title_wrap {
  flex: 1;
  text-align: center;
}

/* Search Input Field */
.ExpertCategoriesPage_wrapper .category_search_input_wrap {
  padding: 8px 0;
  background-color: #ffffff;
}

.ExpertCategoriesPage_wrapper .category_search_input_box {
  width: 100%;
  height: 44px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}

.ExpertCategoriesPage_wrapper .category_search_input_box .search_icon {
  color: #64748b;
  font-size: 15px;
}

.ExpertCategoriesPage_wrapper .category_search_input_box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
}

.ExpertCategoriesPage_wrapper .category_search_input_box input::placeholder {
  color: #94a3b8;
}

.ExpertCategoriesPage_wrapper .clear_search_btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}

/* Filter Bar Container */
.ExpertCategoriesPage_wrapper .filter_bar_section {
  background-color: #ffffff;
  padding: 4px 0 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

/* Split Main Layout */
.ExpertCategoriesPage_wrapper .split_content_layout {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 24px;
  align-items: flex-start;
}

/* Lodret Sidebar */
.ExpertCategoriesPage_wrapper .left_vertical_sidebar {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ExpertCategoriesPage_wrapper .left_vertical_sidebar::-webkit-scrollbar {
  display: none;
}

.ExpertCategoriesPage_wrapper .sidebar_cat_item {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ExpertCategoriesPage_wrapper .sidebar_cat_item.active {
  background-color: #e0f2fe;
  border-color: #0284c7;
}

.ExpertCategoriesPage_wrapper .cat_icon_circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ExpertCategoriesPage_wrapper .cat_icon_circle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ExpertCategoriesPage_wrapper .cat_icon_circle svg {
  font-size: 18px;
}

.ExpertCategoriesPage_wrapper .cat_name_label {
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.2;
}

/* Vendor Cards Feed */
.ExpertCategoriesPage_wrapper .right_vendor_feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ExpertCategoriesPage_wrapper .vendor_card_feed_item {
  width: 100%;
}

.ExpertCategoriesPage_wrapper .no_results_found {
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Responsive layout ---------- */
.ExpertCategoriesPage_wrapper .split_content_layout,
.ExpertCategoriesPage_wrapper .right_vendor_feed,
.ExpertCategoriesPage_wrapper .vendor_card_feed_item {
  min-width: 0;
}

/* Cards: 1 column (mobile) -> 2 columns (tablet / laptop) -> 3 columns (desktop) */
.ExpertCategoriesPage_wrapper .right_vendor_feed {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.ExpertCategoriesPage_wrapper .vendor_card_feed_item > * {
  height: 100%;
}

.ExpertCategoriesPage_wrapper .no_results_found {
  grid-column: 1 / -1;
}

/* Small phones */
@media (min-width: 0px) and (max-width: 374.98px) {
  .ExpertCategoriesPage_wrapper .split_content_layout {
    gap: 8px;
  }

  .ExpertCategoriesPage_wrapper .left_vertical_sidebar {
    width: 66px;
    gap: 8px;
  }

  .ExpertCategoriesPage_wrapper .sidebar_cat_item {
    padding: 8px 2px;
    border-radius: 10px;
  }

  .ExpertCategoriesPage_wrapper .cat_icon_circle {
    width: 34px;
    height: 34px;
  }

  .ExpertCategoriesPage_wrapper .cat_icon_circle img {
    width: 20px;
    height: 20px;
  }

  .ExpertCategoriesPage_wrapper .cat_name_label {
    font-size: 9px;
  }
}

/* Phones */
@media (min-width: 375px) and (max-width: 575.98px) {
  .ExpertCategoriesPage_wrapper .split_content_layout {
    gap: 10px;
  }

  .ExpertCategoriesPage_wrapper .left_vertical_sidebar {
    width: 76px;
    gap: 10px;
  }

  .ExpertCategoriesPage_wrapper .cat_icon_circle {
    width: 38px;
    height: 38px;
  }

  .ExpertCategoriesPage_wrapper .cat_name_label {
    font-size: 9.5px;
  }
}

/* Large phones / small tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
  .ExpertCategoriesPage_wrapper .left_vertical_sidebar {
    width: 96px;
  }

  .ExpertCategoriesPage_wrapper .cat_name_label {
    font-size: 11px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
  .ExpertCategoriesPage_wrapper .split_content_layout {
    gap: 16px;
    padding-top: 16px;
  }

  .ExpertCategoriesPage_wrapper .left_vertical_sidebar {
    width: 100px;
  }

  .ExpertCategoriesPage_wrapper .cat_name_label {
    font-size: 11px;
  }
}

/* Laptops & desktops: wider sidebar */
@media (min-width: 992px) and (max-width: 3840px) {
  .ExpertCategoriesPage_wrapper .split_content_layout {
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .ExpertCategoriesPage_wrapper .left_vertical_sidebar {
    width: 120px;
    gap: 12px;
    top: 130px;
  }

  .ExpertCategoriesPage_wrapper .sidebar_cat_item {
    padding: 12px 6px;
    gap: 8px;
  }

  .ExpertCategoriesPage_wrapper .sidebar_cat_item:hover {
    border-color: #bae6fd;
  }

  .ExpertCategoriesPage_wrapper .cat_icon_circle {
    width: 50px;
    height: 50px;
  }

  .ExpertCategoriesPage_wrapper .cat_icon_circle img {
    width: 28px;
    height: 28px;
  }

  .ExpertCategoriesPage_wrapper .cat_name_label {
    font-size: 12px;
    font-weight: 600;
  }

  .ExpertCategoriesPage_wrapper .right_vendor_feed {
    gap: 18px;
  }
}

/* Expert cards grid */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .ExpertCategoriesPage_wrapper .right_vendor_feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) and (max-width: 3840px) {
  .ExpertCategoriesPage_wrapper .right_vendor_feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* FoundExpertCard tweaks inside this page only */
.ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_info {
  min-width: 0;
}

.ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_tags {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 4px;
}

.ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_bottom {
  flex-wrap: wrap;
  row-gap: 10px;
  margin-top: auto;
}

@media (min-width: 0px) and (max-width: 575.98px) {
  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard {
    padding: 10px;
    gap: 10px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_top {
    gap: 8px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_avatar {
    width: 48px;
    height: 48px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_info h3 {
    font-size: 13px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_card_actions {
    flex-direction: column;
    gap: 6px;
  }

  /* Design keeps the 4 stats in one row, so shrink the text to fit the narrow card */
  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .stat_box .label {
    font-size: 8.5px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .stat_box .val_bold,
  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .stat_box .val {
    font-size: 10px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .stat_box .val_rating {
    font-size: 9px;
    gap: 2px;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_buttons_row button {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
  }
}

@media (min-width: 0px) and (max-width: 374.98px) {
  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_buttons_row {
    width: 100%;
  }

  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_buttons_row button {
    flex: 1;
  }
}

/* 2-column tablet / laptop cards are narrow: stats in 2 x 2 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .ExpertCategoriesPage_wrapper .ServicesFoundExpertCard .ServicesFoundExpertCard_stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
