/* Light mode (default logo) */
.brand-logo {
  content: url("../assets/home_page/logo_light.png");
}

/* Dark mode logo swap */
[data-theme="dark"] .brand-logo {
  content: url("../assets/home_page/logo_dark.png");
}


.connect-wrap{
  padding: 26px 0 48px;
}

/* Header area */
.connect-head{
  margin-bottom: 10px;
}
.connect-title{
  margin: 0;
  font-size: 30px;
  letter-spacing: -.6px;
}
.connect-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
}

/* Screen-reader only labels */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Sticky filter bar */
.filter-bar{
  position: sticky;
  top: 72px;
  z-index: 20;

  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 10px;

  padding: 12px;
  margin: 14px 0 16px;

  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    var(--card),
    color-mix(in srgb, var(--card) 85%, var(--bg))
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}



/* Coach Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Coach Card (used by JS-driven results grid) */
.coach-card{
  border:1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
  transition: transform .12s ease, box-shadow .12s ease;
}

.coach-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(2,6,23,.10);
}

/* Top row: avatar + basic info (used by JS-driven results grid) */
.coach-top{
  display:flex;
  gap: 12px;
  align-items:center;
}

.coach-avatar{
  width: 70px;
  height: 70px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.coach-meta{
  min-width: 0;
}

.coach-name{
  margin: 0;
  font-weight: 950;
  letter-spacing: -.2px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.coach-name:hover{
  text-decoration: underline;
}

.coach-sub{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.coach-desc{
  margin: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions (used by JS-driven results grid) */
.coach-actions{
  display:flex;
  margin-top: 12px;
}

.coach-actions .btn{
  width: 100%;
}

/* Empty state */
.empty{
  text-align:center;
  padding: 40px 0 10px;
}

.hidden{ display:none !important; }

/* Responsive */
@media (max-width: 950px){
  .grid{ grid-template-columns: 1fr 1fr; }

  .filter-bar{
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar #clearFilters{
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px){
  .grid{ grid-template-columns: 1fr; }

  .filter-bar{
    grid-template-columns: 1fr;
    position: static;
  }
}

/* =========================
   Featured Coaches (STATIC)
   Only affects the featured section
   ========================= */

.featured-coaches{
  margin-top: 40px;
}

.coach-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
}

@media (max-width: 980px){
  .coach-cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .coach-cards-grid{ 
    grid-template-columns: 1fr;
  }
  .featured-coaches .coach-card{
    width: 100%;
    min-width: 0;
  }
  .featured-coaches .coach-card-link{
    height: 180px;
    width: 100%;
  }
  .featured-coaches .coach-avatar{
    width: 140px;
    height: 140px;
  }
}

/* Featured card layout: big centered image in top half */
.featured-coaches .coach-card{
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.featured-coaches .coach-card-link{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px; /* big top-half image area */
  padding: 14px;
}

.featured-coaches .coach-avatar{
  width: 170px;
  height: 170px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--border) 70%, transparent);
  display: block;
}

.featured-coaches .coach-card-body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.featured-coaches .coach-name{
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.featured-coaches .coach-name:hover{
  text-decoration: underline;
}

.featured-coaches .coach-meta{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.featured-coaches .coach-desc{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Button stays aligned even if text differs */
.featured-coaches .coach-connect-btn{
  width: 100%;
  margin-top: 10px;
}
