/* ==============================
   UAQ Scoped Service Grid Styles
   ============================== */

.uaq-scope * {
  all: unset;
  display: revert;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

.uaq-scope {
  all: initial;
  display: block;
  font-family: "Inter", system-ui, sans-serif;
  background: #f6f7f8;
  padding: 40px 20px;
  border-radius: 10px;
  color: #1c1d1f;
}

.uaq-scope .uaq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.uaq-scope .uaq-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #1c1d1f;
  margin: 0;
}

.uaq-scope .uaq-view-more {
  font-size: 14px;
  color: #f66300;
  text-decoration: none;
}

.uaq-scope .uaq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* exactly 4 columns */
  gap: 24px; /* a bit more breathing space between cards */
  max-width: 1200px; /* center nicely on large screens */
  margin: 0 auto; /* center the grid */
}

@media (max-width: 1100px) {
  .uaq-scope .uaq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .uaq-scope .uaq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .uaq-scope .uaq-grid {
    grid-template-columns: 1fr;
  }
}

.uaq-scope .uaq-card {
  background: #fff;
  border: 1px solid #e6e7e9;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.uaq-scope .uaq-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #d9dadc;
}

.uaq-scope .uaq-thumb {
  background: #f3f4f6;
  border-radius: 12px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.uaq-scope .uaq-thumb .dashicons {
  font-size: 36px;
  color: #f66300;
}

.uaq-scope .uaq-title {
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
}

.uaq-scope .uaq-desc {
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 12px;
}

.uaq-scope .uaq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.uaq-scope .uaq-tag {
  font-size: 11px;
  color: #444;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 3px 8px;
}

.uaq-scope .uaq-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uaq-scope .uaq-explore {
  cursor: pointer; /* show hand cursor */
  font-size: 14px;
  color: #1c1d1f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.uaq-scope .uaq-explore:hover {
  color: #f66300;
}

.uaq-scope .uaq-icons {
  display: flex;
  gap: 8px;
}

.uaq-scope .uaq-btn {
  background: #fff;
  border: 1px solid #e6e7e9;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uaq-scope .uaq-btn:hover {
  border-color: #f66300;
}

/* ==============================
   Filter & Search Bar
   ============================== */

.uaq-scope .uaq-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

/* Filter Buttons Group */
.uaq-scope .uaq-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.uaq-scope .uaq-filter-buttons .filter-btn {
  background: none;
  border: none;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  color: #5f6368;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.uaq-scope .uaq-filter-buttons .filter-btn:hover {
  color: #f66300;
}

.uaq-scope .uaq-filter-buttons .filter-btn.active {
  color: #000;
  font-weight: 600;
}

.uaq-scope .uaq-filter-buttons .filter-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #f66300;
  border-radius: 1px;
}

/* Search Bar */
.uaq-scope .uaq-search {
  position: relative;
}

.uaq-scope .uaq-search input {
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 6px 32px 6px 10px;
  font-size: 14px;
  color: #333;
  width: 200px;
  outline: none;
  transition: border-color 0.2s ease;
}

.uaq-scope .uaq-search input:focus {
  border-color: #f66300;
}

.uaq-scope .uaq-search .dashicons-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

