/*
Theme Name:  FKAUSA Theme
Theme URI:   https://koreanfedusa.com
Author:      PKAA / Hyon Ku
Description: 미주한인회총연합회 공식 웹사이트 테마 — 로고 색상(파란색·금색·흰색) 적용.
Version:     2.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fkausa
*/

/* ── 로고 기반 CSS 변수 ─────────────────────────────────────
   로고 파란색:  #1B4F8A
   로고 금색:    #C9A84C
   기본 흰색:    #FFFFFF
──────────────────────────────────────────────────────────── */
:root {
  /* 파란색 계열 */
  --blue-dark:  #071A38;
  --blue-deep:  #0E3260;
  --blue-main:  #1B4F8A;   /* ★ 로고 메인 파란색 */
  --blue-mid:   #2E6AAD;
  --blue-light: #4A86C8;
  --blue-pale:  #B8CDE8;
  --blue-ghost: #E8F0F9;

  /* 금색 계열 */
  --gold-dark:  #6B5210;
  --gold-deep:  #9A7A28;
  --gold-main:  #C9A84C;   /* ★ 로고 메인 금색 */
  --gold-bright:#E8C45A;
  --gold-pale:  #F5DFA0;
  --gold-ghost: #FDF6E3;

  /* 중립 계열 (흰색/회색) */
  --white:      #FFFFFF;
  --gray-page:  #F4F7FC;   /* 페이지 배경 — 아주 연한 파랑기 */
  --gray-lt:    #E2E8F2;
  --gray-mid:   #8DA3BC;
  --gray-dk:    #3A4E65;
  --text:       #1A2535;
  --text2:      #4A6080;

  /* 시맨틱 */
  --red:        #C0392B;
  --green:      #1A7A3C;

  /* 공통 */
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 2px 14px rgba(27,79,138,.09);
  --shadow-lg:  0 6px 32px rgba(27,79,138,.15);
  --font-ko:    'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif KR', serif;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-ko); color: var(--text); background: var(--gray-page); line-height: 1.7; }
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container     { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section       { padding: 80px 0; }
.section-white { background: var(--white); }
.section-page  { background: var(--gray-page); }
.section-blue  { background: var(--blue-main); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-main); margin-bottom: 10px; }
.section-title { font-family: var(--font-serif); font-size: clamp(24px,4vw,36px); font-weight: 700; color: var(--blue-main); line-height: 1.3; margin-bottom: 16px; }
.section-title--white { color: var(--white); }
.section-desc  { font-size: 15px; color: var(--text2); max-width: 600px; }
.sr-only       { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn           { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; border: none; font-family: var(--font-ko); }
.btn-gold      { background: var(--gold-main); color: var(--blue-dark); }
.btn-gold:hover{ background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,.35); }
.btn-white     { background: var(--white); color: var(--blue-main); }
.btn-white:hover { background: var(--blue-ghost); }
.btn-outline   { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn-blue      { background: var(--blue-main); color: var(--white); }
.btn-blue:hover{ background: var(--blue-deep); transform: translateY(-1px); }
.btn-sm        { padding: 8px 18px; font-size: 13px; }

/* ── TOP BAR ──────────────────────────────────────────────── */
.topbar        { background: var(--blue-dark); color: rgba(255,255,255,.65); font-size: 13px; padding: 7px 0; }
.topbar-inner  { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a      { color: rgba(255,255,255,.65); transition: color .2s; }
.topbar a:hover{ color: var(--gold-bright); }
.topbar-contact,.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-cta    { background: rgba(201,168,76,.2); color: var(--gold-bright); padding: 3px 12px; border-radius: 4px; font-weight: 700; transition: background .2s; }
.topbar-cta:hover { background: rgba(201,168,76,.35); }

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-header   { background: var(--white); box-shadow: 0 1px 0 var(--gray-lt), var(--shadow); position: sticky; top: 0; z-index: 100; }
.nav-inner     { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.site-branding { display: flex; align-items: center; gap: 13px; padding-left: 20px; }
.site-logo     { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.site-logo-fallback { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-main); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.site-title    { font-family: var(--font-serif); font-size: 14px; color: var(--blue-main); font-weight: 700; display: block; line-height: 1.25; }
.site-description { font-size: 10px; color: var(--gray-mid); display: block; }

/* Primary Nav */
.primary-navigation             { display: flex; }
.primary-navigation .nav-menu  { display: flex; align-items: center; gap: 2px; }
.primary-navigation .nav-menu > li { position: relative; }
.primary-navigation .nav-menu > li > a { display: block; padding: 7px 13px; font-size: 14px; font-weight: 500; color: var(--gray-dk); border-radius: 7px; transition: all .18s; white-space: nowrap; }
.primary-navigation .nav-menu > li > a:hover,
.primary-navigation .nav-menu .current-menu-item > a,
.primary-navigation .nav-menu .current-menu-ancestor > a { color: var(--blue-main); background: var(--blue-ghost); }

/* Dropdown */
.primary-navigation .sub-menu  { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-lt); padding: 6px; opacity: 0; pointer-events: none; transform: translateY(-5px); transition: all .18s; z-index: 200;
  /* 투명 패딩으로 마우스 이동 틈새 제거 */
  padding-top: 14px;
  margin-top: 0;
}
/* 메뉴 아이템과 드롭다운 사이 투명 브리지 */
.primary-navigation .nav-menu > li::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 8px; }
.primary-navigation li:hover > .sub-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.primary-navigation .sub-menu a { display: block; padding: 8px 11px; font-size: 13px; color: var(--gray-dk); border-radius: 6px; transition: background .15s; }
.primary-navigation .sub-menu a:hover { background: var(--blue-ghost); color: var(--blue-main); }

/* Nav Actions */
.nav-cta          { display: flex; gap: 9px; align-items: center; }
.nav-admin-btn    { display: none; }
.logged-in .nav-admin-btn { display: inline-flex; }
.menu-toggle      { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 21px; height: 2px; background: var(--blue-main); margin: 5px 0; border-radius: 2px; transition: all .3s; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }

/* 모바일 전용 후원광고 링크 — PC에서는 기본적으로 숨김 (.nav-cta 버튼이 대신 보임) */
.mobile-sponsor-link { display: none; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero          { background: var(--blue-main); position: relative; overflow: hidden; padding: 96px 0 76px; }
.hero-bg       { position: absolute; inset: 0; background: linear-gradient(125deg, var(--blue-dark) 0%, var(--blue-main) 55%, var(--blue-mid) 100%); }
/* 금색 장식 원 */
.hero-deco     { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-deco-1   { right: -40px; top: -80px; width: 480px; height: 480px; border: 70px solid rgba(201,168,76,.1); }
.hero-deco-2   { right: 100px; bottom: -60px; width: 260px; height: 260px; border: 45px solid rgba(201,168,76,.07); }
.hero-deco-3   { left: -60px; bottom: -60px; width: 200px; height: 200px; border: 40px solid rgba(255,255,255,.04); }
.hero-inner    { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-eyebrow  { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-eyebrow-line { width: 28px; height: 2px; background: var(--gold-main); flex-shrink: 0; }
.hero-eyebrow span { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-pale); }
.hero h1       { font-family: var(--font-serif); font-size: clamp(30px,5vw,50px); font-weight: 700; color: var(--white); line-height: 1.22; margin-bottom: 18px; }
.hero-lead     { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.85; margin-bottom: 30px; max-width: 460px; }
.hero-btns     { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero 오른쪽 카드 */
.hero-card     { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 28px; }
.hero-stats    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.stat-item     { text-align: center; }
.stat-num      { font-family: var(--font-serif); font-size: 34px; font-weight: 700; color: var(--gold-bright); line-height: 1; }
.stat-label    { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }
.stat-divider  { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 18px 0; }
.president-mini { display: flex; align-items: center; gap: 13px; }
.president-mini-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold-main); overflow: hidden; flex-shrink: 0; background: rgba(201,168,76,.15); }
.president-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.president-mini-name  { font-weight: 700; color: var(--white); font-size: 15px; }
.president-mini-title { font-size: 12px; color: rgba(255,255,255,.5); }

/* 히어로 카드 — 후원 광고 배너 버전 */
.hero-card-ad {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.hero-ad-link { display: block; line-height: 0; }
.hero-ad-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: transform .25s;
}
.hero-card-ad:hover .hero-ad-img { transform: scale(1.015); }
.hero-ad-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11,31,58,.55);
  color: rgba(255,255,255,.85);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}

/* 광고 배너 순환 슬라이더 */
.hero-ad-slider { position: relative; }
.hero-ad-slide {
  display: none;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero-ad-slide.is-active { display: block; opacity: 1; }
.hero-ad-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.hero-ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .2s;
}
.hero-ad-dot.is-active { background: var(--gold-main); width: 20px; border-radius: 4px; }
.hero-ad-dot:hover { background: rgba(255,255,255,.75); }

/* ── 공지 배너 ────────────────────────────────────────────── */
.announce      { background: var(--gold-main); padding: 12px 0; }
.announce-inner{ display: flex; align-items: center; gap: 14px; overflow: hidden; }
.announce-tag  { background: var(--blue-main); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .09em; padding: 3px 10px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.announce-text { font-size: 14px; color: var(--blue-dark); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-more { font-size: 13px; font-weight: 700; color: var(--blue-main); white-space: nowrap; margin-left: auto; }
.announce-more:hover { color: var(--blue-dark); }

/* ── NEWS ─────────────────────────────────────────────────── */
.news-header   { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.news-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.news-card     { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .22s; display: flex; flex-direction: column; border: 1px solid var(--gray-lt); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-pale); }
.news-thumb    { height: 178px; overflow: hidden; position: relative; background: var(--blue-ghost); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-main) 100%); font-size: 38px; opacity: .25; }
.news-source-badge { position: absolute; top: 11px; left: 11px; background: var(--blue-main); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 4px; }
.news-body     { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-category { font-size: 11px; font-weight: 700; color: var(--gold-deep); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.news-title    { font-size: 15px; font-weight: 700; color: var(--blue-main); line-height: 1.45; margin-bottom: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-title a  { color: inherit; }
.news-title a:hover { color: var(--blue-deep); }
.news-excerpt  { font-size: 13px; color: var(--text2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; margin-bottom: 12px; }
.news-meta     { display: flex; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gray-lt); }
.news-date     { font-size: 12px; color: var(--gray-mid); }
.news-readmore { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--gold-deep); }
.news-readmore:hover { color: var(--gold-main); }
.news-featured { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
.news-featured .news-thumb { height: 300px; }
.news-featured .news-title { font-size: 19px; -webkit-line-clamp: 2; }
.news-featured .news-excerpt { -webkit-line-clamp: 3; }

/* ── GALLERY ──────────────────────────────────────────────── */
.gallery-header  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.gallery-all-link { font-size: 14px; font-weight: 700; color: var(--blue-main); display: flex; align-items: center; gap: 5px; }
.gallery-all-link:hover { color: var(--gold-deep); }
.gallery-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-btn      { padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1.5px solid var(--gray-lt); background: var(--white); color: var(--text2); transition: all .18s; font-family: var(--font-ko); }
.filter-btn.active,.filter-btn:hover { background: var(--blue-main); color: var(--white); border-color: var(--blue-main); }
.gallery-grid    { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery-item    { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.gallery-item:hover { border-color: var(--gold-main); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s; display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(11,50,96,0); transition: background .28s; display: flex; align-items: flex-end; padding: 12px; }
.gallery-item:hover .gallery-overlay { background: rgba(11,50,96,.58); }
.gallery-caption { color: var(--white); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(5px); transition: all .25s; }
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-item-lg { grid-column: span 2; grid-row: span 2; }
.gallery-more    { text-align: center; margin-top: 24px; }
.gallery-note    { font-size: 13px; color: var(--gray-mid); margin-bottom: 14px; }

/* ── 총회장 메시지 ────────────────────────────────────────── */
.president-section        { background: var(--blue-main); position: relative; overflow: hidden; }
.president-section::before{ content: ''; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; border: 70px solid rgba(201,168,76,.08); pointer-events: none; }
.president-section::after { content: ''; position: absolute; left: 40%; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 40px solid rgba(255,255,255,.04); pointer-events: none; }
.president-inner  { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: center; position: relative; z-index: 2; }
.president-photo-wrap { position: relative; }
.president-photo  { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-lg); object-fit: cover; border: 3px solid rgba(201,168,76,.4); }
.president-photo-deco { position: absolute; inset: 14px -14px -14px 14px; border: 2px solid rgba(201,168,76,.18); border-radius: var(--radius-lg); z-index: -1; }
.president-quote  { font-family: var(--font-serif); font-size: clamp(17px,2.4vw,24px); color: var(--white); line-height: 1.75; margin-bottom: 26px; }
.president-quote::before { content: '\201C'; font-size: 56px; color: var(--gold-main); line-height: .45; display: block; margin-bottom: 14px; }
.president-sig    { display: flex; align-items: center; gap: 14px; }
.president-sig-line { width: 36px; height: 2px; background: var(--gold-main); flex-shrink: 0; }
.president-sig-name { font-weight: 700; color: var(--gold-bright); font-size: 15px; }
.president-sig-role { font-size: 12px; color: rgba(255,255,255,.5); }
.president-sig-link { margin-top: 28px; }

/* ── 행사 ─────────────────────────────────────────────────── */
.events-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.events-list   { display: flex; flex-direction: column; gap: 14px; }
.event-card    { background: var(--white); border-radius: var(--radius-lg); padding: 22px 26px; display: flex; gap: 22px; align-items: center; box-shadow: var(--shadow); transition: all .2s; border: 1px solid var(--gray-lt); }
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--blue-pale); }
.event-date-box { border-radius: var(--radius); padding: 9px 16px; text-align: center; min-width: 68px; flex-shrink: 0; }
.event-date-box.blue { background: var(--blue-main); color: var(--white); }
.event-date-box.red  { background: var(--red); color: var(--white); }
.event-month   { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--gold-pale); text-transform: uppercase; }
.event-day     { font-family: var(--font-serif); font-size: 28px; font-weight: 700; line-height: 1; }
.event-info    { flex: 1; }
.event-title   { font-size: 16px; font-weight: 700; color: var(--blue-main); margin-bottom: 5px; }
.event-title a { color: inherit; }
.event-detail  { font-size: 13px; color: var(--text2); display: flex; gap: 14px; flex-wrap: wrap; }
.event-tag     { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; white-space: nowrap; }
.tag-upcoming  { background: var(--blue-ghost); color: var(--blue-deep); }
.tag-important { background: #FEF2E6; color: #974800; }

/* ── 한인회 ───────────────────────────────────────────────── */
.chapters-grid  { display: grid; grid-template-columns: repeat(auto-fill,minmax(196px,1fr)); gap: 10px; margin-top: 32px; }
.chapter-card   { background: var(--white); border: 1.5px solid var(--gray-lt); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 11px; transition: all .2s; }
.chapter-card:hover { border-color: var(--blue-main); box-shadow: var(--shadow); transform: translateY(-2px); }
.chapter-icon   { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-main); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.chapter-name   { font-size: 13px; font-weight: 700; color: var(--blue-main); line-height: 1.3; }
.chapter-loc    { font-size: 11px; color: var(--gray-mid); margin-top: 2px; }
.chapter-more   { border-style: dashed; opacity: .65; }
.chapter-more .chapter-icon { background: var(--gray-mid); }

/* ── 후원광고 ─────────────────────────────────────────────── */
.sponsors       { background: var(--white); padding: 44px 0; border-top: 1px solid var(--gray-lt); border-bottom: 1px solid var(--gray-lt); }
.sponsors-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--gray-mid); text-transform: uppercase; margin-bottom: 24px; }
.sponsors-row   { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.sponsor-card   { background: var(--gray-page); border: 1.5px solid var(--gray-lt); border-radius: var(--radius); padding: 11px 22px; font-size: 13px; font-weight: 700; color: var(--gray-dk); transition: all .2s; display: flex; align-items: center; gap: 7px; }
.sponsor-card:hover { border-color: var(--gold-main); background: var(--gold-ghost); color: var(--blue-main); }
.sponsors-contact { text-align: center; margin-top: 22px; }
.sponsors-contact p { font-size: 13px; color: var(--gray-mid); margin-bottom: 12px; }
.sponsors-contact a { color: var(--blue-main); font-weight: 700; }
.sponsors-contact a:hover { color: var(--gold-deep); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer     { background: var(--blue-deep); padding: 56px 0 0; }
.footer-grid     { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo-circle { width: 42px; height: 42px; background: rgba(201,168,76,.15); border: 2px solid var(--gold-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; overflow: hidden; }
.footer-brand-name  { font-family: var(--font-serif); font-weight: 700; color: var(--white); font-size: 15px; line-height: 1.3; }
.footer-brand-sub   { font-size: 11px; color: rgba(255,255,255,.38); font-weight: 400; }
.footer-desc        { font-size: 13px; color: rgba(255,255,255,.48); line-height: 1.8; margin-bottom: 20px; }
.footer-info        { font-size: 12px; color: rgba(255,255,255,.38); line-height: 2; }
.footer-info strong { color: rgba(255,255,255,.58); }
.footer-info a      { color: rgba(255,255,255,.38); transition: color .2s; }
.footer-info a:hover{ color: var(--gold-bright); }
.footer-col h4      { font-size: 12px; font-weight: 700; color: var(--gold-main); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul li   { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.48); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-bright); }
.footer-bottom      { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; flex-wrap: wrap; gap: 10px; }
.footer-copy        { font-size: 12px; color: rgba(255,255,255,.28); }
.footer-tax         { font-size: 12px; color: rgba(255,255,255,.28); }
.footer-social      { display: flex; gap: 8px; }
.social-btn         { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); font-size: 14px; transition: all .2s; }
.social-btn:hover   { background: var(--gold-main); color: var(--blue-dark); border-color: var(--gold-main); }

/* ── SINGLE POST ──────────────────────────────────────────── */
.single-content    { background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); border: 1px solid var(--gray-lt); }
.entry-header      { margin-bottom: 28px; }
.entry-title       { font-family: var(--font-serif); font-size: clamp(20px,3vw,34px); font-weight: 700; color: var(--blue-main); line-height: 1.3; margin-bottom: 14px; }
.entry-meta        { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--gray-mid); }
.entry-meta a      { color: var(--gold-deep); font-weight: 700; }
.entry-content     { font-size: 16px; line-height: 1.85; color: var(--text); }
.entry-content h2,.entry-content h3 { font-family: var(--font-serif); color: var(--blue-main); margin: 28px 0 14px; }
.entry-content p   { margin-bottom: 18px; }
.entry-content img { border-radius: var(--radius); margin: 22px 0; }
.entry-content a   { color: var(--blue-main); text-decoration: underline; }

/* ── 댓글 영역 (답글 남기기) ───────────────────────────────── */
#comments,
.comments-area {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-lt);
}
.comments-title,
#comments > h2,
#comments > h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-main);
  margin-bottom: 20px;
}

/* 댓글 목록 */
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .comment,
.comment-list li { margin-bottom: 20px; }
.comment-body {
  background: var(--gray-page);
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; width: 40px; height: 40px; }
.comment-author .fn { font-weight: 700; color: var(--blue-main); font-style: normal; font-size: 14px; }
.comment-metadata { font-size: 12px; color: var(--gray-mid); margin-bottom: 10px; }
.comment-metadata a { color: var(--gray-mid); }
.comment-content p { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 10px; }
.reply { margin-top: 8px; }
.comment-reply-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-main);
  padding: 4px 12px;
  border: 1.5px solid var(--blue-pale);
  border-radius: 100px;
  transition: all .18s;
}
.comment-reply-link:hover { background: var(--blue-ghost); }
.children { list-style: none; margin-left: 32px; margin-top: 16px; padding: 0; }

/* 댓글 작성 폼 (#respond / #commentform) */
#respond,
.comment-respond {
  background: var(--white);
  border: 1px solid var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.comment-reply-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-main);
  margin-bottom: 18px;
}
.comment-reply-title small a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-mid);
  margin-left: 10px;
}
.comment-notes,
.comment-form p.comment-notes,
#commentform p.comment-notes,
.logged-in-as {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 16px;
}
.logged-in-as a { color: var(--blue-main); }

.comment-form p,
#commentform p { margin-bottom: 16px; }
.comment-form label,
#commentform label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-dk);
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-ko);
  color: var(--text);
  background: var(--gray-page);
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  transition: border-color .18s, background .18s;
  box-sizing: border-box;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus {
  outline: none;
  border-color: var(--blue-main);
  background: var(--white);
}
.comment-form textarea,
#commentform textarea { min-height: 130px; resize: vertical; }

/* "다음 번 댓글 작성을 위해..." 체크박스 한 줄 정렬 */
.comment-form-cookies-consent,
#commentform .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.5;
}
.comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-main);
}
.comment-form-cookies-consent label { display: inline; font-weight: 400; margin-bottom: 0; }

.comment-form .form-submit,
#commentform .form-submit { margin-bottom: 0; margin-top: 4px; }
.comment-form input#submit,
.comment-form button[type="submit"],
#commentform input#submit,
#commentform button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-ko);
  color: var(--blue-dark);
  background: var(--gold-main);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s;
}
.comment-form input#submit:hover,
.comment-form button[type="submit"]:hover,
#commentform input#submit:hover,
#commentform button[type="submit"]:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

/* 댓글 없음 / 닫힘 안내 */
.no-comments,
.comments-closed {
  font-size: 14px;
  color: var(--gray-mid);
  padding: 16px 0;
}

/* ── WIDGETS ──────────────────────────────────────────────── */
.widget       { margin-bottom: 28px; }
.widget-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--blue-main); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-main); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width:900px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-card      { display: none; }
  .news-grid      { grid-template-columns: 1fr 1fr; }
  .news-featured  { grid-template-columns: 1fr; }
  .news-featured .news-thumb { height: 200px; }
  .gallery-grid   { grid-template-columns: repeat(2,1fr); }
  .gallery-item-lg{ grid-column: span 1; grid-row: span 1; }
  .president-inner{ grid-template-columns: 1fr; }
  .president-photo{ max-width: 240px; margin: 0 auto; }
  .topbar-contact { display: none; }
}
@media (max-width:640px) {
  .section        { padding: 52px 0; }
  .primary-navigation { display: none; }
  .primary-navigation.is-open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 14px; box-shadow: 0 8px 24px rgba(27,79,138,.14); z-index: 500; }
  .primary-navigation.is-open .nav-menu { flex-direction: column; width: 100%; }
  .primary-navigation.is-open .sub-menu { display: none; }
  .menu-toggle    { display: block; }
  .news-grid      { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: repeat(2,1fr); }
  .chapters-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .hero           { padding: 60px 0 52px; }
  .event-card     { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }
  .single-content { padding: 22px; }
  #respond, .comment-respond { padding: 18px; }
  .children { margin-left: 16px; }

  /* 후원광고 버튼 — 로고/타이틀 줄에서 완전히 제거 (아래 햄버거 메뉴 안 골드 박스로 대체) */
  .nav-cta .btn-sponsor { display: none !important; }

  /* ── 모바일 상단바(topbar) 정리 ──────────────────────────
   * 이메일 링크는 숨기고, 후원광고 버튼만 작게 표시 → 줄바꿈/깨짐 방지
   */
  .topbar         { padding: 6px 0; }
  .topbar-inner   { justify-content: center; }
  .topbar-links   { gap: 0; width: 100%; justify-content: center; }
  .topbar-links a:not(.topbar-cta) { display: none; }
  .topbar-cta     { font-size: 11px; padding: 3px 10px; white-space: nowrap; }

  /* ── 모바일 상단 네비게이션 바 정리 ──────────────────────
   * 로고 좌측 여백 유지 + 한글 타이틀/영문 태그라인 모두 표시
   * (후원광고 버튼이 이 줄에서 빠졌으므로 공간 확보됨)
   */
  .nav-inner      { gap: 6px; padding: 0; }
  .site-branding  { gap: 8px; min-width: 0; overflow: hidden; padding-left: 4px; }
  .site-title     { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-description { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-cta        { gap: 6px; flex-shrink: 0; }

  /* 모바일 메뉴(햄버거) 안에서만 후원광고 신청 링크 노출 */
  .mobile-sponsor-link {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
    background: var(--gold-ghost);
    border: 1.5px solid var(--gold-main);
    border-radius: 8px;
    text-align: center;
  }
}
@media (max-width:380px) {
  .topbar-cta     { font-size: 10px; padding: 2px 8px; }
  .site-title     { font-size: 11px; }
  .site-description { font-size: 7px; }
}
