/* 가로 스크롤 방지(권장) */
html, body { overflow-x: hidden; }
h2 {display: none;}
h3 {background: none; padding-top: 0px;}
h4 {font-weight: 500;}
.ui-page-tab .nav-red {margin-bottom: 0px; margin-top: 20px;}
.ui-page-tab li.on a, .ui-page-tab li a:hover {background: #3F51B5; border: 5px solid #3F51B5;}
.nav-red > li > a:hover, .nav-red > li > a:focus, .nav-red > li.active > a, .nav-red > li.active > a:hover, .nav-red > li.active > a:focus {background: #3F51B5; border: 5px solid #3F51B5;}

/* 색상 토큰 */
:root{
  --afm-line:#dfe6ef;
  --afm-soft:#f6f9ff;
  --afm-blue:#0e2341;
  --afm-accent:#2f3ccf;
  --afm-chip:#e9f1ff;
}

/* 섹션 래퍼 */
.ait-free-major{ padding: 32px 16px 64px; color:#0b0b0b; font-family: Pretendard, system-ui, -apple-system, Segoe UI, sans-serif;}
.afm-wrap{ max-width: 1400px; margin: 0 auto; }

/* 상단 텍스트 */
.afm-head{ margin-bottom: 24px; }
.afm-title{ text-align:center; font-size: clamp(26px,3.5vw,36px); font-weight: 900; margin: 50px 0 20px; }
.afm-desc h3{ font-size: clamp(18px,2.5vw,22px); margin: 0 0 10px; }
.afm-desc p{ margin: 0; line-height: 1.8; }

/* ===== 보드(도표) ===== */
.afm-board{
  border:1px solid var(--afm-line);
  border-radius: 14px;
  background:#fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
  overflow:hidden;
}

/* 행 공통 */
.afm-row{
  display:grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 16px;
  border-top:1px solid var(--afm-line);
  align-items: stretch;              /* ★ 좌/우 아이템 높이 동일하게 */
}
.afm-row:first-child{ border-top: none; }

/* 왼쪽 영역 */
.row-left{
  display:flex;                      /* ★ 배지를 세로로 늘리기 위한 컨테이너 */
}
.left-badge{
  flex:1 1 auto;                     /* ★ 그리드 칼럼 폭에 맞추고 */
  display:flex;                      /* ★ 중앙정렬 + 높이 채우기 */
  align-items:center;
  justify-content:center;
  height:100%;                       /* ★ 오른쪽과 같은 전체 높이 */
  background:#f0f4ff;
  color:#132b64;
  border:1px solid #e7ecfb;
  border-radius: 10px;
  padding:10px 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align:center;
  min-width: 0;                      /* 긴 줄 말아주기 */
}

/* 1행 카드 */
.goal-card{
  border:1px solid var(--afm-line);
  border-radius: 12px;
  background:#fff;
  overflow: hidden;
}
.goal-ttl{
  margin:0;
  padding:12px 14px;
  font-weight:800;
  background:#f7f9fc;
  border-bottom:1px solid var(--afm-line);
}
.goal-bullets{
  margin:0; padding:10px 16px 14px 22px;
}
.goal-bullets li{ margin:6px 0; }

/* 2행 : 트랙 그리드 */
.track-grid{
  display:grid; gap:16px;
  grid-template-columns: repeat(3, 1fr);
}
.track-grid.two-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.track-grid.single-track {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.track{ display: flex; flex-direction: column; height: 100%; }
.track-ttl{ flex: 0 0 auto; }
.track-chipbox{ flex: 1 1 auto; display:flex; flex-wrap:wrap; gap:8px; padding:12px; justify-content:center; align-content:flex-start; }

.chip{
  padding:8px 12px;
  border:1px solid #d8e3f2;
  background:#f7fbff;
  border-radius:999px;
  font-weight:700; font-size:14px; color:#0e2341;
}
.chip.ghost{ background:var(--afm-chip); }

/* 2행 : 중간 + 바 */
.afm-plusbar{
  margin-top: 0px;
  display:flex; align-items:center; justify-content:center;
  gap: 10px;
  border:1px dashed #cfd9ee;
  background: var(--afm-soft);
  border-radius: 12px;
  padding: 10px 14px;
}
.afm-plusbar .plus{
  display:inline-grid; place-items:center;
  width:22px; height:22px; border-radius:6px;
  background:#e8efff; color:#2743d3; font-weight:900;
}
.afm-plusbar .txt{ font-weight:800; }

.track-flex {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 비율은 필요시 3fr 1.2fr 등 조정 */
  gap: 16px;
  align-items: start;
}

/* 왼쪽 그룹: 세로로 쌓기 */
.track-left-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* ===== 트랙 1·2: 왼쪽 세로박스 + 중앙 + 우측 배너 3개 ===== */
.track-split{ display:flex; flex-direction:column; }
.track-split .track-ttl{
  margin:0; padding:10px 14px;
  font-weight:900; color:#0e2341;
  background:#f7f9fc; border-bottom:1px solid var(--afm-line);
  text-align:center;
}

/* 본문 3분할 레이아웃 */
.track-split-row{
  display:grid;
  grid-template-columns: 96px 48px 1fr;   /* 왼쪽 고정 / 가운데 원 / 오른쪽 유연 */
  gap: 12px;
  padding: 12px;
  align-items:center;
}

/* 왼쪽 세로 박스 */
.track-left-vert{
  height: 100%;
  border:1px solid #cfe3d8;                /* 연한 초록 라인 */
  background:#eef8f2;                       /* 옅은 그린 */
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  padding: 10px 6px;
}
.track-left-vert span{
  font-weight:800; color:#1f5a3d;
  line-height:1.2; text-align:center;
  letter-spacing:.02em;
  font-size: 14px;
}

/* 가운데 플러스 원 */
.track-plus{
  width: 40px; height: 40px;
  display:grid; place-items:center;
  border-radius:50%;
  border:2px solid #2c3a9e;                /* 파랑 외곽 */
  color:#2c3a9e; font-weight:900; font-size:22px;
  background:#fff;
  margin: 0 auto;
}

/* 오른쪽 배너 스택 */
.track-banners{
  list-style:none; margin:0; padding:0;
  display:grid; gap:8px;
}
.track-banners .banner{
  display:block;
  width: 100%;
  padding:10px 14px;
  border-radius: 10px;
  background:#f2f4f8;                       /* 옅은 회색 배너 */
  border:1px solid #e1e6ef;
  color:#0b0b0b; font-weight:800;
  text-align: center;                          /* 이미지처럼 좌측 정렬 */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
/* ===== 트랙3(FutureXAI융합) 카드 ===== */
.track-future{ display:flex; flex-direction:column; }
.track-future .track-ttl{
  margin:0; padding:10px 14px;
  font-weight:900; color:#0e2341;
  background:#f7f9fc; border-bottom:1px solid var(--afm-line);
  text-align:center;
}

.future-body{ padding:12px; }

/* 1) 상단 한 줄 배너(연녹) */
.banner-wide{
  width:100%;
  text-align:center;
  font-weight:800;
  padding:10px 14px;
  border-radius:10px;
  background:#eef8f2;                 /* 연녹 */
  border:1px solid #cfe3d8;
  color:#1f5a3d;
  margin-bottom:10px;
}

/* 2) 가운데 + 버튼 */
.future-plus{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:50%;
  border:2px solid #2c3a9e;
  color:#2c3a9e; font-weight:900; font-size:22px;
  background:#fff;
  margin:10px auto 12px;
}

/* 3) 하단 2×2 배너 그리드 */
.future-grid{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap:8px;
}
.future-grid .banner{
  display:block; width:100%;
  padding:10px 14px;
  border-radius:10px;
  background:#f2f4f8;                 /* 옅은 회색 */
  border:1px solid #e1e6ef;
  color:#0b0b0b; font-weight:800;
  text-align:center;
}



/* 3행 : 두 칼럼 */
.afm-row-split { display: block; /* grid 해제 */ padding: 16px; border-top: 1px solid var(--afm-line);}
.split-2 {display: grid;grid-template-columns: 1fr 1fr; gap: 16px;}

/* 각 세트(col) */
.split-2 .col {
  display: grid;
  grid-template-columns: 160px 1fr; /* 왼쪽 라벨, 오른쪽 내용 */
  align-items: stretch;
  border: 1px solid var(--afm-line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
}

/* 왼쪽 라벨 */
.split-2 .col .row-left {
  display: flex;
}
.split-2 .col .left-badge {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f0f4ff;
  color: #132b64;
  border: 1px solid #e7ecfb;
  border-radius: 10px;
  font-weight: 800;
  padding: 10px 12px;
  line-height: 1.3;
  text-align: center;
}

/* 오른쪽 내용 */
.split-2 .col .row-right {
  display: flex;
  align-items: center;
}
.split-2 .col .dash-list {
  margin: 0;
  padding-left: 1.2em;
}
.split-2 .col .dash-list li {
  margin: 6px 0;
  line-height: 1.6;
  list-style: disc;
}

/* 반응형 */
@media (max-width: 980px){
  .afm-row{ grid-template-columns: 180px 1fr; }
}
@media (max-width: 860px){
  .track-split-row{ grid-template-columns: 84px 44px 1fr; }
  .track-plus{ width:36px; height:36px; font-size:20px; }
}
@media (max-width: 760px){
  .afm-row{ grid-template-columns: 1fr; }
  .row-left{ display:block; }        /* 스택일 땐 일반 블록으로 */
  .left-badge{
    height:auto;                     /* 스택 레이아웃에선 자동 높이 */
    width: 100%;
    min-width: auto;
  }
  .track-grid{ grid-template-columns: 1fr; }
  .track-grid.two-tracks { grid-template-columns: 1fr;}
  .split-2 {grid-template-columns: 1fr;}
  .split-2 .col { grid-template-columns: 1fr;padding: 14px;}
  .split-2 .col .left-badge { height: auto;margin-bottom: 10px;}
  .track-flex{ grid-template-columns: 1fr; }
  .track-grid.two-tracks{ grid-template-columns: 1fr; }
  .track-left-group { order: 1;}
  .track-right { order: 2;}
}
@media (max-width: 560px){
  .track-split-row{ grid-template-columns: 72px 40px 1fr; gap:10px; }
  .track-left-vert span{ font-size:13px; }
  .track-banners .banner{ padding:9px 12px; }
   .future-plus{ width:36px; height:36px; font-size:20px; }
  .future-grid{ grid-template-columns: 1fr; } /* 모바일 1열 */
}
