/* ==========================================================
   JW.org Korean homepage — YJ 정보 design system interpretation
   Apple-inspired: stark binary sections, Apple Blue accent only.
   ========================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: "Noto Sans KR","SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif;
  color: var(--yj-near-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
button { font-family: inherit; }
a { color: inherit; }

.jw-container {
  max-width: var(--yj-max-content);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================
   Nav — translucent glass, Apple-style but with JW density.
   ============================================================ */
.jw-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--yj-nav-bg);
  backdrop-filter: var(--yj-nav-blur);
  -webkit-backdrop-filter: var(--yj-nav-blur);
  color: #fff;
}
.jw-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.jw-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  opacity: 1;
}
.jw-brand:hover { text-decoration: none; opacity: 0.9; }
.jw-logomark { width: 40px; height: 40px; border-radius: 0; flex: none; }
.jw-brand-word {
  font-size: 20px; font-weight: 600; letter-spacing: 0.2px;
}

.jw-nav-items {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
  margin-left: 8px;
}
.jw-nav-item { position: relative; height: 52px; display: flex; align-items: center; }
.jw-nav-link {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 0 12px;
  height: 52px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
.jw-nav-link:hover, .jw-nav-item.is-open .jw-nav-link { color: #fff; text-decoration: none; }
.jw-megamenu {
  position: absolute; top: 52px; left: 0;
  min-width: 260px;
  background: rgba(22,22,24,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 0 0 var(--yj-radius-large) var(--yj-radius-large);
  padding: 18px 20px 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.jw-megamenu-title {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.jw-megamenu ul { list-style: none; margin: 0; padding: 0; }
.jw-megamenu li + li { margin-top: 2px; }
.jw-megamenu a {
  display: block;
  color: #fff;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.2px;
  text-decoration: none;
  transition: color 180ms ease;
}
.jw-megamenu a:hover { color: var(--yj-bright-blue); text-decoration: none; }

.jw-nav-right { display: flex; align-items: center; gap: 2px; }
.jw-nav-icon-btn {
  height: 40px; padding: 0 10px;
  background: transparent; color: rgba(255,255,255,0.88);
  border: none; border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 180ms ease, color 180ms ease;
}
.jw-nav-icon-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }
.jw-nav-lang { font-size: 12px; letter-spacing: -0.1px; }
.jw-nav-menu-btn { display: none; }

.jw-search-bar {
  background: rgba(22,22,24,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.jw-search-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.jw-search-inner input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 19px; font-family: inherit;
  padding: 8px 0;
  letter-spacing: -0.3px;
}
.jw-search-inner input::placeholder { color: rgba(255,255,255,0.5); }
.jw-search-close {
  background: transparent; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 6px; border-radius: 6px;
}
.jw-search-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Mobile drawer */
.jw-mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex; justify-content: flex-end;
}
.jw-mobile-panel {
  width: min(320px, 85%); background: #fff; height: 100%;
  padding: 18px 22px;
}
.jw-mobile-head { display: flex; justify-content: space-between; align-items: center; color: var(--yj-near-black); }
.jw-mobile-title { font-size: 18px; font-weight: 600; }
.jw-mobile-head .jw-nav-icon-btn { color: var(--yj-near-black); }
.jw-mobile-head .jw-nav-icon-btn:hover { background: rgba(0,0,0,0.06); color: #000; }
.jw-mobile-list { list-style: none; padding: 0; margin: 22px 0 0; }
.jw-mobile-list li { border-bottom: 1px solid rgba(0,0,0,0.08); }
.jw-mobile-list a { display: block; padding: 14px 0; font-size: 17px; color: var(--yj-near-black); text-decoration: none; }

/* ============================================================
   Typography helpers
   ============================================================ */
.jw-eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--yj-link-blue);
  margin: 0 0 14px;
}
.jw-eyebrow-dark { color: var(--yj-bright-blue); }

.jw-hero-title {
  font-family: var(--yj-font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.jw-sec { padding: 72px 0 88px; }
.jw-sec-light { background: var(--yj-light-gray); color: var(--yj-near-black); }
.jw-sec-dark  { background: var(--yj-black); color: #fff; }

.jw-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.jw-sec-title {
  font-family: var(--yj-font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.jw-sec-title-dark { color: #fff; }
.jw-sec-more {
  color: var(--yj-link-blue);
  font-size: 17px;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.jw-sec-more:hover { text-decoration: underline; }
.jw-sec-more-dark { color: var(--yj-bright-blue); }

.jw-cta {
  display: inline-flex; align-items: center;
  color: var(--yj-link-blue);
  font-size: 19px; letter-spacing: -0.3px;
  text-decoration: none;
}
.jw-cta:hover { text-decoration: underline; }

.jw-cta-row { display: flex; gap: 20px; flex-wrap: wrap; }
.jw-pill-link {
  display: inline-flex; align-items: center;
  padding: 10px 22px;
  background: var(--yj-bright-blue); color: #000;
  border-radius: var(--yj-radius-pill);
  font-size: 17px; letter-spacing: -0.3px;
  text-decoration: none;
  transition: background 180ms ease;
}
.jw-pill-link:hover { background: #5cb0ff; text-decoration: none; }
.jw-pill-ghost {
  background: transparent; color: var(--yj-bright-blue);
  border: 1px solid var(--yj-bright-blue);
}
.jw-pill-ghost:hover { background: rgba(41,151,255,0.12); color: var(--yj-bright-blue); }

/* ============================================================
   Placeholder imagery
   ============================================================ */
.jw-ph {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #cbd2d9;
}
.jw-ph-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* ============================================================
   Memorial banner — dark cinematic
   ============================================================ */
.jw-memorial {
  position: relative;
  background: var(--yj-black);
  color: #fff;
  overflow: hidden;
}
.jw-memorial-media { position: absolute; inset: 0; z-index: 0; }
.jw-memorial-media > .jw-ph { height: 100%; }
.jw-memorial-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0.05) 100%);
}
.jw-memorial-copy {
  position: relative; z-index: 1;
  max-width: var(--yj-max-content);
  margin: 0 auto;
  padding: 0 22px;
}
.jw-memorial-inner {
  max-width: 540px;
  padding: 96px 0 104px;
}
.jw-memorial .jw-eyebrow { color: var(--yj-bright-blue); }
.jw-memorial-title {
  font-family: var(--yj-font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  text-wrap: balance;
}
.jw-memorial-body {
  font-size: 19px;
  line-height: 1.47;
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 26px;
  max-width: 480px;
}
.jw-memorial-body strong { font-weight: 600; color: #fff; }
.jw-memorial .jw-cta { color: var(--yj-bright-blue); }

/* ============================================================
   Featured 3-up
   ============================================================ */
.jw-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.jw-feat-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff;
  border-radius: var(--yj-radius-large);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.jw-feat-card:hover { transform: translateY(-2px); box-shadow: var(--yj-shadow-card); text-decoration: none; }
.jw-feat-card .jw-ph { border-radius: 0; }
.jw-feat-kind {
  margin: 16px 20px 6px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--yj-link-blue);
}
.jw-feat-title {
  margin: 0 20px 22px;
  font-family: var(--yj-font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.28;
  color: var(--yj-near-black);
}
.jw-feat-card:hover .jw-feat-title { color: var(--yj-link-blue); }

/* ============================================================
   Bible promo (dark)
   ============================================================ */
.jw-bible-promo { padding: 96px 0; }
.jw-bible-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.jw-bible-art { max-width: 420px; margin: 0 auto; width: 100%; }
.jw-bible-copy .jw-hero-title { color: #fff; }
.jw-bible-sub {
  font-size: 19px; line-height: 1.47; letter-spacing: -0.3px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 28px;
  max-width: 460px;
}

/* ============================================================
   Topics grid
   ============================================================ */
.jw-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 24px;
}
.jw-topic-card {
  display: flex; align-items: center; gap: 18px;
  text-decoration: none; color: inherit;
  padding: 10px;
  border-radius: var(--yj-radius-large);
  transition: background-color 180ms ease;
}
.jw-topic-card:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.jw-topic-media { flex: none; width: 96px; }
.jw-topic-title {
  margin: 0;
  font-family: var(--yj-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.28;
  color: var(--yj-near-black);
  text-wrap: balance;
}
.jw-topic-card:hover .jw-topic-title { color: var(--yj-link-blue); }

/* ============================================================
   Three action cards
   ============================================================ */
.jw-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.jw-action-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff;
  border-radius: var(--yj-radius-large);
  overflow: hidden;
  padding-bottom: 24px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.jw-action-card:hover { transform: translateY(-2px); box-shadow: var(--yj-shadow-card); text-decoration: none; }
.jw-action-card .jw-ph { border-radius: 0; }
.jw-action-title {
  margin: 18px 22px 6px;
  font-family: var(--yj-font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.24;
  color: var(--yj-near-black);
}
.jw-action-card:hover .jw-action-title { color: var(--yj-link-blue); }
.jw-action-body {
  margin: 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0,0,0,0.7);
  letter-spacing: -0.2px;
}

/* ============================================================
   Videos rail
   ============================================================ */
.jw-video-rail {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.jw-video-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 6px;
  scrollbar-width: none;
}
.jw-video-scroller::-webkit-scrollbar { display: none; }
.jw-video-card {
  scroll-snap-align: start;
  text-decoration: none; color: inherit;
  display: block;
}
.jw-video-media {
  position: relative;
  border-radius: var(--yj-radius-standard);
  overflow: hidden;
}
.jw-video-card:hover .jw-video-media { filter: brightness(1.08); }
.jw-play {
  position: absolute; left: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--yj-near-black);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.jw-video-title {
  margin: 14px 0 4px;
  font-family: var(--yj-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: #fff;
}
.jw-video-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,0.7);
}

.jw-rail-arrow {
  position: absolute; top: 28%;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff; border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background 180ms ease, transform 120ms ease;
}
.jw-rail-arrow:hover { background: rgba(255,255,255,0.22); }
.jw-rail-arrow:active { transform: scale(0.9); }
.jw-rail-left { left: 10px; }
.jw-rail-right { right: 10px; }

/* ============================================================
   About long-copy section
   ============================================================ */
.jw-about { padding-bottom: 0; }
.jw-about-title {
  font-family: var(--yj-font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 22px;
  text-wrap: balance;
  max-width: 760px;
}
.jw-about-body {
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.3px;
  color: rgba(0,0,0,0.82);
  max-width: 760px;
  margin: 0 0 18px;
}
.jw-about-body a { color: var(--yj-link-blue); text-decoration: none; }
.jw-about-body a:hover { text-decoration: underline; }
.jw-about-links {
  list-style: none; padding: 0;
  margin: 28px 0 64px;
  display: flex; flex-direction: column; gap: 10px;
}
.jw-about-links a {
  display: inline-flex; align-items: center;
  color: var(--yj-link-blue);
  font-size: 19px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.jw-about-links a:hover { text-decoration: underline; }
.jw-about-image { width: 100%; }
.jw-about-image .jw-ph { border-radius: 0; }

/* ============================================================
   Footer
   ============================================================ */
.jw-footer {
  background: #1d1d1f;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 64px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.1px;
}
.jw-footer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.jw-footer-brand { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.jw-footer-mark { color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 0.2px; }
.jw-footer-tag { color: rgba(255,255,255,0.7); font-size: 13px; }
.jw-footer-pref {
  background: transparent; color: rgba(255,255,255,0.7);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center;
  font-size: 13px;
  padding: 6px 10px; border-radius: 6px;
}
.jw-footer-pref:hover { color: #fff; background: rgba(255,255,255,0.08); }

.jw-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.jw-footer-h {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.1px;
}
.jw-footer-col ul { list-style: none; padding: 0; margin: 0; }
.jw-footer-col li + li { margin-top: 6px; }
.jw-footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: -0.1px;
  text-decoration: none;
}
.jw-footer-col a:hover { color: #fff; text-decoration: underline; }

.jw-footer-ext {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.jw-footer-ext a {
  color: rgba(255,255,255,0.7);
  font-size: 12px; text-decoration: none;
}
.jw-footer-ext a:hover { color: #fff; text-decoration: underline; }

.jw-footer-legal {
  padding-top: 22px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.jw-footer-legal-links { margin: 0; }
.jw-footer-legal-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 11px;
}
.jw-footer-legal-links a:hover { text-decoration: underline; color: #fff; }
.jw-footer-legal-links span { margin: 0 6px; opacity: 0.35; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .jw-nav-items { display: none; }
  .jw-nav-menu-btn { display: inline-flex; }
  .jw-nav-lang { display: none; }
  .jw-feat-grid, .jw-action-grid { grid-template-columns: 1fr; }
  .jw-topic-grid { grid-template-columns: repeat(2, 1fr); }
  .jw-bible-inner { grid-template-columns: 1fr; gap: 32px; }
  .jw-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .jw-memorial-inner { padding: 72px 0; }
}
@media (max-width: 560px) {
  .jw-topic-grid { grid-template-columns: 1fr; }
  .jw-sec { padding: 56px 0 64px; }
  .jw-footer-grid { grid-template-columns: 1fr; }
}
