/* =================================================
   Education Tabs – Final Version
================================================= */

.edu-tabs {
  margin: 16px 0;
}

/* =================================================
   1뎁스 : 좌측 바 카드
================================================= */
/* =================================================
   1뎁스 : 상위 과정 카드
================================================= */
.edu-depth1-cardbar {
    display:flex;
    gap:12px;
    padding:0;
    margin: 0 0 8px 0;
    list-style:none;
    justify-content: space-between;
}

.edu-depth1-cardbar li a {
    display: block;
    padding: 14px 22px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

/* hover */
.edu-depth1-cardbar li a:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* active */
.edu-depth1-cardbar li a.is-active {
  background: #043763;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  position: relative;
}

/* 보조 라벨 */
.edu-depth1-cardbar li a .sub-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}


/* =================================================
   모바일 : 가로 스크롤
================================================= */
@media (max-width: 768px) {
  .edu-depth1-cardbar {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .edu-depth1-cardbar li {
    flex: 0 0 160px;
  }
}

/* =================================================
   2뎁스 : Pill (밝은 톤)
================================================= */
/* =================================================
   2뎁스 : 과정 선택 Pill
================================================= */
.edu-depth2-wrap {
  padding: 10px 20px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.edu-depth2-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-depth2-pill li a {
  display: inline-flex;
  align-items: center;

  padding: 10px 18px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;

  transition: all 0.15s ease;
}

/* hover */
.edu-depth2-pill li a:hover {
  background: #f1f5f9;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* active */
.edu-depth2-pill li a.is-active {
  background: #2d7e98;
  color: #ffffff;
  font-weight: 600;
  border-color: #2d7e98;
}

/* =================================================
   Detail – tuned to match your tab system
   (No card flood, clean dividers, subtle effects)
================================================= */

.edu-detail {
  margin-top: 40px;
}

/* Title: strong but clean */
.edu-detail-head {
  margin-bottom: 14px;
}

.edu-detail-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.2px;
}

/* Section: not a card, just spacing + divider */
.edu-section {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.edu-section:last-child {
  border-bottom: none;
}

/* Section bar: modern header bar (subtle) */
.edu-section-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.edu-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #1f2937;
  margin: 0;
}

/* tiny accent pill (left) like your system */
.edu-section-bar::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #4f46e5;
}

/* Key-Value block refinement */
.edu-kv {
  font-size: 15px;
  margin-left: 14px;          /* 섹션 타이틀 대비 들여쓰기 */
  margin-top: 6px;
}

/* dd 간 간격 조정 */
.edu-kv dd {
  margin: 0;                  /* 기본 margin 제거 */
  padding: 2px 0;             /* 아주 얇은 상하 여백 */
  line-height: 1.65;          /* 문단 가독성 */
  color: #374151;
  background: url(../img/sub/img_dot_black.png) left .75em no-repeat;
  padding-left: 10px;
}

/* Split line (method/fee) */
.edu-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* Table shell: minimal container (not heavy card) */
.edu-table-shell {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

/* Make table scroll on small devices */
.edu-table-shell {
  overflow-x: auto;
}

/* Table typography harmonization WITHOUT touching the table HTML */
.edu-table-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #111827;
}

/* Subtle thead */
.edu-table-shell thead th {
  background: #f9fafb;
  font-weight: 800;
}

/* Cell padding & separators (safe defaults) */
.edu-table-shell th,
.edu-table-shell td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
}

/* Remove bottom border on last row */
.edu-table-shell tbody tr:last-child th,
.edu-table-shell tbody tr:last-child td {
  border-bottom: none;
}

/* Meta text */
.edu-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #4b5563;
}

/* Callout: modern, light, not loud */
.edu-callout {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4ff;
  border: 1px solid #c3d7ff;
  color: #1e40af;
  font-size: 13px;
  font-weight: 700;
}

/* Hover polish (subtle, not boxy) */
.edu-table-shell:hover {
  border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .edu-detail-title {
    font-size: 20px;
  }

  .edu-section {
    padding: 14px 0;
  }

  .edu-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .edu-kv {
    margin-left: 0;
  }
}

/* ===============================
   Education Banner Header
=============================== */

.edu-banner {
  width: 100%;
  background: linear-gradient(
    90deg,
    #eef4ff 0%,
    #f8fafc 60%
  );
  border-bottom: 1px solid #e5e7eb;
}

/* 내부 컨텐츠 폭 제어 */
.edu-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  position: relative;
}

/* 좌측 포인트 바 */
.edu-banner-inner::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 3px;
  background: #4f46e5; /* 기존 탭 포인트 컬러 */
}

/* 타이틀 */
.edu-banner-title {
  margin: 0;
  padding-left: 24px; /* 포인트 바 공간 */
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* 서브 타이틀 */
.edu-banner-sub {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #4b5563;
}

.edu-content {
    border: 1px solid #e5e7eb;
    padding: 5px 20px;
    border-radius: 10px;
    margin-top: 10px;
}

/* 반응형 */
@media (max-width: 768px) {
  .edu-banner-inner {
    padding: 22px 16px;
  }

  .edu-banner-inner::before {
    left: 16px;
    top: 20px;
    bottom: 20px;
  }

  .edu-banner-title {
    font-size: 21px;
    padding-left: 20px;
  }

  .edu-banner-sub {
    font-size: 14px;
  }
}

/* =====================================
   edu-kv grid layout
===================================== */

/* grid 공통 */
.edu-kv-grid {
  display: grid;
  gap: 6px 16px;              /* 세로 / 가로 간격 */
  margin-top: 4px;
}

/* dd 스타일 안정화 */
.edu-kv-grid dd {
  margin: 0;
  padding: 2px 0;
  white-space: nowrap;        /* 날짜 줄바꿈 방지 */
  background: none;
}

/* ===== 컬럼 수 ===== */
.edu-kv-grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-kv-grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edu-kv-grid.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =====================================
   Responsive
===================================== */

/* 태블릿 */
@media (max-width: 1024px) {
  .edu-kv-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu-kv-grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 모바일 */
@media (max-width: 640px) {
  .edu-kv-grid {
    grid-template-columns: 1fr !important;
    gap: 4px;
  }

  .edu-kv-grid dd {
    white-space: normal;      /* 모바일에서는 줄바꿈 허용 */
  }
}
