/* Group Custom Post Type Styles */
.group-archive {
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  position: relative;
}

/* Filters */
.group-filters {
  margin-bottom: 30px;
  position: relative;
  z-index: 100;
}

.group-search-form {
  position: relative;
}

.group-search-container {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 15px;
  gap: 10px;
}

.group-search-input-wrapper {
  flex-grow: 0;
  position: relative;
  width: 50%;
}

.group-search-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 50px !important;
  font-size: 16px;
  background-color: #f0f0f0;
  transition: all 0.3s ease;
}

.group-search-input:focus {
  outline: none;
  border-color: #0073aa;
  background-color: #fff;
}

.group-search-input-wrapper .dashicons {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.group-filter-button {
  position: relative;
  padding: 12px 20px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 50px !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-left: 10px;
  z-index: 100 !important;
}

.group-filter-button:hover {
  background-color: #e9e9e9;
}

.group-filter-button .dashicons {
  font-size: 16px;
}

.group-filter-options {
  position: relative;
  z-index: 1000;
  width: 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-top: 10px;
  overflow-y: auto;
  max-height: 80vh;
  display: none;
}

.group-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.group-filter-column {
  display: flex;
  flex-direction: column;
}

.group-filter-column label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.group-language-filter,
.group-location-filter,
.group-category-filter,
.group-topic-filter {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  font-size: 14px;
  transition: all 0.3s ease;
}

.group-language-filter:focus,
.group-location-filter:focus,
.group-category-filter:focus,
.group-topic-filter:focus {
  outline: none;
  border-color: #0073aa;
  background-color: #fff;
}

.group-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.group-apply-filters {
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 50px !important;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.group-apply-filters:hover {
  background-color: #005f8b;
}

.group-reset-filters {
  padding: 10px 20px;
  background-color: transparent;
  color: #666;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.group-reset-filters:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* Grid Layout - Card Style */
.groups-grid {
  display: grid;
  /* Default to 3 columns on larger screens */
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin: 20px 0;
}

.group-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.group-card-header {
  display: block;
  white-space: normal;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.group-frequency,
.group-location {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  display: block;
  white-space: normal;
}

.group-card-content {
  padding: 15px;
}

.group-thumbnail {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 8px;
}

.group-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.group-avatar {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #333;
  font-size: 48px;
  font-weight: bold;
  border-radius: 8px;
}

.group-title {
  margin: 0 0 10px 0;
  font-size: 22px !important;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.group-description {
  font-size: 20px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.group-meta {
  margin-bottom: 15px;
}

.group-schedule {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 17px;
  color: #555;
}

.group-separator {
  margin: 0 8px;
  color: #999;
}

.group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  margin-bottom: 8px;
}

.group-tag {
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 50px;
  font-size: 17px;
  color: #555;
}

.group-actions {
  margin-top: 15px;
}

.group-learn-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-align: center;
  width: 100%;
}

.group-learn-more-button:hover {
  background-color: #005f8b;
}

/* No Results */
.group-no-results {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.group-no-results .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #0073aa;
}

.group-no-results p {
  font-size: 18px;
  color: #666;
}

/* Pagination */
.group-pagination {
  text-align: center;
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.group-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.group-pagination .page-numbers:hover {
  background-color: #f5f5f5;
}

.group-pagination .current {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
}

.group-pagination .prev,
.group-pagination .next {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

/* Responsive */
/* Tablet View (e.g., iPads in portrait/landscape) */
@media (max-width: 1024px) {
  .groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .group-search-container {
    flex-direction: column;
  }
  
  .group-search-input-wrapper {
    width: 100%;
  }

  .group-filter-button {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* Mobile View */
@media (max-width: 767px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }

  .group-filter-grid {
    grid-template-columns: 1fr;
  }

  .group-filter-actions {
    flex-direction: column;
  }

  .group-apply-filters,
  .group-reset-filters {
    width: 100%;
    text-align: center;
  }
}

.group-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75px; /* Adjust as needed */
}
.group-thumbnail svg {
  width: 2em !important;
}
.house-icon {
  width: 64px;  /* Increase for larger icon */
  height: 64px;
  fill: #333;   /* Change color if desired */
}