/* =============================================
   layout.css  —  굿네이버스 긴급구호 SEO 페이지
   기존 정기후원 layout.css 스타일 100% 동일 적용
   ============================================= */

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand img { display: block; }

/* ===== Section 공통 ===== */
.section {
  position: relative;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 100px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
:root {
  --gutter: 40px;
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
}

.ptb0 {
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== Hero ===== */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.hero-img img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0) 100%
  );
  z-index: -1;
}
.section-hero .section-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 0;
  display: flex;
  align-items: center;
  min-height: 650px;
  color: #fff;
}
.hero-title {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.5;
  transform: translateY(145px);
}
.hero-copy-right {
  position: absolute;
  right: 24px;
  bottom: 40px;
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-size: 11px;
  opacity: .85;
  color: #fff;
}

@media (max-width: 860px) {
  .section { padding-top: 100px; padding-bottom: 0px; }

  .section-hero { height: auto; }
  .hero-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .hero-img img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }
  .section-hero .section-inner {
    position: relative;
    margin-top: -400px;
    padding: 0px 20px 0px;
    align-items: flex-end;
    min-height: unset;
    z-index: 1;
  }
  .section-hero::before {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.7) 0%,
      rgba(0,0,0,0.45) 30%,
      rgba(0,0,0,0.1) 65%,
      rgba(0,0,0,0) 100%
    );
  }
  .hero-title {
    line-height: 140%;
    font-size: 30px;
    margin-top: 54px;
  }
  .hero-copy-right {
    right: 5px;
    bottom: -5px;
    font-size: 10px;
  }
}

/* ===== Section Title / Subtitle / Intro ===== */
.section-donation-criteria .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.criteria-header {
  text-align: center;
}
.section-title {
  margin: 0 0 24px;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #333333;
}
.criteria-intro {
  letter-spacing: -0.5px;
  margin: 0;
  font-size: clamp(14px, 2.4vw, 20px);
  line-height: 1.9;
  color: #333333;
  font-weight: 500;
}
.criteria-subtitle {
  margin: 0 0 24px;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: #333;
}

@media (max-width: 860px) {
  .section-donation-criteria .section-inner {
    padding: 0 20px;
  }
  .section-title {
    margin-top: 150px;
  }
}

/* ===== Donation Card Grid ===== */
.donation-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.donation-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: 26px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.015);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.donation-card--gray  { background: #f2f2e9; color: #333; }
.donation-card--green { background: #8cb63b; color: #ffffff; }

.donation-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.donation-card-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.donation-card-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.donation-card-body {
  margin: 0 0 24px;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.8;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .donation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
  }
}
@media (max-width: 860px) {
  .donation-card-header { margin-bottom: 8px; }
  .donation-card {
    border-radius: 20px;
    padding: 16px 10px 16px;
    min-height: 320px;
  }
  .donation-card-title { font-size: 18px; }
  .donation-card-body { text-align: left; margin-bottom: 8px; }
}
@media (max-width: 420px) {
  .donation-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .donation-card { min-height: 175px; }

  /* 420px 이하 카드 색상 순서 보정 */
  .donation-card-grid > .donation-card:nth-child(3).donation-card--green {
    background: #f2f2e9; color: #333;
  }
  .donation-card-grid > .donation-card:nth-child(4).donation-card--gray {
    background: #8cb63b; color: #ffffff;
  }
}

/* ===== Donation Steps ===== */
.donation-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donation-step {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 40px;
  background: #ecefdf;
  border-radius: 24px;
}
.donation-step-number {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #555;
}
.donation-step-text {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.donation-step-title {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: #333;
}
.donation-step-desc {
  flex: 1;
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.8;
  color: #333;
  letter-spacing: -0.9px;
}
.donation-step-arrow {
  text-align: center;
  padding: 4px 0 8px;
  display: flex;
  justify-content: center;
}
.donation-step-arrow img {
  width: 16px;
  height: auto;
}
.donation-step-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto 0;
  padding: 14px 40px;
  border-radius: 999px;
  background: #556A1F;
  color: #ffffff;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-decoration: none;
  max-width: fit-content;
}
.cta {
  display: flex;
  justify-content: center;
}
.donation-step-cta:hover,
.donation-step-cta:focus { opacity: 0.9; }

@media (max-width: 860px) {
  .donation-step {
    padding: 18px 20px;
    border-radius: 20px;
    align-items: flex-start;
    gap: 16px;
  }
  .donation-step-number { flex: 0 0 52px; width: 52px; height: 52px; font-size: 16px; }
  .donation-step-text { flex-direction: column; align-items: flex-start; gap: 6px; }
  .donation-step-arrow { padding: 6px 0 10px; }
  .donation-step-cta { margin-top: 20px; padding: 13px 28px; }
}

@media (min-width: 861px) {
  .donation-step.step1 .donation-step-text { gap: 100px; }
  .donation-step.step2 .donation-step-text { gap: 60px; }
  .donation-step.step3 .donation-step-text { gap: 100px; }
  .donation-step-title {
    flex-shrink: 0;
    width: 230px;
  }
}

/* ===== Table ===== */
.business-table-wrap { width: 100%; overflow-x: auto; }
.business-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.7;
  color: #444;
}
.business-table thead th {
  padding: 14px 18px;
  background: #E9EADE;
  font-weight: 700;
  text-align: center;
  border: 1px solid #e2e4d7;
}
.business-table thead th:first-child { border-top-left-radius: 12px; }
.business-table thead th:last-child  { border-top-right-radius: 12px; }
.business-table tbody th,
.business-table tbody td {
  padding: 25px 18px;
  border: 1px solid #E9EADE;
  background: #ffffff;
  vertical-align: top;
  letter-spacing: -0.5px;
}
.business-table tbody th {
  width: 18%;
  background: #fff;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
.business-table tbody tr:last-child th { border-bottom-left-radius: 12px; }
.business-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

.business-table--tax { font-size: 18px; }
.business-table--tax tbody th {
  width: 14%;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .business-table { line-height: 1.6; }
  .business-table thead th { padding: 10px 8px; }
  .business-table tbody th,
  .business-table tbody td { padding: 10px 8px; }
  .business-table--tax { font-size: 14px; }
  .business-table--tax tbody th,
  .business-table--tax tbody td { padding: 10px 8px; }
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 24px; }
.faq-item-header {
  width: 100%;
  padding: 16px 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  letter-spacing: -0.5px;
}
.faq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  min-width: 24px;
}
.faq-badge-q { background: #93c03b; color: #fff; }
.faq-badge-a { background: #333; color: #fff; }
.faq-question {
  flex: 1;
  text-align: left;
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 700;
  color: #89A230;
}
.faq-arrow { flex-shrink: 0; }
.faq-arrow img {
  display: block;
  width: 24px;
  height: 24px;
  transform-origin: center;
  transition: transform 0.18s ease;
}
.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer-row { display: flex; gap: 16px; }
.faq-answer {
  text-align: justify;
  line-height: 160%;
  margin: 0;
  font-size: clamp(14px, 2.4vw, 20px);
  color: #333;
}
.faq-item.is-open .faq-item-body { max-height: 500px; }
.faq-item.is-open .faq-arrow img { transform: rotate(180deg); }

@media (max-width: 860px) {
  .faq-list { gap: 20px; }
  .faq-item-header { align-items: flex-start; }
  .faq-answer-row { flex-direction: row; align-items: flex-start; }
}

/* ===== Testimonial ===== */
.testimonial-list { display: flex; flex-direction: column; gap: 18px; }
.testimonial-card {
  position: relative;
  padding: 34px 80px 28px;
  background: #f5f6ef;
  border-radius: 20px;
  text-align: center;
}
.testimonial-quote {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #b3b5ad;
}
.testimonial-quote--left  { left: 80px; }
.testimonial-quote--right { right: 80px; }
.testimonial-text {
  margin: 0 0 14px;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.8;
  color: #828282;
  font-weight: 500;
}
.testimonial-author {
  margin: 0;
  font-size: clamp(12px, 1.4vw, 16px);
  color: #828282;
}

@media (max-width: 860px) {
  .testimonial-list {
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonial-list::-webkit-scrollbar { display: none; }
  .testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 90%;
    scroll-snap-align: center;
    min-width: 80%;
    padding: 26px 36px 22px;
    border-radius: 18px;
  }
  .testimonial-quote { font-size: 22px; }
  .testimonial-quote--left  { left: 20px; }
  .testimonial-quote--right { right: 20px; }
  .testimonial-author { font-size: 12px; }
}

/* ===== GN Info Banner (하단) ===== */
.gn-info-banner {
  background: #89A230;
  border-radius: 14px;
  padding: 36px 48px;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
  margin-bottom: 100px;
}
.gn-info-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.gn-info-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.7px;
}
.gn-info-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #fff;
  border-radius: 30px;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  transition: 0.25s ease;
  width: fit-content;
}
.gn-info-btn:hover { background: rgba(255,255,255,0.18); }
.btnalign {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .gn-info-banner { padding: 28px 24px; }
  .gn-info-inner { flex-direction: column; align-items: flex-start; }
  .gn-info-text { font-size: 17px; }
  .gn-info-btn { margin-top: 10px; align-self: flex-start; font-size: 14px; }
  .mo { display: block; }
}
@media (min-width: 860px) {
  .mo { display: none; }
}

/* ===== Floating Button ===== */
.gn-floating-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 10px 10px 10px 20px;
  border-radius: 120px;
  background: linear-gradient(90deg, #89A230 0%, #556A1F 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, opacity 0.15s ease-out;
  width: fit-content;
}
.gn-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  opacity: 0.95;
}
.gn-floating-text { white-space: nowrap; }
.gn-floating-icon {
  margin-left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  position: relative;
  flex-shrink: 0;
}
.gn-floating-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 7px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid #4f7020;
}

@media (max-width: 480px) {
  .gn-floating-btn { right: 16px; bottom: 16px; padding: 8px 8px 8px 16px; font-size: 13px; }
  .gn-floating-icon { width: 26px; height: 26px; }
  .gn-floating-icon::before { left: 9px; top: 6px; border-top-width: 7px; border-bottom-width: 7px; border-left-width: 9px; }
}

/* ===== 스크롤 영역 ===== */
.criteria-scroll2 { max-height: none; overflow: visible; }
@media (max-width: 860px) {
  .criteria-scroll2 { max-height: 500px; overflow-y: auto; }
}

/* ===== mobile-br ===== */
.mobile-br { display: none; }
@media (max-width: 860px) {
  .mobile-br { display: block; }
}

/* ===== Tax note (재사용 가능) ===== */
.tax-note {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
  padding: 24px 40px;
  background: #ecefdf;
  border-radius: 24px;
}
.tax-note-label {
  flex: 0 0 240px;
  font-size: clamp(14px, 2vw, 20px);
  white-space: nowrap;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}
.tax-note-text { font-size: clamp(14px, 2vw, 20px); margin: 0; }

@media (max-width: 860px) {
  .tax-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; border-radius: 20px; }
  .tax-note-label { flex: none; }
}

/* ===== CTA 링크 (기존 criteria-cta) ===== */
.criteria-cta {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  background: #556A1F;
  color: #fff;
  white-space: nowrap;
}
.criteria-cta:hover, .criteria-cta:focus { opacity: 0.9; }

/* ===================================
   긴급구호 전용 추가 스타일
   (기존 CSS 변수·패턴 그대로 활용)
   =================================== */

/* 지원 유형 카드 – 링크 없는 클릭 불가 카드 */
.emergency-support-card { cursor: default; }
.emergency-support-card:hover { transform: none !important; box-shadow: none !important; }

/* 통계 카드 */
.stat-card { cursor: default; }
.stat-card:hover { transform: none !important; box-shadow: none !important; }
.stat-card-icon { font-size: 28px; margin-bottom: 6px; }
.stat-card-number {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #333;
  margin: 0 0 8px;
}
.donation-card--green .stat-card-number { color: #fff; }

/* ── 사례 레이아웃: 이미지 상단 80% 너비 / 텍스트 하단 ── */
.case-item {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 80px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.case-item--reverse { direction: ltr; }

.case-img-wrap {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  width: 100%;
}
.case-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.case-copy-right {
  position: absolute;
  bottom: 20px;
  right: 12px;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  margin: 0;
  writing-mode : vertical-rl;
}

.case-country-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ecefdf;
  background: #556A1F;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.case-desc {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.85;
  color: #333;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
.case-quote {
  border-left: 3px solid #89A230;
  padding: 16px 20px;
  margin: 0 0 24px;
  background: #f5f6ef;
  border-radius: 0 12px 12px 0;
}
.case-quote-text {
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin-bottom: 8px;
}
.case-quote-author {
  font-size: 13px;
  font-weight: 700;
  color: #89A230;
}

/* 미얀마 통계 바 */
.case-stat-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ecefdf;
  border-radius: 20px;
  padding: 16px 24px;
}
.case-stat-number {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: #556A1F;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.case-stat-label {
  font-size: clamp(13px, 1.6vw, 16px);
  color: #555;
  line-height: 1.5;
}

/* 팔레스타인 행복도 바 차트 */
.happiness-stat { }
.happiness-stat-title {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.happiness-bar-wrap { display: flex; flex-direction: column; gap: 12px; }
.happiness-bar-item { display: flex; align-items: center; gap: 12px; }
.happiness-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  width: 44px;
  flex-shrink: 0;
}
.happiness-bar-bg {
  flex: 1;
  background: #e8e8e8;
  border-radius: 20px;
  height: 30px;
  overflow: hidden;
}
.happiness-bar-fill {
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.happiness-bar-before { background: #bdbdbd; width: 10%; }
.happiness-bar-after  { background: #8cb63b; }
.happiness-bar-pct {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* 산불 통계 리스트 */
.wildfire-stats { display: flex; flex-direction: column; gap: 10px; }
.wildfire-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #ecefdf;
  border-radius: 16px;
  flex-wrap: wrap;
}
.wildfire-stat-label {
  font-size: clamp(13px, 1.6vw, 16px);
  color: #555;
  flex: 1;
  letter-spacing: -0.3px;
}
.wildfire-stat-value {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 800;
  color: #556A1F;
  white-space: nowrap;
}

/* ── 모바일 추가 ── */
@media (max-width: 860px) {
  .case-item {
    width: 100%;
    gap: 20px;
    margin-bottom: 60px;
  }
  .case-stat-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wildfire-stat-item { flex-direction: column; align-items: flex-start; gap: 4px; }

  .section {
    padding-top: 0;
    padding-bottom: 2px;
  }
}

.mt-250m { margin-top: 0; }

@media (max-width: 860px) {
  .mt-250m { margin-top: 250px; }

  .hero-copy-right {
    bottom: -152px;
  }
}

.pc-br {
    display: none;
}

@media (min-width: 860px) {
    .pc-br {
        display: inline;
    }
}