/* 2026-12-05 상단 nav·하단 footer 고급 디자인 — 사용자 선택 「네이비+골드 클래식」
   남색 #14264A · 금색 #C9A45C(밝은 금 #E3CB8F) · 글자 #1B2433. head.sub.php 에서 iaied_ui_20261205.css 다음에 불러온다.
   되돌리기: head.sub.php 의 이 파일 줄 삭제 + tail.php 를 백업(/home/backup/config/20261205_iaied_premium/)으로. 시험 /home/ieta/plan/tests/ui_premium_test.sh */

/* ── 맨 윗줄 (head.php 인라인 파랑·글자 크기를 덮음) ── */
header .header-topbar,
header .header-topbar .container { background-color: #14264A !important; }
header .header-topbar { line-height: 40px; border-bottom: 1px solid rgba(201, 164, 92, .35); }
header .header-topbar .topbar-left {
    font-size: 13px !important; color: rgba(255, 255, 255, .78); letter-spacing: .4px;
    font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
header .header-topbar .group-sign-in a {
    font-size: 13px !important; color: rgba(255, 255, 255, .85) !important; font-weight: 500;
    font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
header .header-topbar .group-sign-in a b { font-weight: 600; }
header .header-topbar .group-sign-in a:hover { color: #E3CB8F !important; }
header .header-topbar .group-sign-in .login:after { color: rgba(255, 255, 255, .3) !important; }

/* ── 주메뉴 ── */
header .header-main { box-shadow: 0 1px 0 #E6E9EF, 0 6px 18px rgba(20, 38, 74, .06); }
header .header-main .navigation .nav-links li .main-menu {
    font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-weight: 600; color: #1B2433; letter-spacing: -0.2px;
}
header .header-main .navigation .nav-links li:hover .main-menu,
header .header-main .navigation .nav-links li.button-search:hover .main-menu { color: #14264A; }
header .header-main .navigation .nav-links li:hover .main-menu:after {
    bottom: -2px; height: 2px; background-color: #C9A45C;
}
header .header-main .navigation .nav-links li.active .main-menu {
    border-bottom: 2px solid #C9A45C; color: #14264A; font-weight: 700;
}
header .header-main .navigation .icons-dropdown { color: #C9A45C; }
@media (min-width: 1200px) {
    header .header-main .navigation .nav-links li .main-menu { font-size: 15px; }
}

/* ── 하위 메뉴·고정 상단 (PC·태블릿) ── */
@media (min-width: 768px) {
    header .header-main .edugate-dropdown-menu-1,
    header .header-main .edugate-dropdown-menu-2 {
        border-top: 2px solid #C9A45C; border-bottom: none; border-radius: 0 0 10px 10px;
        box-shadow: 0 14px 30px rgba(20, 38, 74, .16); padding: 8px 0; overflow: hidden;
    }
    header .header-main .edugate-dropdown-menu-1 li .link-page,
    header .header-main .edugate-dropdown-menu-2 li .link-page {
        position: relative; padding: 0 22px; color: #333D4B;
        font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    }
    header .header-main .edugate-dropdown-menu-1 li:hover,
    header .header-main .edugate-dropdown-menu-2 li:hover { background-color: #F8F5EE; }
    header .header-main .edugate-dropdown-menu-1 li:hover > .link-page,
    header .header-main .edugate-dropdown-menu-2 li:hover > .link-page { color: #14264A; font-weight: 600; }
    header .header-main .edugate-dropdown-menu-1 li:hover > .link-page:before,
    header .header-main .edugate-dropdown-menu-2 li:hover > .link-page:before {
        content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background-color: #C9A45C;
    }
    /* 스크롤하면 붙는 상단: 64px·그림자·금색 가는 선 (움직임 없이 바로) */
    header .header-main.header-fixed { box-shadow: 0 2px 12px rgba(20, 38, 74, .14); border-bottom: 1px solid rgba(201, 164, 92, .45); }
    header .header-main.header-fixed .logo { line-height: 64px; }
    header .header-main.header-fixed .logo .header-logo img { max-width: 150px; }
    header .header-main.header-fixed .navigation .nav-links li .main-menu { line-height: 64px; }
}

/* ── 휴대폰 메뉴: 같은 색으로만 맞춤 (펼침 구조는 iaied_header_mobile.css) ── */
@media (max-width: 767px) {
    header .header-topbar .topbar-left { font-size: 12px !important; }
    header .header-main .navigation .icons-dropdown { color: #C9A45C; }
    header .header-main .edugate-dropdown-menu-1 > li:hover { background-color: #F8F5EE; }
    header .header-main .edugate-dropdown-menu-1 > li:hover > .link-page { color: #14264A; }
}

/* ── footer (12-05 다시 개선: 정책 링크 줄 높이·연락처 격자) ── */
footer.footer .footer-main,
footer.footer .footer-main .container { background-color: #14264A !important; }
footer.footer .footer-main { border-top: 3px solid #C9A45C; }
footer.footer .footer-main .footer-main-wrapper { padding: 40px 0 32px !important; }
.iaf { display: flex; align-items: center; gap: 0; font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
.iaf-logo { height: 46px; width: auto; display: block; flex: 0 0 auto; margin-right: 44px; }
.iaf-body { flex: 1 1 auto; min-width: 0; padding-left: 44px; border-left: 1px solid rgba(201, 164, 92, .45); }
.iaf-info { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 20px 56px; margin: 0; }
.iaf-info > div { display: flex; flex-direction: column; gap: 4px; }
.iaf-addr { grid-column: 1 / -1; }
.iaf-info dt { color: #C9A45C; font-weight: 600; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.iaf-info dd { color: #FFFFFF; font-size: 15px; font-weight: 500; margin: 0; letter-spacing: .2px; word-break: keep-all; }
.iaf-addr dd { font-size: 16px; }
.iaf-info a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(227, 203, 143, .35); }
.iaf-info a:hover { color: #E3CB8F; border-bottom-color: #E3CB8F; }
.iaf-biz { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: rgba(255, 255, 255, .55); line-height: 1.9; word-break: keep-all; }
.iaf-biz span + span:before { content: ''; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background-color: rgba(255, 255, 255, .25); vertical-align: middle; }
/* 정책 링크 줄: float 두 칸을 flex 로 감싸 높이가 생기게(바닥에 붙던 것 고침) */
footer.footer .footer-main .hyperlink {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px;
    border-top: 1px solid rgba(255, 255, 255, .12); line-height: 1.6; min-height: 0; padding: 18px 0 22px; font-weight: 500;
}
footer.footer .footer-main .hyperlink:before,
footer.footer .footer-main .hyperlink:after { background-color: rgba(255, 255, 255, .12); }
footer.footer .footer-main .hyperlink .hyper-left,
footer.footer .footer-main .hyperlink .hyper-right { float: none !important; }
footer.footer .footer-main .hyperlink .list-inline { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
footer.footer .footer-main .hyperlink .hyper-left li { padding: 0; display: inline-flex; align-items: center; }
footer.footer .footer-main .hyperlink .hyper-left li + li:before { content: ''; display: inline-block; width: 1px; height: 11px; margin: 0 16px; background-color: rgba(255, 255, 255, .22); }
footer.footer .footer-main .hyperlink .hyper-left a { font-size: 13px !important; color: rgba(255, 255, 255, .72) !important; }
footer.footer .footer-main .hyperlink .hyper-left a:hover { color: #E3CB8F !important; }
footer.footer .footer-main .hyperlink .hyper-left li:nth-child(2) a { color: #E3CB8F !important; font-weight: 700; }
footer.footer .footer-main .hyperlink .hyper-right { color: rgba(255, 255, 255, .5) !important; font-size: 12px; letter-spacing: .5px; }
@media (max-width: 1199px) {
    .iaf-info { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 18px 48px; }
}
@media (max-width: 991px) {
    .iaf { flex-direction: column; align-items: center; text-align: center; }
    .iaf-logo { margin: 0 0 26px; }
    .iaf-body { padding: 26px 0 0; border-left: none; border-top: 1px solid rgba(201, 164, 92, .45); width: 100%; }
    .iaf-info { justify-content: center; }
    .iaf-info > div { align-items: center; }
    footer.footer .footer-main .hyperlink { justify-content: center; text-align: center; }
    footer.footer .footer-main .hyperlink .list-inline { justify-content: center; }
}
@media (max-width: 767px) {
    footer.footer .footer-main .footer-main-wrapper { padding: 32px 0 24px !important; }
    .iaf-logo { height: 36px; }
    .iaf-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .iaf-info dd { font-size: 14px; }
    .iaf-addr dd { font-size: 14px; }
    .iaf-biz span { display: inline-block; }
    footer.footer .footer-main .hyperlink { flex-direction: column; padding: 16px 0 22px; }
    footer.footer .footer-main .hyperlink .hyper-left li + li:before { margin: 0 10px; }
    footer.footer .footer-main .hyperlink .hyper-left a { font-size: 12px !important; }
}

/* 12-05 화면 확인 뒤 보정: footer 정보 칸을 아래 링크 줄과 같은 선에 맞춤 · 검색 아이콘 남색 */
footer.footer .footer-main .footer-main-wrapper .row > .sd380 { padding-left: 0; padding-right: 0; }
header .header-main .navigation .nav-links li.tool-search .main-menu a,
header .header-main .navigation .nav-links li.tool-search .main-menu a i { color: #14264A; }
header .header-main .navigation .nav-links li.tool-search .main-menu a:hover i { color: #C9A45C; }
/* 휴대폰 메뉴 버튼: 청록 → 남색 */
.edugate-navbar, header .header-main .edugate-navbar, header .header-main.header-fixed .edugate-navbar { background-color: #14264A !important; border-color: #14264A !important; }
/* 좁은 화면: 줄이 넘어갈 때 줄 맨 앞에 구분선이 남지 않게 구분선 대신 간격 */
@media (max-width: 1199px) {
    .iaf-biz span { display: inline-block; margin: 0 18px 2px 0; }
    .iaf-biz span + span:before { display: none; }
}
@media (max-width: 991px) {
    .iaf-biz span { margin: 0 9px 2px; }
}
@media (max-width: 767px) {
    .iaf-biz span { display: block; margin: 0; }
    footer.footer .footer-main .hyperlink .list-inline { gap: 8px 18px; }
    footer.footer .footer-main .hyperlink .hyper-left li + li:before { display: none; }
}

/* 12-05 메인 「찾아오시는길」 지도와 footer 사이 여백(사용자) — 구글 지도 iframe 중 제목이 「… 지도」인 것만 */
iframe[src*="google.com/maps"][title$=" 지도"] { display: block; margin-bottom: 64px; }
@media (max-width: 767px) {
    iframe[src*="google.com/maps"][title$=" 지도"] { margin-bottom: 40px; }
}

/* 12-05 하위 메뉴는 메뉴 글자 바로 아래에서 펼침(사용자: 대메뉴→하위 메뉴로 옮기는 중 닫힘)
   대메뉴 칸(li) 안에서 시작하므로 틈이 없음. 일반 100px·태블릿 80px·고정 64px 모두 같은 식 */
@media (min-width: 768px) {
    header .header-main .navigation .nav-links li.dropdown > .edugate-dropdown-menu-1 { top: calc(50% + 18px); margin-top: 0; z-index: 1000; }
}
