/* ==========================================
   🥮 BAKLAVA THEME
   피스타치오 × 초콜릿 × 카다이프
   티스토리 블로그 스킨
   ========================================== */

:root {
  /* 피스타치오 */
  --pistachio-light: #d4e5c9;
  --pistachio: #87a878;
  --pistachio-deep: #5c7a4d;
  
  /* 초콜릿 */
  --chocolate-light: #a68b70;
  --chocolate: #6b4c3a;
  --chocolate-dark: #3d2a1f;
  
  /* 카다이프 (골드) */
  --kadaif-cream: #f8f0dc;
  --kadaif-light: #edd9a3;
  --kadaif: #d4a855;
  --kadaif-deep: #b8923d;
  --kadaif-bronze: #8b6914;
  
  /* 베이스 */
  --bg-cream: #fefcf8;
  --bg-warm: #faf6ed;
  --bg-honey: #f5edd8;
  
  /* 텍스트 */
  --text-dark: #2a1f15;
  --text-warm: #5a4535;
  --text-muted: #8b7a65;
  
  /* 타이포그래피 */
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* 레이아웃 */
  --max-width: 1280px;
  --content-width: 780px;
  --sidebar-width: 320px;
  --gap: 64px;
  
  /* 트랜지션 */
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.85;
  min-height: 100vh;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* 스크린 리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--kadaif);
  color: var(--text-dark);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================
   BACKGROUND PATTERN
   ========================================== */
.bg-pattern {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, transparent 20px, rgba(212, 168, 85, 0.015) 21px, rgba(212, 168, 85, 0.015) 23px, transparent 24px),
    radial-gradient(circle at 0% 50%, transparent 20px, rgba(135, 168, 120, 0.015) 21px, rgba(135, 168, 120, 0.015) 23px, transparent 24px),
    radial-gradient(circle at 100% 50%, transparent 20px, rgba(107, 76, 58, 0.015) 21px, rgba(107, 76, 58, 0.015) 23px, transparent 24px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================
   HEADER
   ========================================== */
#header {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
  padding: 48px 24px;
  text-align: center;
  position: relative;
}

/* 상단 3색 보더 */
.header-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(90deg, 
    var(--pistachio) 0%, 
    var(--pistachio) 33.33%, 
    var(--kadaif) 33.33%, 
    var(--kadaif) 66.66%, 
    var(--chocolate) 66.66%, 
    var(--chocolate) 100%
  );
}

.header-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-cream) 0px,
    var(--bg-cream) 8px,
    transparent 8px,
    transparent 16px
  );
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 로고 프레임 */
.logo-wrapper {
  display: inline-block;
  position: relative;
  padding: 32px 56px;
  margin-top: 16px;
}

.logo-wrapper::before,
.logo-wrapper::after {
  content: '✦';
  position: absolute;
  font-size: 12px;
  color: var(--kadaif);
}

.logo-wrapper::before { top: 8px; left: 8px; }
.logo-wrapper::after { bottom: 8px; right: 8px; }

/* 코너 장식 */
.corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: var(--kadaif);
}

.corner::before { width: 100%; height: 2px; }
.corner::after { width: 2px; height: 100%; }

.corner.tl { top: 0; left: 0; }
.corner.tl::before { top: 0; left: 0; }
.corner.tl::after { top: 0; left: 0; }

.corner.tr { top: 0; right: 0; }
.corner.tr::before { top: 0; right: 0; }
.corner.tr::after { top: 0; right: 0; }

.corner.bl { bottom: 0; left: 0; }
.corner.bl::before { bottom: 0; left: 0; }
.corner.bl::after { bottom: 0; left: 0; }

.corner.br { bottom: 0; right: 0; }
.corner.br::before { bottom: 0; right: 0; }
.corner.br::after { bottom: 0; right: 0; }

/* 로고 타이틀 */
.logo h1,
.logo .h1-style {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.logo a {
  color: var(--chocolate-dark);
  transition: color var(--transition);
}

.logo a:hover {
  color: var(--kadaif-deep);
}

.tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--kadaif-deep);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* 3색 원형 장식 */
.color-trio {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.color-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.color-circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.3;
}

.color-circle:nth-child(1) { background: var(--pistachio); color: var(--pistachio); }
.color-circle:nth-child(2) { background: var(--kadaif); color: var(--kadaif); }
.color-circle:nth-child(3) { background: var(--chocolate); color: var(--chocolate); }

/* 검색 박스 */
.search-box {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 2px solid var(--kadaif-light);
  padding: 12px 20px;
  margin-top: 24px;
  position: relative;
  transition: var(--transition);
}

.search-box::before,
.search-box::after {
  content: '◆';
  position: absolute;
  font-size: 8px;
  color: var(--kadaif);
}

.search-box::before { left: -16px; }
.search-box::after { right: -16px; }

.search-box:focus-within {
  border-color: var(--kadaif);
  box-shadow: 0 0 0 4px rgba(212, 168, 85, 0.1);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 200px;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--kadaif-deep);
  display: flex;
  padding: 4px;
  transition: color var(--transition);
}

.search-btn:hover {
  color: var(--chocolate);
}

/* ==========================================
   MAIN LAYOUT
   ========================================== */
#container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
}

.main-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
}

#content {
  min-width: 0;
}

/* ==========================================
   POST CARDS (목록)
   ========================================== */
.post-card {
  background: white;
  border: 1px solid var(--kadaif-light);
  margin-bottom: 32px;
  position: relative;
  transition: var(--transition);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: 0 8px 40px rgba(166, 124, 50, 0.12);
  border-color: var(--kadaif);
}

.post-card:hover::before {
  border-color: rgba(212, 168, 85, 0.2);
}

.post-link {
  display: block;
}

.post-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.04);
}

/* 썸네일 3색 코너 */
.post-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--pistachio) 50%, transparent 50%);
  opacity: 0.85;
  z-index: 1;
}

.post-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(-45deg, var(--chocolate) 50%, transparent 50%);
  opacity: 0.85;
  z-index: 1;
}

.post-info {
  padding: 28px 32px;
  position: relative;
}

/* 카테고리 뱃지 */
.post-category {
  position: absolute;
  top: -16px;
  left: 32px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: white;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--pistachio) 0%, var(--pistachio-deep) 100%);
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--chocolate-dark);
  margin-bottom: 12px;
  margin-top: 8px;
  transition: color var(--transition);
}

.post-card:hover .post-title {
  color: var(--kadaif-deep);
}

.post-summary {
  font-size: 0.92rem;
  color: var(--text-warm);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--bg-honey);
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-date::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--kadaif);
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kadaif-deep);
  transition: color var(--transition);
}

.post-card:hover .read-more {
  color: var(--chocolate);
}

/* ==========================================
   ARTICLE (본문)
   ========================================== */
.article-header {
  text-align: center;
  margin-bottom: 48px;
}

.header-frame {
  display: inline-block;
  padding: 32px 48px;
  background: var(--bg-warm);
  border: 1px solid var(--kadaif-light);
  position: relative;
}

.header-frame::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-cream);
  padding: 0 16px;
  color: var(--kadaif);
  font-size: 8px;
  letter-spacing: 8px;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--pistachio-deep);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.article-category:hover {
  color: var(--kadaif-deep);
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--chocolate-dark);
  margin-bottom: 16px;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--kadaif);
}

.ornament-divider span {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kadaif));
}

.ornament-divider span:last-child {
  background: linear-gradient(90deg, var(--kadaif), transparent);
}

/* ==========================================
   ARTICLE CONTENT
   ========================================== */
.article-content {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-warm);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-display);
  margin: 2.5em 0 1em;
  color: var(--chocolate-dark);
}

.article-content h2 {
  font-size: 1.75rem;
  padding-left: 16px;
  border-left: 4px solid var(--kadaif);
}

.article-content h3 {
  font-size: 1.35rem;
}

.article-content h4 {
  font-size: 1.15rem;
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content a {
  color: var(--kadaif-deep);
  border-bottom: 1px solid var(--kadaif-light);
  transition: var(--transition);
}

.article-content a:hover {
  color: var(--chocolate);
  border-color: var(--kadaif);
}

.article-content img {
  border: 1px solid var(--kadaif-light);
  margin: 2em auto;
  max-width: 100%;
}

.article-content figure {
  margin: 2em 0;
}

.article-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-honey) 100%);
  border-left: 4px solid var(--kadaif);
  position: relative;
}

.article-content blockquote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--kadaif-light);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.article-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--kadaif);
  font-size: 0.6em;
  top: 0.6em;
}

.article-content ol {
  list-style: decimal;
}

.article-content ol li {
  margin-bottom: 0.5em;
}

.article-content pre,
.article-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--bg-honey);
}

.article-content code {
  padding: 2px 8px;
  font-size: 0.88em;
  color: var(--chocolate);
  border-radius: 4px;
}

.article-content pre {
  padding: 24px;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--kadaif-light);
  border-radius: 0;
}

.article-content pre code {
  padding: 0;
  background: none;
  color: var(--text-warm);
  border-radius: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  border: 1px solid var(--kadaif-light);
  text-align: left;
}

.article-content th {
  background: var(--bg-honey);
  font-weight: 600;
  color: var(--chocolate-dark);
}

.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--pistachio) 20%, 
    var(--kadaif) 50%, 
    var(--chocolate) 80%, 
    transparent
  );
  margin: 3em 0;
}

/* ==========================================
   COMMENTS
   ========================================== */
.comments {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--kadaif-light);
}

/* 댓글 수 */
.comments .rp_title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--chocolate-dark);
  margin-bottom: 24px;
}

/* 댓글 목록 */
.comments .rp_list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-honey);
}

.comments .rp_admin {
  background: var(--pistachio-light);
  padding: 16px;
  margin: -20px 0 -20px 0;
}

.comments .rp_name {
  font-weight: 600;
  color: var(--chocolate-dark);
}

.comments .rp_date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comments .rp_content {
  margin-top: 8px;
  line-height: 1.7;
  color: var(--text-warm);
}

/* 댓글 입력 */
.comments .rp_write {
  margin-top: 32px;
}

.comments .rp_write textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--kadaif-light);
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  resize: vertical;
  transition: var(--transition);
}

.comments .rp_write textarea:focus {
  outline: none;
  border-color: var(--kadaif);
  box-shadow: 0 0 0 4px rgba(212, 168, 85, 0.1);
}

.comments .rp_write input[type="text"],
.comments .rp_write input[type="password"] {
  padding: 12px 16px;
  border: 1px solid var(--kadaif-light);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-right: 8px;
  transition: var(--transition);
}

.comments .rp_write input:focus {
  outline: none;
  border-color: var(--kadaif);
}

.comments .rp_write button,
.comments .rp_write input[type="submit"] {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--pistachio), var(--kadaif));
  border: none;
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.comments .rp_write button:hover,
.comments .rp_write input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--pistachio-deep), var(--kadaif-deep));
}

/* ==========================================
   REACTION BUTTONS
   ========================================== */
.container_postbtn {
  margin: 40px 0;
  text-align: center;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--kadaif-light);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kadaif-deep);
  border: 1px solid var(--kadaif-light);
  transition: var(--transition);
}

.page-btn:hover {
  background: linear-gradient(135deg, var(--pistachio), var(--kadaif));
  border-color: transparent;
  color: white;
}

.page-btn.no_more_prev,
.page-btn.no_more_next {
  opacity: 0.4;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition);
}

.page-num:hover,
.page-num.selected {
  color: var(--chocolate);
  border-color: var(--kadaif);
}

/* ==========================================
   SIDEBAR
   ========================================== */
#sidebar {
  position: sticky;
  top: 32px;
  height: fit-content;
}

.widget {
  background: white;
  border: 1px solid var(--kadaif-light);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pistachio) 33%, var(--kadaif) 33% 66%, var(--chocolate) 66%);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--chocolate-dark);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kadaif-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.widget-title::before,
.widget-title::after {
  content: '◆';
  font-size: 6px;
  color: var(--kadaif);
}

.widget-content ul {
  list-style: none;
}

.widget-content li {
  margin-bottom: 4px;
}

.widget-content a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-warm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.widget-content a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--pistachio-light), var(--kadaif-cream));
  transition: var(--transition);
  z-index: -1;
}

.widget-content a:hover {
  color: var(--chocolate-dark);
}

.widget-content a:hover::before {
  width: 100%;
}

/* 카테고리 카운트 */
.widget-content .c_cnt {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 위젯 장식 */
.widget-deco {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.widget-deco span {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}

.widget-deco span:nth-child(1) { background: var(--pistachio); }
.widget-deco span:nth-child(2) { background: var(--kadaif); }
.widget-deco span:nth-child(3) { background: var(--chocolate); }

/* ==========================================
   AD AREAS
   ========================================== */
.ad-area {
  margin: 24px 0;
}

.ad-area:empty {
  display: none;
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-honey) 100%);
  padding: 48px 24px;
  margin-top: 64px;
  text-align: center;
  position: relative;
}

.footer-pattern {
  height: 12px;
  background: linear-gradient(90deg, var(--pistachio) 33%, var(--kadaif) 33% 66%, var(--chocolate) 66%);
  margin-bottom: 32px;
}

.footer-pattern::after {
  content: '';
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-warm) 0px,
    var(--bg-warm) 12px,
    transparent 12px,
    transparent 24px
  );
  margin-top: 4px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

#footer a {
  color: var(--chocolate-dark);
  font-weight: 500;
}

#footer a:hover {
  color: var(--kadaif-deep);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --gap: 40px;
  }
  
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  
  #sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }
  
  .widget {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .header-border {
    height: 10px;
  }
  
  .logo h1,
  .logo .h1-style {
    font-size: 1.8rem;
  }
  
  .logo-wrapper {
    padding: 24px 32px;
  }
  
  .search-box::before,
  .search-box::after {
    display: none;
  }
  
  .post-title {
    font-size: 1.25rem;
  }
  
  .post-thumbnail::before,
  .post-thumbnail::after {
    width: 40px;
    height: 40px;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .header-frame {
    padding: 24px 20px;
    width: 100%;
  }
  
  #sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 24px;
  }
  
  #header {
    padding: 32px 16px;
  }
  
  .logo h1,
  .logo .h1-style {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }
  
  .search-box {
    width: 100%;
    justify-content: center;
  }
  
  .search-box input {
    width: 100%;
    max-width: 200px;
  }
  
  .post-info {
    padding: 20px;
  }
  
  .post-category {
    left: 20px;
    font-size: 0.65rem;
    padding: 5px 12px;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .page-btn {
    padding: 10px 16px;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .bg-pattern,
  #header,
  #sidebar,
  #footer,
  .pagination,
  .ad-area,
  .container_postbtn,
  .comments {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .article-content a {
    color: black;
    text-decoration: underline;
  }
}
