@charset "utf-8";

/* ========================================
   HEAT ILLNESS (온열질환) — desktop first
======================================== */
.hi-wrap .main-wrap.hi-page {
  padding: 0;
  background: #fff;
  font-family: 'Pretendard', sans-serif;
  color: #000;
  text-align: left;
}
.hi-page *,
.hi-page *::before,
.hi-page *::after { box-sizing: border-box; }
.hi-page ul,
.hi-page ol,
.hi-page dl { list-style: none; padding: 0; margin: 0; }
.hi-page dt,
.hi-page dd { margin: 0; }

.hi-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Section header (shared) ---------- */
.hi-section-header { margin-bottom: 56px; }
.hi-section-header__title {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #000;
}
.hi-section-header__sub {
  margin: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #555;
}

/* ---------- 1. Hero ---------- */
.hi-hero {
  position: relative;
  width: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-height, 80px);
}
.hi-hero__bg {
  position: absolute;
  inset: 0;
  background: url('/resources/images/heat-illness/hero-bg.jpg') center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.hi-hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 113px 40px 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 69px;
  min-height: 508px;
}
.hi-hero__copy {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: 540px;
  padding-bottom: 113px;
}
.hi-hero__title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}
.hi-hero__sub {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #fff;
}
.hi-hero__legal {
  margin: 16px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #aaa;
}
.hi-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 18px 32px;
  background: #edff00;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  transition: background 0.15s ease;
}
.hi-hero__cta-arrow {
  width: 24px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}
.hi-hero__cta:hover { background: #d9eb00; }
.hi-hero__dashboard {
  position: relative;
  flex: 1 1 auto;
  align-self: flex-end;
  max-width: 591px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(102, 116, 142, 0.4);
}
.hi-hero__dashboard img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 2. 인트로 ---------- */
.hi-intro {
  padding: 120px 0;
  background: #fff;
}
.hi-intro__list {
  border-top: 1px solid #eee;
}
.hi-intro__row {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}
.hi-intro__term {
  flex: 0 0 320px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #000;
}
.hi-intro__def {
  flex: 1 1 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: #000;
}
.hi-intro__def strong { font-weight: 700; }

/* ---------- 3. 시나리오 ---------- */
.hi-scenarios {
  padding: 0 0 120px;
  background: #fff;
}
.hi-scenarios__grid {
  display: flex;
  gap: 16px;
}
.hi-scenario {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
.hi-scenario__media {
  width: 100%;
  height: 256px;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f4f6;
  margin-bottom: 24px;
}
.hi-scenario__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hi-scenario__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #3182f6;
}
.hi-scenario__title {
  margin: 0 0 48px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #000;
}
.hi-scenario__body {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #666;
}

/* ---------- 4-7. STEP sections (shared) ---------- */
.hi-step {
  padding: 0 0 120px;
  background: #fff;
}
.hi-step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #000;
  margin-bottom: 0;
}
.hi-step__title-text {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #000;
}
.hi-step__pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: #edff00;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.02em;
}
.hi-step__rows {
  display: flex;
  flex-direction: column;
}
.hi-step__row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid #eee;
}
.hi-step__row:last-child { border-bottom: 0; }
.hi-step__text { flex: 1 1 0; min-width: 0; }
.hi-step__media {
  flex: 0 0 640px;
  width: 640px;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f4f6;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.04);
}
.hi-step__media img {
  display: block;
  width: 100%;
  height: auto;
}
.hi-step__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3182f6;
}
.hi-step__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #191f28;
}
.hi-step__body {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.02em;
  color: #555;
}
.hi-step__body strong { font-weight: 600; color: #555; }
.hi-step__body--muted { color: #888; }

/* ---------- 8. 등급 카드 ---------- */
.hi-grade {
  padding: 0 0 120px;
  background: #fff;
}
.hi-grade__grid {
  display: flex;
  gap: 16px;
}
.hi-grade-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 24px;
  min-width: 0;
}
.hi-grade-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hi-grade-card__badge--good { background: #1f66f1; }
.hi-grade-card__badge--attention { background: #00ac0b; }
.hi-grade-card__badge--caution { background: #ff9500; }
.hi-grade-card__badge--warning { background: #ff5a1a; }
.hi-grade-card__badge--danger { background: #fe2c2b; }

.hi-grade-card__threshold {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #191f28;
}
.hi-grade-card__body {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #666;
}

/* ---------- 9. FAQ ---------- */
.hi-faq {
  padding: 0 0 160px;
  background: #fff;
}
.hi-faq__title {
  margin: 0 0 32px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #000;
}
.hi-faq__list {
  border-top: 1.6px solid #333;
}
.hi-faq__item {
  border-bottom: 1px solid #ddd;
  background: #fff;
  transition: background 0.2s ease;
}
.hi-faq__item--open { background: #fafafa; }
.hi-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.hi-faq__q-badge {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hi-faq__item--open .hi-faq__q-badge {
  background: #edff00;
  color: #000;
}
.hi-faq__q-text {
  flex: 1 1 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #222;
}
.hi-faq__q-arrow {
  flex: 0 0 18px;
  width: 18px;
  height: 9px;
  background: url('/resources/images/heat-illness/faq-arrow.svg') center / contain no-repeat;
  transition: transform 0.2s ease;
}
.hi-faq__item--open .hi-faq__q-arrow { transform: rotate(180deg); }
.hi-faq__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px 0 70px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #666;
  transition: max-height 0.25s ease, padding 0.2s ease;
}
.hi-faq__item--open .hi-faq__a {
  max-height: 1000px;
  padding: 0 24px 28px 70px;
}

/* ========================================
   Mobile (≤1023px)
======================================== */
@media screen and (max-width: 1023px) {
  .hi-container { padding: 0 20px; }

  .hi-section-header { margin-bottom: 32px; }
  .hi-section-header__title { font-size: 26px; }
  .hi-section-header__sub { font-size: 15px; }

  .hi-hero { padding-top: 80px; }
  .hi-hero__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 60px 20px 0;
    gap: 40px;
    min-height: 0;
  }
  .hi-hero__copy { max-width: 100%; padding-bottom: 0; }
  .hi-hero__title { font-size: 28px; }
  .hi-hero__sub { font-size: 14px; }
  .hi-hero__legal { font-size: 11px; }
  .hi-hero__cta { font-size: 15px; padding: 14px 24px; gap: 8px; }
  .hi-hero__cta-arrow { width: 20px; height: 12px; }
  .hi-hero__dashboard {
    position: relative;
    right: auto;
    bottom: auto;
    width: 88%;
    max-width: 88%;
    margin: 0 auto;
    border-radius: 12px 12px 0 0;
  }

  .hi-intro { padding: 60px 0; }
  .hi-intro__row {
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }
  .hi-intro__term { flex: none; font-size: 17px; }
  .hi-intro__def { font-size: 14px; }

  .hi-scenarios { padding: 0 0 60px; }
  .hi-scenarios__grid { flex-direction: column; gap: 32px; }
  .hi-scenario__media { height: 200px; }
  .hi-scenario__title { font-size: 21px; }
  .hi-scenario__body { font-size: 14px; }

  .hi-step { padding: 0 0 60px; }
  .hi-step__header { flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
  .hi-step__title-text { font-size: 21px; }
  .hi-step__pill { font-size: 12px; height: 26px; padding: 0 12px; }
  .hi-step__row {
    flex-direction: column;
    gap: 20px;
    padding: 32px 0;
  }
  .hi-step__media { flex: none; width: 100%; }
  .hi-step__title { font-size: 19px; }
  .hi-step__body { font-size: 14px; line-height: 1.6; }

  .hi-grade { padding: 0 0 60px; }
  .hi-grade__grid {
    flex-direction: column;
    gap: 12px;
  }
  .hi-grade-card { padding: 20px 22px; }
  .hi-grade-card__threshold { font-size: 18px; }
  .hi-grade-card__body { font-size: 14px; }

  .hi-faq { padding: 0 0 80px; }
  .hi-faq__title { font-size: 26px; }
  .hi-faq__q { padding: 22px 16px; gap: 12px; }
  .hi-faq__q-badge { flex-basis: 26px; width: 26px; height: 26px; font-size: 14px; }
  .hi-faq__q-text { font-size: 16px; }
  .hi-faq__a { padding: 0 16px 0 54px; font-size: 14px; }
  .hi-faq__item--open .hi-faq__a { padding: 0 16px 22px 54px; }
}


/* ---------- Steps intro header ---------- */
.hi-steps-intro {
  padding: 40px 0 80px;
  background: #fff;
}
.hi-steps-intro__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #000;
}
@media screen and (max-width: 1023px) {
  .hi-steps-intro { padding: 24px 0 40px; }
  .hi-steps-intro__title { font-size: 28px; }
}
