/* ============================================
   DAWONX Dark Theme for Tistory (Improved v2)
   에디터 색상 호환 + 스마트 다크모드
   ============================================ */

@charset "UTF-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ============================================
   CSS Variables - Brand Colors
   ============================================ */
:root {
  --primary-color: #F24C27;  /* DAWONX Orange */
  --primary-rgb: 242, 76, 39;
  --bg-dark: #0a0a0a;
  --text-primary: #f5f5f7;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --hover-bg: rgba(255, 255, 255, 0.06);
}

/* ============================================
   Reset & Base
   ============================================ */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: "Pretendard", -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* Typography with clear weight hierarchy */
h1 {
  color: var(--text-primary);
  font-weight: 200;
  margin: 1em 0 0.5em;
}

h2 {
  color: var(--text-primary);
  font-weight: 300;
  margin: 1em 0 0.5em;
}

h3 {
  color: var(--text-primary);
  font-weight: 500;
  margin: 1em 0 0.5em;
}

h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 1em 0 0.5em;
}

b, strong {
  font-weight: 700 !important;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  background-color: transparent;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

/* ============================================
   Layout Structure
   ============================================ */
#wrap {
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

#container {
  position: relative;
  width: 100%;
}

#main {
  width: 100%;
}

/* ============================================
   DAWONX Navigation
   ============================================ */
.dawonx-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.dawonx-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* ============================================
   Header - Keep ORIGINAL structure
   ============================================ */
.box_header {
  position: fixed;
  top: 10px;
  right: 2rem;
  left: auto;
  width: 48px;
  height: 40px;
  z-index: 10001;
  background: transparent;
  border: none;
}

.box_header .title_logo {
  display: none;
}

.box_header .btn_menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
  overflow: hidden;
}

.box_header .btn_search {
  display: none !important;
}

.box_header .btn_menu span {
  display: none !important;
}

.box_header .btn_menu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  box-shadow: 0 -5px 0 rgba(255, 255, 255, 0.6), 0 5px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.box_header .btn_menu:hover {
  background: var(--hover-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

.box_header .btn_menu:hover::before {
  background: var(--primary-color);
  box-shadow: 0 -6px 0 var(--primary-color), 0 6px 0 var(--primary-color);
}

/* ============================================
   Sidebar
   ============================================ */
.area_sidebar .inner_sidebar {
  display: flex;
  height: 100%;
  flex-direction: column;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 360px !important;
  height: 100% !important;
  padding: 12px 24px 24px !important;
  background: rgba(15, 15, 15, 0.98) !important;
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color) !important;
  z-index: 10001 !important;
  overflow-y: auto;
  box-sizing: border-box !important;
}

.area_sidebar a {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.area_sidebar a:hover {
  color: var(--primary-color) !important;
}

.area_sidebar .btn_close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  line-height: 1;
}

.area_sidebar .btn_close:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: rotate(90deg);
}

/* ============================================
   Category List - Card Grid Layout (Blog Style)
   ============================================ */
.area_category {
  max-width: 1180px;
  margin: 80px auto 0 auto;
  padding: 60px 24px 0 24px;
}

.area_category .title_section {
  margin: 0 0 30px 0;
  font-size: 36px;
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* Grid Layout for Posts - Responsive Golden Ratio Cards */
.list_category {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Card Style Posts - Golden Ratio using aspect-ratio */
.item_category {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 0;
  aspect-ratio: 1 / 1.618;  /* True golden ratio */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.item_category:hover {
  transform: translateY(-4px);
  background: var(--hover-bg);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(var(--primary-rgb), 0.03);
}

.link_category {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Thumbnail - Responsive with percentage */
.link_category .thumnail,
.link_category .thumbnail,
.item_category .thumnail,
.item_category .thumbnail {
  float: none !important;
  width: 100% !important;
  height: 75% !important;  /* 75% of card height */
  margin: 0 !important;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Gradient overlay for better text readability */
.link_category .thumnail::after,
.link_category .thumbnail::after,
.item_category .thumnail::after,
.item_category .thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  transition: opacity 0.3s ease;
}

.item_category:hover .thumnail,
.item_category:hover .thumbnail {
  transform: scale(1.05);
}

.item_category:hover .thumnail::after,
.item_category:hover .thumbnail::after {
  opacity: 0.7;
}

/* Card Content - Flexible height */
.link_category .info {
  padding: 16px;
  flex: 1;  /* Take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  position: relative;
}

/* Category Badge - Compact for Tall Cards */
.link_category .category {
  display: inline-block !important;
  padding: 3px 10px !important;
  background: rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary-color) !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 10px !important;
  border: 1px solid rgba(var(--primary-rgb), 0.15) !important;
  width: fit-content !important;
  margin: 0 0 6px 0 !important;
  transition: all 0.2s ease !important;
}

.item_category:hover .category {
  background: rgba(var(--primary-rgb), 0.18) !important;
  border-color: rgba(var(--primary-rgb), 0.35) !important;
  transform: translateY(-1px) scale(1.05);
}

/* Post Title - Optimized for Tall Cards */
.link_category .name {
  font-size: 1rem;  /* Back to normal size with more height */
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: all 0.2s ease;
}

.item_category:hover .name {
  color: var(--primary-color);
}

/* Post Description - Hide */
.link_category .text {
  display: none !important;  /* Remove description */
}

/* Post Date - Minimal */
.link_category .date {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.65rem;
  font-weight: 300;
  margin-top: auto;
  padding-top: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.item_category:hover .date {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Article View - Enhanced Metadata
   ============================================ */
.area_view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.area_view .article_header {
  position: relative !important;
  width: 100% !important;
  left: auto !important;
  margin-left: 0 !important;
  max-width: 720px !important;
  margin: 80px auto 60px auto !important;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.area_view .article_header .inner_header {
  background: none !important;
  background-image: none !important;
  height: auto !important;
  padding: 0 !important;
}

.area_view .article_header:before {
  display: none !important;
}

.area_view .article_header .info_text {
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
  padding: 0 !important;
  display: block !important;
}

/* Article Title */
.article_header .title_post {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 0 24px 0;
  line-height: 1.35;
  letter-spacing: -0.015em;
  word-break: keep-all;
  display: block !important;
  width: 100% !important;
}

/* Article Metadata - Card Style */
.article_header .info {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;  /* Fix: proper spacing */
  gap: 16px !important;
  color: var(--text-tertiary) !important;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-top: -8px;
  padding-top: 0;
  border-top: none;
  position: relative !important;
}

/* Category Badge Style */
.article_header .info .category,
.article_header .info [class*="category"],
.article_header .info a[href*="/category"] {
  display: inline-block !important;
  padding: 4px 12px !important;
  background: rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary-color) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  /* Fix: Remove conflicting margin */
}

.article_header .info .category:hover,
.article_header .info [class*="category"]:hover,
.article_header .info a[href*="/category"]:hover {
  background: rgba(var(--primary-rgb), 0.15) !important;
  transform: translateY(-1px);
}

/* Date - Right aligned */
.article_header .info .date,
.article_header .info time,
.article_header .info [class*="date"] {
  color: var(--text-tertiary) !important;
  font-size: 0.75rem !important;
  font-weight: 300;
  letter-spacing: 0.03em;
  /* Fix: Remove conflicting margin and order */
}

/* Remove all separators */
.article_header .info *:before,
.article_header .info *:after {
  display: none !important;
  content: none !important;
}

/* ============================================
   Article Content - Optimized Typography
   모노톤 색상으로 최적의 가독성과 심미성 추구
   ============================================ */
.article_view {
  max-width: 680px;  /* Optimal reading width */
  margin: 0 auto;
  font-size: 17px;  /* Slightly larger for better readability */
  line-height: 1.85;  /* Golden ratio inspired line height */
  font-weight: 350;  /* Between light and regular */
  color: rgba(245, 245, 247, 0.92);  /* High contrast but not harsh */
  margin-top: -10px;
  word-break: keep-all;
  word-wrap: break-word;
  letter-spacing: -0.003em;  /* Subtle tightening */
  font-feature-settings: "kern" 1, "liga" 1;  /* Better kerning and ligatures */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Paragraphs - Optimized spacing and rhythm */
.article_view p {
  margin: 0 0 1.65em 0;  /* Better vertical rhythm */
  letter-spacing: 0.01em;
  font-weight: inherit;
  word-break: keep-all;
  color: rgba(245, 245, 247, 0.92);  /* Consistent monochrome */
  text-align: justify;  /* Better text block appearance */
  text-justify: inter-word;
  hyphens: auto;
}

/* First paragraph - no top margin */
.article_view p:first-child {
  margin-top: 0;
}

/* Paragraph after heading - less margin */
.article_view h1 + p,
.article_view h2 + p,
.article_view h3 + p,
.article_view h4 + p {
  margin-top: -0.5em;
}

/* Bold text - Subtle emphasis */
.article_view b,
.article_view strong {
  font-weight: 600 !important;  /* SemiBold instead of Bold */
  color: rgba(255, 255, 255, 0.98) !important;  /* Slightly brighter */
  letter-spacing: -0.01em;  /* Tighter for bold text */
}

/* Italic text - Elegant emphasis */
.article_view em,
.article_view i {
  font-style: italic;
  color: rgba(245, 245, 247, 0.88);  /* Slightly dimmer */
  letter-spacing: 0.02em;
}

/* Headings - Clear hierarchy with monochrome */
.article_view h1 {
  font-size: 2em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  margin: 2.5em 0 0.8em 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article_view h2 {
  font-size: 1.6em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.93);
  margin: 2.2em 0 0.75em 0;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.article_view h3 {
  font-size: 1.3em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 2em 0 0.7em 0;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.article_view h4 {
  font-size: 1.1em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin: 1.8em 0 0.6em 0;
  letter-spacing: -0.005em;
  line-height: 1.45;
}

/* ============================================
   Monochrome Color Override
   모든 색상을 모노톤으로 변환
   ============================================ */

/* Force all colored text to monochrome */
.article_view span[style*="color:"],
.article_view font[color],
.article_view [style*="color:"] {
  color: rgba(245, 245, 247, 0.92) !important;  /* Override to monochrome */
  filter: none !important;  /* Remove any filters */
}

/* Handle specific dark colors - make them visible */
.article_view span[style*="color: rgb(0, 0, 0)"],
.article_view span[style*="color: #000"],
.article_view span[style*="color: black"],
.article_view font[color="#000000"],
.article_view font[color="black"] {
  color: rgba(245, 245, 247, 0.92) !important;
}

/* Links in article - Subtle monochrome */
.article_view a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.2s ease;
}

.article_view a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}

/* 배경색이 있는 경우 - 다크모드 최적화 */
.article_view span[style*="background-color: rgb(255, 255, 255)"],
.article_view span[style*="background-color: #ffffff"],
.article_view span[style*="background-color: #fff"],
.article_view span[style*="background-color: white"] {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

.article_view span[style*="background-color: rgb(255, 255, 0)"],
.article_view span[style*="background-color: #ffff00"],
.article_view span[style*="background-color: yellow"] {
  background-color: rgba(255, 235, 59, 0.2) !important;
}

/* 티스토리 에디터 특수 클래스들 */
.article_view .tx-text-color {
  /* 색상 강제하지 않음 */
}

.article_view .tx-bg-color {
  /* 배경색 투명도 조정 */
  opacity: 0.9;
}

/* ============================================
   Subscription, Like, Social Buttons
   ============================================ */
/* Subscribe/Follow buttons - Outline style */
.btn_subscription,
.btn_follow,
.btn_subscribe {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 24px;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.btn_subscription:hover,
.btn_follow:hover,
.btn_subscribe:hover {
  background: transparent !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: scale(1.05);
}

/* Like/Reaction buttons - No outline, subtle style */
.btn_like,
.reaction_buttons button,
[class*="btn_share"],
[class*="btn_heart"],
.uoc-icon {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  border: none !important;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn_like:hover,
.reaction_buttons button:hover,
[class*="btn_share"]:hover,
[class*="btn_heart"]:hover,
.uoc-icon:hover {
  background: rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary-color) !important;
  transform: scale(1.05);
}

/* Like count */
.btn_like .uoc-count,
[class*="btn_heart"] .count {
  color: inherit !important;
  margin-left: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Active/liked state */
.btn_like.liked,
.btn_like.active,
[class*="btn_heart"].active,
.uoc-icon.on {
  background: rgba(var(--primary-rgb), 0.1) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* Share buttons */
.area_share,
.share_layer {
  background: rgba(20, 20, 20, 0.98) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 16px;
}

.area_share a,
.share_layer a {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.area_share a:hover,
.share_layer a:hover {
  background: rgba(var(--primary-rgb), 0.15);
  transform: scale(1.1);
}

/* Blockquote - Elegant monochrome */
.article_view blockquote {
  margin: 2em 0 2em 0;
  padding: 1em 1.5em 1em 2em;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  font-style: italic;
  font-weight: 350;
  font-size: 0.95em;
  line-height: 1.75;
  color: rgba(245, 245, 247, 0.75) !important;  /* Dimmer for quotes */
  position: relative;
}

/* Optional: Add quotation mark */
.article_view blockquote::before {
  content: "\201C";
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 3em;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Blockquote inner elements - ensure visibility */
.article_view blockquote p,
.article_view blockquote span,
.article_view blockquote div {
  color: inherit !important;
}

/* Override dark text in blockquotes */
.article_view blockquote [style*="color: rgb(0, 0, 0)"],
.article_view blockquote [style*="color: #000"],
.article_view blockquote [style*="color: black"],
.article_view blockquote [style*="color: rgb(51, 51, 51)"],
.article_view blockquote [style*="color: #333"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Inline code - Monochrome style */
.article_view code {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.875em;
  font-weight: 400;
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Code blocks - Clean monochrome */
.article_view pre {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
  line-height: 1.6;
}

.article_view pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: rgba(245, 245, 247, 0.85);
  font-size: 0.9em;
}

.article_view img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.5em auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  opacity: 0.95;  /* Slightly dimmed for less distraction */
  transition: all 0.3s ease;
}

.article_view img:hover {
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Tables - Dark Mode Optimization
   ============================================ */
.article_view table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.article_view th,
.article_view td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  color: rgba(255, 255, 255, 0.85) !important;
}

.article_view th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text-primary) !important;
}

.article_view tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Override dark text in tables */
.article_view table [style*="color: rgb(0, 0, 0)"],
.article_view table [style*="color: #000"],
.article_view table [style*="color: black"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   Lists - Clean Monochrome
   ============================================ */
.article_view ul,
.article_view ol {
  color: rgba(245, 245, 247, 0.92);
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.article_view li {
  color: inherit;
  margin: 0.5em 0;
  line-height: 1.75;
}

/* List markers - Subtle monochrome */
.article_view ul li::marker {
  color: rgba(255, 255, 255, 0.3);
}

.article_view ol li::marker {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* Nested lists */
.article_view ul ul,
.article_view ol ol,
.article_view ul ol,
.article_view ol ul {
  margin: 0.5em 0;
}

/* Override dark text in lists */
.article_view li [style*="color: rgb(0, 0, 0)"],
.article_view li [style*="color: #000"],
.article_view li [style*="color: black"] {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   Horizontal Rules - Minimal
   ============================================ */
.article_view hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent);
  margin: 3em auto;
  width: 60%;
}

/* ============================================
   Comments - Clean Design
   ============================================ */
.area_reply {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.area_reply .title_reply,
.area_reply h3,
.area_reply .tit_comment {
  color: var(--text-primary) !important;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 20px;
}

.area_reply .num_comment,
.area_reply .cnt {
  color: var(--primary-color) !important;
  font-weight: 300;
}

.area_reply .box_reply,
.area_reply .write_comment {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.area_reply .inp_reply,
.area_reply textarea,
.area_reply .tf_comment {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px;
  color: var(--text-primary) !important;
  resize: vertical;
  font-family: "Pretendard", -apple-system, sans-serif;
}

.area_reply .inp_reply:focus,
.area_reply textarea:focus,
.area_reply .tf_comment:focus {
  outline: none !important;
  border-color: var(--primary-color) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

/* Comment Form Layout - Flexbox for horizontal alignment */
.area_reply .write_comment form,
.area_reply .box_reply form,
.area_reply .comment_write,
.area_reply .comment_form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Input group - horizontal layout for input + button */
.area_reply .input_area,
.area_reply .comment_write_area,
.area_reply .write_area {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* Make textarea flexible */
.area_reply .input_area textarea,
.area_reply .input_area .inp_reply,
.area_reply .input_area .tf_comment {
  flex: 1;
}

/* Submit Button - Inline-block for horizontal alignment */
.area_reply .btn_register,
.area_reply .btn_comment,
.area_reply button[type="submit"] {
  display: inline-block !important;  /* Force inline-block */
  padding: 12px 32px;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  height: auto;
  vertical-align: middle;  /* Align properly */
  white-space: nowrap;  /* Prevent text wrapping */
  margin-left: 12px;  /* Space from textarea */
}

.area_reply .btn_register:hover,
.area_reply .btn_comment:hover,
.area_reply button[type="submit"]:hover {
  background: transparent !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* ============================================
   Pagination - Outline Style
   ============================================ */
.area_paging {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
  gap: 10px;
}

.area_paging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: all 0.2s ease;
}

.area_paging a:hover {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.area_paging .selected {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
#footer {
  margin-top: 120px;
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

#footer .inner_footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

#footer address {
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
  font-size: 14px;
  text-align: center !important;
  width: 100%;
  display: block;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1023px) {
  .list_category {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .area_category {
    margin-top: 60px;
    padding-top: 40px;
  }

  .article_header .title_post {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .dawonx-nav-bar {
    padding: 0 1rem;
  }

  .list_category {
    grid-template-columns: 1fr;
  }

  .item_category {
    height: auto;
  }

  .link_category .thumnail,
  .link_category .thumbnail {
    height: 180px !important;
  }

  .link_category .info {
    height: auto;
    padding: 16px;
  }

  .article_view {
    margin-top: 40px;
    font-size: 15px;
  }

  /* Mobile Menu Button */
  .box_header {
    top: auto !important;
    bottom: 30px !important;
    right: 20px !important;
  }

  .box_header .btn_menu {
    position: fixed !important;
    right: 20px !important;
    bottom: 30px !important;
    width: 56px !important;
    height: 56px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  }

  .area_sidebar .inner_sidebar {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    padding: 0 24px !important;
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.3);
}

/* ============================================
   Tags - Badge Style
   ============================================ */
.area_tag,
.post_tags,
.tags {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.area_tag .tag,
.post_tags a,
.tags a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 6px 14px;
  margin: 4px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.area_tag .tag:hover,
.post_tags a:hover,
.tags a:hover {
  background: rgba(var(--primary-rgb), 0.1) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}