@charset "utf-8";
/* ═══════════════════════════════════════════
   awds.css — Samsung-style decade timeline layout
═══════════════════════════════════════════ */

/* ── sub-nav / breadcrumb overrides ── */
.breadcrumb { padding-bottom: 70px; }
.breadcrumb-bar::after { margin-bottom: 60px; }

/* ══════════════════════════
   DECADE SECTION
══════════════════════════ */
.awds-decade-section {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 60px 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 60px 100px;
  border-bottom: 1px solid #ebebeb;
  background: #ffffff;
}

.awds-decade-section:last-child {
  border-bottom: none;
}

/* layout-reverse: year | text | image */
.awds-decade-section.layout-reverse {
  grid-template-columns: 180px 1fr 1fr;
}

/* ── year nav column ── */
.awds-ds-year-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 8px;
}

.layout-reverse .awds-ds-year-col {
  align-items: flex-start;
  order: 0;
}
.layout-reverse .awds-ds-text-col { order: 1; }
.layout-reverse .awds-ds-img      { order: 2; }

.awds-ds-decade-label {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.awds-ds-year-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  border-top: 1.5px solid #000000;
  padding-top: 18px;
  width: 100%;
}

.layout-reverse .awds-ds-year-list {
  align-items: flex-start;
}

.layout-reverse .awds-ds-year-btn {
  text-align: left;
}

.awds-ds-year-btn {
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: #999999;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  width: 100%;
  text-align: right;
  display: block;
  transition: color .2s, font-size .2s;
  font-family: inherit;
}

.awds-ds-year-btn:hover {
  color: #666;
}

.awds-ds-year-btn.active {
  color: #68A741;
  font-size: 28px;
  font-weight:600;
}

.awds-ds-year-btn.active::before {
  display: none;
}

/* ── text column ── */
.awds-ds-text-col {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.awds-ds-year-title {
  font-size: 42px;
  font-weight: 700;
  color: #68A741;
  margin: 0 0 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.awds-ds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.awds-ds-item {
  position: relative;
  padding-left: 18px;
  opacity: 0.45;
  transition: opacity .2s;
}

.awds-ds-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1a1a1a;
}

.awds-ds-item.active,
.awds-ds-item:hover {
  opacity: 1;
}

.awds-ds-item a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.65;
}

.awds-ds-item a:hover {
  text-decoration: underline;
}

.awds-ds-empty {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}

/* ── image column ── */
.awds-ds-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f4;
  display: block;
  text-decoration: none;
  transition: box-shadow .25s ease;
}
/*

.awds-ds-img:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
*/

.awds-ds-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity .3s ease, transform .35s ease;
}

/* ══════════════════════════
   RESPONSIVE ≤ 1024px
══════════════════════════ */
@media (max-width: 1024px) {
  .sub-nav { top: 76px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  .sub-nav-inner a { padding: 0 20px; font-size: 14px; }
  .sub-nav-inner a::before { display: none; }

  .breadcrumb-bar::after {
    margin: 0 auto 30px;  /* 기존 PC용 60px에서 30px로 절반 축소 */
  }

  .awds-decade-section {
    grid-template-columns: 1fr 1fr 140px;
    gap: 40px 50px;
    padding: 70px 40px 80px;
  }
  .awds-decade-section.layout-reverse {
    grid-template-columns: 140px 1fr 1fr;
  }

  footer { padding: 36px 24px 20px !important; width: 100% !important; box-sizing: border-box !important; }
  .footer-inner { width: 100% !important; max-width: 100% !important; padding: 0 28px; box-sizing: border-box !important; }
  .footer-top { flex-direction: column; gap: 20px; }
}

/* ══════════════════════════
   RESPONSIVE ≤ 900px  (Samsung-style stacked order)
   순서: 연도 → 타이틀 → 연도탭(밑줄) → 이미지 → 내용(리스트)
══════════════════════════ */
@media (max-width: 900px) {
  .awds-decade-section,
  .awds-decade-section.layout-reverse {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 48px 28px 64px;
  }

  /* 래퍼(year-col / text-col)를 풀어서 안의 요소들을 각각 grid item으로 만들어
     서로 다른 순서를 부여할 수 있게 함 */
  .awds-ds-year-col,
  .layout-reverse .awds-ds-year-col,
  .awds-ds-text-col,
  .layout-reverse .awds-ds-text-col {
    display: contents;
  }

  /* 1. 연도(디케이드 라벨) — 바로 아래 연도탭이 오도록 여백 최소화 */
  .awds-ds-decade-label {
    order: 1;
    margin-bottom: 4px;
    text-align: left;
  }

  /* 2. 타이틀(연도 큰 글씨) — 연도탭의 활성 연도가 타이틀 역할을 대신하므로 모바일에서는 숨김 (중복 방지) */
  .awds-ds-year-title {
    display: none;
  }

  /* 3. 각 년도 탭 (선택된 연도만 크게 + 밑줄 = 타이틀 역할, 샘플 이미지 스타일) */
  .awds-ds-year-list,
  .layout-reverse .awds-ds-year-list {
    order: 3;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 28px;
    border-top: none;
    border-bottom: none;
    padding: 4px 4px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .awds-ds-year-list::-webkit-scrollbar,
  .layout-reverse .awds-ds-year-list::-webkit-scrollbar { display: none; }

  .awds-ds-year-btn,
  .layout-reverse .awds-ds-year-btn {
    width: auto;
    flex: 0 0 auto;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
  }

  .awds-ds-year-btn.active {
    padding-top: 0;
    font-size: 26px;
    font-weight: 700;
    color: #68A741;
    border-bottom-color: #68A741;
  }
  .awds-ds-year-btn.active::before { display: none; }

  /* 4. 이미지 */
  .awds-ds-img {
    order: 4;
  }

  /* 5. 내용(불릿 리스트) — 맨 마지막 */
  .awds-ds-list,
  .awds-ds-empty {
    order: 5;
  }
}

/* ══════════════════════════
   RESPONSIVE ≤ 768px
══════════════════════════ */
@media (max-width: 768px) {
  .sub-nav { top: 52px; }
  .sub-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: none;
  }
  .sub-nav-inner::-webkit-scrollbar { display: none; }
  .sub-nav-inner a { padding: 0 18px; font-size: 14px; }

  .page-title-block { padding: 60px 0 0; }
  .page-title-block h1 { font-size: 24px; }

  .breadcrumb-bar::after { margin: 0 20px 30px; }

  .awds-decade-section {
    padding: 48px 20px 56px;
  }

  .awds-ds-year-title { font-size: 26px; }
  .awds-ds-item a { font-size: 14px; }

  footer { padding: 28px 16px 16px !important; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-info { font-size: 16px; color: var(--text); line-height: 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { padding: 0 14px; }
  .footer-family { margin-top: 20px; }
}

/* ══════════════════════════
   SMALL MOBILE ≤ 390px
══════════════════════════ */
@media (max-width: 390px) {
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 11px; }
  .awds-ds-year-title { font-size: 22px; }
}
