/* ============================================================
   K-Brand Protection Reporting Platform — Main Stylesheet
   Precision-matched to original mockup measurements
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

.wrapper {
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }

/* ---------- Container ---------- */
/* mockup: ~68-72% of 1080px viewport ≈ 750px; we use a slightly wider comfortable max */
.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HERO SECTION
   - Full-width banner image as background
   - Title vertically centered ~18-21% from top
   - CTA box below subtitle ~42-55px gap
   ============================================================ */
.main {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.main-bg {
  background-image: url('../images/main-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 780px;
}

/* Dark overlay sits ON TOP of the image, text sits on the overlay */
.main-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(8, 18, 48, 0.35);
  display: flex;
  /* Slight upward bias: title at ~20% from top as per mockup */
  align-items: flex-start;
  justify-content: center;
  padding: 7% 20px 0;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Main Korean title */
.main-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.125;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  white-space: nowrap;
}

/* English subtitle */
.main-subtitle {
  font-size: clamp(18px, 1.35vw, 28px);
  font-weight: 400;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.04em;
}

/* CTA translucent box
   mockup: ~56-60% viewport width → ~605-650px; height ~140px; border-radius ~12px */
.main-cta-box {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  padding: 28px 44px;
  width: clamp(300px, 58vw, 800px);
  position: relative;
  top: 280px;
}

.main-cta-box p {
  font-size: clamp(12px, 1.75vw, 20px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.65;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ============================================================
   ABOUT SECTION — "한류편승 상품이란?"
   - White background
   - Top padding from section start to icon: ~160px
   - Narrow content block: max-width ~560px
   ============================================================ */
.about-section {
  background: #fff;
  padding-top: 150px;
  padding-bottom: 120px;
  position: relative;
}
/* Decorative traditional geometric patterns */
.deco-pattern {
  position: absolute;
  width: 300px;
  height: 300px;
}

.deco-left {
  background: url('../images/bg1.png') no-repeat center center / contain;
  top: -50px;
  left: -30px;
}

.deco-right {
  background: url('../images/bg2.png') no-repeat center center / contain;
  top: 300px;
  right: -40px;
  width: 300px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flag-container {
  width: 60px;
  height: 40px;
  margin-bottom: 15px;
}

.flag {
  width: 100%;
}

.container h2 {color: #333; 
  font-size: clamp(20px, 2.8vw, 30px); 
  font-weight: 700;}

.about-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.about-title span {
  color: #1E3FAF;
}
.about-desc {
  font-size: clamp(13px, 1.2vw, 17px);
  color: #666;
  line-height: 1.8;
  word-break: keep-all;
}

/* ============================================================
   REPORT CATEGORIES SECTION
   - 3×2 card grid
   - Grid container: max-width ~760px
   - Card: ~215px wide, ratio ~1.5, gaps ~55px H / ~60px V
   ============================================================ */
.report-section {
  background: #fff;
  padding-top: 0;
  padding-bottom: 120px;
}

.section-heading {
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-heading.center .section-title,
.section-heading.center .section-subtitle-en {
  text-align: center;
}

.section-subtitle-en {
  font-size: clamp(14px, 1.1vw, 18px);
  color: #555;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Card grid: 3 columns with ~55px gap */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 20px;
}

/* Individual card */
.report-card{
  height: 320px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(190deg, #F9F2F2 0%, #E7EDF4 100%);
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.065);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
}

/* Card body: ~40% of card height */
.card-body {
  padding: 20px 18px 14px;
  flex: 0 0 auto;
}



.card-title {
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.card-title-en {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.card-desc {
  font-size: clamp(13px, 1.2vw, 14px);
  color: #666;
  line-height: 1.6;
  word-break: keep-all;
}

/* Card image area: ~45% of card height */
.card-img-wrap {
  height: 120px;
  min-height: 110px;
  max-height: 140px;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.card-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  object-fit: cover;
}

/* ============================================================
   REWARD SECTION
   - Light blue band spans full width (not constrained)
   - Left: gift card + caption (~52-56% width)
   - Right: deep blue pill/blob extends off-screen right
   ============================================================ */
.reward-section {
  height: 500px;
  background: #fff;
  padding-bottom: 80px;
  overflow: hidden; /* allow blob to extend right */
}

.reward-section h2 {
  text-align: center;
}

.reward-heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  /* left-aligned, matching grid start (not centered) */
}


.reward-layout {
  display: flex;
  width: 100%;
  gap: 2rem;
}

/* Left base — light blue platform */
.reward-left, .reward-right {
  z-index: 1;
  position: relative;
}

.reward-left {
  left: 0;
  top:6rem;
}

.reward-right {
  right: 0;
  top: 1.5rem;
}

.reward-base {
  width: 50vw;
  height: 200px;
  display: flex;
  align-items: center;
}

.reward-base.blue {
  background: #dce9ff;
  border-radius: 0 300px 300px 0;
  justify-content: flex-end;
  padding-right: 5rem;
  padding-top: 2rem;
}

.reward-base.navy {
  background: #2238B8;
  border-radius: 300px 0 0 300px;
  padding-left: 5rem;
  color: #fff;
}

.reward-base.navy p {
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.8;
  word-spacing: 0.1em;
  letter-spacing: -0.01em;
}

/* Amazon Gift Card graphic */
.amazon-card {
  width: 280px;
  position: absolute;
  top: -100px;
  left: 58%;
}

.reward-text {
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.5;
}

.reward-text span {
  font-weight: 700;
}

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards */
.report-card:nth-child(1) { transition-delay: 0.05s; }
.report-card:nth-child(2) { transition-delay: 0.10s; }
.report-card:nth-child(3) { transition-delay: 0.15s; }
.report-card:nth-child(4) { transition-delay: 0.20s; }
.report-card:nth-child(5) { transition-delay: 0.25s; }
.report-card:nth-child(6) { transition-delay: 0.30s; }

/* ============================================================
   RESPONSIVE — Tablet (≤900px)
   ============================================================ */
@media (max-width: 1280px) {
  .amazon-card{
    left: 50%;
  }
}


@media (max-width: 1180px) {
  .deco-pattern{
    width: 250px;
    height: 250px;
  }
  .amazon-card{
    left: 40%;
  }
}


@media (max-width: 900px) {
  .main-bg{height: 600px;}
  .main-title { white-space: normal; font-size: clamp(18px, 3.5vw, 28px); }
  .main-cta-box { width: clamp(280px, 75vw, 540px); top: 180px; padding: 20px 22px;}


  

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
    row-gap: 32px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reward-layout {
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }
  .amazon-card{width: 200px; top:50%; left: 25%; transform: translateY(-50%);}
  .reward-left { top: 0; left: -5rem ; }
  .reward-right {top: 0; right: -5rem;}

  .reward-base{width: 100%; height: 180px;}
  .reward-base.blue {padding-top:0;}
  .reward-base.navy { margin-top: 1rem; }
}

@media (max-width: 680px) {
  .amazon-card{width: 160px; left: 18%;}
}

/* ============================================================
   RESPONSIVE — Mobile (≤560px)
   ============================================================ */
@media (max-width: 560px) {
  .main-bg{height: 500px;}
  .main-title { font-size: 19px; white-space: normal; }
  .main-subtitle { font-size: 11.5px; margin-bottom: 28px; }
  .main-cta-box { padding: 20px 22px; width: 100%; top: 100px;}
  .main-cta-text { font-size: 13.5px; }
  .main-overlay { padding: 8% 16px 0; }

  .about-section { padding-top: 60px; padding-bottom: 60px; }
  .deco-pattern { display: none; }

  .report-section { padding-top: 20px; }
  .report-section .section-heading { margin-bottom: 20px; }

  .cards-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .reward-left { left: -0.5rem ; }
  .reward-right { right: -0.5rem;}
  .amazon-card{width: 130px; left: 0.5rem; top: 1.5rem;}
  .reward-base{height: 160px;}
  .reward-base.blue { padding-top: 1rem; }

  .section-title { font-size: 20px; }
  .reward-heading { font-size: 20px; }
}
