@charset "utf-8";

.eco-news {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 28px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* 피처드 */
.eco-feat-img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/16;
  cursor: pointer;
  transition: transform .15s ease; /* 틸트 복귀 부드럽게 */
  transform-style: preserve-3d;
  will-change: transform;
}
.eco-feat-img:hover img { transform: scale(1.035); }
.eco-feat-img:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10,11,13,.2);
}
.eco-feat-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .22s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.eco-feat-img.is-changing img { opacity: 0; transform: scale(1.04); }
.eco-feat-img:hover img { transform: scale(1.04); }
.eco-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,11,13,.88) 0%, rgba(10,11,13,.1) 55%);
  z-index: 1;
  transition: background .3s ease;
}
.eco-feat-img:hover .eco-feat-overlay {
  background: linear-gradient(to top, rgba(10,11,13,.72) 0%, rgba(10,11,13,.04) 55%);
}
.eco-feat-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: .6rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; background: #2563eb; padding: 4px 12px; border-radius: 20px;
}
.eco-feat-info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 20px 22px;
  transition: opacity .22s ease, transform .22s cubic-bezier(.16,1,.3,1);
}
.eco-feat-info.is-changing { opacity: 0; transform: translateY(8px); }
.eco-feat-date { font-size: .7rem; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.eco-feat-info h3 {
  font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.eco-feat-info p {
  font-size: .78rem; color: rgba(255,255,255,.58); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 리스트 */
.eco-news-list {
  display: flex; flex-direction: column;
  border-top: 1px solid #e4e6ed;
}
.eco-news-row {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 16px 12px 16px 18px;
  border-bottom: 1px solid #e4e6ed;
  cursor: pointer; position: relative;
  transition: background .15s ease;
}
.eco-news-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #2563eb; border-radius: 0 2px 2px 0;
  opacity: 0; transform: scaleY(0); transform-origin: center;
  transition: opacity .2s, transform .22s cubic-bezier(.16,1,.3,1);
}
.eco-news-row:hover::before,
.eco-news-row.is-active::before { opacity: 1; transform: scaleY(1); }
.eco-news-row:hover { background: rgba(37,99,235,.02); }

.eco-row-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.eco-row-chip {
  font-size: .58rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #2563eb; background: rgba(37,99,235,.06);
  padding: 3px 8px; border-radius: 20px;
}
.eco-row-date { font-size: .7rem; color: #8d93a5; }
.eco-row-title {
  font-size: .87rem; font-weight: 600; color: #2a2d35; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s;
}
.eco-news-row:hover .eco-row-title,
.eco-news-row.is-active .eco-row-title { color: #2563eb; }
.eco-row-desc {
  font-size: .76rem; color: #8d93a5; margin-top: 3px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eco-empty { padding: 40px; text-align: center; color: #8d93a5; font-size: .85rem; }

/* ── 반응형 ── */

/* 태블릿: 비율 균등하게 */
@media (max-width: 1024px) {
  .eco-news {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .eco-feat-info h3 { font-size: .92rem; }
  .eco-feat-info p  { font-size: .74rem; }
}

/* 모바일: 세로 스택 */
@media (max-width: 768px) {
  .eco-news {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .eco-feat-img {
    border-radius: 0;
    aspect-ratio: 16 / 9;
  }

  .eco-feat-info h3 { font-size: .95rem; }
  .eco-feat-info p  { display: none; }

  .eco-news-list  { border-top: none; }

  .eco-news-row {
    padding: 14px 16px 14px 20px;
  }

  .eco-row-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .eco-row-desc { display: none; }
}

.eco-more-btn {
  display: block;
  text-align: center;
  padding: 11px 0;
  font-size: .78rem;
  font-weight: 600;
  color: #2563eb;
  border-top: 1px solid #e4e6ed;
  text-decoration: none;
  letter-spacing: .3px;
  transition: background .15s ease, color .15s ease;
}
.eco-more-btn:hover {
  background: rgba(37,99,235,.04);
  color: #1d4ed8;
}