/* ==========================================================================
   Main page — 네이비 히어로 + 중앙 정렬 통합검색
   ========================================================================== */

/* 히어로 하단 여백과 서비스 카드 겹침을 한 쌍으로 묶어 둔다.
   (따로 두면 서로 상쇄되어 칩과 카드가 붙어 버린다) */
:root {
  --svc-overlap: 56px;                      /* 카드가 네이비를 파고드는 깊이 */
  --svc-gap: clamp(46px, 4.2vw, 64px);      /* 추천 검색어 ↔ 카드 상단 실제 간격 */
}

/* --- HERO — 전체 중앙 정렬 ---------------------------------------------- */
.hero { position: relative; background: var(--navy); overflow: hidden; }
/* 배경 사진 레이어 — 파일 확보 시 --hero-photo 만 지정하면 바로 적용된다 */
.hero__bg { position: absolute; inset: 0; background: var(--hero-photo, none) center / cover no-repeat; }
.hero__veil { position: absolute; inset: 0; background: rgba(23,47,75,.84); }

.hero__inner {
  position: relative; z-index: 1; text-align: center;
  padding-block: clamp(46px, 5.4vw, 88px) calc(var(--svc-overlap) + var(--svc-gap));
}
.hero__rule { width: 30px; height: 3px; border-radius: 2px; background: var(--yellow); margin: 0 auto 20px; }
.hero__eyebrow { font-size: clamp(13px, 1.05vw, 14.5px); font-weight: 600; color: var(--yellow); letter-spacing: -0.01em; }
.hero__title { margin-top: 16px; font-size: clamp(27px, 3.5vw, 48px); font-weight: 700; line-height: 1.3; letter-spacing: -0.045em; color: #fff; }
.hero__title em { display: block; margin-top: 6px; font-style: normal; color: var(--yellow); }
.hero__sub { margin-top: 16px; font-size: clamp(15.5px, 1.25vw, 18px); color: rgba(255,255,255,.76); }

/* --- 통합검색 — 히어로 중앙축과 일치 ------------------------------------ */
.search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r-lg);
  padding: 8px 8px 8px 22px; min-height: 66px;
  transition: box-shadow var(--t-base);
}
.hero .search { max-width: 880px; margin: clamp(26px, 2.9vw, 38px) auto 0; box-shadow: var(--sh-3); }
.search:focus-within { box-shadow: 0 0 0 3px rgba(232,198,90,.45), var(--sh-3); }
.search__ic { width: 22px; height: 22px; flex: none; color: var(--ink-3); }
.search:focus-within .search__ic { color: var(--navy-2); }
.search__field { flex: 1; min-width: 0; display: flex; align-items: center; }
.search__field input {
  width: 100%; height: 50px; border: 0; background: none; outline: none;
  font-size: clamp(15.5px, 1.25vw, 17px); font-weight: 500; color: var(--navy);
}
.search__field input::placeholder { color: var(--ink-3); font-weight: 400; }
.search__clear { flex: none; width: 36px; height: 36px; border-radius: 50%; display: none; place-items: center; color: var(--ink-3); font-size: 19px; }
.search__clear:hover { background: var(--off); }
.search__clear.is-on { display: grid; }
.search__submit { flex: none; }

.search-hint { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.search-hint b { font-weight: 600; color: rgba(255,255,255,.85); }

.suggest { margin-top: 16px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.suggest__label { font-size: 13.5px; color: rgba(255,255,255,.5); margin-right: 2px; }
.suggest a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 15px;
  border-radius: var(--r-sm); background: var(--navy-2); color: rgba(255,255,255,.92);
  font-size: 14.5px; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.suggest a:hover { background: var(--yellow); color: var(--navy); }


/* --- 주요 서비스 — 히어로와 겹치는 밴드 ---------------------------------- */
.svcband { background: var(--white); padding-bottom: clamp(48px, 5vw, 78px); }
.svcrow {
  position: relative; z-index: 3; margin-top: calc(-1 * var(--svc-overlap));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.svc {
  display: flex; flex-direction: column; min-height: 162px;
  background: #fff; border-radius: var(--r-lg); padding: 22px 22px 20px;
  box-shadow: var(--sh-2);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.svc__n { font-size: 13px; font-weight: 700; color: var(--navy-2); }
.svc h3 { margin-top: 9px; font-size: clamp(18px, 1.5vw, 20px); font-weight: 700; }
.svc p { margin-top: 7px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.svc .btn-text { margin-top: auto; }
/* 핵심 서비스 한 장은 네이비로 강조 */
.svc--accent { background: var(--navy); }
.svc--accent .svc__n { color: var(--yellow); }
.svc--accent h3 { color: #fff; }
.svc--accent p { color: rgba(255,255,255,.72); }

/* --- 업종 카테고리 ------------------------------------------------------- */
.industry { background: var(--cream); }
.indgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ind {
  display: flex; align-items: center; gap: 14px; min-height: 86px;
  background: #fff; border-radius: var(--r-md); padding: 17px 18px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.ind:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.ind:hover .ic-chip { background: var(--yellow-2); color: var(--navy); }
.ind__b { flex: 1; min-width: 0; }
.ind__b b { display: block; font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -0.04em; }
.ind__b em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind__n { flex: none; font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* --- 추천 동문기업 및 전문가 --------------------------------------------- */
.experts { background: var(--white); }
.filterline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 15px;
  border-radius: var(--r-sm); background: var(--off);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.chip:hover { background: var(--cream); color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.result-count { font-size: 14px; color: var(--ink-3); flex: none; }
.result-count b { font-size: 17px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 30px); }
.feat__item { display: flex; flex-direction: column; }
.feat__fig { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.feat__grade { position: absolute; left: 13px; top: 13px; z-index: 2; }
.feat__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.feat__gen { font-size: 13px; font-weight: 600; color: var(--navy-2); }
.feat__name { margin-top: 6px; font-size: clamp(19px, 1.6vw, 21px); font-weight: 700; color: var(--navy); letter-spacing: -0.042em; }
.feat__name .role { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: 7px; letter-spacing: -0.02em; }
.feat__org { margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--navy-2); }
.feat__tags { margin-top: 9px; }
.feat__place { margin-top: 7px; margin-bottom: 16px; }
.feat__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-actions { display: flex; gap: 7px; }

.dlist { margin-top: clamp(34px, 3.4vw, 50px); }
.dlist__cap { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-inline: 16px; }
.dlist__cap h3 { font-size: 16px; font-weight: 700; }
.dlist__cap p { font-size: 13.5px; color: var(--ink-3); }
.drow {
  display: grid; grid-template-columns: 74px minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,.62fr) auto;
  gap: 20px; align-items: center; padding: 14px 16px; border-radius: var(--r-md);
  transition: background var(--t-base);
}
.drow + .drow { margin-top: 2px; }
.drow:hover { background: var(--off); }
.drow__fig { aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
.drow__gen { font-size: 12.5px; font-weight: 600; color: var(--navy-2); }
.drow__name { margin-top: 3px; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.042em; }
.drow__name .role { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.drow__org { font-size: 15px; font-weight: 600; color: var(--navy-2); }
.drow__tags { margin-top: 4px; font-size: 13.5px; }
.drow__grade { margin-top: 7px; }
.drow__benefit { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.drow__act { display: flex; align-items: center; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.dlist__more { padding-top: 26px; display: flex; justify-content: center; }

.empty { padding: 56px 0; text-align: center; display: none; }
.empty.is-on { display: block; }
.empty strong { display: block; font-size: 18px; font-weight: 700; color: var(--navy); }
.empty p { margin-top: 9px; font-size: 15px; color: var(--ink-2); }

/* --- 동문 소식 ----------------------------------------------------------- */
.news { background: var(--off); }
.news__wrap { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: clamp(26px, 3.2vw, 50px); }
.tabline { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.news .chip { background: #fff; }
.news .chip:hover { background: var(--cream); }
.news .chip.is-active { background: var(--navy); color: #fff; }
.newslist li + li { margin-top: 2px; }
.newslist a { display: grid; grid-template-columns: 76px auto minmax(0,1fr) 18px; gap: 16px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); transition: background var(--t-base), box-shadow var(--t-base); }
.newslist a:hover { background: #fff; box-shadow: var(--sh-1); }
.newslist .date { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.newslist .pill { background: #fff; }
.newslist a:hover .pill { background: var(--cream); color: var(--navy); }
.newslist .title { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.newslist .arw { color: var(--ink-3); transition: transform var(--t-base); }
.newslist a:hover .arw { transform: translateX(3px); color: var(--navy-2); }
.news__more { padding-top: 18px; padding-left: 16px; }

/* 다가오는 행사 — 네이비 카드로 포인트 */
.event { background: var(--navy); border-radius: var(--r-xl); padding: 14px 14px 24px; color: #fff; }
.event__fig { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.event__date { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--yellow); border-radius: var(--r-sm); padding: 7px 12px 6px; text-align: center; }
.event__date .d { display: block; font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.event__date .m { display: block; margin-top: 1px; font-size: 11px; font-weight: 700; color: var(--navy); }
.event__body { padding: 18px 10px 0; }
.event__title { margin-top: 10px; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.45; letter-spacing: -0.04em; }
.event__meta { margin-top: 12px; font-size: 14px; color: var(--on-navy); }
.event__meta div { display: flex; gap: 10px; }
.event__meta div + div { margin-top: 4px; }
.event__meta dt { width: 38px; flex: none; color: var(--on-navy-2); }
.event__go { margin-top: 14px; }

/* --- 브랜드 메시지 — 네이비 전면 ---------------------------------------- */
.brandmsg { background: var(--navy); color: #fff; padding-block: clamp(54px, 5.6vw, 88px); }
.brandmsg__inner { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(26px, 3.4vw, 54px); align-items: center; }
.brandmsg__title { font-family: var(--font-quote); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.45; letter-spacing: -0.042em; color: #fff; }
.brandmsg__title em { font-style: normal; color: var(--yellow); }
.brandmsg__body p { font-size: 15.5px; line-height: 1.8; color: var(--on-navy); }
.brandmsg__links { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.brandmsg__links .btn-soft { background: var(--navy-2); color: #fff; }
.brandmsg__links .btn-soft:hover { background: var(--navy-3); }

/* 고지 영역은 네이비 두 블록 사이의 밝은 쉼표 */
.notice-bar { background: var(--cream); padding-block: clamp(26px, 2.8vw, 40px); }
.notice-bar__in { background: #fff; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .indgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drow { grid-template-columns: 68px minmax(0,1.3fr) minmax(0,1.1fr) auto; gap: 16px; }
  .drow__place-col { display: none; }
}
@media (max-width: 960px) {
  :root { --svc-overlap: 40px; --svc-gap: clamp(36px, 4vw, 48px); }
  .svcrow { grid-template-columns: 1fr; gap: 12px; }
  .news__wrap { grid-template-columns: 1fr; }
  .brandmsg__inner { grid-template-columns: 1fr; gap: 24px; }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .feat > :nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .indgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ind { padding: 14px; gap: 11px; min-height: 78px; }
  .ic-chip { width: 40px; height: 40px; }
  .ic-chip .ic { width: 20px; height: 20px; }
  .ind__b b { font-size: 15px; }
  .ind__n { display: none; }
  .newslist a { grid-template-columns: auto 1fr; gap: 8px 12px; }
  .newslist .title { grid-column: 1 / -1; }
  .newslist .arw { display: none; }
}
@media (max-width: 560px) {
  /* 좁은 화면에서는 입력과 버튼을 세로로 */
  .search { flex-wrap: wrap; padding: 10px 12px 12px; gap: 8px; }
  .search__ic { display: none; }
  .search__field { width: 100%; }
  .search__field input { height: 46px; }
  .search__submit { width: 100%; }
  .feat { grid-template-columns: 1fr; gap: 26px; }
  .feat > :nth-child(3) { display: block; }
  .drow { grid-template-columns: 62px minmax(0,1fr); gap: 14px; row-gap: 10px; align-items: start; }
  .drow__org-col { grid-column: 2; }
  .drow__act { grid-column: 1 / -1; }
  .drow__act .btn-line { flex: 1; justify-content: center; }
  /* 3버튼이 한 줄에 들어가지 않는 폭 — 상세보기 1행, 전화·상담 2행 */
  .drow__act .btn-line:first-child { flex: 1 0 100%; }
}

/* --- 적용 중인 업종 조건 표시 -------------------------------------------
   상단 업종 그리드와 같은 기능을 칩으로 또 두지 않고,
   '지금 무엇으로 좁혀져 있는가' 만 보여준다.
   ----------------------------------------------------------------------- */
.fstate { display: flex; align-items: center; gap: 8px; }
.fstate__chip {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 15px;
  border-radius: var(--r-sm); background: var(--navy); color: #fff;
  font-size: 14.5px; font-weight: 600;
  transition: background 180ms var(--ease);
}
.fstate__chip:hover { background: var(--navy-2); }
.fstate__chip .ic { width: 16px; height: 16px; color: var(--yellow); }
.fstate__chip:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.fstate__hint {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px;
  border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.fstate__hint .ic { width: 19px; height: 19px; color: var(--ink-3); transition: color 180ms var(--ease); }
.fstate__hint:hover { background: var(--cream); color: var(--navy); }
.fstate__hint:hover .ic { color: var(--navy); }

/* --- 디렉토리 진입 ------------------------------------------------------ */
.dirgo {
  margin-top: 30px; display: flex; align-items: center; gap: 18px;
  background: var(--cream); border-radius: var(--r-xl); padding: 18px 24px 18px 18px;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.dirgo:hover { background: #EFE7CB; transform: translateY(-2px); }
.dirgo:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.dirgo__ic {
  width: 54px; height: 54px; flex: none; border-radius: var(--r-md);
  background: #fff; color: var(--navy); display: grid; place-items: center;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.dirgo__ic .ic { width: 26px; height: 26px; }
.dirgo:hover .dirgo__ic { background: var(--yellow); color: var(--navy); }
.dirgo__t { flex: 1; min-width: 0; }
.dirgo__t b { display: block; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.035em; }
.dirgo__t em { display: block; margin-top: 3px; font-style: normal; font-size: 14px; color: var(--ink-2); }
.dirgo__arw { flex: none; width: 20px; height: 20px; color: var(--navy); transition: transform 180ms var(--ease); }
.dirgo:hover .dirgo__arw { transform: translateX(5px); }

@media (max-width: 560px) {
  .dirgo { gap: 14px; padding: 16px; border-radius: var(--r-lg); }
  .dirgo__ic { width: 46px; height: 46px; }
  .dirgo__t b { font-size: 15.5px; }
  .dirgo__t em { font-size: 13px; }
  .dirgo__arw { display: none; }
}


/* 아주 좁은 화면 — 업종 카드는 아이콘을 위로 올린다.
   본문에 word-break: keep-all 이 걸려 있어 '건설·부동산' 같은 말이 줄바꿈되지
   않는다. 가로로 아이콘(40px)+간격(11px)까지 차지하면 2열에서 칸을 넘친다. */
@media (max-width: 480px) {
  .ind { flex-direction: column; align-items: flex-start; gap: 9px; min-height: 0; padding: 13px; }
  .ind__b { width: 100%; }
}