@charset "UTF-8";
@font-face {
    font-family: The Future;
    src: url(./fonts/the-future-thin.woff2) format("woff2");
    font-weight: 100;
    font-style: normal;	
}

/*!
Theme Name: antimine
Theme URI: https://antimine.me/
Author: antmine
Author URI: https://antimine.me
Description: 부깽 테마
Version: 1.0.0
Tested up to: 5.4 
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: antimine
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

antimine is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/

/* Slick carousel override styles */
.slick-slider {
  margin-bottom: 2rem;
  padding: 5px;
}

/* Swiper override styles */
.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-pagination-bullet {
  width: 20px !important;
  height: 20px !important;
}

.swiper-slide {
  max-height: 700px;
  overflow: hidden;
}

.swiper-pagination-bullet-active {
  background: var(--purple) !important;
}

/* Reset styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  src: url(https://fonts.gstatic.com/s/opensans/v40/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Typography styles */
/* ====== 1. 폰트 및 기본 설정 ====== */
:root {
  --font-family-kr: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-base: clamp(1rem, 0.9rem + 0.6vw, 1.125rem); /* 기본 본문: 16~18px */
  --font-sm: clamp(0.875rem, 0.75rem + 0.5vw, 1rem); /* 작은 글씨: 14~16px */
  --font-md: clamp(1.125rem, 1rem + 1vw, 1.5rem); /* 중간 글씨: 18~24px */
  --font-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); /* 큰 제목: 24~36px */
  --font-xl: clamp(2rem, 1.5rem + 2vw, 2.3rem); /* 섹션 타이틀: 32~48px */
  --line-height-base: 1.7;
  --line-height-heading: 1.3;
  --color-text: #1a1a1a;
  --color-heading: #111;
  --color-muted: #555;
}

/* ====== 2. 글로벌 스타일 ====== */
body {
  font-family: var(--font-family-kr);
  font-size: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* ====== 3. 기본 요소 스타일 ====== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-heading);
  line-height: var(--line-height-heading);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: var(--font-xl);
}

h2 {
  font-size: var(--font-lg);
}

h3 {
  font-size: var(--font-md);
}

h4, h5, h6 {
  font-size: var(--font-base);
  font-weight: 600;
}

p {
  margin: 1em 0;
  font-size: var(--font-base);
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #60269e;
  text-decoration: none;
}

ul, ol {
  padding-left: 1.5rem;
  margin: 1em 0;
}

blockquote {
  font-style: italic;
  color: var(--color-muted);
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin: 1.5em 0;
}

/* ====== 4. 레이아웃 구성 요소 ====== */
/* ====== 5. 캡션 / 부가정보 ====== */
.caption,
figcaption,
.wp-caption-text {
  font-size: var(--font-sm);
  color: var(--color-muted);
  text-align: center;
}

/* ====== 6. 반응형 타이포 예시: 미디어 쿼리 없이 clamp()로 처리 ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* Base styles */
body {
  background: #fff;
  color: #333;
}

/* Header layout */
.header {
  padding: 1rem;
  background: #60269E;
  color: #fff;
  margin: 10px;
}

header#masthead {
  position: relative;
  background: transparent;
  z-index: 2;
}

.site-branding {
  margin: 0;
}

p.site-title,
h1.site-title {
  margin: 0;
}

.site-header {
  position: relative;
}

/* 🌟 로고와 상단메뉴: 풀스크린(1000)보다 낮게 설정하여 메뉴가 열리면 깔끔하게 덮이도록 함 */
.header-inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  /* 왼쪽 75px 패딩: 고정된 햄버거 버튼에 로고가 가려지지 않도록 공간 확보 */
  /*padding: 0 20px 0 75px; */
  background-color: transparent;
  padding: 0 10px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-title a {
  height: 60px;
  display: block;
  background-size: contain;
      font-size: var(--font-xl);font-weight: 800;
}

@media (max-width: 1024px) {
  .site-branding {
    margin: 1.5rem auto 1.5rem !important;
  }
}
/* Footer layout */
.footer {
  padding: 1rem;
  background: #222;
  color: #ccc;
}

footer#colophon {
  position: relative;
}

/* Webflow 컨테이너 스타일 */
.w-container {
  max-width: 100%;
    margin: 0 auto 30px;
  position: relative;
}

.w-container:before,
.w-container:after {
  content: " ";
  display: table;
}

.w-container:after {
  clear: both;
}

/* 섹션 스타일 */
.gradient-section {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  color: white;
  z-index: 0;
}

/* 블러 배경 래퍼 */
.bg-gradient-blur-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* 회전 키프레임 */
@keyframes rotate-soft {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes rotate-soft-reverse {
  0% {
    transform: rotate(360deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(0.95);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}
/* 블러 원 공통 스타일 */
.bg-gradient-blur-circle {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
  mix-blend-mode: screen;
}

.circle-1 {
  background: radial-gradient(circle, #6923ff, transparent 70%);
  top: -30%;
  left: -20%;
  animation: rotate-soft 60s linear infinite;
}

.circle-2 {
  background: radial-gradient(circle, #1766ff, transparent 70%);
  bottom: -30%;
  right: -20%;
  animation: rotate-soft-reverse 80s linear infinite;
}

.circle-3 {
  background: radial-gradient(circle, #ff4895, transparent 70%);
  top: -40%;
  right: -25%;
  animation: rotate-soft 100s linear infinite;
}

/* 데스크톱(기본): 좌/우 2칼럼 + 아래 link 100% */
.site-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  align-items: start;
}

.site-info .left-section {
  grid-column: 1;
}

.site-info .right-section {
  grid-column: 2;
  justify-self: end;
}

.site-info .link {
  grid-column: 1/-1;
} /* 맨 아래 100% */

p.site-description {
    margin: 0;
}

/* 모바일: 오른쪽 -> 왼쪽 -> link 순서 */
@media (max-width: 1024px) {
  .site-info {
    display: flex;
    flex-direction: column;
  }
  .site-info .right-section {
    order: 1;
  }
  .site-info .left-section {
    order: 2;
  }
  .site-info .link {
    order: 3;
    width: 100%;
  }
}
.site-info h2 {
  color: #ddd;
  font-size: 1.21rem;
  margin-bottom: 10px;
}

.site-info h5 {
  height: 50px;
  display: block;
  background-size: contain;
  line-height: 100px;
  margin: 0 0 2rem;
}

.mogef {
  background: url(./img/mogef_white.svg) no-repeat;
  height: 40px;
  text-indent: -8000px;
  display: block;
  background-size: contain;
  max-width: 170px;
}

.link {
  border-top: 1px solid #3e3c6a;
  padding-top: 1rem;
  margin-top: 1rem;
}

.site-info p {
  margin: 0;
  font-size: 0.9rem;
}

.wp-block-mailster-form-outside-wrapper-455 {
  max-width: 500px;
  width: 100%;
}

/* Mailster block form – transparent inputs + white text + border #3e3c6a */
.wp-block-mailster-form-wrapper.mailster-block-form {
  --mf-border: #3e3c6a;
  --mf-text: #fff;
}

/* input 기본 */
.wp-block-mailster-form-wrapper.mailster-block-form .mailster-wrapper input.input {
  width: 100%;
  background: transparent !important;
  color: var(--mf-text) !important;
  border: 1px solid var(--mf-border) !important;
  border-radius: 6px;
  padding: 12px 14px;
  line-height: 1.2;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px !important;
  height: 45px !important;
  line-height: 45px !important;
  font-size: 0.9rem !important;
}

/* 이메일/이름 input 타입별 안전망 */
.wp-block-mailster-form-wrapper.mailster-block-form input[type=text].input,
.wp-block-mailster-form-wrapper.mailster-block-form input[type=email].input {
  background: transparent !important;
  color: var(--mf-text) !important;
  border-color: var(--mf-border) !important;
}

/* placeholder (현재 placeholder=" " 이지만 혹시를 대비) */
.wp-block-mailster-form-wrapper.mailster-block-form .mailster-wrapper input.input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem !important;
  height: 45px !important;
}

/* label 색 */
.wp-block-mailster-form-wrapper.mailster-block-form .mailster-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem !important;
  height: 45px !important;
}

/* focus 상태 */
.wp-block-mailster-form-wrapper.mailster-block-form .mailster-wrapper input.input:focus {
  border-color: var(--mf-border) !important;
  box-shadow: 0 0 0 3px rgba(62, 60, 106, 0.35);
}

input#mailster-id-4731c2 {
  background-color: #111;
  border: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.wp-block-mailster-field-submit:hover input {
  background-color: #60269e !important;
  transition: all 0.3s ease;
}

/* submit 버튼은 기존 스타일 유지하되 글자만 흰색으로(원치 않으면 이 블록 삭제) */
.wp-block-mailster-form-wrapper.mailster-block-form input.submit-button {
  color: #fff;
}

/* 크롬 autofill(노란 배경) 제거 */
.wp-block-mailster-form-wrapper.mailster-block-form input.input:-webkit-autofill,
.wp-block-mailster-form-wrapper.mailster-block-form input.input:-webkit-autofill:hover,
.wp-block-mailster-form-wrapper.mailster-block-form input.input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  transition: background-color 99999s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px transparent inset !important;
}

/* Main layout */
.main {
  padding: 2rem;
}

.site-main {
  z-index: 1;
  position: relative;
}

body.single-post article.post.type-post,
body.page article.page.type-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}
/* 데스크톱 레이아웃 */
article.post > .entry-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
}
h3#reply-title:after,
h1.entry-title:after {
  content: "";
  width: 300%;
  border-bottom: 1px solid;
  display: block;
  margin-left: -200%;
  padding-bottom: 25px;
}

#entry-left {
  flex: 0 0 calc(70% - 20px);
}

#entry-right {
  flex: 0 0 calc(30% - 20px);
  position: sticky;
  top: 40px; /* 스크롤 시 상단에 고정 */
}


.entry-meta-etc {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.entry-meta {
  display: flex;
  justify-content: end;
}
span.byline {
  display: none;
}

span.byline img {
  border-radius: 50%;
  margin-right: 5px;
}

span.cat-links a {
  display: block;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  margin: 5px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

span.cat-links a:hover {
  background: var(--purple);
  transition: all 0.3s ease;
}

span.tags-links {
  display: flex;
  gap: 0 7px;
  flex-flow: wrap;
}

/* 모바일 레이아웃 */
@media (max-width: 768px) {
  .entry-content {
    flex-direction: column;
    gap: 15px;
  }
  #entry-left,
  #entry-right {
    flex: none;
    width: 100%;
  }
  #entry-right {
    position: static;
    order: 2; /* 글 내용 다음에 배치 */
  }
}
/* 태블릿 중간 사이즈 */
@media (max-width: 1024px) and (min-width: 769px) {
  #entry-left {
    flex: 0 0 65%;
  }
  #entry-right {
    flex: 0 0 35%;
  }
}
/* 댓글 리스트 전체 컨테이너 */
.comment-list {
  list-style: none;
  padding: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 100px;
}

/* 부모 댓글 (depth-1) - 대화 묶음 */
.comment-list > li.depth-1 {
  border: 1px solid #555;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: visible;
}

li.depth-1:before {
  content: "";
  position: absolute;
  left: -8px;
  top: 40px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent #555 transparent transparent;
}

.comment-body {
  position: relative;
}

a.user-profile-link {
  pointer-events: none;
}

p.logged-in-as {
  position: absolute;
  left: 22px;
  width: 80px;
  top: 40px;
  text-align: center;
}

span.user-name {
  font-size: 12px;
  line-height: 1.1;
  display: block;
}

/* 부모 댓글의 메타 정보 - 왼쪽으로 돌출 */
.comment-list > li.depth-1 > .comment-body > .comment-meta {
  position: absolute;
  left: -80px;
  top: 15px;
  width: 80px;
  z-index: 10;
  text-align: center;
}

a.logout-link {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  background: rgba(252, 127, 63, 0.7803921569);
  position: absolute;
  width: 60px;
  left: 10px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  opacity: 0;
  top: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

p.logged-in-as:hover a.logout-link {
  opacity: 1;
  transition: all 0.3s ease;
}

/* 부모 댓글 아바타 */
img.avatar.avatar-60.photo.avatar,
.comment-list > li.depth-1 .comment-author .avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

li.depth-1:hover > article .comment-author .avatar {
  box-shadow: 0 2px 8px rgba(103, 5, 116, 0.95);
  transition: all 0.3s ease;
}

/* 부모 댓글 작성자명 */
.comment-list > li.depth-1 .comment-author .fn {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
  color: #333;
  line-height: 1.2;
}

/* 부모 댓글 작성자명 링크 스타일 */
.comment-list > li.depth-1 .comment-author .fn a {
  color: #333;
  text-decoration: none;
}

.comment-list > li.depth-1.bypostauthor > .children .comment-author .fn {
  color: #fff;
}

/* 부모 댓글 시간 및 편집 링크 숨김 */
.comment-list > li.depth-1 .comment-metadata {
  position: absolute;
  top: 0;
  width: 300%;
  left: 112px;
  font-size: 0.9rem;
  text-align: left;
}

li.depth-2.bypostauthor .comment-metadata a,
.comment-list > li.depth-1.bypostauthor > article .comment-metadata a {
  color: #ddd;
}

.comment-list > li.depth-1 > .children .comment-metadata {
  right: 110px;
  left: auto !important;
  z-index: 2;
  top: 5px !important;
  text-align: right;
  max-width: 180px;
}

/* 부모 댓글 내용 */
.comment-list > li.depth-1 > .comment-body > .comment-content {
  padding: 15px 20px;
  position: relative;
}

/* 부모 댓글 말풍선 꼬리 */
.comment-list > li.depth-1 > .comment-body > .comment-content::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 30px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent #fff transparent transparent;
}

.comment-list > li.depth-1.bypostauthor > .comment-body > .comment-content::before {
  border-color: transparent #60269e transparent transparent;
}

.comment-list > li.depth-1.bypostauthor {
  background: #60269e;
}

/* 부모 댓글 답글 버튼 */
.comment-list > li.depth-1 > .comment-body > .comment-reply {
  text-align: right;
  padding: 10px 20px;
  position: absolute;
  top: 10px;
  right: -60px;
}

.comment-list > li.depth-1 .comment-reply-link {
  background: #fc7f3f;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s;
  width: 60px;
  height: 60px;
  display: grid;
  border-radius: 50%;
  text-align: center;
  align-items: center;
}

.comment-list > li.depth-1 .comment-reply-link:hover {
  background: #005a87;
  color: white;
}

/* 자식 댓글 컨테이너 */
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 15px 20px 20px 20px;
  padding-top: 15px;
}

/* 자식 댓글 (depth-2+) - 오른쪽 정렬 */
.comment-list .children li {
  margin-bottom: 15px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* 자식 댓글 전체 구조 재배치 */
.comment-list .children .comment-body {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  max-width: 90%;
  width: 100%;
}

/* 자식 댓글 메타 정보 - 오른쪽 */
.comment-list .children .comment-meta {
  margin-left: 12px;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  position: relative;
}

/* 자식 댓글 아바타 */
.comment-list .children .comment-author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 자식 댓글 작성자명 */
.comment-list .children .comment-author .fn {
  display: block;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
  color: #666;
  line-height: 1.2;
}

/* 자식 댓글 작성자명 링크 */
.comment-list .children .comment-author .fn a {
  color: #666;
  text-decoration: none;
}

/* 자식 댓글 내용 영역 */
.comment-list .children .comment-content-wrapper {
  flex: 1;
}

/* 자식 댓글 내용 */
.comment-list .children .comment-content {
  background: #e3f2fd;
  border-radius: 4px;
  padding: 15px 18px;
  margin: 0;
  position: relative;
  margin-bottom: 8px;
  width: 100%;
}

.comment-awaiting-moderation {
  position: absolute;
  z-index: 2;
  color: #fc7f3f;
  right: 80px;
  font-weight: 500;
}

/* 자식 댓글 말풍선 꼬리 */
.comment-list .children .comment-content::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent #e3f2fd;
}

/* 자식 댓글 답글 버튼 */
.comment-list .children .comment-reply {
  text-align: left;
  margin-top: 5px;
}

.comment-list .children .comment-reply-link {
  background: #0288d1;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.comment-list .children .comment-reply-link:hover {
  background: #0277bd;
  color: white;
}

/* 글 작성자 댓글 스타일 */
.comment-list .depth-1.bypostauthor > .comment-body,
.comment-list .bypostauthor > .comment-body > .comment-content {
  background: #60269e !important;
  border-radius: 5px;
  color: #fff;
}

.comment-list .depth-1 > article.comment-body {
  padding: 10px;
  margin-right: 70px;
}

li.bypostauthor.depth-1:before {
  border-color: transparent #60269e transparent transparent;
}

.comment-list .children .bypostauthor .comment-content {
  width: 100%;
  background: #571c97 !important;
}

.comment-list .children .bypostauthor .comment-content::before {
  border-color: transparent transparent transparent #571c97 !important;
}

/* 플러그인 수정/삭제 버튼 스타일 */
.bouquins-comment-actions {
  margin-top: 10px;
  text-align: right;
}

.bouquins-comment-actions button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin: 0 2px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.bouquins-comment-actions button:hover {
  background: #545b62;
}

.bouquins-cmt-delete {
  background: #dc3545 !important;
}

.bouquins-cmt-delete:hover {
  background: #c82333 !important;
}

/* 수정 폼 스타일 */
.bouquins-edit-form {
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  display: none;
}

.bouquins-edit-form textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 8px;
  font-family: inherit;
  resize: vertical;
}

.bouquins-form-actions {
  margin-top: 8px;
  text-align: right;
}

.bouquins-form-actions button {
  background: #fc7f3f;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.bouquins-form-actions button:hover {
  background: #005a87;
}

.bouquins-cancel-edit {
  background: #6c757d !important;
}

.bouquins-cancel-edit:hover {
  background: #545b62 !important;
}

/* 숨겨진 원본 내용 */
.bouquins-original-content {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 댓글 폼 기본 스타일 */
.comment-form {
  max-width: 1380px;
  margin: 0 auto;
  padding-left: 100px;
  position: relative;
}

/* WordPress 기본 P 태그 제거 */
.comment-form p {
  margin: 0;
}

/* 댓글 텍스트 영역 기본 스타일 */
.comment-form-comment label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.comment-form-comment textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

/* 비로그인 사용자: CSS Grid로 레이아웃 */
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
  grid-template-areas: "comment comment comment comment" "author email password submit" "cookies cookies cookies cookies";
}

.comment-form-comment {
  grid-area: comment;
}

.comment-form-author {
  grid-area: author;
}

.comment-form-email {
  grid-area: email;
}

.comment-form-bouquins-cmt-pw {
  grid-area: password;
}

.form-submit {
  grid-area: submit;
}

.comment-form-cookies-consent {
  grid-area: cookies;
}

/* 각 필드 스타일 */
.comment-form-bouquins-cmt-pw,
.comment-form-author,
.comment-form-email {
  display: flex;
  flex-direction: column;
}

.comment-form-bouquins-cmt-pw label,
.comment-form-author label,
.comment-form-email label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* 입력 필드 */
.bouquins-guest-pw,
.comment-form-bouquins-cmt-pw input,
.comment-form-author input,
.comment-form-email input {
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  height: 44px;
}

.comment-form-bouquins-cmt-pw input:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
  outline: none;
  border-color: #60269e;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* 제출 버튼 */
.form-submit {
  display: flex;
  align-items: flex-start;
}

.form-submit input.submit {
  background: #111;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  height: 44px;
  box-sizing: border-box;
  transition: background-color 0.3s;
  width: 100%;
}

.form-submit input.submit:hover {
  background: #000;
}

/* 필수 표시 */
.required {
  color: #e74c3c;
  font-weight: bold;
}

/* 이메일 설명 텍스트 */
.pw-description,
.email-description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* 쿠키 동의 */
.comment-form-cookies-consent {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 0;
  border: 1px solid #e9ecef;
}

.comment-form-cookies-consent input[type=checkbox] {
  margin-right: 8px;
}

.comment-form-cookies-consent label {
  font-size: 13px;
  color: #495057;
  cursor: pointer;
}

/* 로그인 관련 메시지 */
.must-log-in {
  background: #f0f8ff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #007cba;
  grid-column: 1/-1;
}

/* 로그인한 사용자 프로필 영역 */
.logged-in-user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 0;
  background: none;
  border: none;
  grid-column: 1/-1;
}

.logged-in-user-profile .user-avatar {
  margin-right: 12px;
  flex-shrink: 0;
}

.logged-in-user-profile .profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #007cba;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logged-in-user-profile .user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logged-in-user-profile .user-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.logged-in-user-profile .logout-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.logged-in-user-profile .logout-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 로그인 사용자 전용 레이아웃 */
.comment-form:has(.logged-in-user-profile) {
  grid-template-areas: "profile profile profile" "comment comment comment" "submit submit submit";
  grid-template-columns: 1fr;
}

.comment-form:has(.logged-in-user-profile) .logged-in-user-profile {
  grid-area: profile;
}

.comment-form:has(.logged-in-user-profile) .comment-form-comment {
  position: relative;
  margin-left: 60px;
  margin-bottom: 20px;
}

.comment-form:has(.logged-in-user-profile) .comment-form-comment textarea {
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  border-radius: 18px 18px 18px 4px;
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* 말풍선 꼬리 */
.comment-form:has(.logged-in-user-profile) .comment-form-comment::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 40px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 12px 0;
  border-color: transparent #e1e5e9 transparent transparent;
  z-index: 1;
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: rgba(96, 38, 158, 0.9411764706);
  box-shadow: 0 0 0 1px rgba(96, 38, 158, 0.1);
}

.comment-form:has(.logged-in-user-profile) .comment-form-comment textarea:focus {
  background: #ffffff;
  border-color: rgba(96, 38, 158, 0.9411764706);
  box-shadow: 0 4px 20px rgba(96, 38, 158, 0.15);
  transform: translateY(-1px);
}

.comment-form:has(.logged-in-user-profile) .comment-form-comment textarea:focus::before {
  border-color: transparent #ffffff transparent transparent;
}

/* 로그인 사용자 라벨 숨기기 */
.comment-form:has(.logged-in-user-profile) .comment-form-comment label {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 로그인 사용자 제출 버튼 */
.comment-form:has(.logged-in-user-profile) .form-submit {
  text-align: right;
  margin-left: 60px;
  align-items: center;
  justify-content: flex-end;
}

.comment-form:has(.logged-in-user-profile) .form-submit input.submit {
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  border-radius: 20px;
  padding: 12px 24px;
  min-width: 120px;
  width: auto;
  box-shadow: 0 2px 10px rgba(0, 124, 186, 0.2);
}

.comment-form:has(.logged-in-user-profile) .form-submit input.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* 로그인 사용자에서는 이름, 이메일 필드 숨기기 */
.comment-form:has(.logged-in-user-profile) .comment-form-author,
.comment-form:has(.logged-in-user-profile) .comment-form-email {
  display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .comment-list {
    padding: 0 10px;
  }
  li.depth-1:before {
    display: none;
  }
  p.logged-in-as {
    position: relative;
    left: 0;
    width: inherit;
    top: inherit;
    text-align: left;
  }
  a.logout-link {
    position: absolute;
    top: 0;
    left: 0;
  }
  span.user-name {
    font-size: 14px;
    position: absolute;
    margin-left: 65px;
    top: 20px;
  }
  .comment-list > li.depth-1 > .comment-body > .comment-content {
    padding: 3px 15px 0;
  }
  .comment-list .depth-1 > article.comment-body {
    padding: inherit;
    margin-right: inherit;
  }
  /* 모바일에서는 왼쪽 돌출 제거 */
  .comment-list > li.depth-1 > .comment-body > .comment-meta {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    text-align: left;
    padding: 15px 20px 10px 20px;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 10px;
  }
  .comment-list > li.depth-1 > article .comment-author {
    display: flex;
    align-items: center;
  }
  .comment-list > li.depth-1 .comment-author .avatar {
    margin-bottom: 0;
  }
  .comment-list > li.depth-1 > article .comment-author .avatar {
    margin-right: 10px;
  }
  .comment-list > li.depth-1 .comment-author .fn {
    margin-top: 0;
    text-align: center;
    font-size: 12px;
  }
  .comment-list > li.depth-1.bypostauthor .comment-author .fn {
    color: #ddd;
  }
  .comment-list > li.depth-1 > .comment-body > .comment-reply {
    bottom: inherit;
    top: 3px;
    right: 0;
  }
  .comment-list > li.depth-1 > article .comment-metadata {
    font-size: 12px;
    color: #666;
    max-width: 200px;
    position: absolute;
    left: 88px;
    top: 53px;
  }
  .comment-list > li.depth-1 > .comment-body > .comment-content::before {
    display: none;
  }
  /* 자식 댓글도 모바일에서는 일반적인 형태로 */
  .comment-list .children .comment-body {
    /*  flex-direction: row;*/
    max-width: 100%;
  }
  .comment-list .children {
    margin: 5px 10px 10px 10px;
  }
  .comment-list .children .comment-meta {
    margin-left: 5px;
    margin-right: 0;
  }
  .comment-list .children .comment-content::before {
    display: none;
  }
  .comment-form {
    margin: 0;
    padding: 10px;
    gap: 1px;
    grid-template-columns: 1fr;
    grid-template-areas: "comment" "author" "email" "submit" "cookies";
  }
  .comment-form-fields-row {
    flex-direction: column;
    gap: 12px;
  }
  .comment-form-comment textarea {
    min-height: 100px;
  }
  /* 로그인 사용자 모바일 */
  .comment-form:has(.logged-in-user-profile) {
    grid-template-areas: "profile" "comment" "submit";
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-comment {
    margin-left: 0;
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-comment::after {
    display: none;
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-comment textarea {
    border-radius: 12px;
  }
  .comment-form:has(.logged-in-user-profile) .form-submit {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }
  .logged-in-user-profile {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
  .logged-in-user-profile .user-avatar {
    margin-right: 0;
  }
  .comment-form-comment textarea {
    min-height: 100px;
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-comment {
    margin-left: 0;
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-comment::after {
    display: none;
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-comment textarea {
    border-radius: 12px;
  }
  .comment-form:has(.logged-in-user-profile) .comment-form-submit-only {
    margin-left: 0;
    text-align: center;
  }
  .logged-in-user-profile {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
  }
  .logged-in-user-profile .user-avatar {
    margin-right: 0;
  }
  /* 폴백 스타일도 모바일 대응 */
  @supports not (selector(:has(*))) {
    .comment-form .logged-in-user-profile ~ .comment-form-comment {
      margin-left: 0;
    }
    .comment-form .logged-in-user-profile ~ .comment-form-comment::after {
      display: none;
    }
    .comment-form .logged-in-user-profile ~ .comment-form-comment textarea {
      border-radius: 12px;
    }
  }
}
/* 2. 3개 필드 가로 배치 컨테이너 */
.comment-form-fields-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.comment-form-fields-row > div {
  flex: 1; /* 각각 33.3% */
}

/* 각 필드 공통 스타일 */
.comment-form-author,
.comment-form-email,
.comment-form-submit {
  display: flex;
  flex-direction: column;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-submit label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  min-height: 20px; /* 라벨 높이 통일 */
}

/* 입력 필드 */
.comment-form-author input,
.comment-form-email input {
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  height: 44px; /* 버튼과 높이 맞춤 */
}

.comment-form-author input:focus,
.comment-form-email input:focus {
  outline: none;
  border-color: #60269e;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* 제출 버튼 */
.comment-form-submit input.submit,
.comment-form-submit-only input.submit {
  background: #60269e;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  height: 44px; /* 입력 필드와 높이 맞춤 */
  box-sizing: border-box;
  transition: background-color 0.3s;
}

.comment-form-submit input.submit:hover,
.comment-form-submit-only input.submit:hover {
  background: #005a87;
}

/* 로그인 사용자 전용 제출 버튼 (중앙 정렬) */
.comment-form-submit-only {
  text-align: center;
  margin-bottom: 20px;
}

.comment-form-submit-only input.submit {
  width: 200px; /* 고정 너비 */
  max-width: 100%; /* 모바일 대응 */
}

/* 필수 표시 */
.required {
  color: #e74c3c;
  font-weight: bold;
}

/* 이메일 설명 텍스트 */
.email-description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

/* 쿠키 동의 */
.comment-form-cookies-consent {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 0;
  border: 1px solid #e9ecef;
}

.comment-form-cookies-consent input[type=checkbox] {
  margin-right: 8px;
}

.comment-form-cookies-consent label {
  font-size: 13px;
  color: #495057;
  cursor: pointer;
}

/* 로그인 관련 메시지 */
.must-log-in {
  background: #f0f8ff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border-left: 4px solid #007cba;
}

/* 로그인한 사용자 프로필 영역 */
.logged-in-user-profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 0;
  background: none;
  border: none;
}

.logged-in-user-profile .user-avatar {
  margin-right: 12px;
  flex-shrink: 0;
}

.logged-in-user-profile .profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #007cba;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logged-in-user-profile .user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logged-in-user-profile .user-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.logged-in-user-profile .logout-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.logged-in-user-profile .logout-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 로그인 사용자를 위한 말풍선 스타일 댓글 영역 */
.comment-form:has(.logged-in-user-profile) .comment-form-comment {
  position: relative;
  margin-left: 60px; /* 아바타 공간 확보 */
  margin-bottom: 20px;
}

.comment-form:has(.logged-in-user-profile) .comment-form-comment textarea {
  background: #f8f9fa;
  border: 1px solid #555;
  border-radius: 18px 18px 18px 4px; /* 말풍선 모양 */
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* 말풍선 꼬리 */
.comment-form:has(.logged-in-user-profile) .comment-form-comment textarea::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f8f9fa transparent transparent;
  z-index: 2;
}

/* 말풍선 꼬리 외곽선 */
.comment-form:has(.logged-in-user-profile) .comment-form-comment::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 40px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 12px 12px 0;
  border-color: transparent #e1e5e9 transparent transparent;
  z-index: 1;
}

/* 로그인 사용자 라벨 숨기기 (말풍선에서는 불필요) */
.comment-form:has(.logged-in-user-profile) .comment-form-comment label {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* :has() 지원하지 않는 브라우저를 위한 폴백 */
@supports not (selector(:has(*))) {
  .comment-form .logged-in-user-profile ~ .comment-form-comment {
    margin-left: 60px;
  }
  .comment-form .logged-in-user-profile ~ .comment-form-comment textarea {
    background: #f8f9fa;
    border-radius: 18px 18px 18px 4px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  .comment-form .logged-in-user-profile ~ .comment-form-comment::after {
    content: "";
    position: absolute;
    left: -12px;
    top: 40px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 12px 12px 0;
    border-color: transparent #e1e5e9 transparent transparent;
  }
}
/* 로그인 사용자 전용 제출 버튼 개선 */
.comment-form:has(.logged-in-user-profile) .comment-form-submit-only {
  text-align: right;
  margin-left: 60px; /* 아바타와 정렬 */
  margin-bottom: 20px;
}

.comment-form:has(.logged-in-user-profile) .comment-form-submit-only input.submit {
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 14px;
  min-width: 120px;
  box-shadow: 0 2px 10px rgba(0, 124, 186, 0.2);
  transition: all 0.3s ease;
}

.comment-form:has(.logged-in-user-profile) .comment-form-submit-only input.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

#load-more {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-sizing: border-box;
  background: none;
  border: none;
  padding: 0;
  flex: 0 0 100px;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

.info {
  font-weight: 700;
  transition: all 0.8s ease-in-out;
  color: #ff6863;
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate(-50%, -50%);
}

#load-more:hover .spinner {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
}

#load-more .spinner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#60269E 0deg, #FC7F3F 300deg, #60269E 360deg);
  /*background: conic-gradient(#60269E, #FC7F3F); /* 그라디언트 */
  -webkit-mask: radial-gradient(farthest-side, transparent 77%, rgba(0, 0, 0, 0.5) 78%, black 80%);
  mask: radial-gradient(farthest-side, transparent 77%, rgba(0, 0, 0, 0.5) 78%, black 80%);
  transition: transform 0.8s ease-in-out;
}

/* Button component */
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #60269E;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}

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

span.sl-icon svg {
  fill: currentColor;
  vertical-align: middle;
}

span.sl-count {
  font-size: 1.45rem;
  padding-left: 4px;
  vertical-align: middle;
}

span.sl-wrapper a {
  color: #111;
}

span.sl-wrapper a:hover,
span.sl-wrapper a.liked {
  color: #f51835;
}

/* 툴팁 스타일 */
.sl-wrapper a[title] {
  position: relative;
}

.sl-wrapper a[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 133%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.sl-wrapper a[title]:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

/* Loader */
.loader,
.loader:before,
.loader:after {
  background: rgba(0, 0, 0, 0.2);
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 0.2em;
  height: 0.6em;
}

.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: "";
}

.loader:before {
  left: -0.375em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader {
  text-indent: -9999em;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  font-size: 1em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

.loader:after {
  left: 0.375em;
}

@-webkit-keyframes load1 {
  0%, 80%, 100% {
    box-shadow: 0 0 rgba(0, 0, 0, 0.2);
    height: 0.6em;
  }
  40% {
    box-shadow: 0 -0.3em rgba(0, 0, 0, 0.2);
    height: 1em;
  }
}
@keyframes load1 {
  0%, 80%, 100% {
    box-shadow: 0 0 rgba(0, 0, 0, 0.2);
    height: 0.6em;
  }
  40% {
    box-shadow: 0 -0.3em rgba(0, 0, 0, 0.2);
    height: 1em;
  }
}
/* 다크모드 버튼 */
#toggle2,
#toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  white-space: nowrap;
}

div#dark-mode-button {
  position: absolute;
  top: 66px;
  right: 5%;
  z-index: 3;
}

/* 다크모드 버튼 위치 */
.site-header > #dark-mode-button {
  position: absolute;
  top: 10px;
  right: 20px;
}

.menu-container > #dark-mode-button {
  margin-top: auto;
  display: flex;
  justify-content: center;
  width: 88px;
}

@media (max-width: 768px) {
  .menu-container > #dark-mode-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001; /* 풀스크린(1000) 위, 버튼(1002) 아래 */
  }
}
/* 토글 스위치 스타일 */
.toggleSwitch {
  width: 5.5rem;
  height: 2.8rem;
  display: block;
  position: relative;
  border-radius: 2.2rem;
  background-color: #eee;
  box-shadow: 0 0 1rem 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.2s ease-in;
}

/* 버튼 원형 핸들 */
.toggleSwitch .toggleButton {
  width: 2.6rem;
  height: 2.6rem;
  position: absolute;
  top: 49%;
  left: 0.2rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #f5bb18 url(img/moon.svg) no-repeat center;
  background-size: 25px 25px;
  transition: all 0.2s ease-in;
}

/* 체크 상태일 때 배경 및 버튼 이동 */
#toggle2:checked + .toggleSwitch,
#toggle:checked + .toggleSwitch {
  background: #f5bb18;
}
#toggle2:checked + .toggleSwitch .toggleButton,
#toggle:checked + .toggleSwitch .toggleButton {
  left: calc(100% - 2.8rem);
  background: #eee url(img/sun.svg) no-repeat center;
  background-size: 25px 25px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease-in-out;
  outline: none;
  flex-shrink: 0;
}
.icon-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
  border-color: #999;
}
.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.icon-btn.btn-prev::before, .icon-btn.btn-next::before, .icon-btn.swiper-button-prev::after, .icon-btn.swiper-button-next::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  top: 50%;
  left: 50%;
  font-family: unset;
}
.icon-btn.btn-prev::before, .icon-btn.swiper-button-prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}
.icon-btn.btn-next::before, .icon-btn.swiper-button-next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}
.icon-btn.swiper-autoplay-toggle .pause-icon, .icon-btn.swiper-autoplay-toggle .play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.icon-btn.swiper-autoplay-toggle .pause-icon::before {
  content: "";
  display: block;
  width: 4px;
  height: 14px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.icon-btn.swiper-autoplay-toggle .play-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid currentColor;
  margin-left: 4px;
}

.nav-controls,
.slider-controls .nav-buttons,
.ajax-slider-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.nav-buttons {
  max-width: 180px;
}

.full-width {
  width: 100%;
  position: relative;
}
.full-width #prevBtn {
  margin-right: auto;
}
.full-width #nextBtn {
  margin-left: auto;
}
.full-width #pauseBtn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

[data-theme=dark] .icon-btn {
  background-color: #2a2a2a;
  border-color: #444;
  color: #eee;
}
[data-theme=dark] .icon-btn:hover:not(:disabled) {
  background-color: #3a3a3a;
  border-color: #666;
}

/**
 * grid Slider component
 * 그리드 슬라이더더
 */
.grid-slider-wrapper {
  background: #efefef;
  position: relative;
  padding: 2rem 0;
  background-image: linear-gradient(135deg, transparent 45%, #60269e 45%, #60269e 55%, transparent 0);
  background-size: 4px 4px;
}
.grid-slider-wrapper h2 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color: #222;
  letter-spacing: -1px;
  background-image: linear-gradient(135deg, transparent 45%, #60269e 45%, #60269e 55%, transparent 0);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: #eee;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: -90px;
  margin-bottom: 3rem;
}
[data-theme=dark] .grid-slider-wrapper {
  background: transparent;
  background-image: linear-gradient(135deg, transparent 45%, #60269e 45%, #60269e 55%, transparent 0);
  background-size: 4px 4px;
}
[data-theme=dark] .grid-slider-wrapper h2 {
  background-color: transparent;
}

.swiper.large-swiper.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
  border-radius: 10px;
}

.custom-rotating-slider {
  display: flex;
  max-width: 1400px;
  height: 500px;
  margin: auto;
  position: relative;
  user-select: none;
}

.swiper {
  height: 100%;
}

.large-swiper .swiper-slide {
  transition: transform 0.4s ease-out !important;
}

.large-swiper .swiper-slide img {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.large-swiper .swiper-slide a:hover img,
.small-slide a:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.small-slide:hover img,
#largeSlideWrapper:hover img {
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

.large-swiper .swiper-slide:hover img.main-image {
  transform: scale(1.05) !important;
}

/* 자동 전환 시 미세한 줌 효과 */
@keyframes subtleZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.auto-transition {
  animation: subtleZoom 5s ease-in-out infinite;
}

/* 드래그 상태 커서 스타일 */
.custom-rotating-slider.grabbing {
  cursor: grabbing;
}

.custom-rotating-slider.grabbing img {
  cursor: grabbing;
}

/* 작은 슬라이드 효과 */
.small-slide img {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 활성화 상태 클래스 */
.slide-active {
  transform: scale(1) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}

.slide-next {
  transform: translateX(20%) scale(0.9);
  opacity: 0.7;
  z-index: 1;
}

.slide-prev {
  transform: translateX(-20%) scale(0.9);
  opacity: 0.7;
  z-index: 1;
}

/* 오버레이 효과 */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%);
  z-index: 3;
  pointer-events: none;
}

.left-panel {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.right-panel {
  width: 50%;
  height: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.large-swiper img,
.small-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-drag: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* 추가: 링크 영역 확장을 위한 스타일 */
.large-swiper .swiper-slide a,
.small-slide a {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* 제목 링크만 클릭 가능 */
}

.small-slide,
.large-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden; /* 애니메이션 성능 향상 */
  transform: translate3d(0, 0, 0); /* 하드웨어 가속 활성화 */
}

.nav-controls {
  position: absolute;
  top: 10px;
  left: 1%;
  /* transform: translateX(-50%); */
  display: flex;
  gap: 20px;
  width: 48%;
  z-index: 2;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.custom-rotating-slider:hover .nav-controls {
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* 추가된 스타일 */
.slide-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-title-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 4;
}

.slide-title-link {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  display: block;
  padding: 10px;
  transition: all 0.3s ease;
}

.slide-title-link:hover {
  color: #ffcc00;
  transform: translateY(-3px);
}

/* 오른쪽 작은 이미지 캡션 스타일 추가 */
.small-slide {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.small-slide:hover {
  opacity: 1;
  transition: all 0.3s ease;
}

.small-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  z-index: 2;
}

.small-slide-caption h4 {
  margin: 0;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 10px;
}
.small-slide-caption h4 a {
  color: white;
  text-decoration: none;
}

.small-slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* [필수] 터치 컨트롤 */
.left-panel {
  touch-action: pan-y; /* 세로 스크롤 허용 + 가로 터치 제어 */
  position: relative;
}

/* [선택] 드래그 효과 */
.large-swiper .swiper-slide {
  transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.21, 0.99);
}

/* [필수] 링크 레이어 보호 */
.slide-title-link, .small-slide-link {
  position: relative;
  z-index: 20;
}

/* [선택] 모바일 터치 피드백 */
@media (hover: none) {
  .large-swiper .swiper-slide {
    transition-duration: 0.2s;
  }
}
.small-slide-inner {
  transform: scale(0.95);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.small-slide-inner.animated {
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  height: 100%;
}

.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #ffcc00;
  animation: progressBar 4s linear forwards;
}

@keyframes progressBar {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
@keyframes thumbFromRight {
  0% {
    transform: translateX(30px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes thumbFromBottom {
  0% {
    transform: translateY(30px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes thumbFromTop {
  0% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes thumbFromLeft {
  0% {
    transform: translateX(-30px);
  }
  100% {
    transform: translateX(0);
  }
}
/* 모바일 (600px 이하) 반응형 처리 */
@media (max-width: 600px) {
  .custom-rotating-slider {
    flex-direction: column; /* right-panel을 아래로 내림 */
    height: auto; /* 고정 높이(500px) 해제하여 내용물에 맞게 늘어남 */
    padding: 0; /* 필요시 래퍼의 기본 패딩 초기화 */
  }
  .left-panel {
    width: 100%;
    height: 350px; /* 모바일 메인 슬라이더 높이 (원하는 대로 조정 가능) */
    padding: 0 10px; /* 좌우 10px 띄우기 */
    box-sizing: border-box;
    margin-bottom: 15px; /* 아래쪽 right-panel과의 간격 */
  }
  .right-panel {
    width: 100%;
    height: 350px; /* 모바일 우측(하단) 4개 슬라이더 그리드 높이 */
    padding: 0 10px; /* 좌우 10px 띄우기 (기존 유지) */
    box-sizing: border-box;
  }
}
/**
 * vertical list slider
 * 왼쪽 목록 리스트 슬라이더
 */
.dual-slider-fixed {
  display: flex;
  gap: 40px;
  align-items: stretch;
  padding: 40px;
  max-height: 800px;
  overflow: hidden;
}

.post-list-fixed-wrapper {
  width: 40%;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}

.post-list-fixed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.6s ease;
  position: relative;
  width: 100%;
}

.post-item-fixed {
  position: relative;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  opacity: 0.5;
  transition: all 0.5s ease;
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-item-fixed.active {
  opacity: 1;
  background: #e0e0e0;
  font-weight: bold;
  z-index: 2;
  gap: 0;
}

.post-item-fixed.active .post-thumbnail {
  width: 0;
  min-width: 0;
  opacity: 0;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumbnail.entry img {
    width: inherit;
	max-width:100%;
	
}
.post-content {
  flex: 1;
  transition: all 0.3s ease;
}
.post-content .sl-icon {
  margin-left: 10px;
}

.post-item-fixed.active .post-content {
  margin-left: 0;
}

.overlay-link {
  pointer-events: none;
}

.post-item-fixed.active .overlay-link {
  pointer-events: inherit;
  inset: 0;
  z-index: 1;
  width: 100%;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: transparent;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  z-index: 0;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #60269E, #FC7F3F);
  transition: width 0.3s ease;
}

.post-image-fixed {
  width: 60%;
  max-height: 800px;
  position: relative;
  overflow: hidden;
  user-select: none; /* 드래그 시 텍스트 선택 방지 */
  -webkit-user-drag: none; /* 웹킷 기반 브라우저에서 이미지 드래그 방지 */
}

.post-image-fixed img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
@media (max-width: 468px) {
  .swiper-pagination {
    display: none;
  }
}

.swiper-slide-caption {
  position: absolute;
  bottom: 0;
  display: none;
}

@keyframes m-spin-forward {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes m-spin-backward {
  0% {
    transform: rotate(360deg) scale(1.1);
  }
  50% {
    transform: rotate(180deg) scale(0.9);
  }
  100% {
    transform: rotate(0deg) scale(1.1);
  }
}
@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  }
  50% {
    border-radius: 40% 60% 70% 30%/50% 60% 30% 60%;
  }
}
.blob-slider-outer {
  --local-bg: #fdfdfd;
  --local-c1: rgba(255, 113, 85, 0.7);
  --local-c2: rgba(190, 100, 255, 0.6);
  --local-c3: rgba(90, 210, 180, 0.7);
  --local-blend: normal;
  --local-text: #111111;
  --local-date: #666666;
  --local-blob-bg: #ffffff;
  --local-shadow: rgba(0, 0, 0, 0.08);
  --local-blur: 90px;
  --glass-blur: 35px;
  --noise-opacity: 0.12;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: var(--local-bg);
  position: relative;
  transition: background-color 0.5s ease;
}
[data-theme=dark] .blob-slider-outer, .blob-slider-outer[data-theme=dark] {
  --local-bg: #121212;
  --local-c1: rgba(220, 70, 50, 0.6);
  --local-c2: rgba(150, 50, 190, 0.5);
  --local-c3: rgba(50, 150, 130, 0.5);
  --local-blend: screen;
  --local-text: #fcfcfc;
  --local-date: #aaaaaa;
  --local-blob-bg: #1e1e1e;
  --local-shadow: rgba(0, 0, 0, 0.6);
  --noise-opacity: 0.08;
}

@media (max-width: 768px) {
  .blob-slider-outer {
    height: auto;
    min-height: 600px;
  }
}
.blob-slider-outer .mesh-bg-fixed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.blob-slider-outer .mesh-bg-fixed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 2;
}
.blob-slider-outer .mesh-bg-fixed::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend, normal);
  z-index: 3;
}
.blob-slider-outer .mesh-cluster {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 600px;
  filter: blur(var(--local-blur));
  z-index: 1;
}
.blob-slider-outer .mesh-circle {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: var(--local-blend);
  will-change: transform;
}
.blob-slider-outer .mesh-circle.mc1 {
  width: 550px;
  height: 550px;
  background: var(--local-c1);
  top: -5%;
  left: 0%;
  transform-origin: 40% 60%;
  animation: m-spin-forward 15s linear infinite;
}
.blob-slider-outer .mesh-circle.mc2 {
  width: 450px;
  height: 450px;
  background: var(--local-c2);
  bottom: -5%;
  right: 0%;
  transform-origin: 60% 40%;
  animation: m-spin-backward 20s linear infinite;
}
.blob-slider-outer .mesh-circle.mc3 {
  width: 500px;
  height: 500px;
  background: var(--local-c3);
  top: 15%;
  left: 30%;
  transform-origin: 45% 55%;
  animation: m-spin-forward 25s linear infinite;
}
.blob-slider-outer .swiper.my-blob-slider {
  position: relative;
  z-index: 10;
  height: 100%;
}
.blob-slider-outer .swiper.my-blob-slider:not(.swiper-initialized) .swiper-slide {
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  top: 0;
  left: 0;
  pointer-events: none;
}
.blob-slider-outer .swiper.my-blob-slider:not(.swiper-initialized) .swiper-slide:first-child {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  pointer-events: auto;
}
.blob-slider-outer .blob-swiper-slide {
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: var(--local-text);
  transition: color 0.5s ease;
}
@media (max-width: 768px) {
  .blob-slider-outer .blob-swiper-slide {
    align-items: flex-start;
    padding-top: 30px;
  }
}
.blob-slider-outer .slide-inner-box {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 60px;
}
@media (max-width: 768px) {
  .blob-slider-outer .slide-inner-box {
    flex-direction: column-reverse;
    text-align: center;
    padding: 0;
    gap: 20px;
  }
}
.blob-slider-outer .slide-inner-box .text-wrap {
  flex: 1.2;
}
.blob-slider-outer .slide-inner-box .text-wrap .post-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--local-date);
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: 1px;
  transition: color 0.5s ease;
}
.blob-slider-outer .slide-inner-box .text-wrap .post-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 25px 0;
  color: var(--local-text);
  word-break: keep-all;
  /*font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  font-family: "맑은 고딕", dotum, "돋움", sans-serif;*/
}
@media (max-width: 468px) {
  .blob-slider-outer .slide-inner-box .text-wrap .post-title {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
  }
}
.blob-slider-outer .slide-inner-box .image-blob-frame {
  width: 460px;
  height: 460px;
  background-size: cover;
  background-position: center;
  border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
  animation: blob-morph 10s ease-in-out infinite;
  box-shadow: 0 20px 50px var(--local-shadow);
  background-color: var(--local-blob-bg);
  position: relative;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
@media (max-width: 768px) {
  .blob-slider-outer .slide-inner-box .image-blob-frame {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
}

.client-testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  padding: 80px 5%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #444;
  overflow: hidden;
  transition: all 0.3s ease;
}
.client-testimonial-wrapper .testimonial-header {
  width: 35%;
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client-testimonial-wrapper .testimonial-header .subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.client-testimonial-wrapper .testimonial-header .main-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color: #222;
  letter-spacing: -1px;
  background-image: linear-gradient(135deg, transparent 45%, var(--white) 45%, var(--white) 55%, transparent 0);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: #222;
}
.client-testimonial-wrapper .testimonial-slider-area {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client-testimonial-wrapper .testimonial-slider-area .comments-slider {
  width: 100%;
  overflow: hidden;
}
.client-testimonial-wrapper .comment-slide {
  cursor: pointer;
  padding-right: 20px;
  transition: opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
.client-testimonial-wrapper .comment-slide .comment-author {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.client-testimonial-wrapper .comment-slide .comment-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.client-testimonial-wrapper .swiper-slide-active {
  opacity: 1 !important;
  pointer-events: auto;
}
.client-testimonial-wrapper .swiper-slide-next {
  opacity: 0.8 !important;
  pointer-events: auto;
}
.client-testimonial-wrapper .swiper-slide-next + .swiper-slide {
  opacity: 0.5 !important;
  pointer-events: auto;
}
.client-testimonial-wrapper .slider-controls {
  margin-top: 40px;
  position: relative;
}
.client-testimonial-wrapper .slider-controls .control-line {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(to right, #ccc 0, #ccc 4px, transparent 4px, transparent 8px);
  margin-bottom: 20px;
}
@media (max-width: 992px) {
  .client-testimonial-wrapper .testimonial-header,
  .client-testimonial-wrapper .testimonial-slider-area {
    width: 100%;
  }
  .client-testimonial-wrapper .testimonial-header {
    margin-bottom: 40px;
  }
  .client-testimonial-wrapper .testimonial-header .main-title {
    font-size: 40px;
  }
}

.comment-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.comment-modal .modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh; /* 화면 높이의 80%까지만 커지도록 제한 */
  overflow-y: auto; /* 세로로 내용이 넘칠 경우 스크롤 생성 */
  border-radius: 5px; /* 요청하신 모서리 둥글기 */
  position: relative;
  animation: modalFadeIn 0.3s;
}
.comment-modal .modal-content::-webkit-scrollbar {
  width: 6px;
}
.comment-modal .modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.comment-modal .modal-content .close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  z-index: 10;
}
.comment-modal .modal-content .comment-author-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
}
.comment-modal .modal-content .comment-author-info #modalDate {
  font-size: 0.8em;
}
.comment-modal .modal-content .comment-author-info #modalAuthor {
  font-weight: 500;
}
.comment-modal .modal-content .comment-author-info #modalAvatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.comment-modal .modal-content .comment-full-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  word-break: break-all;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme=dark] .client-testimonial-wrapper {
  color: #cccccc;
}
[data-theme=dark] .client-testimonial-wrapper .testimonial-header .main-title {
  color: #f0f0f0;
}
[data-theme=dark] .client-testimonial-wrapper .comment-slide .comment-author {
  color: #999999;
}
[data-theme=dark] .client-testimonial-wrapper .comment-slide .comment-excerpt {
  color: #cccccc;
}
[data-theme=dark] .client-testimonial-wrapper .slider-controls .control-line {
  background: repeating-linear-gradient(to right, #444444 0, #444444 4px, transparent 4px, transparent 8px);
}
[data-theme=dark] .comment-modal .modal-content {
  background-color: #2a2a2a;
  color: #cccccc;
}
[data-theme=dark] .comment-modal .modal-content .close-modal {
  color: #ccc;
}
[data-theme=dark] .comment-modal .modal-content .comment-author-info {
  border-bottom-color: #444444;
}
[data-theme=dark] .comment-modal .modal-content .comment-author-info strong {
  color: #f0f0f0;
}
[data-theme=dark] .comment-modal .modal-content .comment-full-content {
  color: #cccccc;
}

/**
 * ajax-slider 최신글 - 최종 수정본 (1px 튀김 방지 적용)
 */
header.entry-header,
div#comments,
.ajax-slider-wrapper-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.ajax-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  margin-bottom: 5rem;
  margin-top: 3rem;
}

h1.front-masonry,
.ajax-slider-wrapper h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  color: #222;
  letter-spacing: -1px;
  background-image: linear-gradient(135deg, transparent 45%, #60269e 45%, #60269e 55%, transparent 0);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: #ccc;
  z-index: 5;text-transform: uppercase;
}
.front-masonry-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 60px;
}
.ajax-slider-wrapper .ajax-slider-track {
  display: flex;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;margin-top:2rem;
}
.ajax-slider-wrapper .ajax-slide-set {
  min-width: 100%;
  padding: 10px;
  box-sizing: border-box;
}
.ajax-slider-wrapper .ajax-post-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ajax-slider-wrapper .ajax-post-card:last-child {
  border-bottom: none;
}
.ajax-slider-wrapper .ajax-post-card .post-thumbnail {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}
.ajax-slider-wrapper .ajax-post-card .post-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ajax-slider-wrapper .ajax-post-card .post-content {
  flex: 1;
  min-width: 0;
}
.ajax-slider-wrapper .ajax-post-card .post-content .post-title-link {
  display: inline-block;
  text-decoration: none;
  color: #333;
  position: relative;
  max-width: 100%;
}
.ajax-slider-wrapper .ajax-post-card .post-content .post-title-link h2 {
  font-size: 18px;
  margin: 0 0 5px 0;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}
.desktop-only-nav .primary-menu-row li > a::after,
.ajax-slider-wrapper .ajax-post-card .post-content .post-title-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #60269e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.desktop-only-nav .primary-menu-row li > a:hover::after,
.ajax-slider-wrapper .ajax-post-card .post-content .post-title-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.ajax-slider-wrapper .ajax-post-card .post-date {
  display: block;
  font-size: 12px;
  color: #999;
}
.ajax-slider-wrapper .ajax-slider-controls {
  padding: 20px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;    position: absolute;
    top: 0;
    right: 10px;
}

@media (max-width: 480px) {
  .ajax-slider-wrapper .ajax-post-card .post-thumbnail img {
    width: 80px;
    height: 80px;
  }
  .ajax-slider-wrapper .ajax-post-card .post-content .post-title-link h2 {
    font-size: 16px;
  }
}
.history-slider-container {
  font-family: "Arial", sans-serif;
  background: var(--history-bg-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  min-height: 100vh;
  padding: 20px;
}
.history-slider-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.history-main-container {
  max-width: 1200px;
  margin: 0 auto;
}

.history-slider-container-wrapper {
  background: white;
  border-radius: var(--history-border-radius, 20px);
  box-shadow: var(--history-shadow, 0 20px 40px rgba(0, 0, 0, 0.1));
  overflow: hidden;
  margin-bottom: 40px;
}

.history-year-navigation {
  background: var(--history-primary-color, #2c3e50);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  position: relative;
}
@media (max-width: 767px) {
  .history-year-navigation {
    padding: 15px;
    flex-wrap: nowrap;
  }
}

.history-nav-arrow {
  background: var(--history-secondary-color, #3498db);
  border: none;
  color: white;
  font-size: 18px;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0 15px;
  z-index: 10;
}
.history-nav-arrow:hover:not(:disabled) {
  background: var(--history-secondary-dark, #2980b9);
  transform: scale(1.1);
}
.history-nav-arrow:disabled {
  background: #7f8c8d;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 767px) {
  .history-nav-arrow {
    margin: 0 8px;
    padding: 8px 12px;
    font-size: 16px;
  }
}
@media (max-width: 479px) {
  .history-nav-arrow {
    margin: 0 5px;
    padding: 6px 10px;
    font-size: 14px;
  }
}

.history-year-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 767px) {
  .history-year-wrapper {
    flex: 1;
    min-width: 0;
  }
}

.history-year-list {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
  padding: 0 10px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: center;
  width: 100%;
}
.history-year-list::-webkit-scrollbar {
  display: none;
}
@media (max-width: 767px) {
  .history-year-list {
    gap: 10px;
    padding: 0 5px;
    justify-content: flex-start;
  }
}
@media (max-width: 479px) {
  .history-year-list {
    gap: 8px;
  }
}

.history-year-item {
  background: transparent;
  border: 2px solid var(--history-primary-light, #34495e);
  color: var(--history-text-light, #ecf0f1);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
  scroll-snap-align: center;
}
.history-year-item.active {
  background: var(--history-accent-color, #e74c3c);
  border-color: var(--history-accent-color, #e74c3c);
  color: white;
  transform: scale(1.1);
}
.history-year-item:hover:not(.active) {
  background: var(--history-primary-light, #34495e);
  border-color: var(--history-primary-color, #2c3e50);
}
@media (max-width: 767px) {
  .history-year-item {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 50px;
  }
}
@media (max-width: 479px) {
  .history-year-item {
    min-width: 45px;
    padding: 5px 10px;
    font-size: 11px;
  }
}

.history-main-slider {
  height: 500px;
}

.history-slide-content {
  display: flex;
  height: 100%;
}
@media (max-width: 767px) {
  .history-slide-content {
    flex-direction: column;
  }
}

.history-slide-left {
  flex: 1;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) {
  .history-slide-left {
    flex: none;
    height: 250px;
  }
}

.history-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.history-slide-image:hover {
  transform: scale(1.05);
}

.history-slide-right {
  flex: 1;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767px) {
  .history-slide-right {
    flex: none;
    padding: 30px 20px;
  }
}

.history-slide-year {
  font-size: 4rem;
  font-weight: bold;
  color: var(--history-text-dark, #2c3e50);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
  .history-slide-year {
    font-size: 2.5rem;
  }
}

.history-slide-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--history-text-lighten, #34495e);
  margin-bottom: 15px;
}
@media (max-width: 767px) {
  .history-slide-title {
    font-size: 1.4rem;
  }
}

.history-slide-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #495057;
  opacity: 0;
  transform: translateY(20px);
  animation: historyFadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}
@media (max-width: 767px) {
  .history-slide-description {
    font-size: 1rem;
  }
}

@keyframes historyFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.history-list-container {
  background: white;
  border-radius: var(--history-border-radius, 20px);
  box-shadow: var(--history-shadow, 0 20px 40px rgba(0, 0, 0, 0.1));
  overflow: hidden;
  padding: 40px;
}
@media (max-width: 767px) {
  .history-list-container {
    padding: 20px;
  }
}

.history-list-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--history-text-dark, #2c3e50);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.history-list-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--history-accent-color, #e74c3c);
  border-radius: 2px;
}

.history-timeline {
  position: relative;
  padding: 20px 0;
}
.history-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--history-accent-color, #e74c3c);
}
@media (max-width: 767px) {
  .history-timeline::before {
    left: 15px;
  }
}

.history-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
  opacity: 0;
  transform: translateY(20px);
  animation: historyFadeInUp 0.6s ease forwards;
}
.history-item:nth-child(1) {
  animation-delay: 0.1s;
}
.history-item:nth-child(2) {
  animation-delay: 0.2s;
}
.history-item:nth-child(3) {
  animation-delay: 0.3s;
}
.history-item:nth-child(4) {
  animation-delay: 0.4s;
}
.history-item:nth-child(5) {
  animation-delay: 0.5s;
}
.history-item.featured {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid var(--history-accent-color, #e74c3c);
  padding: 20px 20px 20px 75px;
  border-radius: 10px;
  margin-right: 20px;
}
@media (max-width: 767px) {
  .history-item.featured {
    padding: 15px 15px 15px 45px;
  }
}
.history-item::before {
  content: "";
  position: absolute;
  left: -55px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--history-accent-color, #e74c3c);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
@media (max-width: 767px) {
  .history-item::before {
    left: -25px;
  }
}
.history-item.featured::before {
  background: var(--history-accent-color, #e74c3c);
  width: 24px;
  height: 24px;
  left: -57px;
  top: 8px;
}
@media (max-width: 767px) {
  .history-item.featured::before {
    left: -27px;
  }
}
@media (max-width: 767px) {
  .history-item {
    padding-left: 50px;
  }
}

.history-year {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--history-accent-color, #e74c3c);
  margin-bottom: 10px;
}

.history-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--history-text-dark, #2c3e50);
  margin-bottom: 10px;
}

.history-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.history-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-featured-badge {
  display: inline-block;
  background: var(--history-accent-color, #e74c3c);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

@keyframes historySpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.history-error {
  text-align: center;
  padding: 20px;
  color: var(--history-accent-color, #e74c3c);
  font-weight: 500;
}

.history-page-content {
  margin-top: 40px;
}
.history-page-content :where(h1, h2, h3, h4, h5, h6) {
  color: var(--history-text-dark, #2c3e50);
  margin-bottom: 1rem;
}
.history-page-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.history-page-content ul, .history-page-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* #site-loader
================================================== */
.site-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-hash {
  width: 160px;
  height: 160px;
  fill: none;
  transform-origin: center;
}

.spinning {
  animation: spin 6s linear infinite;
}

.indicator-float {
  opacity: 0.7;
  animation: indicator-float 2.5s ease-in-out infinite;
  will-change: transform, opacity;
}

.line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 2.8s ease-in-out forwards infinite;
  fill-opacity: 0.5;
  will-change: stroke-dashoffset, fill-opacity;
}

.line,
.indicator-float {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.purple {
  fill: #60269E;
}

.orange {
  fill: #FC7F3F;
}

.delay-0 {
  animation-delay: 0s;
}

.delay-1 {
  animation-delay: 0.4s;
}

.delay-2 {
  animation-delay: 0.8s;
}

.delay-3 {
  animation-delay: 1.2s;
}

.delay-4 {
  animation-delay: 1.6s;
}

.delay-5 {
  animation-delay: 2s;
}

.delay-6 {
  animation-delay: 2.4s;
}

.delay-7 {
  animation-delay: 2.8s;
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 2000;
    fill-opacity: 0.1;
  }
  40% {
    stroke-dashoffset: 0;
    fill-opacity: 0.4;
  }
  70% {
    stroke-dashoffset: 0;
    fill-opacity: 0.7;
  }
  100% {
    stroke-dashoffset: 2000;
    fill-opacity: 1;
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Floating animation */
@keyframes indicator-float {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px);
  }
}
/* #Progress
================================================== */
.progress-wrap {
  position: fixed;
  right: 10px;
  bottom: 50px;
  height: 51.3px;
  width: 51.3px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 3px rgba(70, 69, 69, 0.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1;
}

svg#arrow_up {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  fill: currentColor;
  pointer-events: none;
  width: 20px;
  height: 18px;
  transition: all 200ms ease;
}

.progress-wrap:hover #arrow_up {
  fill: #FC7F3F; /* 호버 시 색상 변경 */
  transform: translate(-50%, -59%); /* 약간 위로 이동 */
}

.progress-wrap svg path {
  /*fill: none; */
}

.progress-wrap svg.progress-circle path {
  /*stroke: var(--red);*/
  stroke-width: 4;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

/* 다크모드  */
[data-theme=dark] .progress-wrap {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* =========================================
   1. 헤더 기본 구조 및 z-index 정렬
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.screen-reader-text, .visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* =========================================
   2. 햄버거 버튼 (항상 최상단 유지)
   ========================================= */
.menu-toggle {
  position: sticky;
    top: 20px;
	left:5px;
  z-index: 1002; /* 🌟 풀스크린(1000)보다 높아 X 버튼이 항상 위에 보임 */
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: -1000px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  margin-bottom: -48px;
}
.menu-toggle span, .menu-toggle span:before, .menu-toggle span:after {
  display: block;
  width: 27px;
  height: 3px;
  background-color: #222;
  transition: all 0.3s ease;
  position: absolute;
}
.menu-toggle span:before {
  top: -8px;
  content: "";
}
.menu-toggle span:after {
  top: 8px;
  content: "";
}

@media (max-width: 1024px) {
  .menu-toggle {
    position: fixed;

  }
}

.menu-open .menu-toggle span {
  background-color: transparent !important;
}

.menu-open .menu-toggle span:before {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:after {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   3. PC 가로형 상단 메뉴 (Desktop Nav)
   ========================================= */
.desktop-only-nav {
  display: none;
  margin-left: auto; /* 우측 끝 정렬 */
}
@media (min-width: 769px) {
  .desktop-only-nav {
    display: block;
  }
  .desktop-only-nav .primary-menu-row {
    display: block;text-transform: uppercase;
    gap: 20px;
    list-style: none;        width:260px;
    /* PC 호버 AJAX 썸네일 (80x80) */
  }
  .desktop-only-nav .primary-menu-row li {
    position: relative;
    list-style: none;
    /* 🌟 우측 끝 메뉴가 화면 밖으로 나가는 것 방지 */
  }
  .desktop-only-nav .primary-menu-row li > a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    padding: 0px; position:relative;
    transition: color 0.2s;
  }
  .desktop-only-nav .primary-menu-row li > a:hover {
    color: #60269e;
  }
  .desktop-only-nav .primary-menu-row li:last-child .sub-menu, .desktop-only-nav .primary-menu-row li:last-child .mega-dropdown-posts {
    left: auto;
    right: 0;
  }
  .desktop-only-nav .primary-menu-row .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    border-radius: 4px;
    padding: 5px 0;
  }
  .desktop-only-nav .primary-menu-row .sub-menu li a {
    padding: 10px 20px;
    display: block;
    color: #333;
    font-weight: 500;
    font-size: medium;
  }
  .desktop-only-nav .primary-menu-row .sub-menu li a:hover {
    background-color: #f1f3f5;
    color: #000;
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 380px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin: 1em 0.3em;
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a .mega-sub-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a .mega-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a .mega-sub-title {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0;
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a:hover .mega-sub-thumb img {
    transform: scale(1.05);
  }
  .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a:hover .mega-sub-title {
    color: #000;
    text-decoration: underline;
  }
  .desktop-only-nav .primary-menu-row li:hover .sub-menu, .desktop-only-nav .primary-menu-row li:focus-within .sub-menu, .desktop-only-nav .primary-menu-row li:hover .mega-dropdown-posts, .desktop-only-nav .primary-menu-row li:focus-within .mega-dropdown-posts {
    opacity: 1;
    visibility: visible;
  }
}

li.current-menu-item > a {
    color: #60269e !important;
    font-weight: 900 !important;
}
/* =========================================
   4. 전체 화면 메뉴 오버레이 (사이트맵)
   ========================================= */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000; /* 🌟 오버레이 z-index */
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
}
.fullscreen-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-container {
  display: flex;
  flex-direction: column;
  padding: 100px 5% 40px;
}

.mega-search-area {
  margin-bottom: 30px;
}
.mega-search-area form {
  display: flex;
  border-bottom: 3px solid #333;
  padding-bottom: 15px;
}
.mega-search-area form input[type=search] {
  border: none;
  background: transparent;
  flex-grow: 1;
  padding: 10px;
  font-size: 1.2rem;
  outline: none;
}
.mega-search-area form button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.mega-search-area form button:hover {
  color: #000;
}

.primary-menu-col {
  list-style: none;text-transform: uppercase;
}
.primary-menu-col li {
  margin: 12px 0;
}
.primary-menu-col a, .primary-menu-col .menu-trigger {
  color: #333;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: all 0.2s;
}
.primary-menu-col a:hover, .primary-menu-col .menu-trigger:hover {
  background-color: #f1f3f5;
  color: #000;
}
.primary-menu-col .sub-menu {
  list-style: none;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: all 0.4s ease;
  padding-left: 20px;
}
.primary-menu-col .sub-menu li a {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 12px 10px;
  border: none;
}
.primary-menu-col li.is-open > .sub-menu {
  max-height: 2000px;
  opacity: 1;
  visibility: visible;
  margin-top: 10px;
}
.primary-menu-col li.menu-item-has-children > .menu-trigger {
  position: relative;
}
.primary-menu-col li.menu-item-has-children > .menu-trigger::after {
  content: "▶";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.primary-menu-col li.menu-item-has-children.is-open > .menu-trigger::after {
  transform: translateY(-50%) rotate(90deg);
}
.primary-menu-col .mega-dropdown-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}
.primary-menu-col .mega-dropdown-posts .mega-sub-post a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border: none;
  background: transparent;
  transition: background 0.2s;
  border-radius: 6px;
}
.primary-menu-col .mega-dropdown-posts .mega-sub-post a .mega-sub-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #e9ecef;
}
.primary-menu-col .mega-dropdown-posts .mega-sub-post a .mega-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.primary-menu-col .mega-dropdown-posts .mega-sub-post a .mega-sub-title {
  font-size: 1rem;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
}
.primary-menu-col .mega-dropdown-posts .mega-sub-post a:hover {
  background-color: #e9ecef;
}
@media (min-width: 769px) {
  .primary-menu-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .primary-menu-col > li {
    margin: 0;
    align-self: flex-start;
  }
  .primary-menu-col > a, .primary-menu-col > .menu-trigger {
    font-size: 1.4rem;
    border-bottom: 2px solid #333;
    padding: 10px 0;
  }
  .primary-menu-col li.menu-item-has-children > .menu-trigger::after {
    display: none;
  }
  .primary-menu-col .sub-menu {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding-left: 0;
    margin-top: 15px;
  }
  .primary-menu-col .sub-menu li a {
    padding: 8px 10px;
  }
}
@media (min-width: 1200px) {
  .primary-menu-col {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.mega-ajax-content {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 30px;
}
.mega-ajax-content h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}
.mega-ajax-content .mega-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.mega-ajax-content .mega-tag-list a {
  padding: 8px 18px;
  background: #f1f3f5;
  border-radius: 20px;
  color: #555;
  text-decoration: none;
  transition: all 0.2s;
}
.mega-ajax-content .mega-tag-list a:hover {
  background: #60269e;
  color: #fff;
}

html.menu-open {
  overflow: hidden;
}

.navigation.pagination {
  max-width: 1400px;
  margin: 2rem auto 3rem;
  padding: 0 16px;
}
.navigation.pagination .nav-links {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #f4f4f4;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}
.navigation.pagination .page-numbers.current {
  background: #222;
  color: #fff;
}
.navigation.pagination .page-numbers:hover:not(.current):not(.dots) {
  background: #e0e0e0;
  color: #111;
  transform: translateY(-2px);
}
.navigation.pagination .page-numbers.dots {
  background: transparent;
  color: #999;
  width: auto;
  padding: 0 4px;
  pointer-events: none;
}
.navigation.pagination .page-numbers.prev, .navigation.pagination .page-numbers.next {
  width: auto;
  min-width: 40px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Home page styles */
.home-page {
  padding: 2rem;
}

/* Search page styles */
.search-page {
  padding: 2rem;
}

p.results {
  font-size: 2rem;
  font-weight: 100;
}

b.query {
  font-weight: 500;
}

/* =========================================
   통합 검색 폼 스타일 (input submit & button 공통)
   ========================================= */
form[role=search] {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100%; /* 기존 인라인 스타일의 max-width 수용 */
  border-bottom: 3px solid #333; /* 기본 연한 밑줄 */
  transition: border-color 0.3s ease;
  padding: 15px 5px;
  margin: 16px 0; /* 폼2의 인라인 여백 흡수 */
  /* 🌟 입력창에 포커스가 가면 폼 전체 밑줄 색상 변경 */
  /* Form 1 처럼 label 안에 input이 있는 경우를 위한 레이아웃 처리 */
  /* 검색 입력창 공통 스타일 */
  /* 검색 전송 버튼 공통 스타일 (글자 숨기고 CSS 돋보기 노출) */
  /* 🌟 입력창에 포커스가 가면 돋보기 아이콘을 진한 색상으로 교체 */
}
form[role=search]:focus-within {
  border-color: #000; /* 테마 메인 색상 */
}
@media (max-width: 769px) {
  form[role=search] {
    padding: 5px;
  }
}
form[role=search] label {
  flex-grow: 1;
  display: flex;
  width: 100%;
  margin: 0;
}
form[role=search] input[type=search] {
  flex-grow: 1;
  width: 100% !important; /* 폼2의 인라인 넓이(70%) 강제 무시하고 꽉 채움 */
  border: none;
  background: transparent;
  padding: 10px 5px;
  font-size: 1.8rem;
  outline: none;
  color: #333;
  box-shadow: none;
  /* 웹킷 브라우저 기본 X 버튼 디자인 제거 */
}
form[role=search] input[type=search]::-webkit-search-decoration, form[role=search] input[type=search]::-webkit-search-cancel-button, form[role=search] input[type=search]::-webkit-search-results-button, form[role=search] input[type=search]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
@media (max-width: 769px) {
  form[role=search] input[type=search] {
    font-size: 1.2rem;
    padding: 5px;
  }
}
form[role=search] input[type=submit],
form[role=search] button[type=submit] {
  background-color: transparent;
  border: none;
  width: 60px;
  height: 60px;
  padding: 0;
  cursor: pointer;
  outline: none;
  /* "검색" 글자 투명하게 숨기기 */
  font-size: 0;
  color: transparent;
  /* 돋보기 SVG 삽입 (기본: 연한 회색 #aaaaaa) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 33px; /* 돋보기 크기 */
  transition: transform 0.2s ease, background-image 0.3s ease;
}
form[role=search] input[type=submit]:hover,
form[role=search] button[type=submit]:hover {
  transform: scale(1.2); /* 마우스 오버 시 살짝 커지는 효과 */
}
@media (max-width: 769px) {
  form[role=search] input[type=submit],
  form[role=search] button[type=submit] {
    background-size: 25px; /* 돋보기 크기 */
  }
}
form[role=search]:focus-within input[type=submit], form[role=search]:focus-within button[type=submit] {
  /* 진한 보라색(테마색: #60269e)으로 변경된 돋보기 SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

/* =========================================
   다크 모드 대응
   ========================================= */
.tag-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.tag-sidebar {
  flex: 0 0 calc(30% - 1rem);
}

.post-list {
  flex: 0 0 calc(70% - 1rem);
  max-width: calc(70% - 1rem);
}

.tag-list {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0;
  padding: 1px 0 0 1px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.tag-list li {
  width: 20%;
  aspect-ratio: 1/1; /* 정사각형 비율 유지 */
  margin-left: -1px;
  margin-top: -1px;
  border: 1px solid #333;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}

.tag-list li:after {
  content: "";
  position: absolute;
  border-right: 1px solid #333;
  right: 0;
  top: 0;
  transition: all 0.4s;
}

.tag-list li:hover {
  border-color: #f53342;
  z-index: 9;
}

li:hover:after {
  border-right: 1px solid #f53342;
  transition: all 0.4s;
}

.tag-list li a {
  color: #333;
  text-align: center;
  letter-spacing: -0.08rem;
  word-break: break-word;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 0.8rem;
  position: absolute;
  z-index: 9;
  width: 100%;
  height: 100%;
  display: flex;
  transition: all 0.4s;
}

.tag-list li:hover a {
  color: #f53342;
  transition: all 0.4s;
}

a.tag-link.current {
  background: #f53342;
  color: #fff !important;
  transform: scale(1.03);
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .tag-sidebar,
  .post-list {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* category page styles */
.page-marker {
  visibility: hidden;
  height: 0;
}

#loading-indicator {
  padding: 10px;
  margin: 10px 0;
}

.content-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 16px;
}
.content-grid .grid-wrapper {
  display: grid;
  gap: 12px;
  align-items: stretch;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 320px) {
  .content-grid .grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .content-grid .grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .content-grid .grid-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}
.content-grid .grid-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  /* 태그 영역 */
}
.content-grid .grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.content-grid .grid-item .item-thumbnail img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.content-grid .grid-item .item-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
@media (min-width: 768px) {
  .content-grid .grid-item .item-content {
    padding: 16px;
  }
}
.content-grid .grid-item .item-meta {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 6px;
}
.item-excerpt {
    font-size: medium;
    font-weight: 300;
}
@media (min-width: 768px) {
  .content-grid .grid-item .item-meta {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
}
.content-grid .grid-item h3 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.66rem;
}
@media (min-width: 768px) {
  .content-grid .grid-item h3 {
    font-size: 1.05rem;
    min-height: 2.94rem;
  }
}
.content-grid .grid-item h3 a {
  text-decoration: none;
  color: #222;
  /* 마법의 CSS: 제목의 클릭 영역을 카드 전체로 덮어씌웁니다. */
}
.content-grid .grid-item h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.content-grid .grid-item .item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  max-height: 48px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .content-grid .grid-item .item-tags {
    gap: 6px;
    max-height: 58px;
  }
}
.content-grid .grid-item .item-tags .tag {
  font-size: 0.7rem;
  color: #555;
  background: #f4f4f4;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
@media (min-width: 768px) {
  .content-grid .grid-item .item-tags .tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
.content-grid .grid-item .item-tags .tag:hover {
  background: #e0e0e0;
}

.content-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 16px;
}
.content-list .list-wrapper {
  display: flex;
  flex-direction: column;
  border-top: 2px solid #222;
}
.content-list .list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  background-color: transparent;
  transition: background-color 0.3s ease;
  /* 💡 핵심: 왼쪽에서 오른쪽으로 채워지는 하단 라인 애니메이션 */
  /* 1. 왼쪽 정사각형 썸네일 (게시판 비율에 맞춰 축소) */
  /* 2. 오른쪽 텍스트 영역 */
  /* 3. 제목 (2줄 제한 & 링크 마법) */
  /* 4. 태그 영역 */
  /* 5. 날짜 */
}
@media (min-width: 768px) {
  .content-list .list-item {
    gap: 24px;
    padding: 24px 10px;
  }
}
.content-list .list-item:hover {
  background-color: #fafafa;
}
.content-list .list-item::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #222;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 3;
}
.content-list .list-item:hover::after {
  width: 100%;
}
.content-list .list-item .list-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .content-list .list-item .list-thumbnail {
    width: 120px;
    height: 120px;
  }
}
.content-list .list-item .list-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.content-list .list-item .list-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  justify-content: center;
  z-index: 1;
}
.content-list .list-item h2 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: #222;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .content-list .list-item h2 {
    font-size: 1.15rem;
  }
}
.content-list .list-item h2 a {
  text-decoration: none;
  color: inherit;
  /* 클릭 영역을 항목 전체로 넓힘 */
}
.content-list .list-item h2 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.content-list .list-item .list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.content-list .list-item .list-tags .tag {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.content-list .list-item .list-tags .tag:hover {
  color: #222;
  text-decoration: underline;
}
.content-list .list-item .list-meta {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

.content-masonry {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 16px;
  /* Masonry 기준점 세팅 (화면 크기별로 카드 크기와 간격 지정) */
}

.content-masonry .masonry-wrapper {
  display: block;
  position: relative; width: 100%;marign:0 auto;
}
.content-masonry .masonry-sizer {
  width: 100%;
}
.content-masonry .masonry-gutter {
  width: 12px;
}
@media (min-width: 320px) {
  .content-masonry .masonry-sizer {
    width: calc(50% - 6px);
  }
}
@media (min-width: 768px) {
  .content-masonry .masonry-sizer {
    width: calc(33.333% - 16px);
  }
  .content-masonry .masonry-gutter {
    width: 24px;
  }
}
@media (min-width: 1024px) {
  .content-masonry .masonry-sizer {
    width: calc(25% - 18px);
  }
}
.content-masonry .masonry-item {
  float: left;        /*margin-right: 24px;*/
  width: 100%;
  margin-bottom: 12px;
  z-index: 1;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
@media (min-width: 320px) {
  .content-masonry .masonry-item {
    width: calc(50% - 6px);
  }
}
@media (min-width: 768px) {
  .content-masonry .masonry-item {
    width: calc(33.333% - 16px);
    margin-bottom: 24px;
  }
}
@media (min-width: 1024px) {
  .content-masonry .masonry-item {
    width: calc(25% - 18px);
  }
}
.content-masonry .masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.content-masonry .masonry-item .masonry-thumbnail img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.content-masonry .masonry-item .item-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.content-masonry .masonry-item.notice-item .item-content {
background:#ddd;
}
@media (min-width: 768px) {
  .content-masonry .masonry-item .item-content {
    padding: 16px;
  }
}
.content-masonry .masonry-item .item-meta {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 6px;
}
@media (min-width: 768px) {
  .content-masonry .masonry-item .item-meta {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
}
.content-masonry .masonry-item h3 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  word-break: keep-all;
}
@media (min-width: 768px) {
  .content-masonry .masonry-item h3 {
    font-size: 1.05rem;
  }
}
.content-masonry .masonry-item h3 a {
  text-decoration: none;
  color: inherit;
}
.content-masonry .masonry-item h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.content-masonry .masonry-item .item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .content-masonry .masonry-item .item-tags {
    gap: 6px;
  }
}
.content-masonry .masonry-item .item-tags .tag {
  font-size: 0.7rem;
  color: #555;
  background: #f4f4f4;
  padding: 4px 6px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease;
}
@media (min-width: 768px) {
  .content-masonry .masonry-item .item-tags .tag {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
.content-masonry .masonry-item .item-tags .tag:hover {
  background: #e0e0e0;
}



/* 전체 컨테이너 */
.content-book {
  max-width: 1400px;
  margin: 0 auto;
}
.content-book .book-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .content-book .book-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 10px;
  }
}

/* 📚 개별 책 아이템 (호버 애니메이션 제어) */
.book-item {
  position: relative;
  aspect-ratio: 1/1.414;
  perspective: 1200px; /* 3D 카메라 깊이감 */
}
.book-item:hover .book-3d-wrapper {
  /* 책 몸통은 오른쪽으로 살짝 비틀어서 펼쳐진 안쪽이 잘 보이게 함 */
  transform: translateY(-5px) rotateX(10deg) rotateY(15deg);
  box-shadow: -10px 20px 30px rgba(0, 0, 0, 0.15);
}
.book-item:hover .book-front {
  /* 앞표지는 왼쪽(경첩)을 축으로 하여 바깥으로 엽니다 */
  transform: translateZ(calc(30px / 2)) rotateY(-45deg);
  /* 열린 표지가 만드는 그림자 추가 */
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

/* 3D 형태 래퍼 */
.book-3d-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s ease;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 2px 12px 12px 2px;
  /* 1. 앞표지 */
  /* 🌟 새로 추가: 책 안쪽 첫 페이지 (표지 열리면 보임) */
  /* 3. 뒷표지 */
  /* 4. 책등 (왼쪽) */
  /* 5. 종이 단면 (오른쪽) */
  /* 6. 종이 단면 (위) */
  /* 7. 종이 단면 (아래) */
}
.book-3d-wrapper .book-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.book-3d-wrapper .book-front {
  transform: translateZ(calc(30px / 2));
  /* 🌟 핵심: 회전의 중심축을 왼쪽 끝(책등)으로 고정 */
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s ease;
  border-radius: 2px 12px 12px 2px;
  overflow: hidden;
  background-color: #f8f9fa;
  z-index: 2; /* 안쪽 페이지보다 위에 오도록 설정 */
  /* 이미지 및 텍스트 스타일 (기존과 동일) */
}
.book-3d-wrapper .book-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 1px 0 2px rgba(255, 255, 255, 0.4);
  z-index: 4;
  pointer-events: none;
}
.book-3d-wrapper .book-front::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.5) 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 3;
  pointer-events: none;
}
.book-3d-wrapper .book-front .cover-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}
.book-3d-wrapper .book-front .cover-link .bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-3d-wrapper .book-front .cover-link .fallback-bg {
  width: 100%;
  height: 100%;
  background-color: #e9ecef;
}
.book-3d-wrapper .book-front .book-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 20px 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  pointer-events: none;
}
@media (max-width: 768px) {
  .book-3d-wrapper .book-front .book-info {
    padding: 40px 10px 15px 15px;
    gap: 6px;
  }
}
.book-3d-wrapper .book-front .book-info .title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  word-break: keep-all;
}
.book-3d-wrapper .book-front .book-info .title a {
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}
.book-3d-wrapper .book-front .book-info .title a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .book-3d-wrapper .book-front .book-info .title {
    font-size: 0.95rem;
  }
}
.book-3d-wrapper .book-front .book-info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.book-3d-wrapper .book-front .book-info .tags .tag {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 6px;
  border-radius: 4px;
  pointer-events: auto;
  transition: background 0.2s;
}
.book-3d-wrapper .book-front .book-info .tags .tag:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  .book-3d-wrapper .book-front .book-info .tags .tag {
    font-size: 0.7rem;
    padding: 2px 4px;
  }
}
.book-3d-wrapper .book-front .book-info .meta .date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .book-3d-wrapper .book-front .book-info .meta .date {
    font-size: 0.75rem;
  }
}
.book-3d-wrapper .book-pages-front {
  /* 앞표지 바로 뒤(1px 뒤)에 위치시킴 */
  transform: translateZ(calc(30px / 2 - 1px));
  border-radius: 2px 10px 10px 2px;
  background-color: #fff;
  /* 책등 안쪽으로 들어갈수록 살짝 어두워지는 종이 음영 */
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.02) 10%, rgba(255, 255, 255, 0) 100%);
}
.book-3d-wrapper .book-back {
  transform: rotateY(180deg) translateZ(calc(30px / 2));
  border-radius: 12px 2px 2px 12px;
  background-color: #333;
}
.book-3d-wrapper .book-spine {
  width: 30px;
  left: calc(-30px / 2);
  transform: rotateY(-90deg);
  background-color: #444;
}
.book-3d-wrapper .book-pages-right {
  width: 30px;
  right: calc(-30px / 2);
  transform: rotateY(90deg);
  background-color: #f9f9f9;
  background-image: repeating-linear-gradient(to right, #fff 0px, #fff 2px, #e0e0e0 3px);
}
.book-3d-wrapper .book-pages-top {
  height: 30px;
  top: calc(-30px / 2);
  transform: rotateX(90deg);
  background-color: #f9f9f9;
  background-image: repeating-linear-gradient(to bottom, #fff 0px, #fff 2px, #e0e0e0 3px);
}
.book-3d-wrapper .book-pages-bottom {
  height: 30px;
  bottom: calc(-30px / 2);
  transform: rotateX(-90deg);
  background-color: #f9f9f9;
  background-image: repeating-linear-gradient(to bottom, #fff 0px, #fff 2px, #e0e0e0 3px);
}

.post-nav-track {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 40px auto;
}
.post-nav-track .post-nav-set {
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.post-nav-track .post-nav-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}
.post-nav-track .post-nav-card:last-child {
  border-bottom: none;
}
.post-nav-track .post-nav-card.current-post {
  background-color: #f8f5ff;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 8px;
  margin: 4px 0;
  border-bottom: 1px solid transparent;
}
.post-nav-track .post-nav-card.current-post .curr-label {
  color: #60269e;
  font-weight: 800;
  margin-right: 6px;
}
.post-nav-track .post-nav-card .post-thumbnail {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.post-nav-track .post-nav-card .post-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
  display: block;
  transition: transform 0.3s ease;
}
.post-nav-track .post-nav-card:not(.current-post):hover .post-thumbnail img {
  transform: scale(1.04);
}
.post-nav-track .post-nav-card .post-content {
  flex: 1;
  min-width: 0;
}
.post-nav-track .post-nav-card .post-content .post-title-link {
  display: inline-block;
  text-decoration: none;
  color: #333;
  position: relative;
}
.post-nav-track .post-nav-card .post-content .post-title-link h2 {
  font-size: 18px;
  margin: 0 0 4px 0;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-track .post-nav-card .post-content .post-title-link:not(.current)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #60269e;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.post-nav-track .post-nav-card .post-content .post-title-link:not(.current):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.post-nav-track .post-nav-card .post-date {
  display: block;
  font-size: 12px;
  color: #999;
}

@media (max-width: 768px) {
  .post-nav-track .post-nav-card {
    padding: 12px 0;
  }
  .post-nav-track .post-nav-card .post-content .post-title-link h2 {
    font-size: 16px;
  }
}
/* 컬러 변수 지정 */
:root {
  --red: #da2c4d;
  --yellow: #f8ab37;
  --green: #2ecc71;
  --white: #ffffff;
  --purple: #60269E;
  --orange: #FC7F3F;
  --grey-light: #f2f7f9;
  --grey: #ecedf3;
  --black: #080808;
  --black-blue: #1f2029;
  --black-blue-light: #353746;
  --black-blue-light-2: #404255;
  --black-blue-light-3: #4b4d64;
  --black-light: #424455;
  --neutral-400: #b7b4c7;
  --neutral-100: white;
  --secondary-1: #ff4895;
  --neutral-300: #d9d7e6;
  --secondary-5: #1d1a27;
  --secondary-2: #6e4fe9;
  --secondary-3: #1766ff;
  --secondary-4: #2d42ff;
  --neutral-700: #302c3f;
  --neutral-600: #5e5b71;
  --neutral-500: #88849c;
  --neutral-200: #f5f4fa;
  --neutral-800: #13111a;
  --shadow-card-default: rgba(0, 0, 0, .1);
  --shadow-card-large: rgba(0, 0, 0, .35);
  --shadow-card-large-dark: rgba(0, 0, 0, .45);
  --history-primary-color: #2c3e50;
  --history-primary-light: rgb(62.0967741935, 87.5, 112.9032258065);
  --history-secondary-color: #3498db;
  --history-secondary-dark: rgb(33.1380753138, 125.1882845188, 186.8619246862);
  --history-accent-color: #e74c3c;
  --history-text-light: #ecf0f1;
  --history-text-dark: #2c3e50;
  --history-text-lighten: rgb(62.0967741935, 87.5, 112.9032258065);
  --history-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --history-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  --history-border-radius: 20px;
}

/* Theme colors and dark mode */
.purple {
  color: #60269E;
}

.orange {
  color: #FC7F3F;
}

.cv-page {
  width: 100%;
}



/* 상단 */
.cv-hero {
  display: grid;
  grid-template-columns: 234px 1fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.cv-name {
  margin: 0 0 1rem;
  font-size: var(--font-xl);
  font-weight: 700;
  line-height: 1.1;
}

.cv-contact__line {
  margin: 0.28rem 0;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.7;
}

.cv-pdf-link {
  display: inline-block;
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: 1.4;
    padding: 1rem 0;
    border: 1px solid rgba(0, 0, 0, 0.45);
    background: #eee;
    width: 234px;
    text-align: center;
}
.cv-hero__photo {
  width: 100%;
}

.cv-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
}
/* 인트로 */
.cv-intro {
  padding: 2.5rem 0 0;
}

.cv-summary {
  max-width: 980px;
}

.cv-summary p {
  margin: 0 0 1.2rem;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.9;
}

.cv-keywords {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cv-keywords__title {
  margin: 0 0 0.6rem;
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.cv-keywords__text {
  margin: 0;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.8;
}

/* 본문 블록 */
.cv-block {
  margin-top: 4.5rem;
}

.cv-title {
  margin: 0 0 2rem;
  font-size: var(--font-md);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;    text-transform: uppercase;
}

.cv-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.cv-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.cv-date {
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.cv-content {
  min-width: 0;
}

.cv-role,
.cv-degree {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.cv-org,
.cv-school {
  margin: 0.45rem 0 0;
  font-size: var(--font-base);
  font-weight: 500;
  line-height: 1.6;
}

.cv-place {
  margin: 0.2rem 0 0;
  font-size: var(--font-base);
  font-weight: 300;
  line-height: 1.6;
}

.cv-thesis {
  margin: 0.9rem 0 0;
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.8;
  max-width: 60rem;
}

.cv-item--education {
  grid-template-columns: 1fr;
  gap: 0;
}

.cv-item--education .cv-content {
  max-width: 900px;
}



/* 모바일 */
@media (max-width: 639px) {
.site-title a {text-align:center}	
p.site-description {
    margin: -5px 0 0 15px;
    line-height: normal;
}	
.item-excerpt {display:none;}	
  .cv-hero {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
  }

  .cv-name {
    margin-bottom: 0.8rem;
    font-size: clamp(1.7rem, 1.45rem + 1.2vw, 2.2rem);
  }

  .cv-contact__line {
    font-size: 0.98rem;
    line-height: 1.7;
    word-break: break-word;
  }

  .cv-pdf-link {
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
	width:100%;
  }

  .cv-intro {
    padding-top: 2rem;
  }

  .cv-summary p,
  .cv-keywords__text {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .cv-keywords {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .cv-block {
    margin-top: 3rem;
  }

  .cv-title {
    margin-bottom: 1.4rem;
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.125rem);
    letter-spacing: 0.01em;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem 0 1.15rem;
  }

  .cv-date {
    font-size: 0.9rem;
    font-weight: 400;
    white-space: normal;
  }

  .cv-role,
  .cv-degree {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .cv-org,
  .cv-school,
  .cv-place {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .cv-thesis {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.75;
  }

h1.front-masonry, .ajax-slider-wrapper h1 {
    font-size: 34px;
padding-left: 10px;}  
  
}


/* =========================
   Additional styles for subpages
   ========================= */

.cv-page-intro {
  max-width: 980px;
  margin: 0 0 2rem;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.9;
}

.cv-text {
  margin: 0;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.8;
}

.cv-meta {
  margin: 0.55rem 0 0;
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.72);
}

.cv-subtitle {
  margin: 0 0 1rem;
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cv-item--stack {
  grid-template-columns: 1fr;
  gap: 0;
}

.cv-list-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-list-plain li {
  margin: 0.45rem 0 0;
  font-size: var(--font-base);
  font-weight: 400;
  line-height: 1.8;
}

.cv-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cv-link-card {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.cv-link-card:hover,
.cv-link-card:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.cv-link-card__title {
  margin: 0 0 0.35rem;
  font-size: var(--font-base);
  font-weight: 700;
  line-height: 1.5;
}

.cv-link-card__desc {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
}

.cv-note {
  margin: 0.8rem 0 0;
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.75;
}

@media (max-width: 639px) {
  .cv-page-intro,
  .cv-text {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .cv-meta,
  .cv-note {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .cv-links-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cv-link-card {
    padding: 0.9rem 1rem;
  }
}
strong {
    font-weight: 800;
}
.pub-section--journal {
  width: 100%;
  max-width: 1100px;
}

.pub-section__header {
  margin-bottom: 2rem;
}

.pub-section__title {
  margin: 0;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.pub-list {
  margin: 0;
  padding-left: 1.5rem;
}

.pub-item {
  margin: 0;
  padding: 0;
}

.pub-card {
  padding: 1.3rem 0 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.pub-item:last-child .pub-card {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.pub-main {
  min-width: 0;
}

.pub-authors {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.7;
}

.pub-author-highlight {
  font-weight: 700;
  font-size: 1.02em;
}

.pub-meta-line {
  margin-bottom: 0.55rem;
}

.pub-year {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.pub-title {
  margin: 0;
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
  font-weight: 700;
  line-height: 1.5;
}

.pub-venue,
.pub-note,
.pub-original,
.pub-doi {
  margin: 0.55rem 0 0;
  line-height: 1.75;
}

.pub-venue {
  font-size: 0.98rem;
  font-weight: 500;
}

.pub-pages {
  font-weight: 400;
}

.pub-note {
  font-size: 0.93rem;
  font-weight: 400;
}

.pub-original {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  word-break: keep-all;
}

.pub-doi {
  font-size: 0.93rem;
  font-weight: 400;
  word-break: break-all;
}

.pub-doi a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.pub-doi a:hover {
  opacity: 0.75;
}

/* 모바일 */
@media (max-width: 639px) {
  .pub-section__header {
    margin-bottom: 1.4rem;
  }

  .pub-list {
    padding-left: 1.25rem;
  }

  .pub-card {
    padding: 1rem 0 1.15rem;
  }

  .pub-authors {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .pub-title {
    font-size: 1rem;
    line-height: 1.55;
  }

  .pub-venue,
  .pub-note,
  .pub-original,
  .pub-doi {
    font-size: 0.92rem;
    line-height: 1.7;
  }
}

.research-profiles {
    width: 100%;
    margin: 0 auto;
    border-top: 1px solid;
    margin-top: 2rem;
    padding-top: 2rem;
}

.research-profiles__header {
  margin-bottom: 1.5rem;
}

.research-profiles__title {
  margin: 0;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.research-profiles__desc {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
}

.research-profiles__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.research-profile-card {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 1.15rem;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.research-profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.35);
}

.research-profile-card__label {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.research-profile-card__meta {
  margin-top: 0.35rem;
  font-size: 0.93rem;
  line-height: 1.7;
  opacity: 0.82;
}

.research-profile-card__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
}

@media (max-width: 639px) {
  .research-profiles__list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .research-profile-card {
    padding: 1rem 2.75rem 1rem 1rem;
  }

  .research-profile-card__label {
    font-size: 1rem;
  }

  .research-profile-card__meta {
    font-size: 0.92rem;
  }
}


#primary.content-area {
  width: 100%;
}

#primary .site-main {
  width: 100%;
}

.tag-archive {
  width: 100%;
  padding: 2rem 1.25rem 3rem;
  box-sizing: border-box;
}

.tag-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}


.post-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-list .list-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
  margin: 0;
}

.post-list .list-thumbnail {
  width: 100%;
}

.post-list .list-thumbnail a {
  display: block;
  text-decoration: none;
}

.post-list .list-thumbnail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
  background: #f3f3f3;
}

.post-list .list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.post-list .list-content h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.post-list .list-content h2 a {
  color: inherit;
  text-decoration: none;
}

.post-list .list-content h2 a:hover,
.post-list .list-content h2 a:focus {
  text-decoration: underline;
}

.post-list .list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.post-list .list-tags .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
  color: #555;
  background: #fff;
  box-sizing: border-box;
}

.post-list .list-tags .tag:hover,
.post-list .list-tags .tag:focus {
  color: #111;
  border-color: #111;
}

.post-list .list-tags .category-tag {
  background: #fafafa;
}

.post-list .list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: #666;
}

.post-list .list-meta .views,
.post-list .list-meta .date {
  display: inline-flex;
  align-items: center;
}

.page-header {
  padding: 2rem 1.25rem 1rem;
  box-sizing: border-box;
}

.page-header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.page-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
}

.page-title .tags {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.page-title .heading {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
}

.archive-description {
  margin-top: 0.85rem;
  color: #666;
  line-height: 1.7;
}

.pagination,
.navigation.pagination {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 1.25rem 3rem;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .tag-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
  }

  .post-list .list-item {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .tag-archive {
    padding-top: 1.5rem;
  }

  .tag-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tag-sidebar {
    width: 100%;
  }

  .post-list .list-item {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
  }

  .page-header {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .tag-archive {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .page-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pagination,
  .navigation.pagination {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .post-list .list-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem 0;
  }

  .post-list .list-content h2 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .post-list .list-tags .tag {
    font-size: 0.76rem;
    min-height: 1.8rem;
    padding: 0.15rem 0.6rem;
  }

  .post-list .list-meta {
    font-size: 0.8rem;
    gap: 0.6rem;
  }
}
/* 다크모드: [data-theme="dark"] 기반 */
[data-theme=dark] {
  /* 3. 깜빡임 방지를 위한 초기 상태 스타일 */
  /* 6. 다크모드 메뉴 */
  /* 7. 다크모드 AJAX 슬라이더 */
}
[data-theme=dark] html {
  --theme-color: var(--neutral-800);
  background-color: var(--neutral-800) !important;
}
[data-theme=dark] body {
  background-color: var(--neutral-800);
  color: #eee;
}
[data-theme=dark] a {
    color: #fff;
}
[data-theme=dark] .content-masonry .masonry-item {
background-color: #000;	
}
[data-theme=dark] .content-masonry .masonry-item.notice-item .item-content {
    background: #60269e;
}
[data-theme=dark] .content-masonry .masonry-item h3 a {color:#fff;}
[data-theme=dark] .content-masonry .masonry-item .item-tags .tag {
    color: #eee;
background: #333; }
[data-theme=dark] .purple {
  color: rgb(146.8367346939, 84.1020408163, 213.8979591837);
}
[data-theme=dark] .orange {
  color: rgb(253.5692307692, 193.9538461538, 163.4307692308);
}
[data-theme=dark] .site-title a {
  filter: drop-shadow(1px 2px 3px black);color:#fff;
}
[data-theme=dark] .cv-item:last-child {
	    border-bottom: 1px solid rgb(246 241 241 / 21%);
}
[data-theme=dark] .cv-item {
    border-top: 1px solid rgb(246 241 241 / 21%);
}
[data-theme=dark] .research-profile-card,
[data-theme=dark] .cv-pdf-link {  background:#000;}
[data-theme=dark] ul.primary-menu {
  filter: drop-shadow(1px 2px 3px black);
}
[data-theme=dark] .toggle-init-dark + .toggleSwitch {
  background: #f5bb18;
}
[data-theme=dark] .toggle-init-dark + .toggleSwitch .toggleButton {
  left: calc(100% - 2.8rem);
  background: #eee url(img/sun.svg) no-repeat center;
  background-size: 25px 25px;
}
[data-theme=dark] h1, [data-theme=dark] h2, [data-theme=dark] h3, [data-theme=dark] h4, [data-theme=dark] h5, [data-theme=dark] h6 {
  color: #eee;
}
[data-theme=dark] .comment-list .children .comment-content {
  background: #1d142c;
}
[data-theme=dark] .comment-list .children .comment-content::before {
  border-color: transparent transparent transparent #1d142c;
}
[data-theme=dark] .comment-list > li.depth-1 {
  border: 1px solid #1f1c29;
  background: #1f1c29 !important;
}
[data-theme=dark] li.depth-1:before {
  border-color: transparent #1f1c29 transparent transparent;
}
[data-theme=dark] .comment-list > li.depth-1 > .comment-body > .comment-content::before {
  border-color: transparent #1f1c29 transparent transparent;
}
[data-theme=dark] li.depth-1.bypostauthor:before,
[data-theme=dark] .comment-list > li.depth-1.bypostauthor > .comment-body > .comment-content::before {
  border-color: transparent #341a53 transparent transparent !important;
}
[data-theme=dark] .comment-list .bypostauthor > .comment-body > .comment-content,
[data-theme=dark] .comment-list .depth-1.bypostauthor > .comment-body,
[data-theme=dark] .comment-list > li.depth-1.bypostauthor {
  background: #341a53 !important;
}
[data-theme=dark] .comment-list .depth-2.bypostauthor > .comment-body > .comment-content {
  background: #40275f !important;
}
[data-theme=dark] .comment-list .children .bypostauthor .comment-content::before {
  border-color: transparent transparent transparent #40275f !important;
}
[data-theme=dark] .comment-form-comment textarea {
  border: 2px solid #1f1c29;
  background: #1f1c29;
}
[data-theme=dark] .comment-list > li.depth-1 .comment-author .fn {
  color: #ddd;
}
[data-theme=dark] span.sl-wrapper a {
  color: #fff;
}
[data-theme=dark] .menu-toggle span, [data-theme=dark] .menu-toggle span:before, [data-theme=dark] .menu-toggle span:after {
  background-color: #fff;
}
[data-theme=dark] .fullscreen-menu {
  background: rgba(25, 25, 25, 0.98);
}
[data-theme=dark] .mega-search-area form {
  border-color: #555;
}
[data-theme=dark] .mega-search-area form input[type=search], [data-theme=dark] .mega-search-area form button {
  color: #fff;
}
[data-theme=dark] .primary-menu-col a, [data-theme=dark] .primary-menu-col .menu-trigger {
  color: #fff;
  border-color: #444;
}
[data-theme=dark] .primary-menu-col a:hover, [data-theme=dark] .primary-menu-col .menu-trigger:hover {
  background-color: #333;
  color: #6bc2ff;
}
[data-theme=dark] .primary-menu-col .sub-menu li a {
  color: #ccc;
}
[data-theme=dark] .primary-menu-col .sub-menu li a:hover {
  color: #fff;
  background-color: #444;
}
[data-theme=dark] .primary-menu-col .mega-dropdown-posts {
  background-color: #2a2a2a;
}
[data-theme=dark] .primary-menu-col .mega-dropdown-posts .mega-sub-post a:hover {
  background-color: #444;
}
[data-theme=dark] .primary-menu-col .mega-dropdown-posts .mega-sub-post a .mega-sub-title {
  color: #ddd;
}
[data-theme=dark] .primary-menu-col .mega-dropdown-posts .mega-sub-post a .mega-sub-thumb {
  background-color: #444;
}
[data-theme=dark] .mega-ajax-content {
  border-color: #444;
}
[data-theme=dark] .mega-ajax-content h3 {
  color: #fff;
}
[data-theme=dark] .mega-ajax-content .mega-tag-list a {
  background: #333;
  color: #ccc;
}
[data-theme=dark] .mega-ajax-content .mega-tag-list a:hover {
  background: #60269e;
  color: #fff;
}
[data-theme=dark] .desktop-only-nav .primary-menu-row li > a {
  color: #eee;
}
[data-theme=dark] .desktop-only-nav .primary-menu-row .sub-menu,
[data-theme=dark] .desktop-only-nav .primary-menu-row .mega-dropdown-posts {
  background: #2a2a2a;
}
[data-theme=dark] .desktop-only-nav .primary-menu-row .sub-menu li a {
  color: #ddd;
}
[data-theme=dark] .desktop-only-nav .primary-menu-row .sub-menu li a:hover {
  background-color: #444;
  color: #fff;
}
[data-theme=dark] .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a .mega-sub-title {
  color: #ddd;
}
[data-theme=dark] .desktop-only-nav .primary-menu-row .mega-dropdown-posts .mega-sub-post a .mega-sub-thumb {
  background-color: #444;
}
[data-theme=dark] form[role=search] {
  border-color: #555; /* 다크모드 기본 밑줄 */
  /* 다크모드 기본 돋보기 (조금 더 밝은 회색: #888) */
  /* 🌟 다크모드 포커스 시 돋보기 (완전한 흰색: #ffffff) */
}
[data-theme=dark] form[role=search] input[type=search] {
  color: #fff; /* 다크모드 글자색 */
}
[data-theme=dark] form[role=search] input[type=search]::placeholder {
  color: #999;
}
[data-theme=dark] form[role=search] input[type=submit],
[data-theme=dark] form[role=search] button[type=submit] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}
[data-theme=dark] form[role=search]:focus-within input[type=submit], [data-theme=dark] form[role=search]:focus-within button[type=submit] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}
[data-theme=dark] .ajax-slider-wrapper .ajax-post-card {
  border-bottom-color: #333;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-post-card a {
  color: #efefef;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-post-card a:active {
  background-color: rgba(255, 255, 255, 0.05);
}
[data-theme=dark] .ajax-slider-wrapper .ajax-post-card .post-thumbnail img {
  background: #2a2a2a;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-post-card .post-content h2 {
  color: #f5f5f5;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-post-card .post-date {
  color: #888;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-slider-controls button {
  background: #2a2a2a;
  border-color: #444;
  color: #bbb;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-slider-controls button:hover:not(:disabled) {
  background: #333;
  color: #fff;
}
[data-theme=dark] .ajax-slider-wrapper .ajax-slider-controls button:disabled {
  background: #1a1a1a;
  color: #555;
}
[data-theme=dark] .post-nav-track .post-nav-card.current-post {
  background-color: #000;
}
/* 다크모드: [data-theme="dark"] 기반 끝 */
