.explore-all-wrapper {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
}

.explore-filters {
	background: #fff7e6;
	padding: 16px;
	border-radius: 12px;
}

.filter-group button {
	width: 100%;
	background: none;
	border: none;
	font-weight: 700;
	text-align: left;
	margin-bottom: 8px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  white-space: nowrap;
}

.filter-count {
  background: #000;
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1;
}

.filter-toggle span {
  font-size: 18px;
  line-height: 1;
}

.filter-options label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.explore-categories {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.cat-filter {
	border: 1px solid #ccc;
	padding: 6px 14px;
	border-radius: 20px;
	cursor: pointer;
	background: #fff;
}

.cat-filter.active {
	background: #baf3ea;
	border-color: #6dd6c6;
}

/* ==========================
   Explore Loader
========================== */

.explore-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* Spinner */
.loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.explore-load-more-wrap {
  text-align: center;
  margin: 30px 0;
}

#explore-load-more {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}

#explore-load-more:hover {
  opacity: 0.85;
}


/* ==========================
   Explore Cards
========================== */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card container */
.explore-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s ease;
}

.explore-card:hover {
  transform: translateY(-2px);
}

.explore-card-link {
  color: inherit;
  text-decoration: none;
}

/* Image */
.explore-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.explore-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content */
.explore-card-content {
  padding: 16px;
}

/* Tags */
.explore-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Green parent category */
.tag-parent {
  background: #e6f4d7;
  color: #2f7d32;
}

/* Purple sub category */
.tag-child {
  background: #efe6ff;
  color: #6b3fd6;
}

/* Title */
.explore-card-title {
  font-size: 18px;
  line-height: 1.3;
  margin: 6px 0;
  font-weight: 800;
  color: #111;
}

/* Description (2 lines clamp) */
.explore-card-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 12px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.explore-card-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.explore-card-meta .dot {
  font-weight: bold;
}

/* Active filters (desktop) */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.filter-pill {
  background: #0f766e;
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 767px) {

  .explore-filters {
    display: flex;
    gap: 8px;
  }

  .filter-group {
    position: relative;
  }

  .filter-toggle {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 500;
  }

  .filter-toggle.active {
    font-weight: 700;
  }

  .active-filters {
    display: none !important;
  }

  /* Layout */
  .explore-all-wrapper {
    display: block;
  }

  /* Filters become top bar */
  .explore-filters {
    display: flex;
    gap: 8px;
    padding: 0;
    background: transparent;
    margin-bottom: 16px;
  }

  .explore-filters h4 {
    display: none;
  }

  /* Filter dropdown buttons */
  .filter-group {
    flex: 1;
    position: relative;
  }

  .filter-toggle {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .filter-toggle span {
    font-size: 14px;
  }

  /* Dropdown panel */
  .filter-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 92vw;
    max-height: 60vh;
    overflow-y: auto;
    background: #fffdf5;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
    z-index: 9999;
    display: none;
  }

  .filter-options label {
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  /* Category pills */
  .explore-categories {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
  }

  .cat-filter {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* Grid: 2 columns */
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Card spacing */
  .explore-card-content {
    padding: 12px;
  }

  .explore-card-title {
    font-size: 16px;
  }

  .explore-card-excerpt {
    font-size: 13px;
  }

  /* Meta */
  .explore-card-meta {
    font-size: 12px;
  }

  /* Active mobile filter count badge */
  .filter-toggle.active {
    font-weight: 700;
  }

  .filter-count {
    background: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 6px;
    margin-left: 6px;
  }

}
