@charset "UTF-8";
/*! Value Blog Skin - Blue #3b50b5 / Orange #F97316 Theme */

/* ===== CSS Variables ===== */
:root {
  --brand-primary: #3b50b5;
  --brand-primary-light: #5B72D0;
  --brand-primary-dark: #2a3d8f;
  --brand-primary-bg: #eef0f9;
  --brand-accent: #F97316;
  --brand-accent-light: #FB923C;
  --brand-accent-dark: #EA580C;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-tertiary: #888;
  --text-muted: #aaa;
  --bg-white: #ffffff;
  --bg-light: #f8f9fc;
  --bg-card: #ffffff;
  --border-color: #e2e5f1;
  --border-light: #eef0f5;
  --shadow-sm: 0 1px 3px rgba(59, 80, 181, 0.08);
  --shadow-md: 0 4px 12px rgba(59, 80, 181, 0.1);
  --shadow-lg: 0 8px 24px rgba(59, 80, 181, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
}

/* ===== Reset / Normalize ===== */
.clearfix { content: ""; clear: both; display: table; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1 { font-size: 2em; margin: 0.67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: 'JetBrains Mono', monospace; font-size: 1em; }
a { background-color: transparent; }
abbr[title] { border-bottom: none; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: 'JetBrains Mono', monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; outline: none; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }

/* ===== Common ===== */
article, aside, canvas, details, figcaption, figure, footer, header, main, nav, section, summary { display: block; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-white);
  color: var(--text-primary);
}

.blind {
  position: absolute; overflow: hidden; clip: rect(0 0 0 0);
  margin: -1px; width: 1px; height: 1px;
}

html, body { position: relative; height: 100%; -webkit-text-size-adjust: 100%; }
html { box-sizing: border-box; background: var(--bg-white); }
*, *:before, *:after { box-sizing: inherit; }

#wrap { position: relative; overflow: hidden; background: var(--bg-white); }

/* ===== Header ===== */
.header {
  position: relative;
  width: 100%;
  background: var(--bg-white);
  border-bottom: 2px solid var(--brand-primary);
  z-index: 10;
  transition: top 0.2s ease-in-out;
}

.header .inner-header {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .title-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 20px 0;
}

.header .link_logo {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-primary);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  min-height: 22px;
  letter-spacing: -0.5px;
}

.header .link_logo .logo-text {
  position: relative;
  display: inline-block;
  color: transparent;
}

/* 뒤쪽 레이어: 하드 그림자 (입체감) */
.header .link_logo .logo-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: #3b50b5;
  text-shadow:
    1px 1px 0px #2d3e8f,
    2px 2px 0px rgba(45, 62, 143, 0.4);
  z-index: 0;
  pointer-events: none;
}

/* 앞쪽 레이어: 그라데이션 + 샤인 애니메이션 */
.header .link_logo .logo-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(
    110deg,
    #3b50b5 0%,
    #5a6fc7 25%,
    #F97316 50%,
    #5a6fc7 75%,
    #3b50b5 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brandShine 5s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes brandShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.header .link_logo img { max-height: 24px; }

.header .box-log { position: absolute; top: -1px; right: 0; }

.header .button-menu {
  display: none;
  position: absolute;
  top: 14px;
  right: 20px;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 1;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.header .button-menu:hover {
  background: var(--brand-primary-bg);
}

/* Slogan */
.header .area-slogun {
  padding-top: 28px;
  padding-bottom: 30px;
}

.header .area-slogun strong {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 82px;
  overflow: hidden;
  white-space: normal;
  word-break: keep-all;
  letter-spacing: -1px;
}

.header .area-slogun p {
  width: 500px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
  word-break: keep-all;
}

/* Navigation */
.header .area-gnb .topnavnone { display: none; }
.header .tt_category { margin: 0; padding: 0; }
.header .tt_category ul { padding: 0; list-style: none; }
.header .tt_category li { list-style: none; margin: 0; padding: 0; }
.header .tt_category .link_tit { display: none; }

.header .tt_category .category_list,
.header .topnavmenu>ul {
  font-size: 0;
  text-align: left;
  margin: 0;
  margin-bottom: -2px;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.header .tt_category .category_list li,
.header .topnavmenu>ul>li {
  display: inline-block;
  margin-right: 40px;
}

.header .tt_category .category_list li:last-child,
.header .topnavmenu>ul>li:last-child { margin-right: 0; }

.header .tt_category .category_list .link_item,
.header .topnavmenu>ul>li>a {
  position: relative;
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-decoration: none;
  white-space: nowrap;
  padding: 16px 0;
  transition: color 0.2s;
  z-index: 2;
}

.header .tt_category .category_list .link_item:hover,
.header .topnavmenu>ul>li>a:hover {
  color: var(--brand-primary) !important;
}

.header .tt_category .category_list .c_cnt { display: none; }

/* Nav hover underline */
@media screen and (min-width: 1061px) {
  .header .tt_category .category_list>li:hover>a:after,
  .header .topnavmenu>ul>li:hover>a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-accent);
    border-radius: 3px 3px 0 0;
    z-index: 1;
  }

  .header .category_list li:hover .sub_category_list { display: flex; }

  .header .tt_category .category_list .sub_category_list {
    position: absolute;
    display: none;
    top: 258px;
    left: 0;
    width: 100%;
    height: 94px;
    padding-top: 36px;
    font-size: 13px;
    color: var(--text-primary);
    z-index: 100;
  }

  .header .tt_category .category_list .sub_category_list:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 94px;
    margin-left: -50vw;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    z-index: -1;
  }

  .header .link_sub_item {
    font-size: 13px;
    text-decoration: none;
    color: var(--text-secondary);
  }

  .header .link_sub_item:hover {
    color: var(--brand-primary);
    text-decoration: underline;
  }

  .wrap-right .header .category_list>li,
  .wrap-right .header .t_menu_home,
  .wrap-right .header .t_menu_guestbook,
  .wrap-right .header .t_menu_tag,
  .wrap-right .header .t_menu_link_1,
  .wrap-right .header .t_menu_category {
    padding: 28px 0;
  }
}

/* ===== Layout: wrap-right (2-column) ===== */
@media screen and (min-width: 1061px) {
  .wrap-right .main { display: flex; justify-content: space-between; }
  .wrap-right .area-aside { margin: 32px 0 0 60px; }
}

/* ===== Layout: wrap-drawer (1-column) ===== */
@media screen and (min-width: 1061px) {
  .wrap-drawer .header { padding-top: 80px; border-bottom: 2px solid var(--brand-primary); }
  .wrap-drawer .header.border-none { border-bottom: none; }
  .wrap-drawer .header .inner-header { position: initial; max-width: 780px; }
  .wrap-drawer .header .title-logo { position: absolute; top: -1px; left: 80px; }
  .wrap-drawer .header .area-align { display: flex; flex-wrap: wrap; flex-direction: column-reverse; }
  .wrap-drawer .header .area-slogun { width: 780px; margin: 30px 0 -3px 0; }
  .wrap-drawer .header .area-gnb { position: absolute; top: 31px; width: 100%; max-width: 780px; }
  .wrap-drawer .header .area-gnb>nav>ul { text-align: center; }
  .wrap-drawer .header .tt_category .category_list { text-align: center; }
  .wrap-drawer .header .button-menu { display: block; }
  .wrap-drawer .header .box-log { display: none; }
  .wrap-drawer .area-main { max-width: 780px; margin: 0 auto; }
  .wrap-drawer .area-promotion .inner-promotion { max-width: 780px; }

  .wrap-drawer .area-aside {
    position: fixed;
    top: 0;
    right: -381px;
    width: 381px;
    height: 100%;
    padding: 0 40px;
    border-left: 2px solid var(--border-color);
    background: var(--bg-white);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 20;
  }

  .wrap-drawer .area-aside .box-profile { border-left: none; border-right: none; }
  .wrap-drawer .area-aside .box-profile .img-profile { margin: 80px 0 13px 0; }
  .wrap-drawer .area-aside-on { right: 0; transition: .2s ease-out; }
  .wrap-drawer .article-header .inner-header { max-width: 780px; }

  .wrap-drawer .header .line-bottom {
    top: 80px;
    display: block;
    width: 100%;
    position: absolute;
    border-bottom: solid 1px var(--border-color);
  }

  .wrap-drawer .main { margin-top: 56px; }
}

/* ===== Container & Main ===== */
#container { position: relative; margin-top: 60px; }
.main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.area-main { width: 100%; max-width: 680px; }

@media screen and (max-width: 1061px) {
  #container { margin-top: 0; }
  .area-main { max-width: 100%; padding: 0; }
}

/* ===== Article Cards ===== */
.article-type-common { width: 100%; }

.article-type-common .thumbnail {
  margin: 0;
  background-image: url(./images/no-image.jpg);
  background-size: cover;
  background-position: 50% 50%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-type-common .thumbnail .img-thumbnail { display: none; }
.article-type-common .link-article { text-decoration: none; }

.article-type-common .title {
  display: block;
  max-height: 58px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  letter-spacing: -0.3px;
  transition: color 0.2s;
}

.article-type-common .summary {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.article-type-common .link-category {
  margin-right: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.67;
  color: var(--brand-primary);
  text-decoration: none;
  background: var(--brand-primary-bg);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}

.article-type-common .link-category:hover {
  background: var(--brand-primary);
  color: #fff;
}

.article-type-common .date {
  position: relative;
  margin-right: 12px;
  font-size: 12px;
  line-height: 1.67;
  color: var(--text-muted);
}

.article-type-common .date:before {
  content: '';
  position: absolute;
  top: 9px; left: -8px;
  width: 2px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

.article-type-common .reply {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.67;
  color: var(--text-muted);
}

.article-type-common .reply:before {
  content: '';
  position: absolute;
  top: 9px; left: -8px;
  width: 2px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

.article-type-common:hover .title {
  color: var(--brand-primary);
  text-decoration: none;
}

/* ===== Article Type: Crop ===== */
.article-type-crop { margin-bottom: 48px; }
.article-type-crop .thumbnail {
  height: 400px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-type-crop .link-article { display: block; }
.article-type-crop .title { height: 28.5px; margin-top: -4px; -webkit-line-clamp: 1; }

.article-type-crop .summary {
  max-height: 66px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

@media screen and (max-width: 1060px) {
  .article-type-crop { margin-bottom: 28px; }
  .article-type-crop .thumbnail { height: auto; padding-top: 59.4%; }
}

/* ===== Article Type: Resize ===== */
.article-type-resize { margin-bottom: 48px; }
.article-type-resize .thumbnail {
  margin-bottom: 20px;
  padding-top: 0;
  background: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.article-type-resize .thumbnail .img-thumbnail { display: block; width: 100%; height: auto; }
.article-type-resize .title { height: 28px; -webkit-line-clamp: 1; }
.article-type-resize .summary {
  max-height: 69px; font-size: 14px; font-weight: 400; line-height: 1.65;
  -webkit-line-clamp: 3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; word-break: break-word;
}

@media screen and (max-width: 1060px) {
  .article-type-resize { margin-bottom: 28px; }
}

/* ===== Article Type: Thumbnail (List) ===== */
.article-type-,
.article-type-thumbnail {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-type-:hover,
.article-type-thumbnail:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-type- .thumbnail,
.article-type-thumbnail .thumbnail {
  width: 140px;
  height: 100px;
  margin-left: 24px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.article-type- .article-content,
.article-type-thumbnail .article-content { width: 100%; padding-top: 0; }

.article-type- .title,
.article-type-thumbnail .title {
  word-break: break-all;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.article-type- .summary,
.article-type-thumbnail .summary {
  max-width: 620px; max-height: 40px; margin-bottom: 8px;
  font-size: 13px; font-weight: 400; line-height: 1.53;
  -webkit-line-clamp: 2; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; word-break: break-word;
}

.article-type- .reply,
.article-type-thumbnail .reply { display: none; }

@media screen and (max-width: 1060px) {
  .article-type-, .article-type-thumbnail { margin-bottom: 16px; padding: 16px; }
  .article-type- .thumbnail, .article-type-thumbnail .thumbnail { width: 80px; height: 80px; margin-left: 16px; }
  .article-type- .title, .article-type-thumbnail .title { font-size: 15px; }
  .article-type- .summary, .article-type-thumbnail .summary { font-size: 12px; }
}

/* ===== Article Type: Poster ===== */
.article-type-poster {
  display: inline-block;
  width: 33%;
  margin-right: 16px;
  margin-bottom: 30px;
  vertical-align: top;
}

.article-type-poster .thumbnail {
  position: relative;
  margin-bottom: 12px;
  padding-top: 132.5%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-type-poster .title {
  width: 95%; margin-bottom: 4px;
  font-size: 14px; font-weight: 500; line-height: 1.43;
  white-space: initial; word-break: keep-all;
}

.article-type-poster .date:before { position: relative; }
.article-type-poster .summary, .article-type-poster .link-category, .article-type-poster .reply { display: none; }

@media screen and (min-width: 1061px) {
  .article-type-poster { max-width: 200px; }
  .wrap-right .area-cover>.article-type-poster:nth-child(3n),
  .wrap-right .area-view>.article-type-poster:nth-child(3n) { margin-right: 0; }
}

@media screen and (max-width: 760px) {
  .article-type-poster { width: calc(50% - 5px); max-width: initial; margin-right: 6px; }
  .article-type-poster:nth-of-type(2n) { margin-right: 0; }
}

/* ===== Article Type: Text ===== */
.article-type-text { margin-bottom: 10px; }
.article-type-text .thumbnail { display: none; }
.article-type-text .title {
  height: auto; margin-bottom: 0; font-size: 14px; line-height: 1.57;
  text-overflow: ellipsis; white-space: normal; overflow: hidden; font-weight: 400;
}
.article-type-text .date:before { position: relative; }
.article-type-text .summary, .article-type-text .link-category, .article-type-text .reply { display: none; }

/* ===== Cover Section ===== */
.area-cover { margin-bottom: 48px; }
.area-cover:last-of-type { margin-bottom: 0; }

.area-cover .title-cover {
  margin: 0;
  padding: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.area-cover .button-more {
  display: none;
  width: 100%;
  height: 44px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.area-cover .button-more:hover {
  background: var(--brand-primary-bg);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.box-cover-title { display: flex; justify-content: space-between; }

.box-cover-title .link-title {
  position: relative;
  padding-right: 14px;
  padding-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--brand-primary);
  line-height: 14px;
}

.box-cover-title .link-title:after {
  content: '';
  position: absolute;
  top: 4px; right: 2px;
  width: 6px; height: 6px;
  border-top: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
  transform: rotate(45deg);
}

.area-cover-thumbnail .box-cover-title {
  border-bottom: 2px solid var(--brand-primary);
  margin-bottom: 28px;
}

/* ===== Paging ===== */
.area-paging { text-align: center; margin: 40px 0; }
.area-paging a { text-decoration: none; }

.area-paging .link_page {
  display: inline-block;
  font-size: 24px;
  color: var(--brand-primary);
  transition: color 0.2s;
}

.area-paging .link_page:hover { color: var(--brand-accent); }
.area-paging .paging_num { display: inline-block; vertical-align: top; }

.area-paging .link_num span {
  display: inline-block;
  min-width: 32px; height: 32px;
  margin: 0 2px; padding: 0 8px;
  font-size: 14px; font-weight: 500;
  line-height: 32px; text-align: center;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.area-paging .link_num:hover span {
  background: var(--brand-primary-bg);
  color: var(--brand-primary);
}

.area-paging .selected {
  display: block;
  border-radius: var(--radius-sm) !important;
  background: var(--brand-primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.area-paging .link_num:hover .selected {
  background: var(--brand-primary-dark) !important;
  color: #fff;
}

.area-paging .paging_slash { display: none; }
.area-paging .link_page.no-more-prev,
.area-paging .link_page.no-more-next { display: none; }

.paging-more {
  display: block;
  width: 100%; height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  line-height: 44px;
  color: var(--text-secondary);
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.paging-more:hover {
  background: var(--brand-primary-bg);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ===== Promotion Banner ===== */
.area-promotion {
  position: relative;
  left: 50%; width: 100vw; margin-left: -50vw;
  background-size: cover; background-position: 50% 50%;
  z-index: 11;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.area-promotion:before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, rgba(59, 80, 181, 0.7) 0%, rgba(26, 26, 46, 0.5) 100%);
  z-index: 1;
}

.area-promotion .inner-promotion {
  position: relative;
  display: flex; align-items: center; justify-content: flex-start;
  max-width: 1080px; height: 100%; margin: 0 auto; z-index: 2;
}

.area-promotion .inner-promotion strong {
  display: block; word-break: keep-all; width: 760px;
  font-size: 44px; font-weight: 800; line-height: 1.15; color: #fff;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; letter-spacing: -1px;
}

.area-promotion .inner-promotion .link-promotion {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  text-align: center; text-decoration: none;
  color: #fff;
  background: var(--brand-accent) !important;
  margin-top: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.area-promotion .inner-promotion .link-promotion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

@media screen and (min-width: 1061px) {
  .area-promotion.height200 { height: 200px; }
  .area-promotion.height300 { height: 300px; }
  .area-promotion.height400 { height: 400px; }
  .area-promotion.height500 { height: 500px; }
}

@media screen and (max-width: 1061px) {
  .area-promotion { height: 300px; border-radius: 0; }
  .area-promotion .inner-promotion { padding: 0 20px; }
  .area-promotion .inner-promotion .box-promotion { position: absolute; bottom: 40px; }
  .area-promotion .inner-promotion strong { width: 270px; font-size: 28px; line-height: 1.2; }
}

/* ===== Sidebar (area-aside) ===== */
.area-aside { width: 300px; }
.area-aside>div { margin-bottom: 32px; }
.area-aside ul { margin: 0; padding: 0; }
.area-aside li { list-style: none; padding: 0; }

.area-aside .link-sidebar {
  display: block; font-size: 13px; line-height: 1.69;
  color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s;
}

.area-aside .link-sidebar:hover { color: var(--brand-primary); }

.area-aside .link-sidebar span {
  display: block; font-size: 12px; line-height: 1.67; color: var(--text-muted);
}

.area-aside .title-sidebar {
  display: block; margin: 0 0 10px 0;
  font-size: 14px; font-weight: 700; line-height: normal;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-primary);
}

/* Profile Card */
.area-aside .box-profile {
  position: relative; margin-bottom: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.area-aside .box-profile:before {
  content: '';
  display: block;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
}

.area-aside .box-profile .img-profile {
  width: 100px; height: 100px;
  margin: -50px auto 12px;
  border-radius: 50%;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.area-aside .box-profile .tit-g {
  display: block; padding: 0 20px;
  font-weight: 700; font-size: 16px;
  word-break: break-word; margin: 0 0 8px 0;
  color: var(--text-primary);
}

.area-aside .box-profile .text-profile {
  max-width: 210px; margin: 0 auto 20px auto;
  font-size: 13px; line-height: 1.54;
  color: var(--text-secondary); word-wrap: break-word;
}

.area-aside .box-profile .box-sns {
  font-size: 0; text-align: center;
  margin-bottom: 24px; margin-top: 16px;
}

.area-aside .box-profile .link-sns {
  display: inline-block;
  width: 36px; height: 36px; margin-right: 8px;
  background-repeat: no-repeat; background-position: center;
  border: 1px solid var(--border-color);
  border-radius: 50%; vertical-align: top;
  transition: border-color 0.2s, background 0.2s;
}

.area-aside .box-profile .link-sns:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-bg);
}

.area-aside .box-profile .link-sns:last-child { margin-right: 0; }
.area-aside .box-profile .link-facebook { line-height: 48px; }
.area-aside .box-profile .link-youtube { line-height: 44px; }
.area-aside .box-profile .link-insta { line-height: 49px; }
.area-aside .box-profile .link-twitter { line-height: 46px; }

/* Category */
.area-aside .box-category {
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.area-aside .box-category .tt_category a { display: block; text-decoration: none; }
.area-aside .box-category .tt_category .c_cnt { display: inline-block; font-size: 12px; vertical-align: 1px; color: var(--text-muted); }

.area-aside .box-category .tt_category .link_tit,
.area-aside .box-category .tt_category .category_list .link_item {
  margin-bottom: 8px; font-size: 14px; font-weight: 400;
  line-height: 1.64; color: var(--text-secondary);
  transition: color 0.2s;
}

.area-aside .box-category .tt_category .link_tit:hover,
.area-aside .box-category .tt_category .category_list .link_item:hover {
  color: var(--brand-primary) !important; font-weight: 500;
}

.area-aside .box-category .tt_category .category_list .link_item.selected {
  font-weight: 600; color: var(--brand-primary);
}

.area-aside .box-category .tt_category .category_list .link_sub_item {
  position: relative; display: none;
  margin-bottom: 5px; margin-left: 22px;
  font-size: 13px; line-height: normal; color: var(--text-muted);
}

.area-aside .box-category .tt_category .category_list .link_sub_item:before {
  content: ''; position: absolute; top: 10px; left: -13px;
  width: 7px; height: 1px; background: var(--text-muted);
}

.area-aside .box-category .tt_category .category_list .link_sub_item:hover {
  color: var(--brand-primary); font-weight: 500;
}

.area-aside .box-category-2depth .tt_category .category_list .link_sub_item { display: block; }
.area-aside .sub_category_list { margin-top: -4px; margin-bottom: 12px; }

/* Tags */
.area-aside .box-tag a {
  position: relative; display: inline-block;
  max-width: 300px; margin-right: 4px; margin-bottom: 6px;
  font-size: 13px; line-height: 1.69;
  text-decoration: none; text-overflow: ellipsis;
  color: var(--text-secondary); white-space: nowrap; overflow: hidden;
  transition: color 0.2s;
}

.area-aside .box-tag a:hover { color: var(--brand-accent); }

/* Recent Posts */
.area-aside .box-recent .tab-recent { display: flex; margin-bottom: 12px; }
.area-aside .box-recent .tab-recent li { position: relative; margin-right: 16px; }
.area-aside .box-recent .tab-recent li:last-child { margin-right: 0; }

.area-aside .box-recent .tab-recent li:last-child:before {
  content: ''; position: absolute; top: 9px; left: -8px;
  width: 1px; height: 12px; background: var(--border-color);
}

.area-aside .box-recent .tab-recent li.on a { color: var(--brand-primary); font-weight: 600; }

.area-aside .box-recent .tab-recent li a {
  display: block; font-size: 13px; line-height: 1.64;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}

.area-aside .box-recent .list-recent li { margin-bottom: 16px; }
.area-aside .box-recent .list-recent li:last-child { margin-bottom: 0; }

.area-aside .box-recent .list-recent .link-recent {
  display: flex; width: 100%; flex-wrap: nowrap; text-decoration: none;
}

.area-aside .box-recent .list-recent .thumbnail {
  width: 56px; height: 56px; margin: 0 12px 0 0;
  background-size: cover; background-position: 50% 50%;
  border-radius: var(--radius-sm); flex-shrink: 0;
}

.area-aside .box-recent .list-recent .thumbnail+.box-recent { width: 70%; }

.area-aside .box-recent .list-recent .box-recent {
  width: 100%; margin-top: 2px;
  font-size: 13px; line-height: 1.54; color: var(--text-primary);
}

.area-aside .box-recent .list-recent .box-recent strong {
  display: block; margin-bottom: 4px; font-weight: 500; font-size: 13px;
}

.area-aside .box-recent .list-recent .box-recent span { color: var(--text-muted); font-size: 12px; }

/* Visit Counter */
.area-aside .box-visit .text-total {
  margin: -6px 0 4px 0;
  line-height: 1.64; font-size: 28px; font-weight: 800;
  color: var(--brand-primary);
}

.area-aside .box-visit .item-visit {
  font-size: 13px; line-height: 1.71; color: var(--text-muted);
}

/* Calendar */
.area-aside .box-calendar .inner-calendar {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.area-aside .box-calendar .inner-calendar table caption a {
  display: inline-block; margin-bottom: 12px;
  font-size: 14px; font-weight: 600; color: var(--text-primary); text-decoration: none;
}

.area-aside .box-calendar .inner-calendar table th,
.area-aside .box-calendar .inner-calendar table td {
  font-weight: 400; line-height: 1.81;
  color: var(--text-muted); text-align: center;
}

.box-calendar .cal_click { font-weight: 700; color: var(--brand-primary) !important; }

/* Mobile Sidebar */
@media screen and (max-width: 1060px) {
  .area-aside {
    position: fixed; top: 0; right: -100%;
    width: calc(100% - 80px); max-width: 360px;
    height: 100%; padding: 0 20px;
    border-left: 2px solid var(--brand-primary);
    background: var(--bg-white);
    overflow-x: hidden; overflow-y: auto; z-index: 20;
  }

  .area-aside .box-profile { width: 100%; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .area-aside .box-profile .img-profile { width: 80px; height: 80px; margin-top: -40px; }
  .area-aside-on { right: 0; transition: .2s ease-out; }
}

.bg-dimmed:before {
  content: '';
  position: absolute; top: 0; left: 50%;
  width: 100vw; height: 100vh; margin-left: -50vw;
  background: rgba(59, 80, 181, 0.15);
  backdrop-filter: blur(2px);
  z-index: 19;
}

/* ===== Article View (Detail Page) ===== */
.article-header {
  position: absolute;
  top: 0; left: 50%;
  width: 100vw; height: 400px; margin-left: -50vw;
  padding: 0 20px;
  background-size: cover; background-position: 50% 50%;
}

.article-header:before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, rgba(59, 80, 181, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
  z-index: 1;
}

.article-header .inner-header {
  max-width: 1080px; margin: 0 auto; color: #fff;
}

.article-header .box-meta {
  position: absolute; bottom: 56px; width: 100%; max-width: 780px; z-index: 2;
}

.article-header .box-meta p { margin: 0; }

.article-header .box-meta .category {
  margin-bottom: 12px;
  font-size: 13px; font-weight: 600;
  background: var(--brand-accent);
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.article-header .title-article {
  display: block; width: 100%; max-width: 760px;
  margin: 0 0 28px 0;
  font-size: 40px; font-weight: 800; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; word-break: keep-all;
  letter-spacing: -1px;
}

.article-header .box-info { font-size: 13px; line-height: 1.54; opacity: .8; }
.article-header .box-info .writer { margin-right: 15px; }

.article-header .box-info .date {
  position: relative;
}

.article-header .box-info .date:before {
  content: '';
  position: absolute; top: 10px; left: -10px;
  width: 2px; height: 2px;
  background: #fff; border-radius: 2px;
}

@media screen and (max-width: 1060px) {
  .article-header .box-meta { bottom: 36px; }
  .article-header .title-article { padding-right: 20px; font-size: 28px; }
}

/* Article Footer */
.article-footer .title-footer {
  margin: 0; font-size: 15px; font-weight: 700;
  color: var(--text-primary);
}

/* Article Tags */
.article-tag {
  display: flex;
  margin-bottom: 40px; padding-bottom: 36px;
  border-bottom: 2px solid var(--brand-primary);
}

.article-tag .title-footer { margin-right: 24px; padding-top: 8px; }

.article-tag .box-tag a {
  position: relative; display: inline-block;
  max-width: 100%; margin-right: 8px; margin-bottom: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px; line-height: 1.5;
  color: var(--text-secondary); text-decoration: none;
  transition: all 0.2s;
}

.article-tag .box-tag a:hover {
  background: var(--brand-primary-bg);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

@media screen and (max-width: 1060px) {
  .article-tag { display: block; margin-bottom: 32px; padding-bottom: 24px; }
  .article-tag .title-footer { margin: 0 0 10px 0; }
  .article-tag .box-tag a { margin: 0 6px 8px 0; padding: 4px 12px; font-size: 12px; }
}

/* Article Navigation (Prev/Next) */
.article-page {
  margin-bottom: 40px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.article-page .title-footer { margin-bottom: 16px; }

.article-page ul { list-style: none; margin: 0; padding: 0; }
.article-page ul li {
  position: relative; margin-bottom: 8px; padding: 0;
  font-size: 13px; line-height: 1.69; color: var(--text-muted);
}

.article-page ul li:nth-child(2) { color: var(--brand-primary); font-weight: 600; }
.article-page ul li:last-child { margin-bottom: 0; }
.article-page ul li span { padding-right: 20px; font-size: 12px; }
.article-page ul li a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.article-page ul li a:hover { color: var(--brand-primary); }
.article-page ul li strong { font-weight: 400; }

/* Related Articles */
.article-related { margin-bottom: 42px; }
.article-related a { text-decoration: none; }
.article-related .title-footer { margin-bottom: 16px; }

.article-related .list-related {
  display: flex; list-style: none;
  margin: 0 -8px; padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}

.article-related .item-related { width: 33.3%; }
.article-related .item-related:last-child { display: none; }

.article-related .thumnail {
  display: block; width: 100%; height: auto; padding-top: 60%;
  margin-bottom: 10px;
  background-size: cover; background-position: 50% 50%;
  border-radius: var(--radius-sm);
}

.article-related .link-related { display: block; margin: 0 8px; }

.article-related .link-related strong {
  display: block; max-height: 40px;
  margin: 0 0 4px 0;
  font-size: 14px; font-weight: 500; line-height: 1.43;
  color: var(--text-primary); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.article-related .date { display: block; font-size: 12px; color: var(--text-muted); }

/* ===== Comments ===== */
.article-reply { width: 100%; margin-bottom: 32px; }
.article-reply ul { list-style: none; margin: 0; padding: 0; }
.article-reply a { text-decoration: none; }

.article-reply .box-total {
  margin: 0 0 4px 0; padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-primary);
  font-size: 14px; font-weight: 600;
}

.article-reply .box-total a { color: var(--text-primary); }
.article-reply .box-total span { color: var(--brand-accent); }

.article-reply .tt_more_preview_comments_wrap {
  width: 100%; height: 44px;
  margin-top: -14px; margin-bottom: 4px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  line-height: 42px; color: var(--text-secondary);
}

.area-reply { margin-bottom: 60px; }

.area-reply .item-reply {
  position: relative; display: flex; flex-wrap: wrap;
  width: 100%; padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.area-reply .thumbnail {
  display: block; width: 44px; height: 44px; margin-right: 12px;
  background-size: cover; background-position: 50% 50%; border-radius: 50%;
}

.area-reply .box-content { width: calc(100% - 56px); }

.area-reply .box-content .box-meta {
  margin-bottom: 4px; font-size: 13px; line-height: 1.69;
}

.area-reply .box-content .box-meta strong a { font-weight: 500; color: var(--text-primary); }

.area-reply .box-content .box-meta .date {
  position: relative; padding-left: 16px; color: var(--text-muted);
}

.area-reply .box-content .text {
  margin: 0 80px 8px 0; font-size: 14px; line-height: 1.5;
  color: var(--text-secondary); word-break: break-all;
}

.area-reply .box-content .link-comment {
  font-size: 13px; color: var(--brand-primary); font-weight: 500;
}

.area-reply .list-reply-comment {
  width: 100%; margin: 24px 0 -24px 0;
  padding: 24px 0 20px 56px;
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* Comment Write */
.area-write .box-account { display: flex; justify-content: space-between; margin-bottom: 12px; }

.area-write .box-account input {
  width: calc(50% - 6px); padding: 12px 16px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
  transition: border-color 0.2s;
}

.area-write .box-account input:hover,
.area-write .box-account input:focus { border-color: var(--brand-primary); }

.area-write .box-textarea textarea {
  width: 100%; height: 120px;
  padding: 16px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
  transition: border-color 0.2s;
  resize: vertical;
}

.area-write .box-textarea textarea:hover,
.area-write .box-textarea textarea:focus { border-color: var(--brand-primary); }

.area-write .box-write { display: flex; justify-content: space-between; margin-top: 12px; }

.area-write .box-write .btn_register {
  width: 80px; height: 36px;
  background: var(--brand-primary);
  border: none; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  color: #fff; cursor: pointer;
  transition: background 0.2s;
}

.area-write .box-write .btn_register:hover { background: var(--brand-accent); }

/* ===== Protected Page ===== */
.area-protected { max-width: 320px; margin: 0 auto; text-align: center; }

.area-protected .text-protected {
  margin: 0 0 24px 0; padding-top: 100px;
  font-size: 18px; font-weight: 600; color: var(--text-primary);
}

.area-protected .text-protected span { font-size: 14px; font-weight: 400; line-height: 2; color: var(--text-secondary); }

.area-protected input {
  width: 100%; height: 44px; margin-bottom: 12px;
  font-size: 13px; padding-left: 16px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.area-protected input:hover, .area-protected input:focus { border: 1px solid var(--brand-primary); }

.area-protected button {
  display: block; width: 100%; height: 44px;
  background: var(--brand-primary);
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: #fff;
  cursor: pointer; transition: background 0.2s;
}

.area-protected button:hover { background: var(--brand-primary-dark); }

/* ===== Search ===== */
.title-search {
  margin: 10px 0 0 0; padding-bottom: 14px;
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
}

.title-search span { color: var(--brand-accent); font-weight: 800; }

.title-search.title-border {
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 2px solid var(--brand-primary);
}

/* Search Box */
.util { position: absolute; top: 0; right: 0; }

.util .search {
  position: relative; float: left; overflow: hidden;
  background-color: var(--bg-white);
}

.util .search input {
  width: 100%; padding: 10px 16px;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px; color: var(--text-secondary);
  transition: border-color 0.2s;
}

.util .search input:focus { border-color: var(--brand-primary); background: var(--bg-white); }
.util .search input::placeholder { color: var(--text-muted); }

.util.use-sidebar { position: initial; margin: 24px auto; float: none; }
.util.use-sidebar .search { float: none; }
.util.use-top { width: 240px; margin-top: -4px; }
.util.use-top .search { width: 100%; }

@media screen and (min-width: 1061px) {
  .util:not(.use-top) { display: none; }
  .wrap-drawer .util.use-sidebar { display: block; }
  .wrap-drawer .util.use-top { display: none; }
}

@media screen and (max-width: 1060px) {
  .util:not(.use-sidebar) { display: none; }
}

/* ===== Footer ===== */
#footer {
  margin-top: 80px; padding: 48px 0 60px;
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
}

#footer .inner-footer {
  position: relative;
  max-width: 1080px;
  margin: 0 auto; padding: 0 20px;
}

.footer-brand { margin-bottom: 24px; }

.footer-logo {
  position: relative;
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: transparent;
}

.footer-logo::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2);
  z-index: 0;
  pointer-events: none;
}

.footer-logo::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #93a3e0 25%,
    #F97316 50%,
    #93a3e0 75%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brandShine 5s ease-in-out infinite alternate;
  z-index: 1;
}

.footer-desc {
  margin: 6px 0 0 0;
  font-size: 13px; color: rgba(255, 255, 255, 0.4);
}

#footer .box-policy { margin-bottom: 24px; }

#footer .link-footer {
  position: relative; display: inline-block;
  margin-right: 16px; font-size: 13px; font-weight: 500;
  text-decoration: none; color: rgba(255, 255, 255, 0.7);
  white-space: nowrap; transition: color 0.2s;
}

#footer .link-footer:hover { color: var(--brand-accent); }

#footer .link-footer:before {
  content: ''; position: absolute; top: 7px; left: -10px;
  width: 2px; height: 2px;
  background: rgba(255, 255, 255, 0.3); border-radius: 2px;
}

#footer .link-footer:first-child:before { width: 0; }

#footer .text-info, #footer address {
  font-size: 12px; color: rgba(255, 255, 255, 0.35);
}

#footer .text-info { margin: 0 0 6px 0; line-height: 18px; }
#footer address { font-style: normal; }

#footer .box-site { position: absolute; top: 0; right: 20px; }

#footer .box-site button {
  position: relative; width: 140px; height: 36px;
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px; text-align: left;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer; transition: background 0.2s;
}

#footer .box-site button:hover { background: rgba(255, 255, 255, 0.15); }

#footer .box-site ul {
  position: absolute; bottom: 38px; width: 100%;
  margin: 0; padding: 0;
  background: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 36px;
  list-style: none; opacity: 0; overflow: hidden;
}

#footer .box-site ul li { margin: 0; padding-left: 14px; }
#footer .box-site ul li a { display: block; color: rgba(255, 255, 255, 0.5); text-decoration: none; }
#footer .box-site ul li a:hover { color: var(--brand-accent); }
#footer .box-site ul.on { opacity: 1; transition: opacity .2s ease-out; }

@media screen and (max-width: 1060px) {
  #footer { margin-top: 40px; padding: 32px 0; }
  #footer .box-site { position: static; margin-top: 20px; }
  #footer .box-site button { width: 100%; }
  #footer .box-site ul { position: static; margin-top: 4px; }
}

/* ===== Article View Content ===== */
.article-view { margin-bottom: 12px; word-break: break-word; }

.article-view p { font-size: 16px; line-height: 1.75; color: var(--text-primary); }

.article-view h1, .article-view h2, .article-view h3, .article-view h4 {
  margin-bottom: 20px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.5px;
}

.article-view h1 { font-size: 32px; line-height: 1.33; }
.article-view h2 { font-size: 24px; line-height: 1.38; }
.article-view h3 { font-size: 20px; line-height: 1.4; }
.article-view h4 { font-size: 18px; line-height: 1.33; }

.article-view blockquote {
  margin: 0; padding-left: 20px;
  border-left: 3px solid var(--brand-primary);
  font-size: 16px; line-height: 1.75;
  color: var(--text-secondary);
}

.article-view a { display: inline-block; color: var(--brand-primary); }
.article-view a:hover { opacity: 0.8; }

.article-view img { max-width: 100%; border-radius: var(--radius-sm); }

.article-view pre {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.article-view table { border-collapse: collapse; }
.article-view table thead tr { background: var(--brand-primary-bg); font-size: 14px; }
.article-view table tr th, .article-view table tr td { padding: 10px 12px; }

.article-view hr { margin: 32px 0; border: none; border-top: 1px solid var(--border-color); }

.article-view ul li, .article-view ol li {
  font-size: 16px; line-height: 1.75; color: var(--text-primary); word-break: break-all;
}

/* ===== Buttons ===== */
.area-aside .box-profile .btn_subscription,
.btn-g {
  display: block;
  width: calc(100% - 40px);
  max-width: 220px;
  height: 40px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 38px;
  background-color: var(--bg-white);
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  outline: none;
  transition: all 0.2s;
}

.area-aside .box-profile .btn_subscription:hover,
.btn-g:hover {
  color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.area-aside .box-profile .btn_subscription:not(.following),
.btn-primary {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary);
  color: #fff;
}

.btn_subscription strong { display: none; }
.btn_subscription em { font-style: normal; font-weight: normal; }

/* 구독 + 버튼 그룹 세로 정렬 */
.area-aside .box-profile .group-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 28px;
}

.area-aside .box-profile .group-btn .btn_subscription {
  width: 100%;
  max-width: 220px;
}

.area-aside .box-profile .profile-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px 28px;
  width: 100%;
}

.area-aside .box-profile .profile-btn-group:not(.member) { display: none; }

.area-aside .box-profile .profile-btn-group .btn-g {
  width: 100%;
  max-width: 220px;
  margin: 0;
}

.area-aside .box-profile .profile-btn-group .btn-g + .btn-g {
  margin-left: 0;
}

/* btn_tool (구독 버튼 래퍼) 아래 간격 */
.area-aside .box-profile .btn_tool {
  display: flex;
  justify-content: center;
  padding: 0 20px 12px;
}

.area-aside .box-profile .btn_tool .btn_subscription {
  width: 100%;
  max-width: 220px;
}

.area-aside .box-profile .btn_tool + .profile-btn-group.member {
  padding-top: 0;
}

/* ===== No Image / Protected ===== */
.article-header-noimg { background: var(--brand-primary-bg) !important; }
.article-header-noimg:before { background: linear-gradient(135deg, rgba(59, 80, 181, 0.3), rgba(59, 80, 181, 0.1)) !important; }

/* ===== Mobile Header ===== */
@media screen and (max-width: 1060px) {
  .header .inner-header { max-width: initial; padding-top: 50px; }
  .header .title-logo { position: absolute; top: 12px; left: 20px; margin: 0; }
  .header .link_logo { font-size: 18px; }
  .header .area-slogun { display: none; padding: 0 20px; }
  .header .area-slogun.slogunmobileoff { display: block; }
  .header .area-promotion { display: none; }
  .header .area-promotion.bannermobile-on { display: block; }

  .header .area-gnb {
    width: 100%; margin-bottom: 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
  }

  .header .tt_category .category_list,
  .header .topnavmenu>ul {
    overflow-x: auto; overflow-y: hidden;
  }

  .header .tt_category .category_list li,
  .header .topnavmenu>ul>li { margin-right: 20px; }

  .header .tt_category .category_list li:first-child,
  .header .topnavmenu>ul>li:first-child { margin-left: 20px; }

  .header .tt_category .category_list .link_item,
  .header .topnavmenu>ul>li>a {
    padding: 14px 0; font-size: 13px; font-weight: 500;
  }

  .header .button-menu { display: block; top: 8px; right: 10px; }
  .header .button-menu svg { width: 17px; height: 12px; }
  .header .box-log { display: none; }
}

/* ===== Body-specific Overrides ===== */
#tt-body-tag:not(.wrap-drawer) .header,
#tt-body-page:not(.wrap-drawer) .header,
#tt-body-category:not(.wrap-drawer) .header,
#tt-body-search:not(.wrap-drawer) .header,
#tt-body-archive:not(.wrap-drawer) .header {
  border-bottom: 2px solid var(--brand-primary);
}

#tt-body-index #container,
#tt-body-tag #container,
#tt-body-page #container,
#tt-body-category #container,
#tt-body-search #container,
#tt-body-archive #container,
#tt-body-guestbook #container { margin-top: 0; }

#tt-body-index .main,
#tt-body-category .main,
#tt-body-search .main,
#tt-body-tag .main,
#tt-body-archive .main,
#tt-body-guestbook .main { padding-top: 48px; }

#tt-body-page .area-promotion { display: none; }
#tt-body-page .area-slogun { display: none; }
#tt-body-page .main { padding-top: 470px; }
#tt-body-page .area-view img { display: inline-block; max-width: 100% !important; margin: 0; height: auto; }
#tt-body-page .area-view .map_attach img { max-width: none !important; }

@media screen and (max-width: 1060px) {
  #tt-body-page .main { padding-top: 440px; }
}

/* Search results text */
#tt-body-archive .archives:before { content: "'"; }
#tt-body-archive .archives:after { content: "'에 등록된 글"; }
#tt-body-tag .archives:before { content: "#"; }
#tt-body-search .archives:before { content: "'"; }
#tt-body-search .archives:after { content: "'의 검색결과"; }

/* No search results */
.box-no-search { display: none; margin-bottom: 40px; font-size: 14px; color: var(--text-muted); }
.box-no-search span { position: relative; display: block; padding-left: 12px; line-height: 2; }
.box-no-search span:before {
  content: ''; position: absolute; top: 15px; left: 0;
  width: 4px; height: 4px; background: var(--brand-primary); border-radius: 50%;
}

#tt-body-search .type-search { display: block; }
#tt-body-category .type-category { display: block; }
#tt-body-tag .type-tag { display: block; }
#tt-body-archive .type-archive { display: block; }

/* Tag page */
.area-tag { min-height: 350px; }
.area-tag .box-tag a {
  display: inline-block; max-width: 100%;
  margin: 0 8px 10px 0;
  padding: 6px 14px;
  font-size: 14px; font-weight: 400; line-height: 1.5;
  color: var(--text-secondary); text-decoration: none;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.area-tag .box-tag a:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

/* Guestbook */
#tt-body-guestbook .title-search { border-bottom: 2px solid var(--brand-primary); }
#tt-body-guestbook .area-reply form { padding-top: 20px; }

/* ===== Spinner ===== */
.area-paging-more { position: relative; }

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.paging-more-loading { color: transparent; pointer-events: none; }
.paging-more-loading:before {
  content: ''; box-sizing: border-box;
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin-top: -10px; margin-left: -10px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  border-top-color: var(--brand-primary);
  animation: spinner .6s linear infinite;
}

/* ===== Utility ===== */
.display-none { display: none; }

.container_postbtn { padding: 40px 0 32px 0 !important; }

@media screen and (max-width: 1060px) {
  .container_postbtn { padding: 32px 0 16px 0 !important; }
}

.revenue_unit_wrap.position_list { max-width: 1080px; margin: 30px auto; }

/* ===== Article View (Editor content) ===== */
#article-view {
  margin: 0; padding: 24px 0 48px;
  word-wrap: break-word;
  color: var(--text-primary);
  min-height: 370px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

.contents_style>* { margin: 20px 0 0 0; }

#article-view h2[data-ke-size] { font-size: 1.62em; line-height: 1.46; }
#article-view h3[data-ke-size] { font-size: 1.44em; line-height: 1.48; }
#article-view h4[data-ke-size] { font-size: 1.25em; line-height: 1.55; }
#article-view p[data-ke-size='size18'] { font-size: 1.12em; line-height: 1.67; }
#article-view p[data-ke-size='size16'] { line-height: 1.75; }
#article-view p[data-ke-size='size14'] { font-size: 0.87em; line-height: 1.71; }

#article-view h2, #article-view h3, #article-view h4 {
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--text-primary); margin: 1.2em 0 16px;
}

#article-view p+p, #article-view p { margin-bottom: 24px; }

#article-view a { color: var(--brand-primary); text-decoration: underline; }
#article-view figure[data-ke-type='contentSearch'] a { text-decoration: none; }

/* Blockquotes */
#article-view blockquote[data-ke-style='style1'] {
  text-align: center; padding: 34px 0 0 0;
  font-size: 1.12em; color: var(--text-primary);
  line-height: 1.67; border: 0 none;
}

#article-view blockquote[data-ke-style='style2'] {
  border-color: var(--brand-primary); border-width: 0 0 0 4px;
  border-style: solid; padding: 1px 0 0 16px;
  color: var(--text-secondary); line-height: 1.75;
}

#article-view blockquote[data-ke-style='style3'] {
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: var(--text-secondary); line-height: 1.75;
}

#article-view blockquote { display: block; margin: 20px auto 0; letter-spacing: 0; }

/* Images */
#article-view figure.imageblock img { display: inline-block; max-width: 100%; margin: 0; height: auto; border-radius: var(--radius-sm); }

#article-view figure figcaption {
  font-size: 13px; color: var(--text-muted);
  padding-top: 10px; text-align: center;
}

/* File attachment */
#article-view figure.fileblock {
  width: 470px; height: 73px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Code blocks */
#article-view pre code.hljs {
  font-size: 14px; padding: 20px;
  font-family: 'JetBrains Mono', SF Mono, Menlo, Consolas, monospace;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  line-height: 1.71; overflow: auto;
  background: var(--bg-light);
}

/* Tables */
#article-view table { border-color: var(--border-color); }
#article-view table td { word-break: break-word; padding: 10px 12px; font-size: 15px; }

/* More/Less toggle */
#article-view div[data-ke-type='moreLess'] {
  background-color: var(--bg-light);
  padding: 20px; margin: 20px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

#article-view div[data-ke-type='moreLess'] .btn-toggle-moreless {
  color: var(--brand-primary); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}

/* Lists */
#article-view ul li, #article-view ol li { margin: 0 0 3px 22px; line-height: 1.7; }
#article-view ul, #article-view ol { margin: 14px auto 24px; padding: 0 0 0 10px; }

/* Open Graph */
#article-view figure[data-ke-type='opengraph'] a {
  width: 100%; display: flex;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-primary);
  overflow: hidden;
}

#article-view figure[data-ke-type='opengraph'] div.og-image {
  border-right: 1px solid var(--border-light);
  width: 200px; height: 200px;
  background-size: cover; background-position: center;
}

#article-view figure[data-ke-type='opengraph'] p.og-title {
  color: var(--text-primary); font-size: 18px; font-weight: 600;
  padding-bottom: 8px; margin: 0;
}

#article-view figure[data-ke-type='opengraph'] .og-desc {
  margin: 0; font-size: 14px; color: var(--text-muted);
  max-height: 42px; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary-dark); }

/* ===== Selection ===== */
::selection { background: var(--brand-primary); color: #fff; }
::-moz-selection { background: var(--brand-primary); color: #fff; }

/* ===== Mobile-specific layout ===== */
@media screen and (max-width: 768px) {
  .header .line-bottom { display: none; }
  .header .area-gnb { margin-top: 0; }
  .header .area-gnb .topnavmenu { border-bottom: 1px solid var(--border-color); }

  #tt-body-tag .main, #tt-body-media .main,
  #tt-body-index .main, #tt-body-category .main,
  #tt-body-search .main, #tt-body-archive .main,
  #tt-body-guestbook .main { padding-top: 0; margin-top: 24px; }
}

/* ===== Slogun/Banner display ===== */
#tt-body-category.headerslogundisplayon .area-slogun,
#tt-body-search.headerslogundisplayon .area-slogun,
#tt-body-archive.headerslogundisplayon .area-slogun,
#tt-body-tag.headerslogundisplayon .area-slogun,
#tt-body-guestbook.headerslogundisplayon .area-slogun,
#tt-body-page.headerslogundisplayon .area-slogun { display: none; }

#tt-body-category.headerbannerdisplayon .area-promotion,
#tt-body-search.headerbannerdisplayon .area-promotion,
#tt-body-archive.headerbannerdisplayon .area-promotion,
#tt-body-tag.headerbannerdisplayon .area-promotion,
#tt-body-guestbook.headerbannerdisplayon .area-promotion,
#tt-body-page.headerbannerdisplayon .area-promotion { display: none; }

/* Category banner */
.use-category-banner .category-banner-wrp { display: block; }

.use-category-banner .category-banner:before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, rgba(59, 80, 181, 0.7), rgba(26, 26, 46, 0.5));
  z-index: 1;
}

#tt-body-category.use-category-banner #container { margin-top: 400px; }

.use-category-banner .category-banner-wrp {
  display: block; width: 100%; height: 400px;
  position: absolute; top: -400px; left: 0;
}

.use-category-banner .category-banner {
  width: 100%; height: 100%; position: relative;
  background-size: cover; background-position: 50% 50%; z-index: 11;
}

.use-category-banner .category-banner .category-banner-inner {
  position: relative; display: flex; align-items: center;
  max-width: 1080px; height: 100%; margin: 0 auto; z-index: 2;
}

.use-category-banner .category-banner .category-description-box strong {
  font-weight: 800; font-size: 44px;
  line-height: 1.15; color: #fff;
  letter-spacing: -1px;
}

/* ===== 404 Page ===== */
.notfoundpage .absent_post { display: block; }
.notfoundpage .absent_post:before {
  content: "찾으시는 글이 없습니다";
  display: block; margin-bottom: 20px;
  font-weight: 700; font-size: 20px; color: var(--text-primary);
}

.notfoundpage .absent_post {
  padding: 40px 0 80px !important;
  background: none !important;
  font-size: 14px !important; color: var(--text-muted) !important;
}

/* Reply sidebar items */
.box-reply .list-sidebar li { margin-bottom: 8px; }
.box-reply .link-sidebar strong { font-size: 13px; font-weight: 400; line-height: 1.54; }
.box-reply .list-sidebar p { margin: 0; font-size: 12px; color: var(--text-muted); }
.box-notice .list-sidebar li { margin-bottom: 8px; }

/* Protected view */
#tt-body-page.protected-view .article-header,
#tt-body-page.protected-view .area-paging,
#tt-body-page.protected-view .area-aside { display: none; }
#tt-body-page.protected-view .area-main { max-width: 100%; }
#tt-body-page.protected-view .main { padding-top: 70px; }

/* Another category table override */
.another_category { margin-bottom: 48px !important; }
.article-view .another_category table, .article-view .another_category table * { border: none; }

/* Box log */
.box-log a { display: inline-block; margin-right: 12px; font-size: 13px; text-decoration: none; color: var(--text-secondary); float: left; }

/* No image styles */
.article-type-common.article-type- .thumbnail:not([has-thumbnail]),
.article-type-common.article-type-thumbnail .thumbnail:not([has-thumbnail]) { display: none; }

/* Cover title empty state */
.area-cover .title-cover { min-height: 32px; }
.area-cover .title-cover:empty { min-height: auto; padding-bottom: 0; }
