:root{
  --header-h: 64px;                        /* 2번과 연계: 헤더 높이 살짝 축소 */
  --header-bg: rgba(12,14,18,.28);         /* 초기(상단) 투명도 */
  --header-bg-strong: rgba(12,14,18,.70);  /* 스크롤 후 가독성 강화 */
}

body{
  padding-top: var(--header-h); /* 고정 헤더만큼 보정 */
}

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled{
  background: var(--header-bg-strong);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

/* 기존 .nav는 레이아웃만 맞추고 색상/패딩은 유지 */
.site-header .nav{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  /* 기존 타이포/컬러 시스템 사용 */
}

/* 로고 이미지 비율 고정 (세로 찌그러짐 방지) */
.site-header .logo img{
  height: 40px;        /* 필요시 36~44px 사이로 조정 */
  width: auto;
  display: block;
}

/* 헤더 높이에 맞춰 수직 정렬 보정(메뉴가 약간 내려가 보일 때) */
.site-header .nav,
.site-header .nav > *{
  line-height: 1;
}

/* 기본 링크 스타일(헤더 내부 전용) */
.site-header .nav a{
  position: relative;
  padding: 16px 10px;      /* 클릭 영역 확보 */
  color: #e8eef5;          /* 현재 톤 유지, 필요시 조정 */
  text-decoration: none;
  transition: color .2s ease;
}
.site-header .nav a:hover{
  color: #ffffff;
}

/* hover/active 밑줄 애니메이션 */
.site-header .nav a::after{
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
  opacity: .9;
}
.site-header .nav a:hover::after{
  transform: scaleX(1);
}

/* 현재 페이지/섹션 active 표기 (둘 중 하나 사용)
   - 서버 렌더링이면 .active 클래스
   - SPA/스크롤 스파이면 aria-current="page/true" */
.site-header .nav a.active::after,
.site-header .nav a[aria-current="page"]::after,
.site-header .nav a[aria-current="true"]::after{
  transform: scaleX(1);
}

/* Pretendard */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-Regular.woff2") format("woff2"),
    url("../fonts/Pretendard-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-Bold.woff2") format("woff2"),
    url("../fonts/Pretendard-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

/* NanumSquare */
@font-face {
  font-family: "NanumSquare";
  src: url("../fonts/NanumSquareR.woff2") format("woff2"),
    url("../fonts/NanumSquareR.woff") format("woff");
  font-weight: 400;
}
@font-face {
  font-family: "NanumSquare";
  src: url("../fonts/NanumSquareB.woff2") format("woff2"),
    url("../fonts/NanumSquareB.woff") format("woff");
  font-weight: 700;
}

/* Nanum Myeongjo (TTF 사용) */
@font-face {
  font-family: "Nanum Myeongjo";
  src: url("../fonts/NanumMyeongjo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Nanum Myeongjo";
  src: url("../fonts/NanumMyeongjo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 리스트 스타일 초기화 */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* a태그 초기화 */
a {
  color: inherit; /* 부모 텍스트 컬러 상속 */
  text-decoration: none; /* 밑줄 제거 */
}

/*  Base  */
:root {
  --container-width: 1337px;
  --gap: 60px;
  --blue-700: #0a3e8a;
  --line: #ddd;
  --ink: #102a43;
  --muted: #6b7b8c;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", sans-serif;
  height: 100%;
  min-width: 1350px;
}

.logo {
  cursor: pointer;
}

/* 비디오 배경 */
.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* 비디오 위에 이질감 완화용 그라디언트 */
.hero-overlay{
  position: fixed;
  inset: 0;
  z-index: -1; /* 비디오(-2) 위, 콘텐츠/헤더 아래 */
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.25) 12%,
      rgba(0,0,0,0) 38%
    );
  /* 좌우 경계 페더 → 뒤쪽 블러/배경과 자연 연결 */
  -webkit-mask-image: linear-gradient(90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 6%,
      rgba(0,0,0,1) 94%,
      rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 6%,
      rgba(0,0,0,1) 94%,
      rgba(0,0,0,0) 100%);
}

@media (max-width: 768px){
  :root{ --header-h: 64px; }
}

/* 딤 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: -1;
}

/* 모든 placeholder에 전역 적용 */
::placeholder {
  color: #999; /* 텍스트 색상 */
  opacity: 1; /* 일부 브라우저에서 흐릿하게 처리되는 것 방지 */
  font-family: "Pretendard", sans-serif;
}

/* 브라우저 호환성용 접두사 */
:-ms-input-placeholder {
  /* IE 10+ */
  color: #999;
}

::-ms-input-placeholder {
  /* Edge 구버전 */
  color: #999;
}

::-webkit-input-placeholder {
  /* Chrome, Safari, Opera */
  color: #999;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #999;
}

textarea {
  font-family: "Pretendard", sans-serif;
}

/*  Hero  */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* GNB */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}
.nav .menu {
  display: flex;
  gap: 96px;
}

.nav .menu a {
  color: #fff;
}

.nav .menu a:hover {
  color: #ffda4f;
}

/* 중앙 콘텐츠 */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* gap: 20px; */
}
.hero-content h2 {
  /* margin-bottom: -37px; */
  font-family: "Nanum Myeongjo", serif;
  font-size: 40px;
  font-weight: 400;
}
.hero-content h1 {
  font-family: "NanumSquare", sans-serif;
  font-size: 60px;
  font-weight: 500;
  /* margin-bottom: 15px; */
}

/* 버튼 */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 29px;
}
.buttons a {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}
.buttons .btn-blue {
  background: rgba(22, 104, 227, 0.5);
  color: #fff;
  border: 1px solid #fff;
  backdrop-filter: blur(4px);
}
.buttons .btn-blue:hover {
  background: rgba(22, 104, 227, 1);
}
.buttons .btn-gray {
  /* background: rgba(106, 106, 106, 0.5); */
  color: #fff;
  border: 1px solid #fff;
  backdrop-filter: blur(4px);
}
.buttons .btn-gray:hover {
  background: rgba(106, 106, 106, 1);
}

/*  Services  */
.services {
  background: #f7fbfc;
  padding: 133px 0;
}
.services__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 16px 0;
}
.services__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}
.service-card {
  position: relative;
  flex: 1 1 0;
  min-width: 250px;
  height: 320px;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #eef6f8 0%, #f5f8fa 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-8px) scale(1.06);
  background: linear-gradient(160deg, #33c3b8 0%, #0f5f97 100%);
  box-shadow: 0 24px 48px rgba(29, 160, 150, 0.35);
  color: #fff;
}
.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}
.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.service-card__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #047a9c;
}
.service-card__desc {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  color: #217a8e;
  text-align: justify;
}
.service-card:hover .service-card__title,
.service-card:hover .service-card__desc {
  color: #fff;
}
.service-card:hover .service-card__icon img {
  filter: brightness(0) invert(1);
}

/*  Board (공지/행사) : Flex 비율 = 1.2 : 1.8  */
.board {
  background: #eef3f7;
  padding: 64px 0;
}
.board__container {
  width: 1189px;
  margin: auto;
  display: flex;
  gap: var(--gap);
  /* min-width: var(--container-width); */
}

/* 공통 헤더 */
.board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.board__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-700);
}
.board__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
/* 비활성 화살표 공통 */
.arrow.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none; /* 클릭 막기 */
}
.arrow.is-disabled img {
  filter: grayscale(1) brightness(0.7);
}
.more {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  color: #223;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* 공지 */
.notice {
  flex: 1.2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.notice__viewport {
  /* background: #fff; */
  border-radius: 14px;
  overflow: hidden;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); */
}
.notice__track {
  display: flex;
  transition: transform 0.35s ease;
}
.notice__page {
  flex: 0 0 100%;
}
.notice__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notice__item {
  padding: 16px 0px;
  border-bottom: 1px solid var(--line);
}
.notice__item:last-child {
  border-bottom: 0;
}
.notice__link {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.notice__ttl {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #14324e;
}
.notice__date {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* 행사 */
.event {
  flex: 1.8;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.event__viewport {
  position: relative;
  overflow: hidden;
  /* width: 100%; */
  width: 632px;
  /* 2개만 보이도록 고정 */
}
/* 행사 */
.event__viewport {
  position: relative;
  overflow: hidden;
  width: calc(307px * 2 + 18px); /* 카드 2장 + gap 1개 */
}

.event__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px; /* JS GAP과 동일 */
  transition: transform 0.45s ease;
  will-change: transform;
}

.event__card {
  flex: none;
  width: 307px; /* 카드 가로 고정 */
  height: 240px;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 24px;
  overflow: hidden;
  cursor: pointer;
}
.event__card:hover {
  /* transform: translateY(-6px); */
  /* box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); */
}

.event__thumb {
  flex: none;
  /* width: 120px; */
  height: 100%;
  background: #e9f0f4;
  /* border-radius: 10px; */
  overflow: hidden;
}
.event__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.event__title {
  margin: 2px 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}
.event__excerpt {
  margin: 0;
  color: #365064;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event__date {
  /* margin-top: auto;
  align-self: flex-end; */
  color: #2a66c7;
  font-weight: 700;
  font-size: 13px;
}

/* ===== 참여기관 ===== */
.partners {
  background: #ffffff;
  /* padding: 56px 0 64px; */
  padding: 106px 0 134px;
}

.partners__container {
  /* max-width: var(--container-width); */
  width: 1642px;
  margin: 0 auto;
  padding: 0 16px;
}

.partners__title {
  margin: 0 0 28px;
  text-align: center;
  color: #1d64c7; /* 이미지의 파란 제목 톤 */
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 25px; /* 행/열 간격 */
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
}

.partners__logos li {
  flex: 0 1 auto;
}

.partners__logos img {
  display: block;
  height: 27px; /* 로고 높이 통일 */
  width: auto;
  object-fit: contain;
  filter: none; /* 필요 시 grayscale(1) 적용 후 hover에서 해제 가능 */
}

/* 참여기관 로고 좌우 희미한 흰색 그라데이션 */
.partners__container {
  position: relative; /* overlay 배치를 위한 기준 */
}

.partners__logos::before,
.partners__logos::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px; /* 그라데이션 폭 (조정 가능) */
  pointer-events: none; /* 클릭 방해 방지 */
  z-index: 2;
}

.partners__logos::before {
  left: 91px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}

.partners__logos::after {
  right: 91px;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}

/* ===== Sub Hero ===== */
.sub-hero {
  position: relative;
  width: 100%;
  height: 320px; /* 캡처 높이에 맞게 조정 */
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.sub-hero__overlay {
  position: absolute;
  /* inset: 0; */
  /* background: rgba(0, 0, 0, 0.45); */
}
.sub-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* nav는 기존 스타일 유지하면서 흰색이 아니라 배경 위에 흰 글씨 */
.sub-hero .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}
.sub-hero .nav .menu a {
  color: #fff;
}
.sub-hero .nav .menu a:hover {
  color: #ffda4f; /* hover 강조 색상 */
}

/* 중앙 타이틀 */
.sub-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.sub-hero__title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
  top: 40px;
}
.breadcrumb {
  font-size: 14px;
  color: #eee;
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb span {
  margin: 0 6px;
}
.breadcrumb .current {
  font-weight: 600;
}

/* ===== Process (bg 위에 li를 겹치기) ===== */
.process {
  /* 배경 이미지(라인+큰 원 4개) */
  --bg-w: 970; /* 원본 가로 */
  --bg-h: 189; /* 원본 세로 */
  --side-pad: 80px; /* 양 끝 캡 여백(좌우 패딩) → 필요 시 미세조정 */
  --item-w: 189px; /* 각 단계(아이템)의 폭/높이 */
  --gap-fix: 0px; /* 원 간 간격 미세 보정이 필요하면 조정 */

  position: relative;
  width: 100%;
  max-width: 970px; /* 원본과 동일하게 최대폭 제한 */
  margin: 74px auto 0;
  aspect-ratio: var(--bg-w) / var(--bg-h);
  background: url("../img/big-sequences.png") no-repeat center / contain;
}

/* li들을 배경 위에 깔기 */
.process__list {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 끝의 작은 캡(동그라미) 때문에 원 중앙과 맞추려면 좌우 여백 필요 */
  padding: 0 calc(var(--side-pad) + var(--gap-fix));
}

/* 아이템(원 중앙에 올라오는 컨텐츠) */
.process__item {
  /* width: var(--item-w);
  height: var(--item-w); */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 배경 원을 쓰지 않고 투명: 뒤의 큰 원(배경 이미지)이 보이도록 */
  background: transparent;
  text-align: center;
  gap: 10px;

  /* 배경 원의 중심과 정확히 겹치도록 살짝 아래로 보정(선택 사항) */
  transform: translateY(0); /* 필요 없으면 0으로 */
  position: relative;
}

/* 아이콘/라벨 */
.process__item img {
  /* width: 36px;
  height: 36px; */
  object-fit: contain;
  display: block;
}
.process__item span {
  font-size: 16px;
  font-weight: 700;
  color: #204466; /* 배경 위 가독성에 맞춰 */
  line-height: 1.2;
  white-space: nowrap;
}

/* 활성 단계 강조(광택/그림자만 얹어도 충분) */
.process__item.active span {
  color: #0a5cd6;
}
.process__item.active {
  filter: drop-shadow(0 8px 18px rgba(10, 92, 214, 0.35));
}

/* ===== LNB + CONTENT: Flex 레이아웃 ===== */
.sub-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 140px 0 120px;
  display: flex; /* ← grid → flex */
  gap: 92px; /* 필요하면 24~40px로 조절 */
}

.sub-src-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 0 120px;
    display: flex; /* ← grid → flex */
    gap: 92px; /* 필요하면 24~40px로 조절 */
}

/* LNB 고정폭, 콘텐츠 유동폭 */
.lnb {
  flex: 0 0 80px;
}

/* LNB 메뉴 전체 */
.lnb__menu {
  display: flex;
  flex-direction: column;
  gap: 14px; /* 항목 간격 */
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  position: relative;
  top: 37px;
  width: 83px;
}

/* 기본 항목 */
.lnb__item {
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #999; /* 기본 회색 */
  transition: color 0.2s ease;
}

/* hover 효과 */
.lnb__item:hover {
  color: #204466; /* hover 시 딥블루 */
}

/* 비활성 */
.lnb__item.is-muted {
  color: #aaa;
  font-weight: 600;
  font-size: 25px;
}

/* 활성 */
.lnb__item.is-active {
  color: #0047ab; /* 진한 파란색 */
  font-weight: 600;
  font-size: 25px;
  padding-bottom: 2px;
}

.content {
  /* flex: 1 1 auto; */
  min-width: 0;
  width: 1000px;
  /* margin: auto; */
}

.section-title {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* ===== 상단 스텝: Flex ===== */
/* 전체 라인(회색) */
.stepper {
  position: relative;
  display: flex;
  padding: 45px 0 48px;
  width: 1000px;
}
.stepper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 49px;
  height: 4px;
  background: #e6e9ee;
  width: 778px;
  margin: auto;
}
/* 진행 라인은 각 step이 담당 (개별 구간이 초록색으로 바뀜) */
.step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}
.step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: #e6e9ee;
  z-index: 0;
}
.step:last-child::before {
  display: none;
}

/* 점 */
.step__dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #cccccc;
}

/* 라벨 */
.step__label {
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

/* start 전용 스타일 */
.step.start .step__dot {
  background: #fff;
  /* box-shadow: 0 0 0 6px #27bbc3, 0 4px 12px rgba(30, 144, 255, 0.35); */
  box-shadow: 0 0 0 6px #27bbc3,
    /* 기존 파란 링 */ 0 4px 12px rgba(30, 144, 255, 1.35),
    /* 기존 흐림 */ 4px 4px 4px 0px #27bbc340; /* 새 그림자 */
}

/* start는 라인 연결 안 되도록 */
.step.start::before {
  display: none;
}

/* === 현재 단계: 하얀 원 + 녹색 보더(링) === */
.step.is-active .step__dot {
  background: #fff;
  box-shadow: 0 0 0 6px #27bbc3, 0 4px 12px rgba(30, 144, 255, 0.35);
}

/* === 완료 단계: 녹색 원 + 흰 체크 === */
.step.completed .step__dot {
  background: #27bbc3;
  box-shadow: none;
  /* box-shadow: 0 0 0 6px #27bbc3; */
  box-shadow: 0 0 0 6px #27bbc3,
    /* 기존 파란 링 */ 0 4px 12px rgba(30, 144, 255, 1.35),
    /* 기존 흐림 */ 4px 4px 4px 0px #27bbc340; /* 새 그림자 */
}
.step.completed .step__dot::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 7px;
  transform: rotate(45deg);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

/* ===== Form Layout ===== */
.form-section {
  margin-top: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-field.col-2 {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

/* controls */
.input,
.select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #999;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  outline: none;
}
.input:focus,
.select:focus {
  border-color: #27bbc3;
  box-shadow: 0 0 0 3px rgba(39, 187, 195, 0.15);
}
.input-sm {
  width: 140px;
}

/* 주소 행 */
.address-row {
  display: flex;
  gap: 14px;
}
.btn.teal {
  min-width: 130px;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #27bbc3;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* 전화/이메일 */
.phone-row,
.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.phone-row .dash,
.email-row .at {
  color: #7f8b97;
  padding: 0 2px;
}

/* 셀렉트 커스텀 */
.select-wrap {
  position: relative;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
}
.select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: no-repeat center/contain;
  /* 아래 SVG는 회색 ▼ 아이콘 */
  background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6" stroke="%2399A1A8" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  pointer-events: none;
}

/* form-grid 안에서 특정 줄을 전체폭으로 */
.col-2 {
  grid-column: 1 / -1;
}

/* 2열 비율 행 */
.row-2col {
  display: flex;
  gap: 28px;
  align-items: flex-end; /* 라벨 높이차 대비 */
}
.row-2col .col-left {
  flex: 0 0 70%;
} /* ← 넓게 */
.row-2col .col-right {
  flex: 1 1 30%;
} /* ← 좁게 */

/* 반응형: 좁아지면 세로로 쌓기 */
/* @media (max-width: 960px) {
  .row-2col {
    flex-wrap: wrap;
  }
  .row-2col .col-left,
  .row-2col .col-right {
    flex: 1 1 100%;
  }
} */

/* 하단 버튼 (기존 .btn-next 재사용) */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
}
.btn-prev {
  min-width: 210px;
  height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #9b9b9b 0%, #6f6f6f 100%);
  box-shadow: 0 10px 22px rgba(111, 111, 111, 0.28);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.btn-prev:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.btn-prev:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(111, 111, 111, 0.26);
}

/* ===== optional: placeholder 색상 살짝 다운톤 ===== */
.input::placeholder {
  color: #a9b0b6;
}

/* ===== 카드 영역: Flex ===== */
.card-grid {
  /* 클래스 유지, 동작만 flex로 */
  display: flex; /* ← grid → flex */
  flex-wrap: wrap;
  gap: 22px;
  /* width: 1000px; */
}

/* 3열 고정: (100% - 2*gap)/3 */
.check-card {
  flex: 0 1 calc((100% - 44px) / 3);
  display: block;
  cursor: pointer;
}
.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-card__box {
  border: 1px solid #999;
  border-radius: 6px;
  background: #fff;
  padding: 16px 18px;
  height: 235px;
  width: 300px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;

  box-shadow: 0px 10px 10px 0px #0000001a;
}
.check-card:hover .check-card__box {
  /* transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); */
}
.check-card input:checked + .check-card__box {
  border: 1px solid #999;
  box-shadow: unset;

  transform: translateY(0px) scale(1.02);
  background: linear-gradient(160deg, #33c3b8 0%, #0f5f97 100%);
  /* box-shadow: 0 24px 48px rgba(29, 160, 150, 0.25); */
  color: #fff;
}

/* 체크 표시 */
.check-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.check-card__head strong {
  font-size: 15px;
  font-weight: 800;
  color: #222;
}
/* 기본 박스 */
.check-card__tick {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #ccc;
  background: #fff; /* 항상 흰색 유지 */
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
/* 선택 시: 테두리 강조만 */
.check-card input:checked + .check-card__box .check-card__tick {
  background: #fff; /* 흰색 유지 */
}

/* 체크 마크 */
.check-card input:checked + .check-card__box .check-card__tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 6px;
  height: 10px;
  border-right: 3px solid #28a745;
  border-bottom: 3px solid #28a745;
  transform: rotate(45deg);
}
/* DL 표기 */
.check-card__dl {
  display: grid;
  gap: 12px;
}
.check-card__dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0px;
}
.check-card__dl dt {
  font-size: 12px;
  color: #000;
  font-weight: 400;
}
.check-card__dl dd {
  font-size: 12px;
  font-weight: 500;
  color: #3a4b5a;
  margin: 0;
  /* line-height: 22px; */
}

.check-card input:checked + .check-card__box dt,
.check-card input:checked + .check-card__box dd,
.check-card input:checked + .check-card__box strong {
  color: #fff;
}

/* 체크된 카드 안의 hr 색상을 흰색으로 */
.check-card input:checked + .check-card__box .card-hr {
  background: #fff;
}

/* 다음 버튼 */
.actions {
  display: flex;
  justify-content: center;
  margin-top: 100px;
}
.btn-next {
  min-width: 210px;
  height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #47c1b7 0%, #1b6ecb 100%);
  box-shadow: 0 10px 22px rgba(27, 110, 203, 0.28);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.btn-next:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.btn-next:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(27, 110, 203, 0.26);
}
/* 진행된 구간 라인 초록색 */
.step.completed::before,
.step.is-active::before {
  background: #27bbc3;
}

.tokens {
  margin-bottom: 30px;
}

/* 의뢰 시험 항목 - 토큰 */
.tokens .field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.tokens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.token {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
  color: #222;
}
.token__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  font-size: 18px;
  color: #96a0aa;
  cursor: pointer;
}
.token-item--left {
  grid-column: 1 / 2;
} /* 두 번째 줄 왼쪽만 */

.btn-submit {
  min-width: 240px;
  height: 56px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(180deg, #ff6ea5 0%, #ff7a66 100%);
  box-shadow: 0 16px 34px rgba(255, 122, 134, 0.28);
}
.btn-submit:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(255, 122, 134, 0.22);
}

/* ===== Floating AI Button ===== */
.ai-fab {
  position: fixed;
  right: 34px; /* 캡쳐 위치 감 */
  bottom: 140px; /* 푸터 위로 띄움 */
  z-index: 1200;
  cursor: pointer;
  display: inline-block;
  animation: floatY 2.5s ease-in-out infinite;
}

/* hover 상태: 애니메이션 멈춤 */
.ai-fab:hover {
  animation-play-state: paused;
}

/* 위아래로 부드럽게 움직이는 키프레임 */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
/* ===== AI Panel ===== */
.ai-panel {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none; /* 기본 비활성(숨김) */
}
.ai-panel.is-open {
  pointer-events: auto;
}

.ai-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 187, 195, 0.22); /* 녹색 반투명 */
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ai-panel.is-open .ai-panel__backdrop {
  opacity: 1;
}

/* 우측 시트 */
.ai-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -18px 0 36px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 32px;
  overflow: auto;
  outline: none;
}
.ai-panel.is-open .ai-panel__sheet {
  transform: translateX(0);
}

/* 헤더 */
.ai-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.ai-panel__header h2 {
  font-size: 25px;
  font-weight: 600;
}
.ai-panel__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #98a2ad;
  cursor: pointer;
}

/* 상단 메타 */
.ai-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.ai-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #47c1b7 0%, #1b6ecb 100%);
}
.ai-note {
  color: #6c7a87;
  font-size: 13px;
}

/* 카드 */
.ai-card {
  /* border: 1px solid #e7eaee; */
  border-radius: 10px;
  padding: 18px;
  /* margin-bottom: 16px; */
}
.ai-card__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}
.ai-summary {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 14px;
  color: #27384a;
  line-height: 1.7;
  border: 1px solid #999;
}
.ai-dropzone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #999999;
  border-radius: 6px;
  padding: 26px;
  cursor: pointer;
}
.ai-dropzone.dragover {
  border-color: #27bbc3;
  background: rgba(39, 187, 195, 0.1);
}
.ai-dropzone__icon {
  font-size: 34px;
}
.ai-dropzone__text {
  text-align: left;
  color: #4a5a6b;
  font-size: 14px;
}

.ai-textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #999;
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
}

/* 예측값 */
.ai-flex {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ai-flex--between {
  justify-content: space-between;
}

.ai-chip {
  border: 0;
  background: #eef6f8;
  color: #37697a;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.ai-predict {
  display: flex;
  align-items: center; /* 위쪽 맞춤 */
  gap: 32px; /* 좌우 간격 */
  margin: 12px 0 10px;
  /* padding-left: 30px; */
  border: 1px solid #999;
  border-radius: 6px;
  padding: 16px;
  padding-left: 25px;
}

.ai-predict__head {
  display: flex;
  justify-content: end;
}

.ai-predict__value {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ai-predict__value strong {
  font-size: 14px;
  color: #4b5968;
}
.ai-predict__value b {
  font-size: 40px;
  font-weight: 900;
  color: #000;
  line-height: 1;
  width: 93px;
  height: auto;
}

.ai-predict__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-progress {
  height: 12px;
  background: #edf2f6;
  border-radius: 999px;
  overflow: hidden;
}
.ai-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #47c1b7, #1b6ecb);
  border-radius: 8px;
}

.ai-bullets {
  color: #4a5a6b;
  line-height: 1.7;
  font-size: 14px;
  font-weight: 400;
}

.ai-list {
  line-height: 1.8;
  color: #000;
  border-radius: 6px;
  border: 1px solid #999;
  padding: 16px;
  background-color: #eee;
}

/* 하단 버튼 */
.ai-actions {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 24px;
}
.ai-btn {
  min-width: 240px;
  height: 56px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s, filter 0.12s;
}
.ai-btn:active {
  transform: translateY(0);
}
.ai-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #47c1b7 0%, #1b6ecb 100%);
}
.ai-btn--ghost {
  color: #fff;
  background: linear-gradient(180deg, #9b9b9b 0%, #6f6f6f 100%);
}

/* ===== Submit Modal ===== */
.modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  padding: 34px 26px 26px;
  pointer-events: auto;
}
.ai-panel:not(.is-open) .modal-dialog {
  pointer-events: none;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #9aa3ad;
  cursor: pointer;
}

.modal-content {
  text-align: center;
}
.modal-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 10px solid #ff6ea5; /* 핑크 링 */
  color: #ff6ea5;
  font-weight: 900;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 16px;
  color: #333;
}
.modal-note {
  font-size: 14px;
  color: #ff5b8f;
  margin-top: 10px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.modal-ok {
  min-width: 240px;
  height: 56px;
  border: 0;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #9b9b9b 0%, #6f6f6f 100%); /* 캡처 톤 */
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}
.modal-ok:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

/* 성공 모달 아이콘 */
.modal-icon.success {
  width: 90px;
  height: 90px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 10px solid #27bbc3;
  color: #27bbc3;
  font-weight: 900;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 성공 모달 확인 버튼: .btn-next와 동일한 그라데이션 */
.modal-ok--primary {
  background: linear-gradient(180deg, #47c1b7 0%, #1b6ecb 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 110, 203, 0.28);
}
.modal-ok--primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.modal-ok--primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(27, 110, 203, 0.26);
}

/* ai-panel 재사용: 열렸을 때만 보이게 */
#submitModal {
  pointer-events: none;
  z-index: 1600;
}
#submitModal.is-open {
  pointer-events: auto;
}

/* 기본 숨김 */
#successModal {
  display: none;
}
/* 열릴 때만 표시 */
#successModal.is-open {
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: #7a7a7a; /* 중간 회색 톤 */
  color: #e9e9e9;
  padding: 71px 0 77px;
}

.footer__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* 좌측 브랜드 */
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}
.footer__brand img {
  /* height: 36px;
  width: auto;
  display: block; */
}
.footer__brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

/* 우측 주소/연락처 */
.footer__contact {
  text-align: right;
  color: #f0f0f0;
  font-size: 14px;
  line-height: 1.7;
}
.footer__contact p {
  margin: 0;
  font-size: 20px;
  font-weight: 200;
  letter-spacing: -5%;
}

/* 카피라이트 */
.footer__copy {
  text-align: right;
  font-size: 14px;
  color: #e0e0e0;
  opacity: 0.95;
  margin: 6px 0 0;
}

/* 하단 링크 라인 */
.footer__links {
  display: flex;
  justify-content: right;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.footer__links a {
  color: #f3f3f3;
  text-decoration: none;
  opacity: 0.9;
}
.footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 구분용 세퍼레이터 스타일 (가운데 점 느낌) */
.footer__links li {
  position: relative;
  padding: 0 10px;
  list-style: none;
}
/* .footer__links li + li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  list-style: none;
} */

.hr-line {
  border: 0;
  height: 1px;
  background: #ddd;
}

.card-hr {
  border: 0;
  margin-top: 15px;
  margin-bottom: 15px;
  height: 1px;
  background: #999;
}

/* 모달 기본 숨김 */
#submitModal {
  display: none;
}

/* 열릴 때만 표시 */
#submitModal.is-open {
  display: block;
}

.footer__contact p:first-child,
.footer__contact p:nth-child(2) {
  font-size: 17px;
  font-weight: 600;
}

/* 1440px 이하 해상도 대응 */
@media (max-width: 1440px) {
  .partners__container {
    max-width: 1180px;
  }

  .partners__logos img {
    display: block;
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: none;
  }
}
