@charset "utf-8";
/* ============================================================
   QOOQOOTV custom theme — modern, card-based, mobile-first
   Loaded after default.css, overrides the legacy fixed-width theme.
   ============================================================ */

:root {
  --wt-primary: #2563eb;
  --wt-primary-dark: #1d4ed8;
  --wt-primary-light: #60a5fa;
  --wt-ink: #111827;
  --wt-ink-soft: #4b5563;
  --wt-muted: #6b7280;
  --wt-bg: #f6f8fb;
  --wt-card: #ffffff;
  --wt-border: #e6e9ef;
  --wt-radius: 14px;
  --wt-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.06);
  --wt-shadow-hover: 0 8px 24px rgba(16, 24, 40, 0.10);
}

html, body {
  background: var(--wt-bg);
}
body, input, button, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo",
               "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 15px;
  color: var(--wt-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wt-ink); }
a:hover { color: var(--wt-primary); }

/* ---------- unlock fixed desktop-only widths ---------- */
#hd, #wrapper, #ft { min-width: 0; }
#hd_wrapper, #tnb .inner, #gnb .gnb_wrap, #container_wr, #ft_wr, #hd_pop {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
#container_wr { display: flex; flex-wrap: wrap; gap: 24px; padding-left: 20px; padding-right: 20px; }
#container { float: none; width: 100%; margin: 24px 0 0; min-height: 0; }
#aside { float: none; width: 100%; margin: 0 0 24px; padding: 0; }
@media (min-width: 960px) {
  #container_wr { flex-wrap: nowrap; align-items: flex-start; }
  #container { flex: 1 1 auto; width: auto; margin-top: 32px; }
  #aside { flex: 0 0 280px; width: 280px; margin: 32px 0 0; }
}

/* ---------- header ---------- */
#hd { background: var(--wt-card); border-bottom: 1px solid var(--wt-border); }
#tnb { border-bottom: 1px solid var(--wt-border); }
#hd_define li, #hd_qnb li { border-right-color: var(--wt-border); }
#hd_define li a { color: var(--wt-muted); }
#hd_define li.active a { color: var(--wt-primary); font-weight: 700; }
#hd_qnb li a { color: var(--wt-muted); }
#hd_qnb .visit .visit-num { background: var(--wt-primary); }

#hd_wrapper { height: auto; padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
#logo { float: none; padding: 0; }
#logo img { height: 34px; width: auto; display: block; }

.hd_sch_wr { float: none; width: auto; flex: 1 1 260px; max-width: 460px; margin-left: 0; padding: 0; }
#hd_sch { border-radius: 999px; border: 1px solid var(--wt-border); background: #f2f4f8; overflow: hidden; }
#hd_sch #sch_stx { float: left; width: calc(100% - 50px); height: 42px; padding-left: 16px; background: transparent; color: var(--wt-ink); border-radius: 0; font-size: 1em; }
#hd_sch #sch_submit { float: left; width: 50px; height: 42px; background: var(--wt-primary); color: #fff; border-radius: 0; }

/* GNB main nav */
#gnb { background: var(--wt-card); }
#gnb #gnb_1dul { border-bottom: 1px solid var(--wt-border); overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#gnb #gnb_1dul::-webkit-scrollbar { display: none; }
#gnb .gnb_1dli { float: none; display: inline-block; line-height: 50px; }
.gnb_1da { color: var(--wt-ink-soft); font-weight: 600; }
#gnb .gnb_1dli:hover > a { color: var(--wt-primary); }
#gnb .gnb_menu_btn { background: var(--wt-primary); border-radius: 8px; margin: 8px 8px 8px 0; height: 38px; width: 44px; }
.gnb_wrap .gnb_empty { padding: 14px 0; line-height: 1.4; font-size: 0.85em; color: var(--wt-muted); }
#gnb #gnb_1dul { min-height: 0; }
.gnb_wrap .gnb_empty a { color: var(--wt-primary); }


/* ---------- hero banner (index only) ---------- */
.home_hero {
  background: linear-gradient(135deg, var(--wt-primary) 0%, var(--wt-primary-dark) 100%);
  border-radius: var(--wt-radius);
  margin-top: 24px;
  padding: 40px 28px;
  color: #fff;
}
.home_hero_inner { max-width: 720px; }
.home_hero_title { font-size: 1.7em; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.home_hero_desc { font-size: 1.05em; color: rgba(255,255,255,0.88); line-height: 1.5; }
@media (max-width: 640px) {
  .home_hero { padding: 28px 20px; margin-top: 16px; }
  .home_hero_title { font-size: 1.4em; }
}

/* ---------- board section cards (homepage grid) ---------- */
.board_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}
.board_card {
  background: var(--wt-card);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 20px 20px 12px;
  box-shadow: var(--wt-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.board_card:hover { box-shadow: var(--wt-shadow-hover); transform: translateY(-2px); }

/* reskin the .lat widget to sit inside a card cleanly */
.board_card .lat { margin-bottom: 0; }
.board_card .lat .lat_title {
  font-size: 1.05em; font-weight: 800; color: var(--wt-ink);
  border-bottom: 2px solid var(--wt-primary); padding-bottom: 10px; line-height: 1.4;
}
.board_card .lat .lat_title a { color: var(--wt-ink); }
.board_card .lat ul { padding: 6px 0 0; }
.board_card .lat li { border-bottom: 1px dashed var(--wt-border); margin-bottom: 8px; padding-bottom: 8px; }
.board_card .lat li:last-child { border-bottom: 0; }
.board_card .lat li a { font-size: 0.98em; font-weight: 500; color: var(--wt-ink-soft); }
.board_card .lat li a:hover { color: var(--wt-primary); }
.board_card .lt_info { padding: 4px 0 0; font-size: 0.85em; color: var(--wt-muted); }
.board_card .lat .lt_more {
  position: static; display: block; width: auto; text-align: right;
  margin-top: 6px; color: var(--wt-primary); font-weight: 700; font-size: 0.85em;
}

/* legacy 3-col latest sections (top pic list / gallery), keep tidy if present */
.lt_wr { width: 100%; float: none; margin-bottom: 20px; }
.lt_wr:nth-child(3n+1) { clear: none; }
@media (min-width: 720px) {
  .lt_wr { width: 48%; float: left; }
  .lt_wr:nth-child(2n+1) { clear: both; margin-left: 0; }
  .lt_wr:nth-child(2n) { margin-left: 4%; }
}
@media (min-width: 1080px) {
  .lt_wr { width: 31.3%; }
  .lt_wr:nth-child(2n) { margin-left: 2%; }
  .lt_wr:nth-child(3n+1) { clear: both; margin-left: 0; }
  .lt_wr:nth-child(3n+2), .lt_wr:nth-child(3n) { margin-left: 2%; }
}

/* ---------- footer ---------- */
#ft { background: #14161a; }
#ft_wr { max-width: 1200px; padding: 36px 20px; }
#ft_wr .ft_cnt { width: 100%; float: none; padding: 0 0 24px; }
@media (min-width: 860px) {
  #ft_wr { display: flex; flex-wrap: wrap; gap: 24px; }
  #ft_wr .ft_cnt { width: auto; flex: 1 1 220px; padding: 0; }
}
#ft_link a { font-weight: 600; opacity: 0.85; }
#ft_link a:hover { opacity: 1; color: var(--wt-primary-light); }
#ft_company { color: #9aa1ac; }
#ft_copy { width: 100%; max-width: none; }

/* ---------- buttons / forms accent ---------- */
.btn_submit { background: var(--wt-primary); }
.btn_submit:hover { background: var(--wt-primary-dark); }
.pg_current { background: var(--wt-primary); border-color: var(--wt-primary); }
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  border-color: var(--wt-primary) !important;
}

/* ---------- board list / view tables: keep usable on small screens ---------- */
.tbl_wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .tbl_head01 td, .tbl_head01 th, .tbl_head02 td, .tbl_head02 th { font-size: 0.92em; padding: 8px 4px; }
}

/* ---------- misc mobile polish ---------- */
@media (max-width: 640px) {
  body, input, button, textarea, select { font-size: 14px; }
  #hd_wrapper { padding-top: 12px; padding-bottom: 12px; }
  #logo img { height: 28px; }
  .hd_sch_wr { order: 3; flex-basis: 100%; max-width: none; }
  #hd_define, #hd_qnb { display: none; }
  .board_grid { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .board_card { padding: 16px 16px 8px; }
}
