/* iaied 모바일 상단 메뉴 (2026-11-17)
 * 767px 이하: 상단 파란 줄은 문구 한 줄만, 정보수정·로그아웃·관리자(비로그인: 로그인·회원가입)는 햄버거 메뉴 맨 아래 버튼 한 줄로.
 *             햄버거 메뉴는 화면 전체 폭, 스크롤해도 로고·햄버거 줄 유지(테마 main.js 의 hide-menu 무효).
 * 마크업: theme/iaied/head.php 의 li.iaied-m-account, 읽는 곳: head.sub.php(color-1.css 뒤)
 * 시험: bash /home/ieta/plan/tests/header_mobile_test.sh · 빠른 수정 색인: /home/ieta/plan/modules/quick-edit-index.md
 */
header .header-main .navigation .nav-links li.iaied-m-member { display: none; }

@media (max-width: 767px) {
    /* 상단 파란 줄: 문구 한 줄 */
    header .header-topbar .topbar-right { display: none !important; }
    header .header-topbar { line-height: 44px; }
    header .header-topbar .topbar-left {
        float: none !important;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px !important;
    }

    /* 로고·햄버거 줄: 스크롤해도 숨기지 않음 */
    header .header-main.hide-menu { top: 0 !important; }
    header .header-main.header-fixed { width: 100%; z-index: 1002; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

    /* 햄버거 메뉴 판 */
    header .header-main .navigation { width: 100%; min-width: 0; left: 0; }
    header .header-main .navigation {
        right: 0;
        text-align: left;
        border-top: 3px solid #366ACD;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }
    /* 회원 버튼을 맨 아래로(순서만 바꿈) */
    header .header-main .navigation .nav-links { margin: 0; display: flex; flex-direction: column; }
    header .header-main .navigation .nav-links > li { float: none; width: 100%; }
    header .header-main .navigation .nav-links > li.iaied-m-account { order: 10; }
    header .header-main .navigation .nav-links > li.dropdown { border-bottom: 1px solid #eef1f5; }
    /* 메뉴 줄: 블록으로 만들어 오른쪽 화살표가 줄마다 같은 자리에 오게(고정 상태 50px 줄 높이와 어긋나 계단처럼 밀리던 것) */
    header .header-main .navigation .nav-links li .main-menu,
    header .header-main.header-fixed .navigation .nav-links li .main-menu {
        display: block;
        overflow: hidden;
        margin: 0 20px;
        line-height: 52px;
        font-size: 16px;
        font-weight: 600;
        color: #1f2d3d;
    }
    header .header-main .navigation .icons-dropdown { color: #50bcb6; line-height: inherit; float: right; width: 30px; text-align: right; }
    /* 검색: 테마의 위로 끌어올린 검색 줄(.nav-search)은 숨기고 '검색' 한 줄로 */
    header .header-main .navigation .nav-search { display: none !important; }
    header .header-main .navigation .nav-links > li.tool-search { border-bottom: 1px solid #eef1f5; }
    header .header-main .navigation .nav-links > li.tool-search .main-menu a { display: block; color: #1f2d3d; }
    header .header-main .navigation .nav-links > li.tool-search .main-menu a:after { content: " 검색"; font-weight: 600; font-family: inherit; }

    /* 하위 메뉴 */
    header .header-main .edugate-dropdown-menu-1 {
        margin: 0;
        background-color: #f5f8fc;
        border-bottom: none !important;
    }
    header .header-main .edugate-dropdown-menu-1 > li > .link-page {
        padding: 0 20px 0 36px;
        line-height: 44px !important;
        font-size: 15px;
        color: #444;
        border-bottom: 1px solid #e6ebf2;
    }
    header .header-main .edugate-dropdown-menu-1 li:last-child > a { border-bottom: none; }
    header .header-main .edugate-dropdown-menu-1 > li:hover { background-color: #eaf1fb; }

    /* 회원 버튼 한 줄 */
    header .header-main .navigation .nav-links li.iaied-m-member { display: block; }
    header .header-main .navigation .nav-links li.iaied-m-account { padding: 14px 20px; background-color: #f7f9fc; border-top: 1px solid #e5e9f0; }
    .iaied-m-btns { display: flex; gap: 8px; width: 100%; }
    header .header-main .navigation .nav-links li.iaied-m-account a.iaied-m-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        display: block;
        margin: 0;
        padding: 0 4px;
        line-height: 42px;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #366ACD;
        background-color: #fff;
        border: 1px solid #366ACD;
        border-radius: 6px;
        white-space: nowrap;
    }
    header .header-main .navigation .nav-links li.iaied-m-account a.iaied-m-btn-main { color: #fff; background-color: #366ACD; }
    header .header-main .navigation .nav-links li.iaied-m-account a.iaied-m-btn-admin { color: #1f2d3d; border-color: #1f2d3d; }
}

/* 태블릿(768~1199): 로고와 메뉴를 한 줄로 (2026-11-17, 1024 가로에서 메뉴가 둘째 줄로 떨어지던 것) */
@media (min-width: 768px) and (max-width: 1199px) {
    header .header-main .logo { line-height: 80px; }
    header .header-main .logo .header-logo img { max-width: 170px; }
    header .header-main .navigation .nav-links li .main-menu { line-height: 80px; margin: 0 9px; font-size: 14px; }
    header .header-main .navigation .icons-dropdown { margin-left: 3px; }
    header .header-main .edugate-dropdown-menu-1 { top: 80px; }
}
/* 태블릿 세로(768~991): 더 좁으므로 로고·글자를 더 줄이고 화살표를 숨긴다(하위 메뉴는 그대로 열림) */
@media (min-width: 768px) and (max-width: 991px) {
    header .header-main .logo .header-logo img { max-width: 140px; }
    header .header-main .navigation .nav-links li .main-menu { margin: 0 7px; font-size: 13px; }
    header .header-main .navigation .icons-dropdown { display: none; }
}

/* iaied: 서브 배너 휴대폰 — 모든 하위 페이지 상단 제목 이미지(.page-title, 기본 300px)를 낮게 (2026-11-17 사용자 "모바일에서 너무 큼 세로 폭 줄여줘")
   background-attachment: fixed 는 휴대폰에서 배경이 크게 확대돼 보여 끄고 칸에 맞춰 덮는다 */
@media (max-width: 767px) {
    .page-title { height: 150px; background-attachment: scroll; background-size: cover; background-position: center; background-repeat: no-repeat; }
    .page-title .captions { font-size: 26px; margin-bottom: 6px; }
    .page-title .breadcrumb { font-size: 12.5px; line-height: 1.4; padding: 0 10px; }
}


/* iaied: 하위 페이지 머리 띠 — 사진(assets/images/banner-1.jpg, 파일은 남겨 둠) 대신 직접 그린 그라데이션·무늬
   (2026-11-23 사용자 "상단 타이틀도 저작권 문제 없도록 디자인 개선" → 사이트 전체, 남색 그라데이션+무늬). 원본 규칙: assets/css/color-1.css .page-title
   2026-12-06 사용자 "파란색 타이틀 배경 이미지 교육과 관련된 배경으로" → 점·곡선 무늬를 교육 선 그림(책·학사모·연필·전구·지구본·자·원자·칠판,
   assets/images/iaied_edu_pattern.svg 직접 그림)으로 바꾸고 → 같은 날 "아이콘이 많음 단순화" 로 반복 무늬 대신 양옆 4개만(iaied_edu_bg1.svg, 무늬 파일은 남겨 둠), 가운데 제목이 잘 읽히게 가운데를 살짝 어둡게. 이전 규칙 백업 /home/backup/config/20261206_title_banner_edu/ */
.page-title {
    /* 12-06 "고급스럽게": 밝은 파랑(#3a6fd0) 대신 깊은 남색. 같은 날 "학사모만 남기고 황금색 빼고 역삼각형 빼고" → 그림 iaied_edu_bg1c.svg(흰 학사모 하나·빛줄기·점 격자·질감) → "오른쪽 이미지 삭제됨 디자인 개선" → iaied_edu_bg1d.svg(오른쪽 동심원 호·궤도 곡선), 오른쪽 위 빛도 금색→옅은 파랑. 이전 bg1·bg1b 파일 남김 */
    background-color: #11275a;
    background-image:
        url("../assets/images/iaied_edu_bg1d.svg?v=20261206a"),
        radial-gradient(ellipse 44% 70% at 50% 52%, rgba(6,14,36,.42), rgba(6,14,36,0) 100%),
        radial-gradient(circle at 88% 8%, rgba(150,180,240,.16), rgba(150,180,240,0) 42%),
        radial-gradient(circle at 6% 96%, rgba(80,130,220,.22), rgba(80,130,220,0) 45%),
        linear-gradient(118deg, #0a1631 0%, #11275a 48%, #1c3f85 100%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: cover, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center, center, center;
    background-attachment: scroll;
    height: 220px;
}
.page-title.background-opacity:before { background-color: transparent; }
.page-title .captions { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; text-transform: none; line-height: 1.2; text-shadow: 0 2px 14px rgba(0,0,0,.18); }
.page-title .captions:after { content: ""; display: block; width: 44px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: #ffd34d; }
@media (max-width: 767px) {
    .page-title { height: 130px; background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat; background-size: cover, 100% 100%, 100% 100%, 100% 100%, 100% 100%; background-position: 10% center, center, center, center, center; }
    .page-title .captions { font-size: 24px; margin-bottom: 4px; }
    .page-title .captions:after { width: 34px; margin-top: 10px; }
}

/* iaied: 2026-12-06 사용자 "파란색 배경 이미지를 현재 이미지 외에 2-3가지를 돌아가면 랜덤하게 (어른스러운 이미지로 2개 추가)"
   head.php 가 .page-title 에 iaied-pt-1~3 중 하나를 무작위로 붙임. 1 = 위 기본(교육 선 그림 무늬), 2 = 학문의 전당(기둥 건물·책·깃펜), 3 = 서재(책장·지구본·스탠드)
   그림은 모두 직접 그린 SVG(assets/images/iaied_edu_bg2.svg, iaied_edu_bg3.svg). 끄려면 head.php 의 $iaied_pt 를 1 로 */
.page-title.iaied-pt-2 {
    background-color: #142c62;
    background-image:
        url("../assets/images/iaied_edu_bg2.svg?v=20261206b"),
        radial-gradient(ellipse 34% 70% at 50% 50%, rgba(10,22,54,.5), rgba(10,22,54,0) 100%),
        radial-gradient(circle at 84% 16%, rgba(227,203,143,.16), rgba(227,203,143,0) 40%),
        linear-gradient(115deg, #0d1c40 0%, #16336e 46%, #26569a 100%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: cover, 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center, center;
}
.page-title.iaied-pt-3 {
    background-color: #17346f;
    background-image:
        url("../assets/images/iaied_edu_bg3.svg"),
        radial-gradient(ellipse 34% 70% at 50% 50%, rgba(10,24,58,.48), rgba(10,24,58,0) 100%),
        radial-gradient(circle at 12% 20%, rgba(110,160,240,.22), rgba(110,160,240,0) 42%),
        linear-gradient(125deg, #0f2148 0%, #1b3c7c 50%, #2f63aa 100%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: cover, 100% 100%, 100% 100%, 100% 100%;
    background-position: center, center, center, center;
}
@media (max-width: 767px) {
    /* 휴대폰은 가운데만 남아 그림이 안 보여 왼쪽 그림(책·깃펜 / 책장)이 보이게 */
    .page-title.iaied-pt-2, .page-title.iaied-pt-3 { background-size: cover, 100% 100%, 100% 100%, 100% 100%; background-position: 10% center, center, center, center; }
}

/* 2026-12-06 로그인 뒤 휴대폰 맨 위에 「…님 로그인 중 로그아웃」 글자가 보이던 것(사용자 신고).
   head.sub.php 의 #hd_login_msg 는 화면 읽기용 문구인데, default.css 는 font-size:0 으로만 숨겨
   휴대폰 크롬의 최소 글자 크기·글자 배율 설정에서 글자가 살아남. 크기를 1px 로 잘라 숨김(화면 읽기는 그대로). */
#hd_login_msg, #hd_login_msg a {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
    white-space: nowrap !important; border: 0 !important; font-size: 1px !important; line-height: 1px !important; color: transparent !important;
}
