/* =========================================================
   Whistle Note - 메인 리뉴얼 스타일 (legacy.css)
   - 디자인 시안 기반 전면 개편
   - 이미지가 없는 영역은 placeholder(빈 박스)로 비워둠
   ========================================================= */

:root {
  --wn-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* ---------- 헤더 내부 콘텐츠 최대 너비 + 패딩 ---------- */
#doz_header_wrap .inline-inside {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  box-sizing: border-box;
  font-family: var(--wn-font);
}

#doz_header_wrap .logo_title a,
#doz_header_wrap ._inline_menu_container,
#doz_header_wrap .inline_widget {
  font-family: inherit;
}

@media (max-width: 900px) {
  #doz_header_wrap .inline-inside {
    padding: 12px 16px;
  }
}

/* ---------- 헤더 흰 배경 ---------- */
#doz_header_wrap .new_org_header .section_bg_color,
#doz_header_wrap .new_org_header .section_bg,
#doz_header_wrap #inline_header_mobile .section_bg_color,
#doz_header_wrap #inline_header_mobile .section_bg,
#doz_header_wrap .new_fixed_header .section_bg_color {
  background-color: #fff !important;
  background-image: none !important;
}

/* ---------- 제보하기 버튼 (노랑) ---------- */
#doz_header_wrap .btn_8fdbdaf27a776,
#doz_header_wrap .btn_bbdd811f8762a,
.btn_8fdbdaf27a776,
.btn_bbdd811f8762a {
  background-color: #efba22 !important;
  border-color: #efba22 !important;
  color: #1a1a1a !important;
}

#doz_header_wrap .btn_8fdbdaf27a776:hover,
#doz_header_wrap .btn_bbdd811f8762a:hover,
.btn_8fdbdaf27a776:hover,
.btn_bbdd811f8762a:hover {
  background-color: #e0a90f !important;
  border-color: #e0a90f !important;
  color: #1a1a1a !important;
}

.btn_8fdbdaf27a776 .text,
.btn_bbdd811f8762a .text {
  color: #1a1a1a !important;
  font-weight: 700;
}

/* ---------- 레이아웃 베이스 ---------- */
:root {
  --wn-page-bg: #e9eaec;
  --wn-card: #ffffff;
  --wn-navy: #11305f;
  --wn-blue: #2f5fb0;
  --wn-blue-dark: #244e95;
  --wn-blue-soft-1: #7fa6da;
  --wn-blue-soft-2: #5b85c6;
  --wn-charcoal: #4a4f57;
  --wn-charcoal-2: #3a3e45;
  --wn-text: #2a2f37;
  --wn-text-sub: #6b7280;
  --wn-line: #e5e7eb;
  --wn-footer-bg: #161b3a;
  --wn-footer-bg-2: #11152e;
  --wn-radius: 36px;
  --wn-radius-sm: 32px;
  --wn-shadow: 0 6px 20px rgba(17, 48, 95, 0.08);
}

.wn-page {
  background: var(--wn-page-bg);
  font-family: var(--wn-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--wn-text);
  padding-top: 100px;
  padding-bottom: 48px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

.wn-page>.wn-container {
  padding-top: 28px;
}

.wn-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wn-grid {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.wn-col-main {
  flex: 1 1 60%;
  min-width: 0;
}

.wn-col-side {
  flex: 0 0 360px;
  max-width: 360px;
}

.wn-section-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--wn-text);
  margin: 0 0 16px;
  padding: 4px 0 0;
  letter-spacing: -0.4px;
}

.wn-col-main>.wn-section-label:first-child {
  margin-bottom: 18px;
}

.wn-col-side .wn-section-label {
  margin-top: 28px;
  margin-bottom: 16px;
  padding-top: 0;
}

/* ---------- 히어로 카드 (캐러셀) ---------- */
.wn-hero {
  position: relative;
  border-radius: var(--wn-radius);
  overflow: hidden;
  background: #d3d3d3;
  box-shadow: var(--wn-shadow);
}

.wn-hero-track {
  position: relative;
  width: 100%;
  /* 히어로 이미지 원본 비율(1024 x 588)에 맞춰 잘리지 않게 표시 */
  aspect-ratio: 1024 / 588;
}

.wn-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.wn-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.wn-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.wn-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.wn-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(90, 100, 112, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.wn-hero-dot.is-active {
  background: #4a5563;
}

.wn-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 40, 0.35) 0%, rgba(15, 20, 30, 0.92) 100%),
    #20293a;
}

.wn-hero-body {
  position: relative;
  z-index: 1;
  padding: 32px 34px 36px;
  color: #fff;
}

.wn-hero-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}

.wn-hero-body p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 520px;
}

/* ---------- 서비스 3카드 ---------- */
.wn-service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.wn-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 130px;
  border-radius: var(--wn-radius);
  background: linear-gradient(150deg, var(--wn-blue-soft-1) 0%, var(--wn-blue-soft-2) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--wn-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.wn-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 95, 176, 0.25);
  color: #fff;
}

.wn-service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  /* 아이콘 이미지 없음: placeholder */
}

.wn-service-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

/* ---------- 서비스 상세 모달 ---------- */
.wn-service-modal-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--wn-text);
  padding: 8px 4px 4px;
}

.wn-service-modal-body p {
  margin: 0 0 16px;
}

.wn-service-modal-body ul,
.wn-service-modal-body ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.wn-service-modal-body li {
  margin-bottom: 10px;
}

.wn-service-modal-body li:last-child {
  margin-bottom: 0;
}

.wn-service-modal-body strong {
  color: var(--wn-navy);
}

.wn-service-modal-note {
  margin-top: 16px !important;
  padding: 12px 14px;
  background: #f4f6f9;
  border-radius: 8px;
  font-size: 13px;
  color: var(--wn-text-sub);
}

#wnServiceModal .modal-header {
  border-bottom: 1px solid var(--wn-line);
}

#wnServiceModal .modal-title {
  font-weight: 700;
  color: var(--wn-navy);
}

/* ---------- 도입기관 ---------- */
.wn-orgs {
  margin-top: 18px;
  background: var(--wn-charcoal);
  border-radius: var(--wn-radius);
  padding: 22px 24px 26px;
  color: #fff;
  box-shadow: var(--wn-shadow);
}

.wn-orgs-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.wn-orgs-head h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.4px;
}

.wn-orgs-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.wn-orgs-track {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wn-orgs-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  background: #fff;
  border-radius: 40px;
  padding: 16px 28px;
  min-height: 56px;
}

.wn-org-logo {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 0;
}

.wn-org-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wn-orgs-next {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.wn-orgs-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---------- 우측 배너 ---------- */
.wn-banner {
  position: relative;
  background: #fff;
  border-radius: var(--wn-radius);
  /* 좌측 라벨(약 46px) 만큼 내려 히어로 카드와 상단을 맞춤 */
  margin-top: 46px;
  overflow: hidden;
  box-shadow: var(--wn-shadow);
  aspect-ratio: 1823 / 890;
}

.wn-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.wn-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.wn-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.wn-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.wn-banner-dots {
  position: absolute;
  right: 22px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.wn-banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(90, 100, 112, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.wn-banner-dot.is-active {
  background: #4a5563;
}

/* ---------- 도입안내 블루카드 ---------- */
.wn-guide {
  display: flex;
  background: var(--wn-blue);
  border-radius: var(--wn-radius);
  padding: 22px 8px;
  box-shadow: var(--wn-shadow);
}

.wn-guide-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.wn-guide-item+.wn-guide-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.wn-guide-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wn-guide-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wn-guide-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.wn-guide-item span:last-child {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.wn-guide-item:hover {
  color: #fff;
  opacity: 0.9;
}

/* ---------- About Us ---------- */
.wn-about {
  margin-top: 18px;
  background: #fff;
  border-radius: var(--wn-radius);
  padding: 22px 24px 24px;
  box-shadow: var(--wn-shadow);
}

.wn-about h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}

.wn-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}

.wn-about-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--wn-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.wn-about-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wn-about-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wn-about-item:hover {
  color: var(--wn-blue);
}

/* ---------- 패밀리 사이트 ---------- */
.wn-family {
  margin-top: 18px;
}

.wn-family select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--wn-line);
  border-radius: var(--wn-radius-sm);
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
  color: var(--wn-text);
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* ---------- 소셜 ---------- */
.wn-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.wn-sns {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d9dde2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555b63;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  /* 브랜드 아이콘 이미지 없음: placeholder 원형 */
}

.wn-sns:hover {
  background: #c7ccd3;
}

/* ---------- 우측 플로팅 버튼 ---------- */
.wn-float {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1500;
}

.wn-float-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #2b2f36;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.wn-float-btn:hover {
  background: #1d2026;
  color: #fff;
}

.wn-float-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------- 푸터 ---------- */
.wn-footer {
  margin-top: 20px;
  background: var(--wn-page-bg);
  color: #4a4f57;
}

.wn-footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
}

.wn-footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.wn-footer-row+.wn-footer-row {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wn-footer-co {
  font-size: 13px;
  line-height: 1.7;
}

.wn-footer-co .wn-co-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.wn-footer-co .wn-co-name {
  font-size: 15px;
  font-weight: 700;
  color: #2a2f37;
}

.wn-footer-co .wn-co-meta {
  color: #5b616b;
}

.wn-footer-co .wn-co-desc {
  color: #707782;
  font-size: 12.5px;
  margin: 0;
}

.wn-footer-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  height: 40px;
}

.wn-footer-logo img {
  max-width: 160px;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- 모바일 하단 고정바 ---------- */
.wn-mobile-bar {
  display: none;
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 900px) {
  .wn-page {
    padding-top: 84px;
    padding-bottom: 90px;
  }

  .wn-page>.wn-container {
    padding-top: 20px;
  }

  .wn-container {
    padding: 0 16px;
  }

  .wn-grid {
    flex-direction: column;
    gap: 28px;
  }

  /* 시안 모바일 순서: 배너 -> 서비스소개 -> 도입안내 ... */
  .wn-col-side {
    flex: none;
    max-width: 100%;
    width: 100%;
    order: 1;
  }

  .wn-col-main {
    width: 100%;
    order: 2;
  }

  /* 모바일: 배너와 도입안내 라벨 사이 간격 확보 */
  .wn-col-side .wn-section-label {
    margin-top: 28px;
  }

  /* 배너 바로 다음에 오는 라벨은 간격을 더 넓게 */
  .wn-banner+.wn-section-label {
    margin-top: 34px;
  }

  /* 모바일에서는 상단 정렬용 여백/높이 보정 해제 */
  .wn-banner {
    margin-top: 0;
    min-height: 0;
  }

  .wn-float {
    display: none;
  }

  .wn-footer-row {
    flex-direction: column;
  }

  .wn-footer-logo {
    order: -1;
  }

  .wn-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    background: #fff;
    border-top: 1px solid var(--wn-line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }

  .wn-mobile-bar a {
    flex: 1;
    text-align: center;
    height: 44px;
    line-height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .wn-mobile-bar a.is-line {
    border: 1px solid var(--wn-navy);
    color: var(--wn-navy);
    background: #fff;
  }

  .wn-mobile-bar a.is-fill {
    background: var(--wn-navy);
    color: #fff;
  }
}

@media (max-width: 480px) {
  .wn-service-cards {
    gap: 10px;
  }

  .wn-service-card {
    height: 104px;
    gap: 10px;
  }

  .wn-service-icon {
    width: 38px;
    height: 38px;
  }

  .wn-orgs-pill {
    padding: 14px 14px;
    gap: 10px;
  }

  .wn-org-logo {
    width: 64px;
    height: 28px;
  }

  .wn-hero-body {
    padding: 24px 22px 26px;
  }

  .wn-page .wn-hero-body h3 {
    font-size: 20px;
  }
}

/* ---------- imweb custom.cm override (.doz_sys h1–h6 / a are more specific) ---------- */
.wn-page h2.wn-section-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--wn-text);
  line-height: 1.5;
}

.wn-page .wn-orgs-head h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.5;
  color: #fff;
}

.wn-page .wn-about h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
  line-height: 1.5;
  color: var(--wn-text);
}

.wn-page .wn-hero-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.6px;
  line-height: 1.5;
  color: #fff;
}

.wn-page a.wn-service-card,
.wn-page a.wn-service-card:hover {
  color: #fff;
}

.wn-page a.wn-guide-item,
.wn-page a.wn-guide-item:hover {
  color: #fff;
}

.wn-page a.wn-about-item {
  color: var(--wn-text);
}

.wn-page a.wn-about-item:hover {
  color: var(--wn-blue);
}

.wn-page a.wn-sns,
.wn-page a.wn-sns:hover {
  color: #555b63;
}

.wn-page a.wn-float-btn,
.wn-page a.wn-float-btn:hover {
  color: #fff;
}

/* Pretendard over imweb Noto Sans Korean (.doz_sys h1–h6) */
.wn-page,
.wn-page h2,
.wn-page h3,
.wn-page p,
.wn-page a,
.wn-page button,
.wn-page select,
.wn-page .wn-footer,
.wn-page .wn-service-name,
.wn-page .wn-about-item {
  font-family: var(--wn-font);
}

@media (max-width: 480px) {
  .wn-page .wn-hero-body h3 {
    font-size: 20px;
  }
}