/* =========================================================
   아뜰리에치과 - 온라인 상담(contact) 전용 스타일
   :root 변수·헤더·푸터는 style.css 재사용. 1920 데스크탑 전용.
   컬러/사이즈 값은 Figma 시안(온라인 상담 페이지 103:540)에서 MCP로 읽어 확정.
   클래스 접두어: ct-
   ========================================================= */

/* 헤더 활성 메뉴 (현재 페이지: 온라인 상담) */
.gnb__link.is-active {
  color: var(--color-point);
}

/* =========================================================
   섹션 1: 서브 비주얼 배너 (section.relative) - Figma 103:1185
   1920×513, 헤더(80) 아래. 배경사진 + 텍스트 오버레이(시안 left645 top205).
   ========================================================= */
.ct-hero {
  position: relative;
  height: 513px;
  margin-top: var(--header-height);
  overflow: hidden;
}
.ct-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-hero__inner {
  position: absolute;
  left: 645px;
  top: 205px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.ct-hero__title {
  font-family: "Sorts Mill Goudy", serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 60px;
  color: var(--color-white);
  white-space: nowrap;
}
.ct-hero__sub {
  font-family: "Pretendard", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* =========================================================
   섹션 2: 상담 게시판 (div.inspection_page) - Figma 103:1193
   inner 1296(px20 → 1256). 상단(총건수+검색) / 목록 / 문의하기 / 페이지네이션.
   ========================================================= */
.ct-board {
  margin-top: 195px;        /* 시안: 히어로 하단(593)~게시판 상단(788) */
  overflow-x: hidden;
}
.ct-board__inner {
  width: 1296px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 상단: 총 건수 + 검색 */
.ct-board__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.ct-board__total {
  font-size: 17px;
  font-weight: 400;
  line-height: 28.9px;
  color: var(--color-text);   /* #3C3C3C */
}
.ct-board__total b {
  font-weight: 700;
  color: var(--color-point);  /* #D1BA9C */
}

/* 검색 (데모용 form 껍데기 — 전송 동작 없음) */
.ct-search {
  width: 324px;
}
.ct-search__box {
  display: flex;
  align-items: center;
  padding: 20.4px 34px;
  background: #fbf9f5;        /* 시안 Ecru White #FBF9F5 */
  border-radius: 50px;
}
.ct-search__input {
  flex: 1 0 0;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  line-height: normal;
  color: var(--color-text);
  outline: none;
}
.ct-search__input::placeholder {
  color: #6e6e6e;            /* 시안 Dove Gray #6E6E6E */
  font-weight: 300;
}
.ct-search__btn {
  flex-shrink: 0;
  padding: 0 0 0 17px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* 상담 목록 (시안: 행 h90, 상단 구분선 #CCD2DD) */
.ct-list {
  margin-top: 30px;          /* 시안: 상단 바~목록 간격 */
}
.ct-list__row {
  display: flex;
  align-items: center;
  height: 90px;
  padding: 0 36px;
  border-top: 1px solid #ccd2dd;   /* 시안 Mischka #CCD2DD */
}
.ct-list__tit {
  flex: 1 0 0;
  min-width: 0;
  padding-right: 45px;
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-list__author,
.ct-list__date {
  flex-shrink: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;          /* Medium */
  line-height: 25.5px;
  color: #bababa;            /* 시안 Silver #BABABA */
}
.ct-list__author { width: 120px; }
.ct-list__date { width: 105px; }

/* 상태 뱃지 (시안: 우측정렬 알약, 포인트색) */
.ct-list__state {
  flex-shrink: 0;
  width: 98.5px;
  display: flex;
  justify-content: flex-end;
}
.ct-list__badge {
  width: 71.5px;
  height: 28.59px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-point);   /* #D1BA9C */
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;          /* Medium */
  color: var(--color-white);
}

/* 문의하기 버튼 (시안: 검정 테두리 알약) */
.ct-btnbox {
  margin-top: 27px;          /* 시안: 목록 하단~버튼 간격 */
  display: flex;
  justify-content: flex-end;
}
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 19px 31px;
  border: 1px solid #232323;   /* 시안 Mine Shaft #232323 */
  border-radius: 30px;
  font-size: 15px;
  font-weight: 400;
  line-height: 15px;
  color: var(--color-text);
}

/* 페이지네이션 (시안: pt54, 중앙정렬) */
.ct-pagination {
  margin-top: 27px;          /* 시안: 버튼 하단~페이지네이션 간격 */
  padding-top: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-page-first,
.ct-page-prev,
.ct-page-next,
.ct-page-last {
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
}
.ct-page-first,
.ct-page-last {
  opacity: 0.4;              /* 시안: 처음/마지막 40% */
}
.ct-page-prev { margin-left: 18px; }
.ct-page-next { margin-right: 18px; }
.ct-page-list {
  display: flex;
  gap: 4.5px;
  margin: 0 22.5px;
}
.ct-page-num {
  width: 41.64px;
  height: 41.64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
}
.ct-page-num.is-active {
  background: var(--color-point);   /* #D1BA9C */
  color: var(--color-white);
  font-weight: 700;
}

/* 푸터: 게시판 하단~푸터 간격 (시안 y기준) */
.footer {
  margin-top: 234px;
}

/* =========================================================
   모바일 반응형 (≤768px) — contact (ct-)
   ========================================================= */
@media (max-width: 768px) {
  /* 히어로 */
  .ct-hero {
    height: 360px;
  }
  .ct-hero__inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    padding: 0 20px;
  }
  .ct-hero__title {
    font-size: 34px;
    line-height: 1.2;
    white-space: normal;
  }
  .ct-hero__sub {
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }

  /* 게시판 */
  .ct-board {
    margin-top: 56px;
  }
  .ct-board__inner {
    width: 100%;
  }
  /* 상단: 총건수 + 검색 → 세로 스택 */
  .ct-board__top {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .ct-search {
    width: 100%;
  }
  .ct-search__box {
    padding: 14px 20px;
  }
  .ct-search__input {
    font-size: 15px;
  }

  /* 목록: 작성자·날짜 숨기고 제목+상태만 */
  .ct-list__row {
    height: auto;
    padding: 16px 8px;
  }
  .ct-list__tit {
    padding-right: 14px;
    font-size: 16px;
    line-height: 1.4;
  }
  .ct-list__author,
  .ct-list__date {
    display: none;
  }
  .ct-list__state {
    width: auto;
  }

  /* 문의 버튼 */
  .ct-btn {
    padding: 14px 22px;
  }

  /* 페이지네이션 축소 */
  .ct-pagination {
    padding-top: 36px;
  }
  .ct-page-num {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .ct-page-list {
    margin: 0 8px;
    gap: 2px;
  }
  .ct-page-prev {
    margin-left: 8px;
  }
  .ct-page-next {
    margin-right: 8px;
  }

  /* 푸터 간격 축소 */
  .footer {
    margin-top: 56px;
  }
}
