/* 공통 테마 스타일: index 개편용 기본 변수와 레이아웃 */
:root {
  --theme-point-yellow: #ffe885;
  --theme-card-blue: #4a90e2;
  --theme-journal-green: #7ed321;
  --theme-footer-bg: #e2e2e2;
  --theme-text-main: #333333;
}

.theme-new {
  color: var(--theme-text-main);
  background-image: none;
  background-color: #ffffff;
}

.theme-new a {
  text-decoration: none;
  color: inherit;
}

.theme-new .theme-page {
  flex: initial;
}

.theme-new .theme-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.theme-new .hero-banner-link {
  display: block;
}

.theme-new .hero-banner {
  background-color: var(--theme-point-yellow);
  text-align: center;
  padding: 42px 20px;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.6;
}

.theme-new .hero-inline-img {
  display: inline-block;
  height: 1.05em;
  width: auto;
  margin: 0 0.42em;
  vertical-align: -0.2em;
}

.theme-new .books-section {
  margin: 30px 0 22px;
  background: #ffffff;
}

.theme-new .books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 38px;
}

.theme-new .book-card {
  display: block;
  border: 1px dashed var(--theme-card-blue);
  border-radius: 30px;
  padding: 24px 22px;
  background-color: transparent;
  color: var(--theme-card-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.theme-new .book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.theme-new .book-card img {
  width: 230px;
  height: 230px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: block;
}

.theme-new .book-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.theme-new .book-card p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.96rem;
}

.theme-new .journal-link {
  display: block;
  margin-bottom: 12px;
}

.theme-new .journal-section {
  border: none;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

.theme-new .journal-title {
  color: #333333;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.theme-new .journal-preview-title {
  color: #2f6fb6;
  font-size: 1rem;
  margin-bottom: 6px;
}

.theme-new .journal-preview-text {
  color: #444444;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.theme-new .journal-preview-date {
  color: #6f6f6f;
  font-size: 0.86rem;
  margin-bottom: 0;
}

.theme-new .journal-preview-item {
  border: none;
  border-radius: 16px;
  padding: 18px 16px;
  min-height: 168px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  margin-bottom: 14px;
}

.theme-new .journal-preview-item:last-of-type {
  margin-bottom: 0;
}

.theme-new .journal-preview-card {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-new .journal-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.theme-new .journal-preview-card:hover .journal-preview-title {
  color: #1f5a97;
  text-decoration: underline;
}

.theme-new .journal-empty {
  color: #666666;
}

.theme-new .journal-empty-link {
  display: block;
  border: none;
  border-radius: 12px;
  padding: 14px 12px;
}

/* index(home) 전용: 워드프레스 스타일의 깔끔한 카드 톤 */
.theme-home .books-section {
  margin: 36px 0 26px;
}

.theme-home .book-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 20px;
  background: #ffffff;
  color: #2f6fb6;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.theme-home .book-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: #0f4a85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.theme-home .book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.theme-home .book-card:hover::after {
  transform: scaleX(1);
}

.theme-home .book-card h3 {
  color: #1f2937;
}

.theme-home .book-card p {
  color: #5b6472;
}

.theme-home .journal-section {
  padding: 0;
}

.theme-home .journal-title {
  color: #1f2937;
  font-size: 1.22rem;
  margin-bottom: 16px;
}

.theme-home .journal-preview-item {
  border: none;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 20px 18px;
  min-height: 176px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.theme-home .journal-preview-item::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: #0f4a85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.theme-home .journal-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.theme-home .journal-preview-card:hover::after {
  transform: scaleX(1);
}

.theme-home .journal-preview-title {
  color: #1f2937;
}

.theme-home .journal-preview-card:hover .journal-preview-title {
  color: #0f4a85;
  text-decoration: none;
}

.theme-home .journal-preview-text {
  color: #4b5563;
}

.theme-home .journal-preview-date {
  color: #8b95a1;
}

.theme-home .journal-empty-link {
  border: none;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

@media (max-width: 768px) {
  .theme-new .theme-container {
    padding: 0 16px;
  }

  .theme-new .hero-banner {
    padding: 66px 16px;
  }

  .theme-new .book-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .theme-new .journal-section {
    padding: 24px 20px;
  }
}

/* 데스크탑 자동 맞춤: 화면 높이에 따라 간격/요소 크기를 유동 조정 */
@media (min-width: 992px) {
  .theme-new .hero-banner {
    padding: clamp(22px, 4.2vh, 46px) 20px;
    line-height: 1.45;
  }

  .theme-new .books-section {
    margin: clamp(16px, 3.2vh, 34px) 0 clamp(12px, 2.4vh, 24px);
  }

  .theme-new .books-grid {
    gap: clamp(24px, 3vh, 40px);
  }

  .theme-new .book-card {
    padding: clamp(12px, 1.6vh, 20px) clamp(12px, 1.2vw, 18px);
  }

  .theme-new .book-card img {
    width: clamp(190px, 22vh, 230px);
    height: clamp(190px, 22vh, 230px);
    margin-bottom: clamp(8px, 1.2vh, 14px);
  }

  .theme-new .book-card h3 {
    font-size: clamp(0.96rem, 1.5vh, 1.1rem);
    margin-bottom: clamp(6px, 0.9vh, 10px);
  }

  .theme-new .book-card p {
    font-size: clamp(0.82rem, 1.25vh, 0.96rem);
    line-height: 1.35;
  }

  .theme-new .journal-link {
    margin-bottom: clamp(6px, 1.2vh, 16px);
  }

  .theme-new .journal-section {
    padding: clamp(12px, 1.7vh, 24px) clamp(14px, 1.3vw, 24px);
  }

  .theme-new .journal-title {
    font-size: clamp(0.95rem, 1.5vh, 1.15rem);
    margin-bottom: clamp(6px, 0.9vh, 12px);
  }

  .theme-new .journal-preview-title,
  .theme-new .journal-preview-text,
  .theme-new .journal-empty {
    font-size: clamp(0.8rem, 1.2vh, 0.95rem);
    margin-bottom: clamp(3px, 0.6vh, 6px);
  }
}

/* 1920x1080 기준: 스크롤 없이 화면 높이에 맞추고, 섹션 간 간격은 넉넉하게 배분 */
@media (min-width: 1200px) and (min-height: 900px) {
  .theme-home {
    height: 100vh;
    overflow: hidden;
  }

  .theme-home .theme-page {
    height: calc(100vh - 58px - 88px);
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .theme-home .hero-banner {
    padding: clamp(40px, 6.2vh, 72px) 20px;
    font-size: clamp(1.34rem, 2.8vh, 1.8rem);
    line-height: 1.45;
  }

  .theme-home .theme-container {
    height: 100%;
    display: grid;
    grid-template-rows: auto auto;
    align-content: space-evenly;
  }

  .theme-home .books-section {
    margin: 0;
  }

  .theme-home .books-grid {
    gap: clamp(18px, 2.2vh, 28px);
  }

  .theme-home .book-card {
    padding: 16px 16px;
    border-radius: 22px;
  }

  .theme-home .book-card img {
    width: 230px;
    height: 230px;
    margin-bottom: 12px;
  }

  .theme-home .book-card h3 {
    font-size: 1.06rem;
    margin-bottom: 9px;
  }

  .theme-home .book-card p {
    font-size: 0.93rem;
    line-height: 1.4;
  }

  .theme-home .journal-link {
    margin: 0;
  }

  .theme-home .journal-section {
    padding: 18px 20px;
  }

  .theme-home .journal-title {
    margin-bottom: 10px;
    font-size: 1.06rem;
  }

  .theme-home .journal-preview-title,
  .theme-home .journal-preview-text,
  .theme-home .journal-empty {
    font-size: 0.92rem;
    margin-bottom: 5px;
  }
}

/* about 페이지 전용 스타일 */
.theme-about .about-main {
  padding: 48px 0 24px;
}

.theme-about .about-section {
  max-width: 920px;
  margin: 0 auto;
  background-color: transparent;
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 46px;
  font-size: 1.2rem;
}

.theme-about .about-text-group {
  font-size: 1em;
  line-height: 1.8;
  word-break: keep-all;
  margin-bottom: 34px;
}

.theme-about .about-text-group p {
  margin-bottom: 18px;
}

.theme-about .about-section p,
.theme-about .about-section a {
  font-size: 1em;
}

.theme-about .divider {
  border: none;
  border-top: 1px solid #d8d8d8;
  margin: 36px 0;
}

.theme-about .inquiry-section h3 {
  font-size: 1.15em;
  margin-bottom: 10px;
}

.theme-about .inquiry-email {
  display: inline-block;
  font-size: 1.04em;
  color: #4a90e2;
  text-decoration: underline;
  margin-bottom: 18px;
  word-break: break-all;
}

.theme-about .inquiry-subtitle {
  font-size: 1.02em;
  font-weight: 700;
  margin-bottom: 10px;
}

.theme-about .about-text-group-last {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .theme-about .about-main {
    padding: 30px 0 18px;
  }

  .theme-about .about-section {
    padding: 28px 20px;
  }
}

/* books 페이지 전용 스타일 */
.theme-policy .policy-main {
  padding: 44px 0 24px;
}

.theme-policy .policy-shell {
  max-width: 980px;
  margin: 0 auto;
  border: none;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  background: #ffffff;
  padding: 36px 34px;
}

.theme-policy .policy-shell h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
}

.theme-policy .policy-meta {
  margin: 0 0 12px;
  color: #616b77;
  font-size: 0.95rem;
}

.theme-policy .policy-notice {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f8fb;
  color: #2f3f52;
  line-height: 1.6;
}

.theme-policy .policy-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e7ebf0;
}

.theme-policy .policy-section h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: #1f2937;
}

.theme-policy .policy-section p {
  margin: 0 0 10px;
  line-height: 1.68;
  color: #3a4653;
}

.theme-policy .policy-section ul {
  margin: 0;
  padding-left: 20px;
}

.theme-policy .policy-section li {
  margin: 0 0 8px;
  line-height: 1.62;
  color: #3a4653;
}

@media (max-width: 768px) {
  .theme-policy .policy-main {
    padding: 26px 0 16px;
  }

  .theme-policy .policy-shell {
    border-radius: 14px;
    padding: 24px 18px;
  }

  .theme-policy .policy-shell h1 {
    font-size: 1.5rem;
  }

  .theme-policy .policy-section h2 {
    font-size: 1.05rem;
  }
}

.theme-books .books-main {
  padding: 46px 0 24px;
}

.theme-books .books-grid-large {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.theme-books .book-card-large {
  border: none;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  padding: 24px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-books .book-card-large::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: #0f4a85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.theme-books .book-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.theme-books .book-card-large:hover::after {
  transform: scaleX(1);
}

.theme-books .book-card-large img {
  width: 400px;
  height: 400px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 14px;
  display: block;
}

.theme-books .book-card-large h3 {
  min-height: 56px;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.theme-books .book-card-large:hover h3 {
  color: #0f4a85;
}

.theme-books .book-price {
  margin-bottom: 8px;
  font-weight: 700;
}

/* 도서 상세 페이지 전용 스타일 */
.theme-book-detail .book-detail-main {
  padding: 44px 0 24px;
}

.theme-book-detail .book-detail-shell {
  max-width: 980px;
  margin: 0 auto;
  background: transparent;
  border-radius: 20px;
  border: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
  padding: 38px;
}

.theme-book-detail .book-detail-top {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 34px;
  margin-bottom: 28px;
}

.theme-book-detail .book-detail-cover img {
  width: 100%;
  border-radius: 14px;
}

.theme-book-detail .book-detail-info h1 {
  margin: 0 0 14px;
  font-size: 1.6rem;
}

.theme-book-detail .book-detail-info p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.theme-book-detail .book-hashtags {
  margin: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-book-detail .book-hashtags span {
  border: 1px solid #d6deea;
  color: #4a90e2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
}

.theme-book-detail .book-buy-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-book-detail .book-buy-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #4a90e2;
  color: #4a90e2;
  border-radius: 10px;
  font-weight: 600;
}

.theme-book-detail .book-buy-links a:hover {
  background: #f0f7ff;
}

.theme-book-detail .book-detail-section {
  border-top: 1px solid #e4e7ec;
  padding-top: 22px;
  margin-top: 22px;
}

.theme-book-detail .book-detail-section h2 {
  color: #333333;
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.theme-book-detail .book-detail-section p {
  line-height: 1.72;
}

.theme-book-detail .book-detail-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
}

.theme-book-detail .book-detail-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .theme-books .book-card-large img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .theme-book-detail .book-detail-shell {
    padding: 24px 18px;
  }

  .theme-book-detail .book-detail-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* journal 목록 페이지 전용 스타일 */
.theme-journal .journal-main {
  padding: 28px 0 20px;
}

.theme-journal .journal-head {
  margin-bottom: 20px;
}

.theme-journal .journal-head h1 {
  margin: 0 0 8px;
}

.theme-journal .journal-head p {
  margin: 0;
  color: #555555;
}

.theme-journal .journal-list {
  display: grid;
  gap: 16px;
}

.theme-journal .journal-item {
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-journal .journal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.theme-journal .journal-item::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: #0f4a85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.theme-journal .journal-item:hover::after {
  transform: scaleX(1);
}

.theme-journal .journal-item h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #1f2937;
  transition: color 0.2s ease;
}

.theme-journal .journal-item:hover h2 {
  color: #0f4a85;
}

.theme-journal .journal-meta {
  margin: 0 0 10px;
  display: flex;
  gap: 8px;
  color: #6a6a6a;
  font-size: 0.9rem;
}

.theme-journal .journal-excerpt {
  margin: 0 0 12px;
  line-height: 1.6;
}

.theme-journal .journal-detail-link {
  display: inline-block;
  color: #0f4a85;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-journal .journal-detail-link:hover {
  border-color: #0f4a85;
  color: #0c3f72;
}

.theme-journal .journal-empty-wrap {
  padding: 28px 0;
}

.theme-journal .journal-empty-text {
  margin: 0;
  color: #666666;
}

/* journal 상세 페이지 전용 스타일 */
.theme-journal-post .journal-post-main {
  padding: 26px 0 18px;
}

.theme-journal-post .journal-post-shell {
  max-width: 980px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.theme-journal-post .journal-post-title {
  margin: 0 0 8px;
}

.theme-journal-post .journal-post-meta {
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  color: #6a6a6a;
  font-size: 0.92rem;
}

.theme-journal-post .journal-post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.theme-journal-post .journal-post-content {
  border-top: 1px solid #e4e7ec;
  margin-top: 10px;
  padding-top: 18px;
}

.theme-journal-post .journal-post-admin {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.theme-journal-post .journal-post-nav {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e4e7ec;
}

.theme-journal-post .journal-post-nav a {
  font-weight: 700;
}

.theme-journal-post .journal-post-empty {
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 28px 20px;
}

/* journal 글쓰기 페이지 전용 스타일 */
.theme-journal-write .journal-write-main {
  padding: 24px 0 16px;
}

.theme-journal-write .journal-write-shell {
  max-width: 980px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.theme-journal-write .journal-write-shell h1 {
  margin: 0 0 16px;
}

.theme-journal-write .journal-field {
  margin-bottom: 14px;
}

.theme-journal-write .journal-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.theme-journal-write .journal-write-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.journal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #4a90e2;
  border-radius: 10px;
  color: #2f6fb6;
  background: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.journal-btn:hover {
  background: #f0f7ff;
}

.journal-btn-danger {
  border-color: #c24b4b;
  color: #c24b4b;
}

.journal-btn-danger:hover {
  background: #fff3f3;
}

.journal-btn-ghost {
  border-color: #9a9a9a;
  color: #5b5b5b;
}

.journal-btn-ghost:hover {
  background: #f5f5f5;
}

@media (max-width: 991px) {
  .theme-journal-post .journal-post-shell,
  .theme-journal-write .journal-write-shell {
    padding: 20px 16px;
  }
}

/* contact 페이지 전용 스타일 */
.theme-contact .contact-main {
  padding: 28px 0 18px;
}

.theme-contact .contact-head {
  margin-bottom: 18px;
}

.theme-contact .contact-head h1 {
  margin: 0 0 8px;
}

.theme-contact .contact-head p {
  margin: 0;
  color: #555555;
}

.theme-contact .contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.theme-contact .contact-box {
  border: none;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.theme-contact .contact-box h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.theme-contact .contact-form {
  display: grid;
  gap: 12px;
}

.theme-contact .contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-contact .contact-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.theme-contact .contact-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-contact .contact-submit {
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid #d0ad00;
  border-radius: 10px;
  background: transparent;
  color: #6d5904;
  font-weight: 700;
  cursor: pointer;
}

.theme-contact .contact-submit:hover {
  background: #fff8d8;
}

.theme-contact .contact-success {
  color: #2f6fb6;
  margin: 0 0 10px;
}

.theme-contact .contact-error {
  color: #c24b4b;
  margin: 0 0 10px;
}

.theme-contact .contact-info p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.theme-contact .contact-info span {
  color: #555555;
}

.theme-contact .contact-divider {
  border: none;
  border-top: 1px solid #e4e7ec;
  margin: 12px 0;
}

.theme-contact .contact-info h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

@media (max-width: 991px) {
  .theme-contact .contact-grid {
    grid-template-columns: 1fr;
  }

  .theme-contact .contact-row {
    grid-template-columns: 1fr;
  }
}

/* 로그인 페이지 전용 스타일 */
.theme-login .login-main {
  padding: 28px 0 18px;
}

.theme-login .login-shell {
  max-width: 520px;
  margin: 0 auto;
  border: 1px dashed #d0ad00;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  padding: 26px 22px;
  text-align: center;
}

.theme-login .login-shell h1 {
  margin: 0 0 8px;
}

.theme-login .login-subtitle {
  margin: 0 0 12px;
  color: #555555;
}

.theme-login .login-alert {
  margin: 0 0 10px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.theme-login .login-alert-error {
  border: 1px solid #c24b4b;
  color: #8e2f2f;
  background: rgba(255, 232, 232, 0.5);
}

.theme-login .login-alert-success {
  border: 1px solid #4b9a5f;
  color: #2e6a3f;
  background: rgba(230, 255, 236, 0.5);
}

.theme-login .login-divider {
  border-top: 1px dashed #9a9a9a;
  margin: 14px 0 12px;
}

.theme-login .login-guide {
  margin: 0 0 12px;
  color: #666666;
}

.theme-login .login-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d0ad00;
  border-radius: 10px;
  color: #6d5904;
  padding: 10px 16px;
  font-weight: 700;
}

.theme-login .login-google-btn:hover {
  background: #fff8d8;
}

/* 에러 페이지 전용 스타일 */
.theme-error .error-main {
  padding: 30px 0 18px;
}

.theme-error .error-shell {
  max-width: 760px;
  margin: 0 auto;
  border: 1px dashed #d0ad00;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  padding: 34px 24px;
  text-align: center;
}

.theme-error .error-code {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: #6d5904;
}

.theme-error .error-shell h1 {
  margin: 0 0 10px;
}

.theme-error .error-message {
  margin: 0 0 16px;
  color: #555555;
}

.theme-error .error-home-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #d0ad00;
  border-radius: 10px;
  color: #6d5904;
  font-weight: 700;
}

.theme-error .error-home-link:hover {
  background: #fff8d8;
}

/* journal 계열 페이지도 about/books와 동일하게 데스크탑 화면 배율 맞춤 */
@media (min-width: 992px) {
  .theme-journal,
  .theme-journal-post,
  .theme-journal-write,
  .theme-contact,
  .theme-login,
  .theme-error,
  .theme-about,
  .theme-books {
    height: 100vh;
    overflow: hidden;
  }

  .theme-journal .theme-page,
  .theme-journal-post .theme-page,
  .theme-journal-write .theme-page,
  .theme-contact .theme-page,
  .theme-login .theme-page,
  .theme-error .theme-page,
  .theme-about .theme-page,
  .theme-books .theme-page {
    height: calc(100vh - 58px - 88px);
    display: flex;
    align-items: flex-start;
  }

  .theme-journal .journal-main,
  .theme-journal-post .journal-post-main,
  .theme-journal-write .journal-write-main,
  .theme-contact .contact-main,
  .theme-login .login-main,
  .theme-error .error-main,
  .theme-about .about-main,
  .theme-books .books-main {
    width: 100%;
  }

  .theme-journal .journal-main,
  .theme-contact .contact-main,
  .theme-login .login-main,
  .theme-error .error-main,
  .theme-about .about-main,
  .theme-books .books-main {
    height: 100%;
    overflow: auto;
    padding-top: clamp(12px, 1.8vh, 18px);
    padding-bottom: clamp(8px, 1.4vh, 12px);
    padding-right: 6px;
  }

  .theme-journal-post .journal-post-main,
  .theme-journal-write .journal-write-main {
    padding-top: clamp(12px, 1.8vh, 18px);
    padding-bottom: clamp(8px, 1.4vh, 12px);
  }

  .theme-journal-post .journal-post-shell,
  .theme-journal-write .journal-write-shell {
    max-height: calc(100vh - 58px - 88px - 34px);
    overflow: auto;
  }

  .theme-about .about-section {
    padding: clamp(22px, 3.2vmin, 34px);
    font-size: clamp(1rem, 1.65vmin, 1.2rem);
  }

  .theme-about .about-text-group {
    margin-bottom: clamp(16px, 2.2vmin, 24px);
  }

  .theme-about .divider {
    margin: clamp(16px, 2.2vmin, 24px) 0;
  }

  .theme-books .books-main {
    padding-top: clamp(10px, 1.4vh, 14px);
  }

  .theme-books .books-grid-large {
    gap: clamp(16px, 2.4vmin, 30px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .theme-books .book-card-large {
    padding: clamp(16px, 2.2vmin, 24px) clamp(12px, 1.6vmin, 18px);
  }

  .theme-books .book-card-large img {
    width: clamp(240px, 34vmin, 400px);
    height: clamp(240px, 34vmin, 400px);
    margin-bottom: clamp(8px, 1.4vmin, 14px);
  }

  .theme-contact .contact-grid {
    gap: clamp(12px, 1.8vmin, 16px);
  }

  .theme-contact .contact-box {
    padding: clamp(14px, 2vmin, 18px);
  }

  .theme-contact .contact-box h2 {
    font-size: clamp(1.05rem, 1.7vmin, 1.2rem);
  }
}
