@import url("https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

/* 협회 연혁 페이지 전용 스타일 — 공통 헤더/푸터 스타일은 포함하지 않습니다. */
:root {
  --history-green: #26734d;
  --history-green-dark: #174d35;
  --history-green-light: #eaf5ed;
  --history-orange: #f2a65a;
  --history-text: #24352c;
  --history-muted: #68786f;
  --history-line: #dce8df;
  --history-surface: #ffffff;
  --history-bg: #f7faf7;
  --history-container: 1120px;
}

.history-page,
.history-page * {
  box-sizing: border-box;
}

.history-page {
  overflow: hidden;
  color: var(--history-text);
  background: var(--history-bg);
  font-family: "Noto Sans KR", "Gowun Dodum", sans-serif;
  line-height: 1.7;
}

.history-page img {
  max-width: 100%;
}

.history-container {
  width: min(var(--history-container), calc(100% - 48px));
  margin-inline: auto;
}

/* 상단 비주얼 */
.history-hero {
  position: relative;
  isolation: isolate;
  padding: 66px 0 76px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.7) 0 7%, transparent 7.3%),
    radial-gradient(circle at 92% 75%, rgba(183,220,190,.42) 0 13%, transparent 13.3%),
    linear-gradient(120deg, #eaf5ec 0%, #f5faf2 56%, #fff8eb 100%);
}

.history-hero::before,
.history-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.history-hero::before {
  width: 250px;
  height: 250px;
  right: -72px;
  top: -90px;
  border: 1px solid rgba(38, 115, 77, .15);
}

.history-hero::after {
  width: 160px;
  height: 160px;
  right: 10%;
  bottom: -95px;
  background: rgba(255,255,255,.52);
}

.history-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  color: #708077;
  font-size: 13px;
}

.history-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.history-breadcrumb a:hover {
  color: var(--history-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.history-breadcrumb__current {
  color: var(--history-green-dark);
  font-weight: 700;
}

.history-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: 48px;
}

.history-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--history-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.history-eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--history-orange);
  content: "";
}

.history-hero h1 {
  margin: 0;
  color: var(--history-green-dark);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.history-hero__description {
  max-width: 620px;
  margin: 20px 0 0;
  color: #56685d;
  font-size: 17px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.history-hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.history-art-circle {
  position: absolute;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 50px rgba(36, 83, 53, .08);
}

.history-art-tree {
  position: relative;
  width: 150px;
  height: 170px;
}

.history-art-tree__crown {
  position: absolute;
  top: 5px;
  left: 25px;
  width: 102px;
  height: 112px;
  border-radius: 52% 48% 50% 50%;
  background: #76b985;
  box-shadow: -27px 29px 0 -7px #9bcda0, 25px 32px 0 -8px #4d9a69;
}

.history-art-tree__crown::before,
.history-art-tree__crown::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: #b5dcb4;
}

.history-art-tree__crown::before {
  width: 42px;
  height: 42px;
  top: 15px;
  left: 8px;
}

.history-art-tree__crown::after {
  width: 28px;
  height: 28px;
  top: 48px;
  right: 8px;
  background: #3e8c5b;
}

.history-art-tree__trunk {
  position: absolute;
  bottom: 4px;
  left: 67px;
  width: 18px;
  height: 67px;
  border-radius: 10px 10px 4px 4px;
  background: #9a7049;
}

.history-art-tree__ground {
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 125px;
  height: 13px;
  border-radius: 50%;
  background: #c4dfc6;
}

.history-art-spark {
  position: absolute;
  color: #e7a14e;
  font-size: 28px;
  line-height: 1;
}

.history-art-spark--one {
  top: 20px;
  right: 30px;
}

.history-art-spark--two {
  bottom: 42px;
  left: 25px;
  font-size: 19px;
}

/* 소개 문구 */
.history-intro {
  padding: 64px 0 20px;
  text-align: center;
}

.history-section-label {
  margin: 0 0 9px;
  color: var(--history-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.history-intro h2 {
  margin: 0;
  color: var(--history-text);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.history-intro p:last-child {
  max-width: 660px;
  margin: 15px auto 0;
  color: var(--history-muted);
  font-size: 15px;
  word-break: keep-all;
}

/* 연혁 타임라인 */
.history-timeline-section {
  padding: 34px 0 88px;
}

.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}

.history-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 20px;
  left: 151px;
  width: 2px;
  background: var(--history-line);
  content: "";
}

.history-year-group {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 62px;
  padding: 0 0 34px;
}

.history-year-group:last-child {
  padding-bottom: 0;
}

.history-year {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 1px;
  color: var(--history-green-dark);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.04em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.history-year::after {
  position: absolute;
  top: 8px;
  right: -41px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--history-bg);
  border-radius: 50%;
  background: var(--history-green);
  box-shadow: 0 0 0 2px #b8d8c0;
  content: "";
}

.history-events {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.history-event {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 21px;
  border: 1px solid #e8efe9;
  border-radius: 14px;
  background: var(--history-surface);
  box-shadow: 0 6px 18px rgba(28, 67, 43, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.history-event:hover {
  transform: translateY(-2px);
  border-color: #c9dfce;
  box-shadow: 0 12px 24px rgba(28, 67, 43, .07);
}

.history-event__month {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--history-green-light);
  color: var(--history-green-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.history-event__text {
  min-width: 0;
  margin: 1px 0 0;
  color: #35473c;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 하단 안내 */
.history-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 42px auto 0;
  padding: 20px 22px;
  border: 1px solid #e5eee6;
  border-radius: 13px;
  background: #f0f7f1;
  color: #596c60;
  font-size: 13px;
  line-height: 1.8;
  word-break: keep-all;
}

.history-note__icon {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #d9ecdc;
  color: var(--history-green-dark);
  font-weight: 800;
}

.history-note p {
  margin: 0;
}

.history-cta {
  padding: 0 0 82px;
}

.history-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  border-radius: 18px;
  background: var(--history-green-dark);
  color: #fff;
}

.history-cta__copy h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
}

.history-cta__copy p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  word-break: keep-all;
}

.history-cta__link {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 9px;
  background: #fff;
  color: var(--history-green-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.history-cta__link:hover {
  transform: translateY(-1px);
  background: #eaf5ed;
}

.history-cta__link span {
  font-size: 18px;
}

/* 태블릿 */
@media (max-width: 1024px) {
  .history-hero {
    padding: 54px 0 62px;
  }

  .history-hero__content {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
  }

  .history-art-circle {
    width: 180px;
  }

  .history-timeline {
    max-width: 820px;
  }

  .history-timeline::before {
    left: 127px;
  }

  .history-year-group {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 54px;
  }

  .history-year {
    font-size: 24px;
  }

  .history-year::after {
    right: -36px;
  }
}

/* 모바일 */
@media (max-width: 767px) {
  .history-container {
    width: min(100% - 36px, var(--history-container));
  }

  .history-hero {
    padding: 28px 0 42px;
  }

  .history-breadcrumb {
    gap: 7px;
    margin-bottom: 24px;
    font-size: 12px;
  }

  .history-hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .history-hero__copy {
    text-align: center;
  }

  .history-eyebrow {
    justify-content: center;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .history-hero h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .history-hero__description {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.8;
  }

  .history-hero__art {
    min-height: 145px;
    margin-top: 2px;
  }

  .history-art-circle {
    width: 140px;
  }

  .history-art-tree {
    transform: scale(.76);
  }

  .history-art-spark--one {
    top: 3px;
    right: calc(50% - 86px);
  }

  .history-art-spark--two {
    bottom: 12px;
    left: calc(50% - 88px);
  }

  .history-intro {
    padding: 43px 0 12px;
  }

  .history-intro h2 {
    font-size: 25px;
  }

  .history-intro p:last-child {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.8;
  }

  .history-timeline-section {
    padding: 24px 0 58px;
  }

  .history-timeline {
    padding: 4px 0;
  }

  .history-timeline::before {
    top: 11px;
    bottom: 13px;
    left: 8px;
  }

  .history-year-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 27px 30px;
  }

  .history-year {
    justify-self: start;
    padding: 0;
    font-size: 23px;
    text-align: left;
  }

  .history-year::after {
    top: 7px;
    right: auto;
    left: -28px;
    width: 13px;
    height: 13px;
  }

  .history-events {
    gap: 9px;
  }

  .history-event {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 13px;
    border-radius: 11px;
  }

  .history-event__month {
    min-height: 28px;
    padding-inline: 5px;
    font-size: 11px;
  }

  .history-event__text {
    font-size: 14px;
    line-height: 1.7;
  }

  .history-note {
    gap: 10px;
    margin-top: 29px;
    padding: 15px;
    font-size: 12px;
  }

  .history-cta {
    padding-bottom: 54px;
  }

  .history-cta__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding: 23px 20px;
    border-radius: 14px;
  }

  .history-cta__copy h2 {
    font-size: 19px;
  }

  .history-cta__copy p {
    font-size: 13px;
    line-height: 1.75;
  }

  .history-cta__link {
    width: 100%;
    min-height: 45px;
  }
}

@media (max-width: 390px) {
  .history-container {
    width: calc(100% - 28px);
  }

  .history-event {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 10px;
  }

  .history-event__month {
    font-size: 10px;
  }

  .history-event__text {
    font-size: 13px;
  }

  .history-year {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-event,
  .history-cta__link {
    transition: none;
  }

  .history-event:hover,
  .history-cta__link:hover {
    transform: none;
  }
}
