/* ===== Gute Nachricht Mission — Design Tokens (E안 Forest Community) ===== */
:root{
  /* F안 Global Blue — 로얄블루 · 시안 · 화이트 (goodnews.or.kr 참고) */
  --forest: #123B7A;
  --forest-dark: #0d2b5c;
  --terracotta: #17B9D6;
  --terracotta-dark: #119cb3;
  --cream: #ffffff;
  --cream-deep: #f5f6f7;
  --border: #e5e7ea;
  --text: #17171A;
  --text-sub: #5a6470;
  --text-on-dark: #ffffff;
  --font: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 6px;
  --max-width: 1120px;
}

/* Global Blue — bold sans headings, flat accent color */
.hero h1, .page-hero h1, .section-head h2, .cta-band h2,
.card h3, .ministry-card .ministry-name, .time-card h3,
.news-card h3, .act-item h3, .location-card h3, .event-card h3,
.legal-body h2, .logo{
  font-family: var(--font-heading);
  font-weight: 700;
}
.hero-tag, .nav-links a, .btn{ letter-spacing: 0.01em; }

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; }

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Header / Nav ===== */
.site-header{
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--terracotta), var(--forest)) 1;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 24px;
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo{
  font-weight: 600;
  font-size: 16px;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links{
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a{
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover{
  color: var(--forest);
  border-bottom-color: var(--terracotta);
}
/* ===== Scroll to top button ===== */
.back-to-top{
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--forest);
  color: var(--text-on-dark);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .15s ease;
}
.back-to-top.visible{ opacity: 1; pointer-events: auto; }
.back-to-top:hover{ transform: translateY(-2px); }
@media (max-width: 640px){
  .back-to-top{ width: 38px; height: 38px; left: 14px; bottom: 14px; }
}

/* ===== Floating donate button ===== */
.floating-donate{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: #fff6f0;
  padding: 13px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: transform .15s ease;
}
.floating-donate:hover{ transform: translateY(-2px); }
@media (max-width: 640px){
  .floating-donate{ padding: 11px 18px; font-size: 13px; right: 14px; bottom: 14px; }
}
.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
}
.mobile-menu{
  display: none;
  flex-direction: column;
  padding: 8px 0 20px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open{ display: flex; }
.mobile-menu a{
  padding: 12px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 1280px){
  .nav-links, .nav-cta.desktop, .nav-event-cta.desktop{ display: none; }
  .nav-toggle{ display: block; }
}

/* ===== Generic slider (hero banner, ministry gallery) ===== */
.slider{ position: relative; overflow: hidden; }
.slider .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity .7s ease;
  background-size: cover;
  background-position: center;
}
.slider .slide.active{ opacity: 1; z-index: 2; }
.slider-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.85);
  color: var(--forest);
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow.prev{ left: 16px; }
.slider-arrow.next{ right: 16px; }
.slider-dots{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
}
.slider-dots button{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.slider-dots button.active{ background: #fff; }

/* ===== Hero (full-bleed image slider) ===== */
.hero{
  position: relative;
  min-height: 560px;
}
.hero .slide{
  display: flex;
  align-items: center;
}
.hero .slide::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,16,32,0.82) 0%, rgba(8,16,32,0.55) 45%, rgba(8,16,32,0.25) 100%);
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  width: 100%;
}
.hero-text{ max-width: 560px; }
.hero-tag{
  font-size: 13px;
  color: #d7c39f;
  margin-bottom: 14px;
}
.hero h1{
  font-size: 38px;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.hero p{
  font-size: 16px;
  color: #e3e7ec;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px){
  .hero{ min-height: 440px; }
  .hero h1{ font-size: 29px; }
}

.ministry-duo{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; max-width:var(--max-width); margin:0 auto; }
.ministry-duo .card{
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--forest-dark);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.ministry-duo .ig-link{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.ministry-duo .ig-link:hover{ transform: translateY(-2px); }
.ministry-duo .ig-link svg{ width: 18px; height: 18px; }
.ministry-duo .card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,16,32,0.05) 40%, rgba(8,16,32,0.7) 100%);
}
.ministry-duo .cap{ position: relative; z-index: 1; }
.ministry-duo .cap-name{ font-size: 20px; font-weight: 700; font-family: var(--font-heading); }
.ministry-duo .cap-sub{ font-size: 13px; color: #d7c39f; display: block; margin-top: 4px; }
@media (max-width: 640px){ .ministry-duo{ grid-template-columns: 1fr; } }

/* ===== Buttons (used across hero, sections, cta-band) ===== */
.btn{
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--terracotta); color: #fff6f0; }
.btn-outline{ border: 1px solid #d7c39f; color: #f2e6cf; }

/* ===== Section shell ===== */
.section{ padding: 64px 24px; }
.section-head{
  max-width: var(--max-width);
  margin: 0 auto 40px;
  text-align: left;
}
.section-head h2{
  font-size: 24px;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p{
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}
.section.alt{ background: var(--cream-deep); }

/* ===== Cards grid ===== */
.grid-3{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
}
.card h3{
  font-size: 16px;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 8px;
}
.card p{
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 14px;
}
.card a.link{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
}

@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr; }
}

.event-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:var(--max-width); margin:0 auto; }
.event-tile{ background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; transition:box-shadow .15s ease, transform .15s ease; }
.event-tile:hover{ box-shadow:0 8px 20px rgba(0,0,0,0.08); transform:translateY(-2px); }
.event-tile .thumb{ aspect-ratio:4/5; background-size:cover; background-position:center; background-color:var(--forest-dark); }
.event-tile .body{ padding:16px 18px; }
.event-tile .when{ font-size:12.5px; color:var(--terracotta-dark); font-weight:600; margin-bottom:6px; }
.event-tile h3{ font-size:15.5px; color:var(--forest); margin:0 0 6px; font-family:var(--font-heading); font-weight:700; }
.event-tile p{ font-size:13px; color:var(--text-sub); margin:0 0 6px; }
.event-tile .where{ font-size:12px; color:var(--text-sub); }
@media (max-width:960px){ .event-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .event-grid{ grid-template-columns:1fr; } .event-tile .thumb{ aspect-ratio:16/9; } }

.act-list{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; max-width:var(--max-width); margin:0 auto; }
.act-item{ background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; transition:box-shadow .15s ease, transform .15s ease; }
.act-item:hover{ box-shadow:0 8px 20px rgba(0,0,0,0.08); transform:translateY(-2px); }
.act-item .thumb{ aspect-ratio:4/3; background-size:cover; background-position:center; background-color:var(--forest-dark); }
.act-item .body{ padding:16px 18px; }
.act-item h3{ font-size:15px; color:var(--forest); margin:0 0 6px; font-family:var(--font-heading); font-weight:700; }
.act-item p{ font-size:13px; color:var(--text-sub); margin:0; line-height:1.55; }

@media (max-width: 960px){ .act-list{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 640px){ .act-list{ grid-template-columns:1fr; } }
.ministries{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ministry-card{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--forest-dark);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.ministry-card .ministry-name{
  font-size: 16px;
  font-weight: 600;
}
.ministry-card .ministry-sub{
  font-size: 12.5px;
  color: #d7c39f;
  display: block;
  margin-top: 2px;
}

@media (max-width: 860px){
  .ministries{ grid-template-columns: 1fr; }
}

/* ===== Testimonial slider (photo + quote) ===== */
.testimonial-slider{
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 300px;
  overflow: visible;
}
.testimonial-slider .slide{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 32px;
}
.testimonial-slider blockquote{
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: var(--forest);
  margin: 0 0 16px;
  max-width: 700px;
}
.testimonial-slider .avatar{
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--forest);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}
.testimonial-slider blockquote{
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: var(--forest);
  margin: 0 0 16px;
}
.testimonial-slider cite{
  font-size: 13.5px;
  color: var(--text-sub);
  font-style: normal;
}
.testimonial-slider .slider-dots{ bottom: 8px; }
.testimonial-slider .slider-dots button{ background: var(--border); }
.testimonial-slider .slider-dots button.active{ background: var(--terracotta); }

/* ===== Service times ===== */
.times-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.time-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.time-card h3{
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 12px;
}
.time-row{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-sub);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.time-row:last-child{ border-bottom: none; }

@media (max-width: 640px){
  .times-grid{ grid-template-columns: 1fr; }
}

/* ===== Seasonal event nav button ===== */
.nav-event-cta{
  display: inline-block;
  background: var(--cream-deep);
  border: 1px solid var(--terracotta);
  color: var(--terracotta-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.media-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.media-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.media-card .thumb{
  aspect-ratio: 16/9;
  background: var(--forest-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.media-card.thumb-square .thumb{
  aspect-ratio: 1/1;
  background-size: cover;
}
.media-card.thumb-portrait .thumb{
  aspect-ratio: 9/16;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.media-card.zoom-fix .thumb{
  background-size: 150% auto;
  background-position: center;
}
.media-card .body{ padding: 16px 18px; }
.media-card .kind{
  font-size: 11.5px;
  font-weight: 600;
  color: var(--terracotta-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.media-card h3{ font-size: 15px; color: var(--forest); margin: 0 0 4px; }
.media-card .date{ font-size: 12.5px; color: var(--text-sub); }

@media (max-width: 860px){ .media-grid{ grid-template-columns: 1fr; } }

.media-grid.shorts-grid{ grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px){ .media-grid.shorts-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .media-grid.shorts-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ===== Event-type sections (events.html) ===== */
.event-type{
  max-width: var(--max-width);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: flex-end;
}
.event-type .thumb{
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--forest-dark);
  background-size: cover;
  background-position: center;
  align-self: flex-end;
}
.event-type h3{ font-family: var(--font-heading); font-weight:700; font-size: 20px; color: var(--forest); margin: 0 0 10px; }
.event-type p{ font-size: 14.5px; color: var(--text-sub); margin: 0 0 14px; }

.event-type .thumb-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.event-type .thumb-strip-item{
  width: 72px;
  height: 54px;
  border-radius: 8px;
  background: var(--forest-dark);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity .15s ease, border-color .15s ease;
}
.event-type .thumb-strip-item:hover{ opacity: 0.95; }
.event-type .thumb-strip-item.active{
  opacity: 1;
  border-color: var(--terracotta-dark, #b5651d);
}
.event-type .thumb-strip-item.only-one{ cursor: default; }

@media (max-width: 860px){
  .event-type{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .event-type .thumb-strip-item{ width: 60px; height: 45px; }
}

/* ===== Past events gallery ===== */
.gallery-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.gallery-card .thumb{
  aspect-ratio: 4/3;
  background: var(--forest-dark);
  background-size: cover;
  background-position: center;
}
.gallery-card .body{ padding: 16px 18px; }
.gallery-card .date{ font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.gallery-card h3{ font-size: 15px; color: var(--forest); margin: 0 0 6px; }
.gallery-card p{ font-size: 13.5px; color: var(--text-sub); margin: 0; }

@media (max-width: 860px){ .gallery-grid{ grid-template-columns: 1fr; } }
.cta-band{
  background: var(--forest);
  color: var(--text-on-dark);
  text-align: center;
  padding: 56px 24px;
}
.cta-band h2{
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}
.cta-band p{
  font-size: 15px;
  color: #d9e1db;
  margin: 0 0 24px;
}

/* ===== Footer ===== */
.site-footer{
  background: var(--forest-dark);
  color: #cfd8d2;
  padding: 44px 24px 28px;
  font-size: 13.5px;
  margin-top: auto;
}
.footer-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links{ display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.footer-links a{ text-decoration: none; color: #cfd8d2; }
.footer-links a:hover{ color: #fff; }
.footer-social{ display: flex; gap: 14px; }
.footer-social a{ color: #cfd8d2; text-decoration: none; }
.footer-legal{
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid #33443b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #96a49b;
}
.footer-legal a{ color: #96a49b; text-decoration: none; }
.footer-legal a:hover{ color: #fff; }
