/* ===== ABOUT ===== */
.abo {
  background: #fff;
  padding: 120px 0 160px;
  margin-top: 5%;
}

.abo__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 텍스트 */
.abo__head {
  max-width: 720px;
  margin-bottom: 60px;
}

.abo__title {
  font-size: 52px;
  font-weight: 700;
  color: #3db6c6;
  margin-bottom: 14px;
}

.abo__desc {
  font-size: 19px;
  line-height: 1.6;
  color: #666;
}

/* 카드 (절대 고정) */
.abo-card {
  position: relative;
  width: 1800px;
  height: 520px;
  overflow: hidden;
  border-radius: 40px;
  transform: none !important;
  will-change: auto;
  margin-left: auto;
  margin-right: -25%;
}

/* 이미지 래퍼 */
.abo-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 이벤트 차단 */
}

/* 🔥 이미지: GPU 레이어로 분리 */
.abo-img img {
  display: block;
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center 22%;

  transform: translate3d(0, 0, 0);
  /* ⬅️ GPU 분리 핵심 */
  will-change: transform;
}

/* 반응형 */
@media (max-width:1024px) {
  .abo-card {
    height: 360px;
    border-radius: 28px;
  }
}

@media (max-width:768px) {
  .abo {
    padding: 80px 0 120px;
  }

  .abo__inner {
    padding: 0 20px;
  }

  .abo__title {
    font-size: 32px;
  }

  .abo-card {
    height: 300px;
    border-radius: 22px;
  }
}

/* ===== MOBILE RESET (이미지 안 보이던 문제 해결) ===== */
@media (max-width: 768px) {

  .abo-card {
    width: 100%;
    /* PC 고정 폭 제거 */
    max-width: 100%;
    height: 260px;

    margin-left: 0;
    margin-right: 0;
    /* 음수 마진 제거 */

    border-radius: 18px;
  }

  /* 이미지 영역 중앙 정렬 */
  .abo-img {
    inset: 0;
    background-position: center center !important;
  }
}




/****************************2번째 섹션*******************************************************/


/* ===============================
   HI SECTION
================================ */
.hi-section {
  background: #fff;
  padding: 160px 0 0;
}

/* 내부 텍스트 영역 */
.hi-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: -11%;
}

.hi-title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 40px;
  color: #111;
}

.hi-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
}

/* 하단 이미지 */
.hi-image-wrap {
  position: relative;
  margin-top: 140px;
  overflow: hidden;
}

.hi-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* 이미지 안 텍스트 */
.hi-image-text {
  position: absolute;
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-size: 35px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.hi-image-text strong {
  font-weight: 600;
}

/* ===============================
   FADE UP EFFECT
================================ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .hi-title {
    font-size: 36px;
  }

  .hi-image-text {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .hi-section {
    padding-top: 120px;
  }

  .hi-inner {
    padding: 0 24px;
  }

  .hi-title {
    font-size: 30px;
  }

  .hi-image-text {
    font-size: 18px;
    bottom: 32px;
  }

  .hi-image-wrap {
    position: relative;
    margin-top: 140px;
    overflow: hidden;
    display: none;
  }
}

@media (max-width: 480px) {
  .hi-title {
    font-size: 26px;
  }

  .hi-image-text {
    font-size: 16px;
    padding: 0 16px;
    line-height: 1.5;
  }
}

html,
body {
  overflow-x: hidden;
}






/****************************3번째 섹션*******************************************************/
/* ==============================
   HISTORY SECTION
============================== */

.history {
  position: relative;
  padding: 160px 0;
  background: #fff;
}

.history__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  padding: 0 60px;
}

/* ==============================
   LEFT : YEAR NAV
============================== */

/* 기본 */
.history__years {
  position: absolute;
  top: 260px;
  /* 🔥 fixed랑 동일한 위치 */
  width: 160px;
}

/* 스크롤 중 고정 — 🔥 여기서 아래로 내린다 */
.history__years.is-fixed {
  position: fixed;
  top: 260px;
  /* ⬅️ 핵심: 160 → 260 (필요하면 240~300 조절) */
}

/* 섹션 끝 */
.history__years.is-end {
  position: absolute;
}

/* YEAR LIST */
.history__years ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-btn {
  position: relative;
  font-size: 18px;
  line-height: 1.2;
  color: #ccc;
  cursor: pointer;
  padding: 10px 0 10px 28px;
  transition: color .3s;
}

.year-btn.active {
  color: #000;
  font-weight: 700;
}

.year-btn.active::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 600;
}

/* ==============================
   RIGHT : CONTENT
============================== */

.history__content {
  flex: 1;
  padding-left: 360px;
  /* 🔥 좌측 네비 공간 확보 */
}

/* 연혁 아이템 */
.history-item {
  margin-bottom: 140px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.history-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* 연도 숫자 */
.history-item h3 {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 20px;
}

/* 메인 문구 */
.history-item h4 {
  position: relative;
  font-size: 26px;
  line-height: 1.5;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.history-item h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% - 40px);
  height: 1px;
  background: #e0e0e0;
}

/* 리스트 */
.history-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item li {
  position: relative;
  padding-left: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

.history-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: #cfcfcf;
  border-radius: 50%;
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 1024px) {
  .history__inner {
    flex-direction: column;
  }

  .history__years,
  .history__years.is-fixed,
  .history__years.is-end {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
  }

  .history__content {
    padding-left: 0;
  }

  .history__years ul {
    display: flex;
    gap: 20px;
    overflow-x: auto;
  }

  .year-btn {
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {

  /* 연도 네비: 고정 해제 */
  .history__years,
  .history__years.is-fixed,
  .history__years.is-end {
    position: relative;
    top: auto;
    left: auto !important;
    width: 100%;
    margin-bottom: 40px;
  }

  /* 🔥 핵심: 3x3 GRID */
  .history__years ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3칸 */
    gap: 16px 12px;
  }

  /* 버튼 스타일 정렬 */
  .year-btn {
    padding: 10px 0;
    text-align: center;
    padding-left: 0;
    /* 화살표 공간 제거 */
    font-size: 15px;
  }

  /* 모바일에선 화살표 제거 (그리드 깨짐 방지) */
  .year-btn.active::before {
    display: none;
  }
}