@charset "utf-8";
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* ==================================================
 * 0. 글로벌 테마 & 레이아웃 세팅 (Golden Sunburst Theme)
 * ================================================== */
:root {
  /* 🌟 메인 컬러: 가장 깊고 묵직한 다크 딥 앰버 브라운 */
  --primary-color: #3d2806;    
  
  /* 🌟 소제목 바탕: 검정 글씨가 선명하게 대비되는 라이트 썬버스트 광채 그라데이션 */
  --gold-metallic-bg: linear-gradient(110deg, #faefc5 0%, #fffdf2 40%, #f5df93 75%, #edd485 100%);
  
  --accent-gold: #b37e1b;      /* 포인트 앰버 골드 */
  --gold-border: #d4a73b;      /* 골드 프레임 테두리선 */
  --gold-quote: #d9a838;       /* 소제목 인용 따옴표 */
  
  --text-main: #2b2318;        /* 다크 브라운 차콜 텍스트 */
  --text-sub: #6e6252;
  --border-color: #ede2cf;
  --bg-body: #ffffff;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
  line-height: 1.75;
  letter-spacing: -0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.display-none {
  display: none !important;
}

/* ==================================================
 * 1. 유틸리티 & 로딩 화면
 * ================================================== */
.wrap_btn_etc { display: none; }

#aros-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  z-index: 1022222;
  text-align: center;
  display: table;
  width: 100%;
  height: 100vh;
  opacity: 0.8;
}

.aros-loader {
  display: table-cell;
  vertical-align: middle;
}

.aros-loader img {
  width: 60px;
}

u {
  text-decoration: none;
  display: inline;
  box-shadow: inset 0 -14px 0 #fae078;
}

/* ==================================================
 * 2. 헤더 & 상단 영역
 * ================================================== */
.header {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  z-index: 10;
}

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

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

.header .link_logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.header .area-slogun strong {
  font-size: 26px;
  color: var(--primary-color);
  display: block;
}

.header .area-slogun p {
  color: var(--text-sub);
  font-size: 13px;
  margin: 5px 0 0 0;
}

.header .area-gnb nav ul {
  padding: 0;
  margin: 15px 0 0 0;
  list-style: none;
}

.header .area-gnb nav ul li {
  display: inline-block;
  margin-right: 25px;
  font-size: 15px;
  font-weight: 500;
}

.header .area-gnb nav ul li a:hover {
  color: var(--accent-gold);
}

.header .button-menu {
  display: none;
}

/* ==================================================
 * 3. 메인 레이아웃 구조
 * ================================================== */
#container {
  max-width: 1060px;
  margin: 30px auto 0 auto;
  padding: 0 20px;
}

.main {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.area-main {
  width: 100%;
  max-width: 720px;
  flex: 1;
}

.area-aside {
  width: 280px;
  margin-left: 50px;
}

/* 홈 커버 및 목록형 리스트 */
.area-common {
  margin-bottom: 40px;
}

.title-search {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.article-type-common {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

/* 목록 썸네일 처리 */
.article-type-common .thumbnail {
  width: 150px;
  height: 100px;
  margin-right: 20px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #f7f3eb;
}

/* 엑스박스 방지: 실제 img 태그는 숨기고 부모 p 태그의 background-image로만 노출 */
.article-type-common .thumbnail .img-thumbnail {
  display: none !important;
}

/* 썸네일 없는 글: 텍스트 영역이 왼쪽부터 100% 채워지도록 설정 */
.article-type-common .article-content {
  flex: 1;
  min-width: 0;
}

.article-type-common .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-type-common .title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 8px 0;
  display: block;
}

.article-type-common .title:hover {
  color: var(--accent-gold);
}

.article-type-common .summary {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-type-common .box-meta {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.article-type-common .link-category {
  color: var(--accent-gold);
  font-weight: 600;
  margin-right: 8px;
}

/* ===========================================================
 * 4. 🌟 하단 페이지 번호 (흰 배경 + 골든 텍스트/테두리)
 * =========================================================== */
.area-paging {
  text-align: center;
  margin: 45px 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 좌우 화살표 버튼 (<, >) */
.area-paging .link_page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: var(--text-sub);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 0 4px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.area-paging .link_page:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.area-paging .paging_num {
  display: inline-flex;
  align-items: center;
}

/* 일반 페이지 번호 */
.area-paging .link_num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0 3px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.area-paging .link_num:hover {
  color: var(--primary-color);
  background: #fbf7ee;
}

/* 🌟 현재 활성화된 페이지 번호 (흰 배경 + 프라이머리 골든 브라운 글씨) */
.area-paging .selected {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  border-radius: 4px;
}

.area-paging-more {
  display: none;
}

/* ==================================================
 * 5. 🌟 사이드바 프로필 & 버튼 디자인 완전 복원
 * ================================================== */
.area-aside .box-profile {
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 30px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(61, 40, 6, 0.04);
}

.area-aside .box-profile .img-profile {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: block;
  object-fit: cover;
}

.area-aside .box-profile .tit-g {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.area-aside .box-profile .text-profile {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub);
  margin-bottom: 20px;
  word-break: keep-all;
}

/* 구독하기 버튼 스타일 */
.area-aside .box-profile .btn_subscription,
.btn_subscription,
.btn_subscription * {
  font-style: normal !important;
}

.area-aside .box-profile .btn_subscription,
.btn_subscription {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 180px;
  height: 38px;
  margin: 0 auto 12px auto;
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.area-aside .box-profile .btn_subscription em,
.btn_subscription em {
  font-style: normal !important;
  font-weight: 600;
}

.area-aside .box-profile .btn_subscription:hover {
  background: var(--gold-metallic-bg);
  border-color: var(--accent-gold);
  color: var(--primary-color);
}

.btn-g {
  display: inline-block;
  flex: 1;
  max-width: 95px;
  height: 32px;
  line-height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  background-color: #faf7f0;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-g:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #ffffff;
}

/* 사이드바 메뉴 */
.area-aside .box-category,
.area-aside .box-recent,
.area-aside .box-tag,
.area-aside .box-reply,
.area-aside .box-notice,
.area-aside .box-plugins,
.area-aside .box-archive {
  margin-bottom: 30px;
}

.area-aside .title-sidebar {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.area-aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.area-aside li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* ==================================================
 * 6. 글 상세 페이지 (TOC, 본문 서체, 소제목)
 * ================================================== */
.article-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-header .category {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.article-header .title-article {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.article-header .box-info {
  font-size: 0.85rem;
  color: var(--text-sub);
}

/* TOC 목차 */
.toc-wrapper {
  background-color: #fdfaf3;
  border: 1px solid #f2e6cf;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 25px 0 35px 0;
  font-size: 0.95rem;
}

.toc-wrapper .toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.toc-wrapper .toc-title {
  font-weight: 700;
  color: var(--primary-color);
}

.toc-wrapper .toc-toggle {
  font-size: 0.85rem;
  color: var(--text-sub);
  cursor: pointer;
}

.toc-wrapper ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: toc-counter;
}

.toc-wrapper li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.toc-wrapper li a {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  cursor: pointer;
}

.toc-wrapper li a::before {
  counter-increment: toc-counter;
  content: counter(toc-counter, decimal-leading-zero);
  background: var(--gold-metallic-bg);
  color: var(--primary-color);
  border: 1px solid var(--gold-border);
  box-shadow: 0 1px 3px rgba(61, 40, 6, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

.toc-wrapper a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* 본문 & 소제목 */
.article-view,
.entry-content,
.contents_style,
#article-view {
  word-break: break-word;
  line-height: 1.8;
}

.article-view p,
.entry-content p,
.contents_style p,
#article-view p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 22px;
  word-break: keep-all;
}

.article-view img,
.entry-content img,
#article-view img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
}

.article-view h2,
.entry-content h2,
.contents_style h2,
#article-view h2 {
  clear: both;
  margin: 45px 0 20px 0;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.5;
  color: var(--primary-color) !important;
  background: var(--gold-metallic-bg);
  border-left: 8px solid var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 2px 6px rgba(212, 167, 59, 0.18);
  padding: 11px 18px;
  border-radius: 0 6px 6px 0;
}

.article-view h3,
.entry-content h3,
.contents_style h3,
#article-view h3 {
  clear: both;
  margin: 32px 0 14px 0;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1.5;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-gold);
  padding-left: 12px;
}

/* ==================================================
 * 6-2. H1 시맨틱 태그 승격에 따른 마진 및 폰트 유지
 * ================================================== */
.article-header h1.title-article {
  margin: 0 0 33px 0;
  font-weight: 400;
  line-height: 1.4;
}

@media screen and (max-width: 1060px) {
  .article-header h1.title-article {
    margin: 0 0 20px 0;
  }
}

/* ==================================================
 * 7. Swiper 캐러셀 & 광고 래퍼
 * ================================================== */
.auto-adsense-wrapper { width: 100%; clear: both; box-sizing: border-box; }
.auto-adsense-in-article { margin: 35px 0 25px 0; text-align: center; }
.auto-adsense-multiplex { margin: 40px 0 30px 0; text-align: center; }

.related-carousel-wrapper {
  margin: 40px 0 20px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.related-carousel-wrapper .carousel-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.myRelatedSwiper {
  position: relative;
  padding: 0 15px 40px 15px !important;
}

/* 🌟 좌우 네비게이션 버튼(<, >) 항상 노출 및 스타일 */
.myRelatedSwiper .swiper-button-next,
.myRelatedSwiper .swiper-button-prev {
  display: flex !important;
  color: var(--primary-color) !important;
  width: 32px !important;
  height: 32px !important;
  background: #ffffff !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(61, 40, 6, 0.12) !important;
  top: 40% !important;
  z-index: 10 !important;
  transition: all 0.2s ease;
}

.myRelatedSwiper .swiper-button-next::after,
.myRelatedSwiper .swiper-button-prev::after {
  font-size: 13px !important;
  font-weight: 800;
}

.myRelatedSwiper .swiper-button-prev { left: -5px !important; }
.myRelatedSwiper .swiper-button-next { right: -5px !important; }

.myRelatedSwiper .swiper-button-next:hover,
.myRelatedSwiper .swiper-button-prev:hover {
  background-color: #fffdf2 !important;
  border-color: var(--accent-gold) !important;
  color: var(--accent-gold) !important;
  transform: scale(1.08);
}

/* 하단 페이지네이션 인디케이터 */
.myRelatedSwiper .swiper-pagination-bullet-active {
  background-color: var(--accent-gold) !important;
}

/* 카드 래퍼 */
.carousel-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.carousel-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

/* 썸네일 크롭 영역 */
.carousel-card .thumb-crop {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #f7f3eb;
}

.carousel-card .thumb-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
}

/* 캐러셀 썸네일 없는 카드: 기본 회색/베이지 사각형 박스 */
.carousel-card .no-thumb {
  width: 100%;
  height: 100%;
  background-color: #f7f3eb;
}

/* 카드 제목 (2줄 말줄임 처리) */
.carousel-card .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 10px 12px;
  height: 40px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================================================
 * 8. 푸터 & 반응형 모바일
 * ================================================== */
#footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
  background-color: #fdfbf7;
}

#footer .inner-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-sub);
}

@media screen and (max-width: 1060px) {
  .main { flex-direction: column; }
  .area-main { max-width: 100%; }
  .area-aside { width: 100%; margin-left: 0; margin-top: 40px; }
  .header .button-menu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
  }
}

@media screen and (max-width: 768px) {
  .article-type-common { flex-direction: column; }
  .article-type-common .thumbnail { width: 100%; height: 180px; margin-bottom: 12px; }
  .article-view h2, #article-view h2 { font-size: 1.25rem !important; }
}

/* ==================================================
 * 이전글 / 현재글 / 다음글 스타일 복원 (빈 점 제거)
 * ================================================== */
.article-page {
  display: none !important;
  margin: 35px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-page .title-footer {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.article-page ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.article-page ul li {
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
}

/* 빈 li 요소는 완전히 숨김 */
.article-page ul li:empty {
  display: none !important;
}

.article-page ul li .post-label {
  display: inline-block;
  min-width: 48px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-right: 12px;
}

.article-page ul li.current-post strong {
  color: var(--primary-color);
  font-weight: 700;
}

.article-page ul li a {
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.article-page ul li a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* ==================================================
 * 푸터 관련사이트 드롭다운 버튼 스타일 복원
 * ================================================== */
#footer .inner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#footer .box-site {
  position: relative;
  margin-top: 10px;
}

#footer .box-site button {
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

#footer .box-site button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: #fffdf2;
}

#footer .box-site ul {
  position: absolute;
  bottom: 40px;
  right: 0;
  width: 150px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(61, 40, 6, 0.08);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  display: none; /* 클릭 시 토글 */
  z-index: 20;
}

#footer .box-site ul li a {
  display: block;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-main);
}

#footer .box-site ul li a:hover {
  background-color: #faf7f0;
  color: var(--accent-gold);
}