.filters-form {
    display: flex;
    flex-direction: column;
    width: 250px; /* fixed width sidebar */
    min-width: 250px;
}
.filter-group {
    margin-bottom: 15px;
}
.filter-group h4 {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}
/* Sidebar with filters */
.sidebar-filters {
    width: 100%; /* takes the width of its parent (.filters-form) */
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0px 10px 20px 10px; /* top, right, bottom, left */
}
.select2-hidden {
    visibility: hidden;
}
.coach-name-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    box-sizing: border-box; /* Make padding not overflow */
    height: 38px; /* Match Select2 height */
}

/* Targeting the ad-specific block */
.sidebar-filters.ad-spot {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7e57c2, #ab47bc);
  color: white;
  border: 2px dashed #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  animation: glow 2s infinite alternate;
  box-shadow: 0 0 20px rgba(126, 87, 194, 0.6);
  margin-top: 15px;
  margin-left: 10px;
}


/* Content inside the ad block */
.sidebar-filters.ad-spot .ad-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar-filters.ad-spot .ad-content p {
  margin: 5px 0;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* CTA button */
.sidebar-filters.ad-spot .cta-button {
  background: #fff;
  color: #7e57c2;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.sidebar-filters.ad-spot .cta-button:hover {
  background: #7e57c2;
  color: #fff;
  transform: scale(1.05);
}

/* Mobile dropdown */
.filters-toggle {
  display: none;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #0085CA;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .filters-toggle {
    display: block;
  }
  .filters-form {
    width: 100%;
    min-width: 0; /* prevent overflow on narrow screens */
  }
  .sidebar-filters {
    box-sizing: border-box; /* keep padding inside width */
  }
  .filters-form:not(.open) {
    display: none;
  }
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  .select2-container--open .select2-dropdown {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* prevent overflow */
  }
  .select2-container {
    width: 100% !important; /* keep inputs inside viewport */
  }
  .sidebar-filters.ad-spot {
    margin-left: 0; /* align ad block */
  }
}

/* Glow animation for extra pop */

