/* 세계기도센터 – shared site styles (loaded on every page, keep small) */
:root { --wpc-brand: #234ce0; --wpc-brand-d: #1b3bb0; --wpc-soft: #eef2fb; --wpc-ink: #1a202c; --wpc-sub: #64748b; }

/* Post list [wpc_posts] */
.wpc-posts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.wpc-post { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,23,42,.08); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.wpc-post:hover { box-shadow: 0 8px 24px rgba(35,76,224,.15); transform: translateY(-2px); }
.wpc-post-media { display: block; aspect-ratio: 16 / 9; background: var(--wpc-soft); overflow: hidden; }
.wpc-post-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpc-post-noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--wpc-brand); font-weight: 700; opacity: .5; }
.wpc-post-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wpc-post-cat { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--wpc-brand); background: var(--wpc-soft); border-radius: 999px; padding: 2px 10px; }
.wpc-post-title { margin: 2px 0 0; font-size: 18px; line-height: 1.4; word-break: keep-all; }
.wpc-post-title a { color: var(--wpc-ink); text-decoration: none; }
.wpc-post-title a:hover { color: var(--wpc-brand); }
.wpc-post-date { font-size: 13px; color: var(--wpc-sub); }
.wpc-post-excerpt { margin: 4px 0 0; font-size: 15px; color: #475569; line-height: 1.6; word-break: keep-all; }
.wpc-posts--feature .wpc-post { flex-direction: row; }
.wpc-posts--feature .wpc-post-media { flex: 0 0 48%; aspect-ratio: auto; min-height: 280px; }
.wpc-posts--feature .wpc-post-body { padding: 28px; justify-content: center; }
.wpc-posts--feature .wpc-post-title { font-size: 24px; }
.wpc-post-more { margin-top: 8px; font-weight: 600; color: var(--wpc-brand); text-decoration: none; }
@media (max-width: 720px) {
  .wpc-posts--feature .wpc-post { flex-direction: column; }
  .wpc-posts--feature .wpc-post-media { min-height: 0; aspect-ratio: 16 / 9; }
  .wpc-posts--feature .wpc-post-body { padding: 18px; }
}
.wpc-posts-nav { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 8px; }
.wpc-posts-nav .page-numbers { min-width: 38px; text-align: center; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: var(--wpc-ink); text-decoration: none; }
.wpc-posts-nav .page-numbers.current { background: var(--wpc-brand); border-color: var(--wpc-brand); color: #fff; }
.wpc-posts-empty { color: var(--wpc-sub); text-align: center; }

/* Category pages & "최근 소식" under posts */
.wpc-archive { padding: 8px 0 48px; }
.wpc-archive-title { margin: 24px 0; }
.wpc-related { margin: 56px 0 8px; padding-top: 32px; border-top: 1px solid #e2e8f0; }
.wpc-related-title { font-size: 22px; margin: 0 0 20px; }
.wpc-related .wpc-posts--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.wpc-related .wpc-post-title { font-size: 16px; }

/* Banner [wpc_banner] */
.wpc-banner { position: relative; line-height: 0; }
.wpc-banner picture, .wpc-banner-img { display: block; width: 100%; height: auto; }
.wpc-banner-btn {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  line-height: 1.2; display: inline-block; padding: 14px 34px; border-radius: 999px;
  background: #fff; color: var(--wpc-brand); font-weight: 700; font-size: clamp(15px, 1.4vw, 20px);
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .15s, background .15s;
}
.wpc-banner-btn:hover { background: var(--wpc-brand); color: #fff; transform: translate(-50%, -50%) scale(1.04); }
@media (max-width: 767px) { .wpc-banner-btn { left: 50%; top: auto; bottom: 7%; transform: translateX(-50%); } .wpc-banner-btn:hover { transform: translateX(-50%); } }

/* Mobile bottom tab bar */
.wpc-tabbar { display: none; }
@media (max-width: 767px) {
  .wpc-tabbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    background: rgba(255,255,255,.97); backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid #e2e8f0; box-shadow: 0 -2px 12px rgba(15,23,42,.06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .wpc-tabbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 62px; }
  .wpc-tabbar li { margin: 0; display: flex; }
  .wpc-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: #94a3b8; text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: -.02em;
    -webkit-tap-highlight-color: transparent;
  }
  .wpc-tabbar li.is-active a { color: var(--wpc-brand); }
  .wpc-tabbar li.is-main a { position: relative; color: var(--wpc-brand); }
  .wpc-tabbar li.is-main svg {
    width: 50px; height: 50px; padding: 12px; margin-top: -26px; border-radius: 50%;
    background: var(--wpc-brand); color: #fff; box-shadow: 0 6px 16px rgba(35,76,224,.4); border: 4px solid #fff;
  }
  .wpc-tabbar li.is-main.is-active svg { background: var(--wpc-brand-d); }
  body.has-wpc-tabbar { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  /* keep floating buttons above the bar */
  body.has-wpc-tabbar .wpc-fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.has-wpc-tabbar .wpc-toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
  body.has-wpc-tabbar #kt-scroll-up, body.has-wpc-tabbar .scroll-up-wrap { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}

/* 엠샵 회원 폼 (로그인·내 정보·회원가입): keep off the screen edges on phones, centred on PC */
.mfs_form { box-sizing: border-box; max-width: 520px; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) {
  .mfs_form { padding-left: 16px !important; padding-right: 16px !important; margin-top: 16px; margin-bottom: 24px; }
  .mfs_form form.ui.form .field input, .mfs_form form.ui.form .field select, .mfs_form form.ui.form .field textarea { font-size: 16px; } /* stops iOS zoom-in */
  .mfs_form form.ui.form .fields { flex-wrap: wrap; margin-left: 0; margin-right: 0; }
  .mfs_form form.ui.form .fields > .field { width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
}

/* Kadence header polish */
.site-header .header-navigation .menu > li > a { font-weight: 600; }
.site-main-header-wrap .site-branding img { filter: none; }
