/* 메인 페이지 맨 아래 소식 영역: 인사이트 · 공지사항 · 인재채용 · 컨설턴트 안내
   제목(.hm-head)은 home.css 에 있고, 여기서는 그 아래 카드 묶음만 다룬다. */

.hm-news {
  --hm-navy: #004093;
  --hm-ink: #0b1b33;
  --hm-green: #2bb673;
  --hm-sub: #55607a;
  box-sizing: content-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) clamp(72px, 10vw, 150px);
  text-align: left;
  letter-spacing: -0.02em;
}
.hm-news *,
.hm-news *::before,
.hm-news *::after {
  box-sizing: border-box;
}
.hm-news h3,
.hm-news p,
.hm-news ul,
.hm-news li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-news a {
  text-decoration: none;
}

.hm-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  min-height: 520px;
}

/* 화살표 동그라미(카드 공통) */
.hm-news__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--hm-navy);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease, color 0.2s ease;
}
.hm-news__arrow::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-left: -3px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.hm-news a:hover .hm-news__arrow,
.hm-news a:focus-visible .hm-news__arrow {
  transform: translateX(4px);
}

/* 인사이트(큰 사진 카드) */
.hm-news a.hm-insight {
  position: relative;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: #06204a;
  color: #fff;
  isolation: isolate;
}
.hm-insight img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hm-insight::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 18, 48, 0.55) 0%, rgba(3, 18, 48, 0.25) 40%, rgba(0, 44, 104, 0.92) 100%);
}
.hm-insight:hover img {
  transform: scale(1.06);
}
.hm-news__tag {
  align-self: flex-start;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}
.hm-news .hm-insight__title {
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #fff;
}
.hm-news .hm-insight__desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  word-break: keep-all;
}
.hm-insight__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* 공지사항 */
.hm-notice {
  grid-row: 1 / -1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: #f3f6fb;
}
.hm-notice__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--hm-ink);
}
.hm-news .hm-notice__top h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hm-ink);
}
.hm-news a.hm-notice__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-sub);
  transition: color 0.2s ease;
}
.hm-notice__all::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.hm-news a.hm-notice__all:hover,
.hm-news a.hm-notice__all:focus-visible {
  color: var(--hm-navy);
}
.hm-news .hm-notice__list {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.hm-notice__list li {
  display: flex;
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid #dde4ee;
}
.hm-notice__list li:last-child {
  border-bottom: 0;
}
.hm-news .hm-notice__list a {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 12px 4px;
  color: var(--hm-ink);
  transition: color 0.2s ease, padding 0.25s ease;
}
.hm-news .hm-notice__list a:hover,
.hm-news .hm-notice__list a:focus-visible {
  padding-left: 10px;
  color: var(--hm-navy);
}
.hm-notice__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hm-notice__list li:first-child .hm-notice__title {
  font-weight: 700;
}
.hm-notice__date {
  flex: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #8a94a6;
}

/* 인재채용 · 컨설턴트 안내 */
.hm-news a.hm-quick {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: var(--hm-navy);
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hm-news a.hm-quick:hover,
.hm-news a.hm-quick:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 34, 68, 0.16);
}
.hm-quick__cap {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8fe0b8;
}
.hm-news .hm-quick__title {
  margin-top: 10px;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hm-quick__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}
.hm-quick__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  word-break: keep-all;
}
.hm-news a.hm-quick--light {
  border: 1px solid #dde4ee;
  background: #fff;
  color: var(--hm-ink);
}
.hm-quick--light .hm-quick__cap {
  color: var(--hm-green);
}
.hm-quick--light .hm-quick__desc {
  color: var(--hm-sub);
}
.hm-quick--light .hm-news__arrow {
  background: var(--hm-navy);
  color: #fff;
}

@media (max-width: 1000px) {
  .hm-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: 0;
  }
  .hm-news a.hm-insight {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 340px;
  }
  .hm-notice {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .hm-news a.hm-quick {
    min-height: 190px;
  }
}
@media (max-width: 560px) {
  .hm-news__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hm-news a.hm-quick {
    min-height: 0;
  }
  .hm-notice__title {
    font-size: 15px;
  }
  .hm-news .hm-notice__list a {
    min-height: 54px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm-news * {
    transition: none !important;
  }
}
