/* (재)한국한의학교육평가원 브랜드 오버라이드 — 기관 홈페이지(ikmee.or.kr) 색 체계 기준 */
:root {
  --primary-color: #0666b2;   /* 주색: 로고·기관 홈페이지 파랑 */
  --point-color: #6bb62e;     /* 보조색: 로고·기관 홈페이지 초록 */
  --secondary-color: #eaf2f9;
  --brand-gradient: linear-gradient(90deg, #0968ae 0%, #6bb62e 100%);
  --brand-gradient-soft: linear-gradient(90deg, #b7d2e3 0%, #c4ddd2 50%, #d1e8c1 100%);
  --footerbg-color: #ffffff;
}

/* 상단 바: 파랑→초록 그라데이션 띠 */
.top_bar {
  border-top: 0;
  background-image: var(--brand-gradient);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  padding-top: 3px;
}

/* 로고 크게 */
#header h1 img { height: 64px; }
#header.on h1 img { height: 54px; }
@media (max-width: 1024px) {
  #header h1 img, #header.on h1 img { height: 48px; }
}

.gnb > ul > li > a:hover { color: var(--primary-color); }

/* 버튼: 파랑 본체 + 초록 화살표 칸 */
.icon_btn::before {
  background: linear-gradient(90deg, var(--primary-color) 0, var(--primary-color) calc(100% - 4.8rem), var(--point-color) calc(100% - 4.8rem));
}

/* 메인 — 평가인증 절차 섹션: 기관 홈페이지의 파랑→초록 파스텔 띠 */
section#main_process { background: var(--brand-gradient-soft); }
section#main_process .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; border-top: 0; background: none; }
section#main_process .steps li,
section#main_process .steps li + li,
section#main_process .steps li:nth-child(n) { padding: 3.2rem !important; border: 0 !important; border-radius: 8px; background: rgba(255, 255, 255, .85); }
section#main_process .steps li > :last-child { margin-bottom: 0; }
@media (max-width: 1024px) { section#main_process .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } section#main_process .steps li:nth-child(n) { padding: 2.4rem !important; } }
@media (max-width: 560px)  { section#main_process .steps { grid-template-columns: 1fr; gap: 1.2rem; } }
section#main_process .steps em { color: var(--point-color); }

/* 메인 알림 영역 대표번호 */
#main_customer01 .btel strong { color: var(--primary-color); }

/* 서브 LNB 활성 표시 */
.sub_nav .lnb ul li.on a { color: var(--primary-color); }

/* 푸터: 흰 바탕 + 회색 글자 (기관 홈페이지와 동일 톤) */
#footer {
  background: var(--footerbg-color);
  color: #666;
  border-top: 1px solid var(--line-color);
  padding: 5.6rem 0 5.6rem 0;
}
#footer a { color: #666; }
#footer .info li ~ li::before { background: #ccc; }
.f_lnk #flnk { background: #fff; color: #555; border-color: #ccc; }
.f_lnk::after { filter: none; }

/* 메인 알림 영역 — 공지사항·자료실 제목을 같은 높이에 맞춤 */
section#main_customer01 .flx { align-items: flex-start; }
section#main_customer01 .flx > .itm:last-child { align-self: flex-end; }

/* 메인비주얼 — 실제 설명회 사진 위 글자가 잘 읽히도록 왼쪽을 어둡게 */
section#main_visual .main_visual_slide .itm::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 30, 56, .78) 0%, rgba(8, 30, 56, .45) 45%, rgba(8, 30, 56, .1) 100%);
}

/* 메인 바로가기 카드 — 로고 파랑·초록 단색, 2개씩 번갈아 */
section#main_content02 .itm { background: var(--primary-color); border-color: transparent; }
section#main_content02 .itm:nth-child(even) { background: var(--point-color); }
section#main_content02 .itm:hover { background: #05528f; border-color: transparent; }
section#main_content02 .itm:nth-child(even):hover { background: #579a22; }
section#main_content02 .itm,
section#main_content02 .itm h3,
section#main_content02 .itm em,
section#main_content02 .itm .desc { color: #fff; }
section#main_content02 .itm .icon { stroke: #fff; opacity: 1; }

/* 메인 알림 영역 — 배너 갤러리(2장 로테이션) */
section#main_customer01 .flx > .itm:last-child { align-self: flex-start; display: flex; flex-direction: column; gap: 2.4rem; }
.ek-banner { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.ek-banner .swiper-slide { display: block; position: relative; background-size: cover; background-position: center; }
.ek-banner .swiper-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 56, .72) 0%, rgba(8, 30, 56, .15) 75%); }
.ek-banner .txt { position: absolute; left: 2.8rem; top: 50%; transform: translateY(-50%); z-index: 1; color: #fff; }
.ek-banner .txt em { display: inline-block; margin-bottom: 1rem; padding: .2rem 1rem; background: var(--point-color); font-style: normal; font-size: 1.3rem; font-weight: 700; border-radius: 3px; }
.ek-banner .txt strong { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1.35; }
.ek-banner .ek-bn-prev, .ek-banner .ek-bn-next { position: absolute; top: 50%; z-index: 2; width: 3.6rem; height: 3.6rem; margin-top: -1.8rem; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .85); border-radius: 50%; cursor: pointer; }
.ek-banner .ek-bn-prev { left: 1rem; }
.ek-banner .ek-bn-next { right: 1rem; }
.ek-banner .ek-bn-prev svg, .ek-banner .ek-bn-next svg { width: 2rem; height: 2rem; stroke: var(--primary-color); stroke-width: 2; }
.ek-banner .ek-bn-page { position: absolute; left: 0; right: 0; bottom: 1.2rem !important; z-index: 2; display: flex; justify-content: center; gap: .6rem; }
.ek-banner .ek-bn-page .swiper-pagination-bullet { width: .8rem; height: .8rem; margin: 0 !important; background: #fff; opacity: .6; transition: width .2s; }
.ek-banner .ek-bn-page .swiper-pagination-bullet-active { width: 2.4rem; border-radius: .4rem; background: var(--point-color); opacity: 1; }
section#main_customer01 .btel { text-align: right; }

/* 메인 공지사항 — 2건, 자료실 박스와 같은 높이 */
section#main_customer01 .dd_list_subject a { padding: 10.25px 0; }
section#main_customer01 .dd_list_subject strong { margin-bottom: .4rem; font-size: 1.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
section#main_customer01 .dd_list_subject p { margin-bottom: .4rem; font-size: 1.5rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
section#main_customer01 .dd_list_subject small { display: block; }
/* 배너 글자가 좌측 꺽쇠와 겹치지 않게 */
.ek-banner .txt { left: 6.4rem; right: 6.4rem; }
.ek-banner .swiper-wrapper { height: 100%; }
.ek-banner .swiper-slide { height: 100%; }
@media (max-width: 1024px) { section#main_customer01 .flx > .itm:last-child { width: 100%; } }
