/*
Theme Name:  aitechnote-core
Theme URI:   https://aitechnote.com
Description: AI테크노트 자식테마 — 인디고+시안 컬러, 가독성 중심 읽기 레이아웃, 7개 CSS 변수로 멀티블로그 재사용 가능
Author:      AI테크노트 에디터팀
Author URI:  https://aitechnote.com
Template:    generatepress
Version:     2.0.0
License:     GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitechnote-core
Tags:        indigo, cyan, sticky-header, sticky-sidebar, adsense, seo
*/

/* ============================================================
   🎨 COLOR SYSTEM — 7개 변수만 바꾸면 다른 블로그에 즉시 적용
   ============================================================ */
:root {
  --main:   #4338CA;  /* 헤더 BG, H2 색상, 링크 색상 (인디고)  */
  --point:  #22D3EE;  /* 버튼 포인트, 목차 아이콘, 강조 (시안)  */
  --btn:    #0E7490;  /* CTA 버튼 (대비 5.4:1)               */
  --bg:     #F8FAFC;  /* 페이지 배경                         */
  --card:   #FFFFFF;  /* 본문 카드 배경                       */
  --text:   #1E293B;  /* 본문 텍스트                         */
  --source: #ECFEFF;  /* 출처 박스 배경 (연한 시안)           */

  /* 파생 색상 */
  --main-dark:  #312E81;
  --main-light: #6366F1;
  --point-dark: #0891B2;
  --text-mute:  #475569;
  --text-light: #64748B;
  --border:     #E2E8F0;
  --shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,.08);
  --shadow-lg:  0 12px 32px rgba(15,23,42,.12);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
}

/* ============================================================
   📝 TYPOGRAPHY — Noto Sans KR 한국어 최적화
   ============================================================ */
/* 폰트는 functions.php 에서 한 번만 불러옵니다 (속도 개선) */
400;500;600;700;900&display=swap');

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

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   🏗️ LAYOUT — 2단 구성 (68% 본문 + 32% 사이드바)
   ============================================================ */
.site-container,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GeneratePress 레이아웃 오버라이드 */
.site-main-inner,
.inside-article {
  max-width: none;
}

/* 2단 그리드 */
.content-area-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
}

/* GeneratePress 2단 오버라이드 */
.site-content.grid-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
}

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

/* ============================================================
   📌 STICKY HEADER
   ============================================================ */
.site-header {
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: var(--main) !important;
  border-bottom: 3px solid var(--point) !important;
  box-shadow: var(--shadow-md);
  transition: box-shadow .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(67,56,202,.3);
}

/* 헤더 내부 레이아웃 */
.header-inner,
.inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  min-height: 68px !important;
}

/* 로고 */
.site-branding,
.site-logo {
  flex-shrink: 0;
}

.site-logo img,
.custom-logo {
  max-height: 46px !important;
  width: auto !important;
}

/* 헤더 텍스트 로고 (이미지 없을 때) */
.site-title a {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: -.5px;
}

/* ============================================================
   🧭 NAVIGATION
   ============================================================ */
.main-navigation,
.nav-primary {
  display: flex;
  align-items: center;
}

/* GeneratePress nav 오버라이드 */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.main-navigation ul li a,
.nav-primary ul li a {
  color: rgba(255,255,255,.88) !important;
  font-size: .93rem !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background-color: rgba(34,211,238,.2) !important;
  color: var(--point) !important;
}

/* 헤더 검색 */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-search input[type="search"] {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  color: #fff;
  font-size: .88rem;
  padding: 7px 16px;
  width: 180px;
  outline: none;
  transition: all .3s;
}

.header-search input[type="search"]::placeholder {
  color: rgba(255,255,255,.5);
}

.header-search input[type="search"]:focus {
  background: rgba(255,255,255,.18);
  border-color: var(--point);
  width: 220px;
}

/* ============================================================
   📌 STICKY SIDEBAR
   ============================================================ */
.widget-area,
.sidebar {
  position: sticky;
  top: 90px;  /* sticky 헤더 아래 */
  align-self: flex-start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}

.widget-area::-webkit-scrollbar {
  display: none;
}

/* 위젯 카드 */
.widget {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--main) !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--point) !important;
  letter-spacing: -.3px;
}

/* ============================================================
   📄 SINGLE POST — 본문 카드
   ============================================================ */
.single .site-main article,
.type-post {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* 포스트 헤더 영역 */
.post-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .post-header { padding: 24px 20px 18px; }
}

/* 카테고리 배지 */
.cat-links a,
.post-category-badge {
  display: inline-block;
  background: var(--main);
  color: #fff !important;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none !important;
  margin-bottom: 12px;
  letter-spacing: .3px;
}

/* H1 포스트 제목 */
.entry-title,
.post-title {
  font-size: 1.9rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
  margin: 0 0 16px !important;
  letter-spacing: -.5px;
}

@media (max-width: 768px) {
  .entry-title { font-size: 1.45rem !important; }
}

/* 포스트 메타 (날짜/작성자/읽기시간) */
.post-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-mute);
  align-items: center;
}

.post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta .meta-item::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--text-light);
  border-radius: 50%;
}

.post-meta .meta-item:first-child::before {
  display: none;
}

/* ============================================================
   📋 기준일 안내 박스
   ============================================================ */
.notice-box-date {
  background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
  border: 1px solid #ffe082;
  border-left: 4px solid var(--point);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .85rem;
  color: #795548;
  margin: 20px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box-date::before {
  content: '📅';
  font-size: 1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .notice-box-date { margin: 16px 20px; }
}

/* ============================================================
   🎯 핵심 요약 / 후킹 박스
   ============================================================ */
.hook-summary-box {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-light) 100%);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 20px 40px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hook-summary-box::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(34,211,238,.15);
  border-radius: 50%;
}

.hook-summary-box .hook-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--point);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hook-summary-box .hook-label::before {
  content: '⚡';
}

.hook-summary-box .hook-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}

.hook-summary-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hook-summary-box ul li {
  font-size: .93rem;
  line-height: 1.6;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  color: rgba(255,255,255,.92);
}

.hook-summary-box ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--point);
  font-weight: 700;
}

@media (max-width: 768px) {
  .hook-summary-box { margin: 16px 20px 20px; padding: 20px; }
}

/* ============================================================
   📌 목차 카드 박스 (TOC)
   ============================================================ */
.toc-box,
.rank-math-toc-widget,
.wp-block-rank-math-toc-block {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border: 1px solid #C7D2FE;
  border-left: 4px solid var(--main);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.toc-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-box-title::before {
  content: '📋';
}

.toc-box ol,
.rank-math-toc-widget ol {
  margin: 0;
  padding-left: 20px;
}

.toc-box ol li,
.rank-math-toc-widget li {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
}

.toc-box ol li a,
.rank-math-toc-widget li a {
  color: var(--main) !important;
  text-decoration: none !important;
  transition: color .2s;
}

.toc-box ol li a:hover {
  color: var(--point) !important;
}

/* ============================================================
   📝 본문 헤딩 스타일
   ============================================================ */
.entry-content {
  padding: 24px 40px 32px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

@media (max-width: 768px) {
  .entry-content { padding: 18px 20px 24px; }
}

.entry-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--main);
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--point);
  letter-spacing: -.3px;
  line-height: 1.4;
}

.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--main-light);
}

.entry-content h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

/* 단락 */
.entry-content p {
  margin: 0 0 1.4em;
}

/* 링크 */
.entry-content a {
  color: var(--main) !important;
  text-decoration: underline;
  text-decoration-color: rgba(67,56,202,.3);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}

.entry-content a:hover {
  color: var(--point-dark) !important;
  text-decoration-color: var(--point);
}

/* 이미지 */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* 대표이미지 */
.post-thumbnail,
.featured-image-wrap {
  margin: 0;
  overflow: hidden;
}

.post-thumbnail img,
.wp-post-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 인용구 */
.entry-content blockquote {
  border-left: 4px solid var(--point);
  background: var(--bg);
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #555;
}

/* 표 */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .93rem;
}

.entry-content th {
  background: var(--main);
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  text-align: left;
}

.entry-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.entry-content tr:nth-child(even) td {
  background: var(--bg);
}

/* 리스트 */
.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin: 0 0 1.2em;
}

.entry-content li {
  margin-bottom: .5em;
}

/* ============================================================
   ❓ FAQ 섹션
   ============================================================ */
.faq-section {
  margin: 32px 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  background: var(--bg);
  padding: 16px 20px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}

.faq-question:hover {
  background: #EEF2FF;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--main);
  font-weight: 400;
  transition: transform .3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: .93rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   📚 출처 박스 (하늘색)
   ============================================================ */
.source-box {
  background: var(--source);
  border: 1px solid #A5F3FC;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.source-box-title {
  font-size: .88rem;
  font-weight: 700;
  color: #4338CA;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-box-title::before {
  content: '📎';
}

.source-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-box ul li {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-mute);
}

.source-box ul li a {
  color: #4338CA !important;
  text-decoration: none !important;
}

.source-box ul li a:hover {
  text-decoration: underline !important;
}

/* ============================================================
   🔴 CTA 버튼 (빨간 라운드)
   ============================================================ */
.cta-button-wrap {
  text-align: center;
  margin: 28px 0;
}

.cta-button,
a.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(14,116,144,.35);
  transition: transform .2s, box-shadow .2s, background .2s;
  letter-spacing: .2px;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #c62828 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,116,144,.45);
}

.cta-button::after {
  content: '→';
  font-size: 1.1em;
}

/* ============================================================
   📢 광고 슬롯
   ============================================================ */
.ad-slot {
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: var(--radius-sm);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.ad-slot-label {
  font-size: .68rem;
  color: #bbb;
  position: absolute;
  top: 4px;
  left: 8px;
  letter-spacing: .3px;
}

/* 사이드바 광고 (300×250) */
.ad-slot-sidebar {
  width: 100%;
  min-height: 260px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 인아티클 광고 (본문 중간) */
.ad-slot-in-article {
  width: 100%;
  min-height: 100px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 본문 하단 광고 */
.ad-slot-below-content {
  width: 100%;
  min-height: 100px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   🔗 하단 관련글 그리드 (4×3 PC / 2열 모바일)
   ============================================================ */
.related-posts-section {
  padding: 32px 0;
  margin-top: 20px;
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--main);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-posts-title::before {
  content: '📰';
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-post-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none !important;
  display: block;
  color: var(--text) !important;
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-post-card .card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.related-post-card .card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--main) 0%, var(--main-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 2rem;
}

.related-post-card .card-body {
  padding: 12px;
}

.related-post-card .card-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--main);
  margin-bottom: 5px;
  letter-spacing: .3px;
}

.related-post-card .card-title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}

.related-post-card .card-date {
  font-size: .75rem;
  color: var(--text-light);
}

/* 더보기 버튼 (모바일에서 8개 초과 시) */
.related-posts-more {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--main);
  cursor: pointer;
  transition: background .2s;
  text-align: center;
}

.related-posts-more:hover {
  background: var(--border);
}

/* 데이블 / 타뷸라 광고 자리 */
.native-ad-dable,
.native-ad-taboola {
  width: 100%;
  min-height: 120px;
  margin: 20px 0;
}

/* ============================================================
   🏠 홈화면 — 히어로 배너
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-light) 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.hero-banner h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -.5px;
}

.hero-banner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin: 0;
}

/* 홈 메인 카드 */
.home-featured-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.home-featured-card .card-image {
  overflow: hidden;
}

.home-featured-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-featured-card .card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 홈 그리드 (3×2) */
.home-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* 신뢰도 띠 */
.trust-bar {
  background: var(--main);
  color: rgba(255,255,255,.85);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-bar .trust-number {
  color: var(--point);
  font-weight: 800;
  font-size: 1rem;
}

/* ============================================================
   🦶 FOOTER
   ============================================================ */
.site-footer {
  background: var(--main);
  color: rgba(255,255,255,.8);
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-about .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-about p {
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
}

.footer-menu h4 {
  color: var(--point);
  font-size: .93rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 7px;
}

.footer-menu ul li a {
  color: rgba(255,255,255,.75) !important;
  font-size: .88rem;
  text-decoration: none !important;
  transition: color .2s;
}

.footer-menu ul li a:hover {
  color: var(--point) !important;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   📱 RESPONSIVE — 모바일
   ============================================================ */
@media (max-width: 1024px) {
  .content-area-wrap,
  .site-content.grid-container {
    grid-template-columns: 1fr;
  }

  .widget-area,
  .sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  /* 헤더 */
  .header-inner,
  .inside-header {
    min-height: 56px !important;
    flex-wrap: wrap;
  }

  .main-navigation {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-search input[type="search"] {
    width: 140px;
  }

  /* 관련글 그리드 → 2열 */
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 모바일에서 9번째부터 숨김 */
  .related-posts-grid .related-post-card:nth-child(n+9) {
    display: none;
  }

  .related-posts-grid.show-all .related-post-card:nth-child(n+9) {
    display: block;
  }

  .related-posts-more {
    display: block;
  }

  .related-posts-more.hidden {
    display: none;
  }

  /* 홈 그리드 */
  .home-featured-card {
    grid-template-columns: 1fr;
  }

  .home-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 푸터 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-bar {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .related-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .home-posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner h1 {
    font-size: 1.7rem;
  }
}

/* ============================================================
   🌟 유틸리티 클래스
   ============================================================ */
.text-main    { color: var(--main); }
.text-point   { color: var(--point); }
.text-btn     { color: var(--btn); }
.text-mute    { color: var(--text-mute); }
.bg-main      { background-color: var(--main); }
.bg-point     { background-color: var(--point); }
.bg-card      { background-color: var(--card); }
.bg-source    { background-color: var(--source); }
.radius-sm    { border-radius: var(--radius-sm); }
.radius-md    { border-radius: var(--radius-md); }
.radius-lg    { border-radius: var(--radius-lg); }
.shadow-sm    { box-shadow: var(--shadow-sm); }
.shadow-md    { box-shadow: var(--shadow-md); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* v1.0.1 GeneratePress 충돌 보정 */
.site-content { display: block !important; }
.site-content .content-area, .site-content .widget-area { width: auto !important; float: none !important; }
.content-area-wrap { width: 100%; box-sizing: border-box; }
.site-header, .site-header .inside-header { background: var(--main) !important; }
.main-title a, .main-title a:hover, .site-header .main-title a { color: #fff !important; font-weight: 700; }
.site-description { color: rgba(255,255,255,.7) !important; }
.main-navigation, .main-navigation .inside-navigation, .navigation-search, .navigation-search input[type=search] { background: transparent !important; }
.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation .menu-bar-items a { color: #fff !important; }
.main-navigation .main-nav ul li a:hover, .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--point) !important; background: transparent !important; }
.main-navigation ul ul { background: var(--main-dark) !important; }
.hero-banner, .trust-bar { width: 100%; box-sizing: border-box; margin-left: 0; margin-right: 0; }
.hero-banner { padding: 56px 20px; }
.hero-banner h1 { max-width: 900px; margin: 0 auto 12px; color: #fff; }
.home-featured-card .card-content h2 { font-size: 1.6rem; line-height: 1.4; }
.home-featured-card .card-image { min-height: 260px; background: var(--main); }
.separate-containers .inside-article { padding: 0; background: transparent; box-shadow: none; }
.blog .site-main > article { margin-bottom: 20px; }
.site-footer, .site-info { background: var(--main) !important; color: rgba(255,255,255,.8) !important; }
.site-info a { color: var(--point) !important; }
.site-info { padding: 22px 20px; text-align: center; font-size: .85rem; }
.footer-widgets { background: var(--main-dark) !important; }
.ad-slot-sidebar { min-height: 120px; }


/* v1.0.2 헨리프레스형 글 상단/본문/사이드바 */
.site-header .inside-header { min-height: 80px !important; }
.main-title { font-size: 1.7rem !important; font-weight: 900 !important; letter-spacing: -.5px; }
.main-navigation .main-nav ul li a { font-size: 15px !important; font-weight: 600 !important; }
body { background: #EEF2FF; }

.post-hero { background: #fff; text-align: center; padding: 52px 20px 44px; border-bottom: 1px solid var(--border); }
.post-hero-inner { max-width: 900px; margin: 0 auto; }
.post-hero-cats a { color: var(--main) !important; font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: .3px; }
.post-hero .entry-title { font-size: 2.1rem !important; font-weight: 800 !important; line-height: 1.4 !important; margin: 14px 0 18px !important; color: #222 !important; word-break: keep-all; }
.breadcrumb { font-size: .85rem; color: var(--text-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-mute) !important; text-decoration: underline; }
.breadcrumb span { color: var(--text-mute); }
.post-hero-meta { font-size: .85rem; color: var(--text-light); }

.content-area-wrap { grid-template-columns: minmax(0,1fr) 300px; gap: 28px; margin-top: 32px; }
.single .entry-content, .entry-content { font-size: 17px; line-height: 1.85; color: #1F2937; padding: 32px 44px 36px; }
.entry-content p { margin: 0 0 1.5em; word-break: keep-all; }
.single article.type-post { border-radius: 8px; }
.notice-box-date { margin: 24px 44px 0; }

.side-cta { background: var(--main); color: #fff; border-radius: 8px; padding: 22px; margin-bottom: 20px; }
.side-cta strong { display: block; font-size: 1.05rem; line-height: 1.5; margin-bottom: 8px; }
.side-cta p { font-size: .88rem; line-height: 1.6; margin: 0 0 14px; color: rgba(255,255,255,.85); }
.side-cta-btn { display: block; text-align: center; background: var(--point); color: #1a1a1a !important; font-weight: 700; padding: 11px 14px; border-radius: 8px; text-decoration: none !important; }
.side-top ol { margin: 0; padding-left: 20px; }
.side-top li { font-size: .92rem; line-height: 1.55; margin-bottom: 10px; }
.side-top li a { color: var(--text) !important; text-decoration: none; }
.side-top li a:hover { color: var(--main) !important; }

@media (max-width: 1024px) { .content-area-wrap { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .post-hero { padding: 32px 18px 28px; }
  .post-hero .entry-title { font-size: 1.5rem !important; }
  .single .entry-content, .entry-content { padding: 22px 20px 26px; font-size: 16.5px; }
  .notice-box-date { margin: 18px 20px 0; }
}


/* ============================================================
   v1.0.3 헨리프레스형 밝은 디자인 (컬러·헤더 1줄·컴팩트 카드·썸네일 1:1)
   ============================================================ */
:root { --main:#4338CA; --main-dark:#312E81; --main-light:#6366F1; --bg:#F8FAFC; --source:#ECFEFF; }
body { background: #F8FAFC !important; }

/* 헤더: 얇은 한 줄, 밝은 파랑 */
.site-header { border-bottom: 0 !important; box-shadow: none !important; background: var(--main) !important; }
.site-header .inside-header { min-height: 64px !important; padding-top: 0 !important; padding-bottom: 0 !important; flex-wrap: nowrap !important; }
.main-title a { font-size: 0 !important; }
.main-title a::before { content: "AI테크노트"; font-size: 1.55rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.site-branding .site-description { display: none !important; }
.main-navigation .inside-navigation { display: flex; align-items: center; }
.main-navigation .main-nav ul li a { line-height: 64px !important; padding: 0 14px !important; }
.header-btn { display: inline-block; background: var(--point); color: #0F172A !important; font-weight: 700; font-size: .9rem; line-height: 1; padding: 11px 18px; border-radius: 999px; text-decoration: none !important; margin-left: 12px; white-space: nowrap; }
.header-btn:hover { filter: brightness(1.06); }

/* 홈 소개 줄: 밝게, 낮게 */
.home-intro { background: #fff; border-bottom: 1px solid var(--border); }
.home-intro-inner { max-width: 1200px; margin: 0 auto; padding: 22px 20px; }
.home-intro h1 { font-size: 1.35rem; font-weight: 800; color: var(--main); margin: 0 0 4px; }
.home-intro p { margin: 0; font-size: .92rem; color: var(--text-mute); }

/* 리스트 카드: 1:1 썸네일, 낮은 높이 */
.post-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 14px; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pc-thumb { flex: 0 0 150px; width: 150px; height: 150px; display: block; }
.pc-thumb img, .thumb-empty { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; display: block; background-color: #E2E8F0; box-shadow: none !important; }
.pc-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.pc-cat { font-size: .78rem; font-weight: 700; color: var(--main); }
.pc-title { font-size: 1.12rem; font-weight: 700; line-height: 1.45; margin: 0; }
.pc-title a { color: var(--text) !important; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a:hover { color: var(--main) !important; }
.pc-excerpt { font-size: .9rem; line-height: 1.6; color: var(--text-mute); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { font-size: .78rem; color: var(--text-light); }

/* 이미지 없음: 회색 배경 + 카메라 아이콘 (네이비 배경 제거) */
.thumb-empty, .card-thumb-placeholder, .related-post-card .card-thumb-placeholder { background: #E2E8F0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8AFBC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / 34% no-repeat !important; font-size: 0 !important; color: transparent !important; }
.home-featured-card .card-image { background: transparent; }

/* 페이지 번호 */
.navigation.pagination { margin: 22px 0 8px; }
.nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); text-decoration: none; font-size: .9rem; }
.nav-links .page-numbers.current { background: var(--main); color: #fff; border-color: var(--main); }

/* 푸터: 밝게 */
.site-footer, .site-info { background: #fff !important; color: var(--text-mute) !important; border-top: 1px solid var(--border); }
.site-info a { color: var(--main) !important; }
.footer-widgets { background: #fff !important; }

/* 사이드바 광고칸 승인 전 낮게 */
.ad-slot-sidebar { min-height: 90px; }

@media (max-width: 768px) {
  .site-header .inside-header { min-height: 56px !important; flex-wrap: wrap !important; }
  .main-title a::before { font-size: 1.3rem; }
  .post-card { gap: 12px; padding: 10px; }
  .pc-thumb { flex-basis: 96px; width: 96px; height: 96px; }
  .pc-thumb img, .thumb-empty { width: 96px; height: 96px; }
  .pc-title { font-size: 1rem; }
  .pc-excerpt { -webkit-line-clamp: 1; font-size: .85rem; }
}

/* v1.0.4 */
.site-info { border-top: 0 !important; }
.main-navigation .menu-bar-items { margin-left: auto; }

/* v1.0.5 헤더 버튼은 데스크톱 메뉴 안의 1개만 */
.mobile-menu-control-wrapper .header-btn { display: none !important; }

/* v1.1.18 홈 카드 16:9 썸네일 + 글 하단 출처 안내 */
.pc-thumb { flex: 0 0 260px; width: 260px; height: auto; aspect-ratio: 16 / 9; }
.pc-thumb img, .thumb-empty { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .post-card { flex-direction: column; gap: 12px; }
  .pc-thumb { flex: none; width: 100%; }
}
.atn-source { margin: 36px 0 0; padding: 16px 18px; background: #f8fafc; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; font-size: 13px; line-height: 1.7; color: #6b7280; }
.atn-source-title { font-weight: 700; color: #374151; margin-bottom: 6px; }
.atn-source-list { margin: 0 0 8px; padding-left: 18px; }
.atn-source a { color: #1E5BC6; text-decoration: underline; }
.atn-source-note { margin: 0; }

/* ============================================================
   v2.0 AI테크노트 — 읽기 최적화 (가독성·IT 콘텐츠 요소)
   ============================================================ */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background: var(--bg); color: var(--text); }
.single .entry-content, .entry-content { font-size: 17.5px; line-height: 1.95; color: #1F2937; letter-spacing: -.012em; padding: 36px 48px 40px; }
.entry-content p { margin: 0 0 1.55em; word-break: keep-all; overflow-wrap: anywhere; }
.entry-content > p:first-of-type { font-size: 1.06em; color: #111827; }
.entry-content h2 { font-size: 1.5rem; line-height: 1.45; font-weight: 800; color: #1E1B4B; margin: 2.4em 0 .9em; padding: 0 0 .5em; border: 0; border-bottom: 2px solid var(--border); position: relative; letter-spacing: -.02em; }
.entry-content h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--main); }
.entry-content h3 { font-size: 1.22rem; line-height: 1.5; font-weight: 700; color: var(--main); margin: 2em 0 .7em; letter-spacing: -.015em; }
.entry-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.6em 0 .5em; }
.entry-content a { color: var(--main); text-decoration: underline; text-decoration-color: rgba(67,56,202,.35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-color: var(--point-dark); color: var(--main-dark); }
.entry-content ul, .entry-content ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .55em; line-height: 1.85; word-break: keep-all; }
.entry-content li::marker { color: var(--main-light); }
.entry-content strong { color: #111827; font-weight: 700; }
.entry-content blockquote { margin: 1.8em 0; padding: 16px 20px; background: var(--source); border-left: 4px solid var(--point-dark); border-radius: 0 10px 10px 0; color: #134E4A; font-size: .98em; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .95em; line-height: 1.6; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.entry-content th { background: #EEF2FF; color: #1E1B4B; font-weight: 700; text-align: left; padding: 12px 14px; border-bottom: 2px solid #C7D2FE; }
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content tr:nth-child(even) td { background: #F8FAFC; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace; font-size: .88em; background: #EEF2FF; color: #3730A3; padding: .15em .45em; border-radius: 5px; word-break: break-all; }
.entry-content pre { background: #0F172A; color: #E2E8F0; padding: 16px 18px; border-radius: 10px; overflow-x: auto; line-height: 1.7; font-size: .9rem; margin: 1.8em 0; -webkit-overflow-scrolling: touch; }
.entry-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; word-break: normal; }
.entry-content img { border-radius: 10px; height: auto; max-width: 100%; }
.entry-content figcaption { color: var(--text-light); font-size: .85rem; text-align: center; margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--point-dark); outline-offset: 2px; border-radius: 4px; }
.post-hero .entry-title, .entry-title { letter-spacing: -.025em; line-height: 1.4; word-break: keep-all; }
.post-hero-meta { color: var(--text-mute); }
::selection { background: #C7D2FE; color: #1E1B4B; }
@media (max-width: 768px) {
  .single .entry-content, .entry-content { padding: 24px 18px 28px; font-size: 17px; line-height: 1.9; }
  .entry-content h2 { font-size: 1.3rem; }
  .entry-content h3 { font-size: 1.12rem; }
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; }
  .entry-content th, .entry-content td { min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
