@charset "UTF-8";

:root {
    --accent: #328889;
    --accent-dark: #286d6e;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg-gray: #F8F9FA;
    --tag-bg: #e9e9e9;
    --white: #ffffff;
    --radius-md: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 레이아웃 구성 */
.filterForm {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 22px;
	align-items: start;
}

/* 사이드바 필터 */
.searchArea {
	border-right: 1px solid #D5D5D5;
	background: #fff;
	overflow: hidden;
	padding: 14px;
}

.searchHead {
	background: #328889;
	color: #fff;
	font-weight: 500;
	padding: 5px 10px;
	font-size: 14px;
	text-align: center;
	margin-bottom: 10px;
}

.filterRow {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.filter {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.filter div {
	width: 180px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.filterRow--keyword {
	grid-template-columns: 1fr;
	margin-top: 12px;
}

.filterLabel {
	font-size: 14px;
	color: #666;
	margin-top: 10px;
}

.filterSelect {
	width: 100%;
	height: 40px;
	border: none;
	border-radius: 20px;
	padding: 0 10px;
	font-size: 14px;
	outline: none;
	background: #F8F9FA;
}

.keywordInput {
	width: 100%;
	height: 30px;
	border: none;
	background: #F8F9FA;
	border-radius: 15px;
	padding: 0 10px;
	font-size: 12px;
	outline: none;
}

.keywordBtn {
	width: 50px;
	height: 26px;
	border: none;
	border-radius: 13px;
	background: #328889;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	margin: 0 auto;
}

/* 결과 그리드 (2열) */
.cardGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.sortBox {
	width: 100%;
	padding: 20px;
	text-align: right;
}
.sortSelect {
	height: 32px;
	border: none;
	border-radius: 999px;
	padding: 0 12px;
	font-size: 12px;
	outline: none;
	background: #F8F9FA;
}

/* 코치 카드 컴포넌트 */
.classCard {
    padding:0;
  border-radius:14px;  /* index랑 동일 */
  border:1px solid #eee;
  overflow:hidden;
}

.classCard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.coachCard { cursor: pointer; }

.card-body { display:flex; gap:12px; margin-bottom: 0; padding:20px 17px;}
/* 프로필 (좌측) */
.profile-section { display:flex;
  flex-direction:column;
  align-items:center;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid #eee; }
.coach-thumb { width:60px;
  height:60px;
  border-radius: 50%;
  overflow:hidden;
  background:#f2f2f2;
  margin-bottom: 9px; }
.coach-thumb img { width:100%;
  height:100%;
  object-fit:cover;
  display:block; }
  .badge{
  font-size:13px;
  font-weight:600;
  color:#333;
}
  .name-rating{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.coach-name { font-size:17px;
  font-weight:800;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }
.coach-rating { font-size:12px;
  font-weight:500;
  display:flex;
  align-items:center;
  gap:1px; }

/* 태그 (우측) */

.right{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

.row{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap:10px;
}

.label{
  font-size:14px;
  font-weight:700;
  color:#222;
}

.tags{
  display:flex;
  flex-wrap: nowrap;
  gap:8px;
  align-items:center;
min-height: 28px;
  overflow:hidden;
  min-width:0;
}

.tag {
	max-width: 75px;
  font-size:14px;
  font-weight:600;
  padding:6px 10px;
  border-radius: 999px;
  background:#f1f7f7;
  color:#2f6f70 !important;
  white-space:nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 버튼 (하단) */
.card-footer { display: flex; gap: 10px; padding: 0 17px 17px 17px; }
.card-footer button { 
    flex: 1; height: 35px; border-radius: 20px; font-size: 14px; font-weight: 600; 
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.btn-chat { background: #fff; border: 1.5px solid var(--accent); color: #000; }
.btn-match { background: var(--accent); border: none; color: #fff; }
.btn-icon { width: 20px; height: 20px; margin-left: 3px; }

/* 반응형 */
@media (max-width: 1024px) {
    .filterForm { grid-template-columns: 1fr; }
    .searchArea { position: static; }
}
@media (max-width: 768px) {
    .cardGrid { grid-template-columns: 1fr; }
}
/* 페이징 스타일 */
#pageStr {
	display: flex;
    justify-content: center;
    margin-top: 20px;
}
#pageStr a {
    color: #328889;          
    text-decoration: none;   
    padding: 5px 10px;       
    border: 1px solid #ddd;  
    border-radius: 4px;      
    margin: 0 3px;           
    transition: all 0.2s;    
}


#pageStr a:hover {
    background-color: #328889;
    color: white;
    border-color: #328889;
}