/* ==========================================================================
   Sustainable Page — 지속가능경영 보고서 다운로드
   Samsung E&A IR Download List 레퍼런스 기반
   ========================================================================== */


/* ---------- Featured Card (최신 보고서) ---------- */

.wd-dl__featured {
  margin-bottom: 60px;
}

.wd-dl__featured-card {
  display: flex;
  align-items: stretch;
  background: var(--wd-surface-light);
  overflow: hidden;
}

.wd-dl__featured-cover {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #d5e3e8;
}

.wd-dl__featured-cover img {
  width: 100%;
  max-width: 220px;
  height: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.wd-dl__featured-body {
  flex: 1;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wd-dl__featured-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--wd-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.wd-dl__featured-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--wd-text-primary);
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: 16px;
}

.wd-dl__featured-desc {
  font-size: 16px;
  color: var(--wd-text-secondary);
  line-height: 1.8;
  word-break: keep-all;
  margin-bottom: 32px;
}

.wd-dl__featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* ---------- Download Button ---------- */

.wd-dl__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 200px;
  padding: 16px 20px;
  border: 1px solid var(--wd-border-default);
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--wd-font-primary);
  color: var(--wd-text-primary);
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
}

.wd-dl__btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--wd-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.wd-dl__btn:hover {
  color: #fff;
  border-color: transparent;
}

.wd-dl__btn:hover::before {
  opacity: 1;
}

.wd-dl__btn-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-dl__btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.wd-dl__btn--sm {
  min-width: 140px;
  padding: 14px 18px;
  font-size: 15px;
}


/* ---------- Download List (과거 보고서) ---------- */

.wd-dl__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--wd-text-primary);
}

.wd-dl__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid var(--wd-border-default);
  transition: background 0.2s;
}

.wd-dl__item:hover {
  background: var(--wd-surface-light);
}

.wd-dl__item-info {
  padding-right: 20px;
}

.wd-dl__item-title {
  font-family: var(--wd-font-primary);
  font-size: 20px;
  font-weight: 600;
  color: var(--wd-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}


/* ---------- Responsive: Tablet (≤ 1080px) ---------- */

@media (max-width: 1080px) {
  .wd-dl__featured-card {
    flex-direction: column;
  }
  .wd-dl__featured-cover {
    flex: none;
    padding: 40px;
  }
  .wd-dl__featured-cover img {
    max-width: 180px;
  }
  .wd-dl__featured-body {
    padding: 36px 32px;
  }
  .wd-dl__featured-title {
    font-size: 24px;
  }
  .wd-dl__item {
    padding: 22px 20px;
  }
  .wd-dl__item-title {
    font-size: 17px;
  }
  .wd-dl__btn {
    width: 100%;
    font-size: 15px;
  }
}


/* ---------- Responsive: Mobile (≤ 640px) ---------- */

@media (max-width: 640px) {
  .wd-dl__featured {
    margin-bottom: 40px;
  }
  .wd-dl__featured-cover {
    padding: 32px;
  }
  .wd-dl__featured-cover img {
    max-width: 140px;
  }
  .wd-dl__featured-body {
    padding: 28px 24px;
  }
  .wd-dl__featured-title {
    font-size: 20px;
  }
  .wd-dl__featured-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .wd-dl__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px;
  }
  .wd-dl__item-info {
    padding-right: 0;
  }
  .wd-dl__btn--sm {
    width: 100%;
  }
}
