/* ============================================================================
   CWTTA 메인 사이트 디자인 리프레시 (벤치마킹 스타일 적용)
   기존 default.css/custom.css 위에 덧입혀지는 오버라이드 레이어
   ============================================================================ */

:root {
  --cwt-primary: #ea580c;
  --cwt-primary-dark: #c2410c;
  --cwt-primary-soft: #fff7ed;
  --cwt-accent: #0f766e;
  --cwt-text: #0f172a;
  --cwt-text-muted: #64748b;
  --cwt-bg: #f8fafc;
  --cwt-border: #e2e8f0;
  --cwt-card-shadow: 0 4px 16px rgba(15,23,42,0.06);
  --cwt-card-shadow-hover: 0 10px 30px rgba(15,23,42,0.10);
  --cwt-radius: 14px;
}

/* 본문 폰트 업그레이드 */
body, html {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* GNB 상단 네비 두꺼운 폰트 */
#gnb_1dul .gnb_1da {
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: -0.3px;
}

#gnb_1dul .gnb_1da.on {
  color: var(--cwt-primary) !important;
}

/* 페이지 제목 큼직하게 */
.sub_title h1,
.sub_visual h1,
.page_title,
h2.title,
h1.tit {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  line-height: 1.2 !important;
}

/* 게시판 리스트를 카드처럼 보이게 */
.bo_w_btn, .bo_v_top {
  border-radius: var(--cwt-radius);
}

/* 게시판 항목 호버 효과 강화 */
table.bo_list tr:hover td {
  background: var(--cwt-primary-soft) !important;
  transition: background .15s ease;
}

/* 버튼 모던화 */
.btn, .btn_b, button.btn, .btn_submit, .btn_confirm {
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  transition: all .15s ease !important;
}

.btn_submit, .btn_confirm {
  background: var(--cwt-primary) !important;
  border-color: var(--cwt-primary) !important;
}

.btn_submit:hover, .btn_confirm:hover {
  background: var(--cwt-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}

/* 메인 슬라이드/배너 카드화 */
.main_visual, .main_slide, .main_banner {
  border-radius: var(--cwt-radius);
  overflow: hidden;
}

/* 메인 위젯/박스 카드형 */
.main_box,
.contents_box,
.tbl_wrap > .tbl_head,
.section,
.section_box {
  background: #fff;
  border-radius: var(--cwt-radius);
  box-shadow: var(--cwt-card-shadow);
  transition: box-shadow .2s ease, transform .15s ease;
}

.main_box:hover, .section_box:hover {
  box-shadow: var(--cwt-card-shadow-hover);
}

/* 표 헤더 모던화 */
table.bo_list thead th,
.bo_list_head, .bo_list_head th {
  background: #f1f5f9 !important;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* 링크 호버 컬러 */
a:hover {
  transition: color .15s ease;
}

/* 푸터 모던화 */
#ft, #footer, .footer {
  background: #1f2937 !important;
  color: #cbd5e1 !important;
  padding: 40px 20px !important;
  font-size: 14px;
}

#ft a, #footer a {
  color: #e2e8f0 !important;
}

/* 회비/공지 등 게시판 페이지 헤더 강화 */
#bo_v_title, .bo_v_tit {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
  padding: 20px 0 !important;
  border-bottom: 2px solid var(--cwt-text) !important;
}

/* 모바일 친화 */
@media (max-width: 768px) {
  .sub_title h1, .sub_visual h1, .page_title { font-size: 26px !important; }
  #bo_v_title { font-size: 20px !important; }
}

/* 토너먼트 모듈이 메인 사이트 안에서 표시될 때 약간의 여백 보정 */
.cwt-container {
  background: var(--cwt-bg);
  padding: 40px 24px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
}

/* GNB 위 위치 강화 */
#hd, .header, header {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 검색바 등 input 미려화 */
input[type=text], input[type=search], input[type=email], input[type=password], textarea, select {
  border-radius: 8px;
  border: 1px solid var(--cwt-border);
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}

input[type=text]:focus, input[type=search]:focus, input[type=email]:focus, input[type=password]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cwt-primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

/* 카드 그리드 유틸리티 */
.cwt-renew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.cwt-renew-card {
  background: #fff;
  border-radius: var(--cwt-radius);
  padding: 24px;
  box-shadow: var(--cwt-card-shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  border: 1px solid var(--cwt-border);
}
.cwt-renew-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cwt-card-shadow-hover);
  border-color: var(--cwt-primary);
}
