/* ==========================================================================
   보험드림 (BohumDream) - Modern CSS
   ========================================================================== */
:root {
  --navy: #0f1e3a;
  --navy-2: #1a2f54;
  --red: #e11d48;
  --red-2: #be123c;
  --yellow: #facc15;
  --blue: #0ea5e9;
  --green: #10b981;
  --bg: #f6f7fb;
  --white: #fff;
  --gray-50: #f9fafb;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(15,30,58,0.06);
  --shadow-lg: 0 8px 24px rgba(15,30,58,0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--red); }
img { max-width: 100%; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* === Top bar === */
.topbar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  padding: 9px 0;
  letter-spacing: -0.2px;
}
.topbar strong { color: var(--yellow); }

/* === Header === */
.header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: 'Black Han Sans', 'Pretendard', sans-serif;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -1.5px;
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}
.logo span { color: var(--red); }
.logo small {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 600;
  margin-left: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.search-box {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.search-box form { position: relative; }
.search-box input {
  width: 100%;
  height: 46px;
  border: 2px solid var(--gray-200);
  padding: 0 50px 0 18px;
  font-size: 14px;
  border-radius: 999px;
  background: var(--gray-50);
  transition: all 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}
.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  transition: background 0.15s;
}
.search-box button:hover { background: var(--red); }

.header-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-cta a {
  font-size: 12.5px;
  color: var(--gray-600);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  font-weight: 500;
}
.header-cta a:hover { background: var(--gray-100); color: var(--navy); }
.header-cta a.primary {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 9px 18px;
}
.header-cta a.primary:hover { background: var(--red-2); }
.header-cta .user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 12.5px;
}
.header-cta .user-info .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* === GNB === */
.gnb {
  background: var(--navy);
  border-bottom: 3px solid var(--red);
}
.gnb-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.gnb a {
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.15s;
}
.gnb a.hot::after {
  content: "HOT";
  position: absolute;
  top: 6px;
  right: 4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.gnb a:hover { color: var(--yellow); }
.gnb a.active {
  background: rgba(255,255,255,0.08);
  color: var(--yellow);
  font-weight: 700;
}

/* === Layout === */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 12px;
  color: var(--gray-500);
}
.breadcrumb a { margin: 0 4px; }
.breadcrumb a:first-child { margin-left: 0; }

.main-wrap {
  max-width: var(--container);
  margin: 20px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 24px;
}

/* === Sidebar (LNB) === */
.side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-box {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.side-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-cat li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--gray-700);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.side-cat li a:hover {
  background: var(--gray-50);
  color: var(--navy);
}
.side-cat li a.active {
  background: linear-gradient(90deg, rgba(225,29,72,0.06), transparent);
  color: var(--red);
  border-left-color: var(--red);
  font-weight: 700;
}
.side-cat .icon { font-size: 16px; }

.side-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
  color: #fff;
  padding: 22px 18px;
  text-align: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.side-banner::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.side-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  position: relative;
}
.side-banner small {
  font-size: 11.5px;
  opacity: 0.9;
  display: block;
  margin-bottom: 12px;
  line-height: 1.5;
}
.side-banner .btn {
  background: #fff;
  color: var(--red);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-block;
  position: relative;
}

.side-stats {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.side-stats h3 {
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}
.side-stats .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  color: var(--gray-600);
}
.side-stats .row strong {
  color: var(--red);
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
}

/* === Content === */
.content { min-width: 0; }

/* === Hero === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #2d4373 100%);
  color: #fff;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(250,204,21,0.18), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(225,29,72,0.18), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-family:  'Pretendard', sans-serif;
  font-size: 36px;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero h1 .accent { color: var(--yellow); }
.hero p {
  font-size: 14px;
  opacity: 0.88;
  margin-bottom: 20px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btns a {
  background: var(--red);
  color: #fff;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s;
}
.hero-btns a:hover { background: var(--red-2); transform: translateY(-1px); }
.hero-btns a.alt {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.hero-btns a.alt:hover { background: rgba(255,255,255,0.25); }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  padding: 18px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.hero-stat .num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 36px;
  color: var(--yellow);
  letter-spacing: -1px;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label { font-size: 11.5px; opacity: 0.85; }

/* === Section === */
.section {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--gray-100);
}
.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head .more {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}
.section-head .more::after { content: " →"; }
.section-head .more:hover { color: var(--red); }
.section-body { padding: 20px 22px; }

/* === Article Card (with image) === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.article-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--gray-100);
  transition: all 0.2s;
  overflow: hidden;
}
.article-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.article-card .thumb {
  width: 110px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .thumb img { transform: scale(1.08); }
.article-card .thumb .emoji-overlay {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255,255,255,0.95);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.article-card .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.article-card .cat-tag {
  display: inline-block;
  background: rgba(225,29,72,0.08);
  color: var(--red);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 6px;
}
.article-card .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-card .summary {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
}
.article-card .meta {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: auto;
}

/* === News list (with thumbnail) === */
.news-list { list-style: none; }
.news-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.news-list li:last-child { border-bottom: none; }
.news-list .thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.news-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list .info { flex: 1; min-width: 0; }
.news-list .source {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-weight: 600;
}
.news-list .news-title {
  font-size: 13px;
  color: var(--gray-800);
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list .date {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  display: block;
}

/* === Rank list === */
.rank-list { list-style: none; }
.rank-list li {
  display: flex;
  align-items: center;
  padding: 9px 0;
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.rank-list li:last-child { border-bottom: none; }
.rank-list .num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 14px;
  color: var(--red);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.rank-list .num.gray { color: var(--gray-400); }
.rank-list .title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-800);
}
.rank-list .title:hover { color: var(--red); }
.rank-list .meta { font-size: 11px; color: var(--gray-400); flex-shrink: 0; }
.rank-list .cmt {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  margin-left: 4px;
}

/* === Category cards grid === */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.2s;
}
.cat-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}
.cat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.cat-card-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-card-head .more {
  font-size: 11px;
  color: var(--gray-500);
}
.cat-card-body { padding: 6px 16px; }
.cat-card-body li {
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cat-card-body li:last-child { border-bottom: none; }
.cat-card-body .ti {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-700);
}
.cat-card-body .ti:hover { color: var(--red); }
.cat-card-body .cmt {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}

/* 2 column layout helper */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.best-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

/* === Right sidebar === */
.rnb-search { list-style: none; }
.rnb-search li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  align-items: center;
}
.rnb-search .num {
  font-family: 'Black Han Sans', sans-serif;
  color: var(--red);
  font-size: 14px;
  width: 18px;
}
.rnb-search .num.gray { color: var(--gray-400); }
.rnb-search .ti { color: var(--gray-700); flex: 1; }
.rnb-search .ti:hover { color: var(--red); }
.rnb-search .up { color: var(--red); font-size: 10px; }
.rnb-search .down { color: var(--blue); font-size: 10px; }

.rnb-ad {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.rnb-ad strong {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}
.rnb-ad small {
  font-size: 11.5px;
  color: var(--gray-600);
  display: block;
  margin-bottom: 10px;
  line-height: 1.5;
}
.rnb-ad a {
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-block;
}
.rnb-ad a:hover { background: var(--red-2); color: #fff; }

.rnb-contact {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius);
}
.rnb-contact small {
  font-size: 11px;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}
.rnb-contact strong {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 24px;
  color: var(--yellow);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 4px;
}
.rnb-contact p { font-size: 11px; opacity: 0.7; }

/* === Board === */
.board-head {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.board-head h1 {
  font-size: 22px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-head p {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

.board-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.board-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: radial-gradient(circle at right, rgba(250,204,21,0.18), transparent 70%);
}
.board-banner h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-banner p {
  font-size: 13.5px;
  opacity: 0.85;
}

.filter-bar {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--gray-200);
  border-bottom: none;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-bar .filters { display: flex; gap: 6px; }
.filter-bar .filters a {
  font-size: 12.5px;
  color: var(--gray-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.filter-bar .filters a.active {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.filter-bar .write-btn {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-bar .write-btn:hover { background: var(--red-2); color: #fff; }

.board-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-collapse: collapse;
  font-size: 13px;
}
.board-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}
.board-table th {
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: -0.3px;
}
.board-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
}
.board-table tbody tr:hover { background: var(--gray-50); }
.board-table tbody tr.notice {
  background: linear-gradient(90deg, #fef3c7, #fef9c3);
}
.board-table tbody tr.notice:hover { background: #fef3c7; }
.board-table td {
  padding: 11px 8px;
  vertical-align: middle;
}
.board-table .num-col { width: 60px; text-align: center; color: var(--gray-400); font-size: 12px; }
.board-table .cat-col { width: 80px; text-align: center; }
.board-table .author-col { width: 110px; text-align: center; color: var(--gray-600); }
.board-table .date-col { width: 70px; text-align: center; color: var(--gray-500); font-size: 11.5px; }
.board-table .views-col { width: 60px; text-align: center; color: var(--gray-500); font-size: 11.5px; }
.board-table .likes-col { width: 60px; text-align: center; color: var(--red); font-size: 11.5px; font-weight: 700; }
.board-table .cat-tag {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.board-table .cat-tag.notice {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.board-table .post-title {
  color: var(--gray-800);
  font-weight: 500;
}
.board-table .post-title:hover { color: var(--red); }
.board-table .cmt {
  color: var(--red);
  font-weight: 700;
  font-size: 11.5px;
  margin-left: 4px;
}
.board-table .hot {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}
.board-table .new {
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-size: 12.5px;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  font-weight: 700;
}

/* === Post detail === */
.post-wrap {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.post-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.post-head .cat-tag {
  display: inline-block;
  background: rgba(225,29,72,0.08);
  color: var(--red);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
}
.post-head h1 {
  font-size: 24px;
  color: var(--gray-900);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.post-head .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--gray-500);
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.post-head .meta .left { display: flex; align-items: center; gap: 14px; }
.post-head .meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
}
.post-head .meta .author .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
}
.post-head .meta .right span { margin-left: 14px; }
.post-head .meta .right strong { color: var(--gray-700); }

.post-body {
  padding: 30px 32px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--gray-800);
  min-height: 200px;
}
.post-body p { margin-bottom: 14px; }
.post-body h2 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 800;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
  letter-spacing: -0.3px;
}
.post-body h3 {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
  margin: 20px 0 10px;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.post-body table, .article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.post-body th, .article-body th {
  background: var(--gray-50);
  padding: 10px 12px;
  border-bottom: 2px solid var(--gray-200);
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}
.post-body td, .article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
}
.post-body tr:last-child td, .article-body tr:last-child td { border-bottom: none; }
.post-body blockquote, .article-body blockquote {
  background: var(--gray-50);
  border-left: 4px solid var(--red);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  color: var(--gray-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-body ul, .post-body ol, .article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.post-body ul li, .article-body ul li { list-style: disc; margin-bottom: 6px; }
.post-body ol li, .article-body ol li { list-style: decimal; margin-bottom: 6px; }
.post-body strong, .article-body strong { color: var(--navy); font-weight: 700; }
.post-body code, .article-body code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--red);
}

.post-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.like-btn {
  background: #fff;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 12px 28px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.like-btn:hover {
  background: var(--red);
  color: #fff;
}
.like-btn.outline {
  border-color: var(--gray-300);
  color: var(--gray-600);
}
.like-btn.outline:hover {
  background: var(--gray-700);
  color: #fff;
  border-color: var(--gray-700);
}
.like-count {
  display: inline-block;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 17px;
}

/* === Comments === */
.comments {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.comments-head {
  padding: 16px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.comments-head .count {
  color: var(--red);
  font-family: 'Black Han Sans', sans-serif;
}
.comment-list { padding: 0 24px; }
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.comment-item:last-child { border-bottom: none; }
.comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  align-items: center;
}
.comment-meta .author {
  color: var(--navy);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.comment-meta .author .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
}
.comment-meta .date { color: var(--gray-400); font-size: 11.5px; }
.comment-text {
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.6;
  padding-left: 28px;
}

.comment-form {
  padding: 20px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.comment-form .login-prompt {
  text-align: center;
  padding: 20px;
  color: var(--gray-500);
  font-size: 13px;
}
.comment-form .login-prompt a {
  color: var(--red);
  font-weight: 700;
}
.comment-form textarea {
  width: 100%;
  height: 80px;
  border: 1px solid var(--gray-200);
  padding: 12px 14px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  resize: vertical;
  margin-bottom: 10px;
  background: #fff;
}
.comment-form textarea:focus { outline: none; border-color: var(--navy); }
.comment-form button {
  background: var(--navy);
  color: #fff;
  padding: 10px 24px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  float: right;
}
.comment-form button:hover { background: var(--navy-2); }
.comment-form::after { content: ''; display: block; clear: both; }

/* === Prev/Next === */
.prev-next {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.prev-next > div {
  display: flex;
  padding: 12px 22px;
  font-size: 13px;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
}
.prev-next > div:last-child { border-bottom: none; }
.prev-next .label {
  flex: 0 0 80px;
  color: var(--gray-500);
  font-weight: 700;
}
.prev-next .ti { color: var(--gray-700); }
.prev-next .ti:hover { color: var(--red); }

/* === Related === */
.related {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.related h3 {
  padding: 14px 22px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}
.related ul { padding: 8px 22px; }
.related li {
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 10px;
}
.related li:last-child { border-bottom: none; }
.related .ti { flex: 1; color: var(--gray-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related .ti:hover { color: var(--red); }
.related .meta { color: var(--gray-400); flex-shrink: 0; font-size: 11.5px; }

/* === Write form === */
.write-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.write-form .row { margin-bottom: 16px; }
.write-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.write-form input[type=text],
.write-form select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border 0.15s;
}
.write-form input:focus, .write-form select:focus, .write-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.write-form textarea {
  width: 100%;
  height: 320px;
  border: 1px solid var(--gray-200);
  padding: 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  resize: vertical;
  line-height: 1.7;
}
.write-form .btn-row {
  text-align: right;
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.write-form button, .write-form .cancel {
  padding: 12px 32px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.write-form button {
  background: var(--red);
  color: #fff;
}
.write-form button:hover { background: var(--red-2); }
.write-form .cancel {
  background: var(--gray-100);
  color: var(--gray-600);
}
.write-form .cancel:hover { background: var(--gray-200); }

/* === Article detail === */
.article-wrap {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.article-hero {
  position: relative;
  height: 280px;
  background: var(--gray-200);
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,30,58,0.1) 0%, rgba(15,30,58,0.85) 100%);
}
.article-hero .hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: #fff;
  z-index: 1;
}
.article-hero .cat-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.article-hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.article-hero .meta {
  font-size: 12.5px;
  opacity: 0.9;
}
.article-hero .meta span { margin-right: 14px; }
.article-hero .meta strong { color: var(--yellow); }

.article-summary {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  padding: 18px 24px;
  border-left: 4px solid var(--yellow);
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
}
.article-body {
  padding: 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-800);
}

/* === Footer === */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 36px 0 44px;
  margin-top: 60px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.foot-links {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 20px;
}
.foot-links a {
  font-size: 12.5px;
  margin-right: 22px;
  color: var(--gray-300);
}
.foot-links a:hover { color: var(--yellow); }
.foot-links a.highlight { color: var(--yellow); font-weight: 700; }
.foot-info {
  font-size: 11.5px;
  line-height: 1.8;
}
.foot-info strong {
  color: #fff;
  font-size: 13.5px;
  display: block;
  margin-bottom: 8px;
}
.foot-disclaimer {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--gray-400);
}
.foot-disclaimer strong { color: var(--yellow); }
.foot-copyright {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--gray-500);
}

/* === Login / Register === */
.auth-wrap {
  max-width: 480px;
  margin: 40px auto 80px;
  padding: 0 20px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo {
  font-size: 36px;
  justify-content: center;
}
.auth-card h2 {
  font-size: 22px;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.auth-card .sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-form .field { margin-bottom: 14px; }
.auth-form label {
  display: block;
  font-size: 12.5px;
  color: var(--gray-700);
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  padding: 0 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border 0.15s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,30,58,0.08);
}
.auth-form .help {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 4px;
}
.btn-primary {
  width: 100%;
  height: 50px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy-2); }
.btn-primary.red {
  background: var(--red);
}
.btn-primary.red:hover { background: var(--red-2); }

.auth-divider {
  text-align: center;
  margin: 24px 0 18px;
  font-size: 12px;
  color: var(--gray-400);
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.auth-social a {
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.auth-social .kakao { background: #fee500; color: #000; }
.auth-social .naver { background: #03c75a; color: #fff; }
.auth-social .pass { background: #0078d4; color: #fff; }

.auth-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-500);
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.auth-footer a {
  color: var(--red);
  font-weight: 700;
  margin-left: 4px;
}

.test-account {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--gray-600);
  margin-top: 20px;
}
.test-account strong { color: var(--navy); }

/* === Mypage === */
.mypage-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}
.mypage-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 30px;
  color: #fff;
  flex-shrink: 0;
}
.mypage-info h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.mypage-info .username { font-size: 13px; opacity: 0.8; margin-bottom: 8px; }
.mypage-stats {
  display: flex;
  gap: 20px;
  font-size: 12.5px;
  opacity: 0.9;
}
.mypage-stats div strong {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 18px;
  color: var(--yellow);
  margin-right: 4px;
}

/* === Search === */
.search-head {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.search-head h1 {
  font-size: 19px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.search-head h1 .keyword { color: var(--red); }
.search-head p { font-size: 13px; color: var(--gray-500); margin-top: 6px; }

/* === Flash === */
.flash-wrap {
  max-width: var(--container);
  margin: 16px auto 0;
  padding: 0 20px;
}
.flash-msg {
  padding: 12px 18px;
  margin-bottom: 8px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash-msg.success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.flash-msg.error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .main-wrap { grid-template-columns: 200px 1fr; }
  .main-wrap aside.rnb { display: none; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .gnb-inner { overflow-x: auto; padding: 0 16px; }
  .gnb a { padding: 12px 14px; font-size: 13px; white-space: nowrap; }
  .main-wrap { grid-template-columns: 1fr; padding: 0 16px; gap: 16px; }
  .main-wrap aside.side { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 26px; }
  .hero { padding: 28px 22px; }
  .articles-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .best-2col { grid-template-columns: 1fr; }
  .board-table .author-col, .board-table .likes-col { display: none; }
  .post-head { padding: 22px 18px 16px; }
  .post-body { padding: 22px 18px; }
  .article-body { padding: 22px 18px; }
  .auth-card { padding: 32px 24px; }
}
