/* HumusEdu responsive layout overrides */
body.humuseduSite .mobileNavToggle { display: none; }
body.humuseduSite .faqStyle.legalEduType .faqTableTitle .faqIcon { margin-right: 0; }

@media (max-width: 1279px) {
  body.humuseduSite { min-width: 0 !important; overflow-x: hidden; }
  body.humuseduSite .inner, body.humuseduSite #container, body.humuseduSite .wideInner, body.humuseduSite #menu, body.humuseduSite .footerMenuWrap {
    width: calc(100% - 40px) !important; min-width: 0 !important; max-width: 1200px; box-sizing: border-box;
  }
  body.humuseduSite article { max-width: 100%; }
  body.humuseduSite img { max-width: 100%; height: auto; }
  body.humuseduSite .gnb { min-width: 0 !important; width: 100%; height: 76px; padding: 0; }
  body.humuseduSite #menu, body.humuseduSite .gnb_ectMenu { display: none !important; }
  body.humuseduSite .mobileNavToggle {
    display: flex; position: absolute; right: 18px; top: 14px; width: 46px !important; height: 46px !important;
    padding: 10px; border: 1px solid #d6dce2; border-radius: 8px; background: #fff !important; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 5px; z-index: 4;
  }
  body.humuseduSite .mobileNavToggle span { display: block; width: 24px; height: 2px; margin: 0 auto; background: #273746; }
  body.humuseduSite .mainBtnWrap { margin-top: 76px; padding-top: 24px; }
  body.humuseduSite .wideInner { background-position: center 30px; background-size: contain; }
  body.humuseduSite .mainBtnBg { display: none; }
  body.humuseduSite .mainBtnBox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; }
  body.humuseduSite .mainBtnBox > p { grid-column: 1 / -1; margin: 0 0 4px; }
  body.humuseduSite .mainBtnItem { display: block; width: 100%; height: auto; aspect-ratio: 1.5 / 1; margin: 0; border-radius: 12px; }
  body.humuseduSite .mainBtnItem > a, body.humuseduSite .mainBtnItem img { display: block; width: 100%; height: 100%; }
  body.humuseduSite .mainBtnItem img { object-fit: cover; }
  body.humuseduSite .mainSlideWrap { min-width: 0; margin-top: 20px; }
  body.humuseduSite .mainSlideBox, body.humuseduSite .mainSlide { width: 100%; }
  body.humuseduSite .mainSlide img { display: block; width: 100%; }
  body.humuseduSite .midSlide { width: 100%; }
  body.humuseduSite .midSlideItem, body.humuseduSite .midSlideItem a { width: 100% !important; }
  body.humuseduSite .midSlideItem .itemTit { width: 100%; }
  body.humuseduSite .noticeTitle { float: none; width: 100%; margin: 0 0 14px; }
  body.humuseduSite .noticeBox { display: grid; float: none; width: 100%; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.humuseduSite .noticeItem { display: block; float: none; width: auto; min-width: 0; margin: 12px 0 8px 24px; }
  body.humuseduSite .midBtnWrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  body.humuseduSite .midBtnWrap a { width: auto; height: auto; min-height: 160px; margin: 0; border-radius: 18px; padding: 18px 8px; }
  body.humuseduSite .midBtnWrap a img { width: 56px; height: auto; margin: 18px 0 10px; }
  body.humuseduSite .cardNewsWrap { height: auto; min-height: 0; padding: 24px 0; }
  body.humuseduSite .cardNewsWrap .wideInner { background: none; }
  body.humuseduSite .cardNewsWrap .mainLinkBtn { position: static; display: inline-block; line-height: 1.5; margin: 0 0 12px; }
  body.humuseduSite .cardNewsBox { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
  body.humuseduSite .cardNewsItem { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; margin: 0; }
  body.humuseduSite .cardNewsItem img { object-fit: cover; }
  body.humuseduSite .boardWrap { margin-top: 56px; }
  body.humuseduSite .leftArea, body.humuseduSite .rightArea { width: 49%; height: auto; min-height: 300px; padding: 22px; }
  body.humuseduSite .csWrap { display: flex; gap: 12px; margin: 40px 0; }
  body.humuseduSite .csWrap a { float: none; display: block; width: 50%; height: auto; }
  body.humuseduSite .csWrap a img { display: block; width: 100%; height: auto; }
  body.humuseduSite #companyList { display: flex; height: auto; padding: 14px 20px; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 24px; box-sizing: border-box; }
  body.humuseduSite #companyList a { display: flex; float: none; width: auto; max-width: 18%; min-height: 46px; margin: 0; line-height: normal; align-items: center; justify-content: center; }
  body.humuseduSite #companyList a img { max-width: 100%; height: auto; max-height: 40px; }
  body.humuseduSite .bottomContents { height: auto; min-height: 200px; padding: 10px 0; }
  body.humuseduSite .bottomContents .inner > div { padding: 22px 16px; }
  body.humuseduSite .companyInfo { max-width: 70%; box-sizing: border-box; }
  body.humuseduSite .customerCenter { max-width: 30%; box-sizing: border-box; }
  body.humuseduSite #allMenu { overflow-y: auto; padding: 80px 0 30px; }
  body.humuseduSite #allMenu .inner { width: calc(100% - 40px) !important; }
  body.humuseduSite #allMenu .gnbMenuWrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  body.humuseduSite #allMenu .gnbMenu { float: none; width: auto; padding: 12px 8px; }
  body.humuseduSite .footerMenuWrap { left: 20px; }
  body.humuseduSite .offlineEduForm { width: calc(100% - 40px); max-width: 960px; left: 50%; transform: translateX(-50%); top: 5vh; height: 90vh; overflow-y: auto; }
  body.humuseduSite .consult { padding: 16px; }
  body.humuseduSite .consult table { width: 100%; }
  body.humuseduSite .consult input { max-width: 100%; box-sizing: border-box; }
  body.humuseduSite .tabWrap .tabTitle li { width: 25%; }
  body.humuseduSite .quickMenu { right: 8px; top: auto; bottom: 18px; }
  body.humuseduSite .eduConsultBtn, body.humuseduSite .quickMenuBtnArea { display: none; }
  body.humuseduSite .topBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 0;
    padding: 0;
    border-radius: 24px;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .inner, body.humuseduSite #container, body.humuseduSite .wideInner, body.humuseduSite #menu, body.humuseduSite .footerMenuWrap { width: calc(100% - 28px) !important; }
  body.humuseduSite .gnb { height: 68px; }
  body.humuseduSite .mobileNavToggle { right: 12px; top: 11px; width: 44px !important; height: 44px !important; }
  body.humuseduSite .mainBtnWrap { margin-top: 68px; padding-top: 18px; }
  body.humuseduSite .mainBtnBox { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.humuseduSite .mainBtnItem { border-radius: 10px; }
  body.humuseduSite .mainBtnItem .itemTit { font-size: 14px; }
  body.humuseduSite .mainBtnItem .warning { display: none; }
  body.humuseduSite .mainSlideWrap { margin-top: 14px; }
  body.humuseduSite .mainSlideBtn { width: 112px; height: 34px; line-height: 32px; left: calc(50% - 56px); font-size: 14px; }
  body.humuseduSite .mainSlideBox .slick-dots { bottom: 8px !important; }
  body.humuseduSite .midSlideWrap { height: auto; padding-bottom: 34px; }
  body.humuseduSite .mainTitle { font-size: 21px; margin: 28px 0 8px; }
  body.humuseduSite .midSlide .slick-list { height: auto; padding: 20px 0; }
  body.humuseduSite .midSlideItem, body.humuseduSite .midSlideItem a { height: 230px !important; }
  body.humuseduSite .midSlideItem .cover { width: 100%; }
  body.humuseduSite .midSlideItem .itemTit { font-size: 16px; }
  body.humuseduSite .midSlideItem:hover a { top: 0; }
  body.humuseduSite .midSlideItem:hover .itemTxt { top: 45%; }
  body.humuseduSite .noticeWrap { margin-top: 36px !important; }
  body.humuseduSite .noticeTitle { font-size: 25px; }
  body.humuseduSite .noticeBox { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body.humuseduSite .noticeItem { height: auto; min-height: 68px; padding: 12px 14px 12px 52px; }
  body.humuseduSite .noticeItem .date { width: 62px; height: 62px; padding: 12px 0; left: -24px; }
  body.humuseduSite .noticeItem .date p { font-size: 22px; }
  body.humuseduSite .noticeItem .simpleTxts { line-height: 22px; height: 44px; }
  body.humuseduSite .midBtnWrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
  body.humuseduSite .midBtnWrap a { min-height: 118px; padding: 10px 4px; font-size: 12px; border-radius: 14px; }
  body.humuseduSite .midBtnWrap a img { width: 42px; margin: 12px 0 5px; }
  body.humuseduSite .cardNewsWrap { margin-top: 36px; padding: 20px 0; }
  body.humuseduSite .cardNewsBox { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.humuseduSite .boardWrap { margin-top: 38px; }
  body.humuseduSite .leftArea, body.humuseduSite .rightArea { width: 100%; min-height: 0; margin: 0 0 14px; padding: 16px 16px 8px; float: none; }
  body.humuseduSite .boardWrap .areaTitle { font-size: 19px; }
  body.humuseduSite .boardWrap .wrap.mt15 { margin-top: 12px !important; }
  body.humuseduSite .boardWrap .wrap p { line-height: 22px; }
  body.humuseduSite .boardWrap .wrap p a { width: 72%; }
  body.humuseduSite .boardWrap .wrap p:not(.on) a { font-size: 14px; line-height: 22px; }
  body.humuseduSite .boardWrap .wrap p.on {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 8px; width: 100%; margin-bottom: 10px;
  }
  body.humuseduSite .boardWrap .wrap p.on a {
    min-width: 0; width: auto; font-size: 16px; line-height: 1.4;
  }
  body.humuseduSite .boardWrap .wrap p .date { font-size: 11px; line-height: 22px; }
  body.humuseduSite .boardWrap .wrap p.on .date {
    float: none; width: auto; text-align: right; white-space: nowrap;
    font-size: 13px; line-height: 1.35;
  }
  body.humuseduSite .csWrap { display: block; margin: 26px 0; }
  body.humuseduSite .csWrap a { width: 100%; margin-bottom: 10px; }
  body.humuseduSite #companyList { gap: 10px 14px; padding: 12px 10px; }
  body.humuseduSite #companyList a { max-width: 42%; }
  body.humuseduSite .bottomContents { padding: 0; }
  body.humuseduSite .bottomContents .inner > div, body.humuseduSite .companyInfo, body.humuseduSite .customerCenter { display: block; width: 100%; max-width: none; padding: 18px 0; }
  body.humuseduSite .companyInfo p { font-size: 12px; line-height: 1.7; word-break: keep-all; }
  body.humuseduSite .customerCenter { text-align: left; }
  body.humuseduSite .customerCenter a { font-size: 28px; }
  body.humuseduSite #allMenu { padding-top: 64px; }
  body.humuseduSite #allMenu .gnbMenuWrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.humuseduSite #allMenu .gnbMenu > a { font-size: 16px; line-height: 1.5; padding: 8px 0; }
  body.humuseduSite #allMenu .gnbMenu .allMenuGnbSubMenu a { height: auto; min-height: 34px; line-height: 1.5; padding: 6px 2px; }
  body.humuseduSite #allMenu .allMenuCloseBtn { position: fixed; top: 12px; right: 14px; z-index: 2; }
  body.humuseduSite .footerMenu { padding-bottom: 14px; }
  body.humuseduSite .footerMenu a { margin: 0 9px 8px; }
  body.humuseduSite .footerMenuWrap { left: 14px; bottom: 20px; }
  body.humuseduSite .boardSearch { display: flex; gap: 6px; align-items: center; }
  body.humuseduSite .boardSearch select { max-width: 35%; }
  body.humuseduSite .boardSearch .searchInputBox { min-width: 0; flex: 1; }
  body.humuseduSite .searchBtn { padding: 0 12px !important; }
  body.humuseduSite .boardType { display: block; width: 100%; overflow-x: auto; }
  body.humuseduSite .boardType table { min-width: 620px; }
  body.humuseduSite .boardContentsBox { padding: 18px 12px; overflow-wrap: anywhere; }
  body.humuseduSite .tabWrap .tabTitle li { width: 50%; }
  body.humuseduSite .tabWrap .tabTitle li a { font-size: 13px; }
  body.humuseduSite .contentsTitle { font-size: 21px; margin-bottom: 18px; }
  body.humuseduSite .formStyle input, body.humuseduSite .formStyle select, body.humuseduSite .formStyle textarea { max-width: 100%; box-sizing: border-box; }
  body.humuseduSite .consult table, body.humuseduSite .consult table tbody, body.humuseduSite .consult table tr { display: block; width: 100%; }
  body.humuseduSite .consult table tr { margin-bottom: 10px; }
  body.humuseduSite .consult table th, body.humuseduSite .consult table td { display: block; width: 100%; box-sizing: border-box; }
}
@media (max-width: 480px) {
  body.humuseduSite .inner, body.humuseduSite #container, body.humuseduSite .wideInner { width: calc(100% - 24px) !important; }
  body.humuseduSite .mainBtnItem .itemTit { font-size: 12px; }
  body.humuseduSite .mainTitle { font-size: 19px; }
  body.humuseduSite .midBtnWrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.humuseduSite .boardWrap .wrap p a { width: 68%; }
  body.humuseduSite .offlineEduForm { width: calc(100% - 20px); top: 2vh; height: 96vh; }
}
/* Breakpoint for medium desktop widths where the legacy 1500px header no longer fits. */
@media (min-width: 1280px) and (max-width: 1499px) {
  body.humuseduSite .gnb { min-width: 0 !important; }
  body.humuseduSite #menu, body.humuseduSite .gnb_ectMenu { display: none !important; }
  body.humuseduSite .mobileNavToggle {
    display: flex; position: absolute; right: 24px; top: 18px; width: 46px !important; height: 46px !important;
    padding: 10px; border: 1px solid #d6dce2; border-radius: 8px; background: #fff !important;
    flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; z-index: 4;
  }
  body.humuseduSite .mobileNavToggle span { display: block; width: 24px; height: 2px; margin: 0 auto; background: #273746; }
  body.humuseduSite .wideInner { width: 100%; max-width: 100%; }
  body.humuseduSite .mainSlideWrap { min-width: 0; }
}

@media (max-width: 1279px) {
  body.humuseduSite .wx1000, body.humuseduSite .wx800, body.humuseduSite .wx500,
  body.humuseduSite .wx400, body.humuseduSite .wx350, body.humuseduSite .wx342,
  body.humuseduSite .wx300, body.humuseduSite .wx250, body.humuseduSite .wp1000 {
    max-width: 100%; box-sizing: border-box;
  }
  body.humuseduSite .infoTxtBox { float: none; width: 100%; }
  body.humuseduSite .infoBox > .num.floatR {
    float: none !important; display: flex; align-items: center; gap: 10px;
    width: 100%; margin-bottom: 14px;
    font-size: clamp(36px, 8vw, 44px); line-height: 1.25;
  }
  body.humuseduSite .infoBox > .num.floatR > span {
    min-width: 0; margin: 0; font-size: clamp(18px, 4.5vw, 22px);
    line-height: 1.35; overflow-wrap: anywhere;
  }
  body.humuseduSite .infoBox .num > .screen {
    display: block; top: .77em; left: .83em;
    width: .625em; height: .3125em; pointer-events: none;
  }
  body.humuseduSite .infoBox .num > span { position: relative; z-index: 1; }
  body.humuseduSite .legalEduTypeBox { box-sizing: border-box; padding: 0 8px; }
  body.humuseduSite .legalEduTypeBox .txtBox { padding: 0 14px; }
  body.humuseduSite .scrollY, body.humuseduSite .wrap.courseType, body.humuseduSite .tbCourse { max-width: 100%; overflow-x: auto; }
  body.humuseduSite .contents.floatR { max-width: 100%; box-sizing: border-box; }
  body.humuseduSite iframe, body.humuseduSite video { max-width: 100%; }
  body.humuseduSite .slideMainPopupWrap { max-width: calc(100vw - 40px); right: 20px; }
  body.humuseduSite .slideMainPopupWrap .slideItem, body.humuseduSite .slideMainPopupNew { max-width: 100%; height: auto; }
  body.humuseduSite .slideMainPopupWrap img { max-width: 100%; height: auto; }
}

/* Keep all eight legal-education categories visible across tablet widths. */
@media (min-width: 768px) and (max-width: 1599px) {
  body.humuseduSite .tabWrap.legalEduType {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(4px, 0.65vw, 10px);
    width: 100%; height: auto; overflow: visible;
    box-sizing: border-box;
  }
  body.humuseduSite .tabWrap.legalEduType .mainCategory {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; min-width: 0; height: auto; min-height: 92px;
    margin: 0; padding: 7px 3px;
    font-size: clamp(10px, 1vw, 13px); line-height: 1.25;
    box-sizing: border-box;
  }
  body.humuseduSite .tabWrap.legalEduType .mainCategory img {
    width: clamp(22px, 2.1vw, 28px); height: auto;
  }
  body.humuseduSite .tabWrap.legalEduType .mainCategory br { display: none; }
  body.humuseduSite .tabWrap.legalEduType .cateName {
    display: block; width: 100%; height: auto; margin-top: 6px;
    word-break: keep-all; overflow-wrap: anywhere;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .infoTxtBox { padding: 0; }
  body.humuseduSite .pdt45.legalEduPage { padding-top: 24px !important; }
  body.humuseduSite .tabWrap.legalEduType {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    width: 100%; height: auto; overflow: visible; margin-bottom: 48px;
    padding-bottom: 0; box-sizing: border-box;
  }
  body.humuseduSite .tabWrap.legalEduType .mainCategory {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; min-width: 0; height: auto; min-height: 82px;
    margin: 0; padding: 5px 3px; font-size: clamp(10px, 2.6vw, 12px);
    line-height: 1.25; box-sizing: border-box;
  }
  body.humuseduSite .tabWrap.legalEduType .mainCategory img { width: 26px; height: auto; }
  body.humuseduSite .tabWrap.legalEduType .mainCategory br { display: none; }
  body.humuseduSite .tabWrap.legalEduType .cateName {
    display: block; width: 100%; height: auto; margin-top: 7px;
    overflow-wrap: anywhere; word-break: keep-all;
  }
  body.humuseduSite .subCategoryBox.noLine {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    height: auto; overflow: visible; box-sizing: border-box;
  }
  body.humuseduSite .subCategoryBox.noLine .mainCategory {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; min-width: 0; height: auto; min-height: 82px;
    margin: 0; padding: 5px 3px; box-sizing: border-box;
    font-size: clamp(10px, 2.6vw, 12px); line-height: 1.25;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  body.humuseduSite .subCategoryBox.noLine .mainCategory img {
    width: 26px; height: auto;
  }
  body.humuseduSite .subCategoryBox.noLine .mainCategory br { display: none; }
  body.humuseduSite .subCategoryBox.noLine .cateName {
    display: block; width: 100%; height: auto; margin-top: 7px;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  body.humuseduSite .studyInfoType .contentsTitle {
    padding-bottom: 8px; font-family: "GmarketSansM", sans-serif;
    font-weight: 700;
  }
  body.humuseduSite .studyInfoType .contentsTitle:has(> a.btn) {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center; gap: 8px;
    font-size: clamp(15px, 4vw, 18px); line-height: 1.3;
  }
  body.humuseduSite .studyInfoType .contentsTitle > img {
    width: 34px; height: 34px !important; margin: 0 !important;
    object-fit: contain;
  }
  body.humuseduSite .studyInfoType .contentsTitle > a.btn {
    display: inline-flex; float: none !important;
    align-items: center; justify-content: center;
    min-height: 34px; padding: 6px 8px;
    box-sizing: border-box; font-size: 12px; line-height: 1.2;
  }
  body.humuseduSite .legalEduPage .studyInfoType > .infoBox:first-child .infoTxtBox p.red.font16.bold {
    font-size: clamp(10px, 3vw, 13px) !important;
    line-height: 1.45; letter-spacing: -0.02em; white-space: nowrap;
  }
  body.humuseduSite .legalEduPage .studyInfoType .infoBox > .num {
    float: none !important; display: flex; align-items: center; gap: 10px;
    font-size: clamp(34px, 8vw, 44px); line-height: 1.2;
  }
  body.humuseduSite .legalEduPage .studyInfoType .infoBox > .num .setting {
    font-size: clamp(17px, 4.5vw, 22px); line-height: 1.3;
  }
  body.humuseduSite .legalEduPage .studyAudience {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
    width: 100% !important; height: auto !important; padding: 16px;
    box-sizing: border-box;
  }
  body.humuseduSite .legalEduPage .studyAudience > div {
    float: none !important; width: 100% !important; min-width: 0;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .legalEduPage .studyAudience > div + div {
    border-top: 1px solid #e6e6e6; padding-top: 12px;
  }
  body.humuseduSite .legalEduPage table.legalEduType tbody th[rowspan] {
    padding: 10px 4px; text-align: center !important;
    line-height: 1.4;
    white-space: normal; word-break: keep-all;
  }
  body.humuseduSite .legalEduPage table.legalEduType tbody th[rowspan] .circleBtn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin: 0 auto 7px; padding: 0;
    border-radius: 50%; font-size: inherit; white-space: nowrap;
  }
  body.humuseduSite .legalEduTypeBox { float: none; width: 100%; margin: 0 0 16px; }
  body.humuseduSite .infoBox .num { float: none; }
  body.humuseduSite .infoBox .num span.setting { display: inline-block; }
  body.humuseduSite .halfLeft, body.humuseduSite .halfRight { float: none; width: 100%; padding: 0; }
  body.humuseduSite .wrap.registerType, body.humuseduSite .wrap.memberInfoType, body.humuseduSite .wrap.findType {
    position: relative; top: auto; left: auto; width: 100%; height: auto; margin: 20px auto;
  }
  body.humuseduSite .areaBox > .wrap { position: relative; top: auto; left: auto; width: calc(100% - 28px); height: auto; margin: 24px auto; }
  body.humuseduSite .loginBox { height: auto; }
  body.humuseduSite .login, body.humuseduSite .loginAdBox { float: none; width: 100%; height: auto; }
  body.humuseduSite .login { padding: 22px; }
  body.humuseduSite .loginAdBox { min-height: 220px; border-radius: 0 0 5px 5px; }
  body.humuseduSite .login .description { margin-top: 28px; }
  body.humuseduSite .findTab, body.humuseduSite .findResultBox { width: 100%; }
  body.humuseduSite .findArea { padding: 20px; min-height: 0; }
  body.humuseduSite .findBoxWrap { padding: 18px; }
  body.humuseduSite .findForm div { width: 100%; padding: 16px 0; box-sizing: border-box; }
  body.humuseduSite .contentsWrap { padding: 16px; }
  body.humuseduSite .wrap.join2 > div { float: none; width: 100%; height: auto; min-height: 180px; margin: 8px 0; }
  body.humuseduSite .subTab a { width: auto; min-width: 96px; margin: 2px; padding: 0 8px; }
  body.humuseduSite .rowTxt { padding: 14px; }
  body.humuseduSite .study_process ul { background-size: 70px; padding-left: 80px; }
  body.humuseduSite .study_process ul li { height: auto; min-height: 80px; margin-bottom: 18px; padding: 16px; border-radius: 24px; }
  body.humuseduSite .businessType .stepWrap { height: auto; background-size: cover; background-position: center; }
  body.humuseduSite .businessType .step { width: 50%; min-height: 64px; }
  body.humuseduSite .infoContent { width: 50%; height: auto; min-height: 220px; }
}

@media (max-width: 1279px) {
  body.humuseduSite .wideInner { width: 100% !important; max-width: 100%; }
  body.humuseduSite #container .inner { width: 100% !important; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  body.humuseduSite #companyList { display: flex; height: auto; padding: 12px 16px; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 18px; box-sizing: border-box; }
  body.humuseduSite #companyList a { display: flex; float: none; width: auto; max-width: 16%; min-height: 46px; margin: 0; line-height: normal; align-items: center; justify-content: center; }
  body.humuseduSite #companyList a img { max-width: 100%; height: auto; max-height: 40px; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.humuseduSite .midSlideItem { width: calc((100% - 36px) / 3) !important; margin: 0 6px; }
  body.humuseduSite #allMenu .gnbMenu > a { line-height: 1.5; padding: 8px 0; }
  body.humuseduSite #allMenu .gnbMenu .allMenuGnbSubMenu a { height: auto; min-height: 34px; line-height: 1.5; padding: 6px 2px; }
}
@media (max-width: 767px) {
  body.humuseduSite .midSlideItem { margin: 0 auto; float: none; }
}

@media (min-width: 1280px) and (max-width: 1499px) {
  body.humuseduSite .gnb + .mainSlideWrap { margin-top: 92px; }
}
@media (max-width: 1279px) {
  body.humuseduSite .gnb + .mainSlideWrap { margin-top: 76px; }
}
@media (max-width: 767px) {
  body.humuseduSite .gnb + .mainSlideWrap { margin-top: 68px; }
}
/* Keep the stacked logo fully inside the responsive header at every breakpoint. */
@media (min-width: 1280px) and (max-width: 1499px) {
  body.humuseduSite .mainLogo {
    width: 110px;
    height: 70px;
    left: 24px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
}
@media (max-width: 1279px) {
  body.humuseduSite .mainLogo {
    width: 96px;
    height: 60px;
    left: 20px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
}
@media (max-width: 767px) {
  body.humuseduSite .mainLogo {
    width: 88px;
    height: 55px;
    left: 14px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
}
@media (max-width: 480px) {
  body.humuseduSite .mainLogo {
    width: 80px;
    height: 50px;
    left: 12px;
  }
}
@media (max-width: 1499px) {
  body.humuseduSite .mainLogo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

/* Explicitly expose and center the hamburger control in tablet and mobile headers. */
@media (max-width: 1599px) {
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #d6dce2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 30 !important;
    cursor: pointer;
  }
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu > span {
    display: block !important;
    flex: 0 0 2px;
    width: 24px !important;
    height: 2px !important;
    min-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 2px;
    background: #273746 !important;
  }
}
@media (max-width: 767px) {
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu > span { width: 22px !important; }
}
@media (max-width: 480px) {
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu > span { width: 20px !important; }
}

/* Keep the hamburger inside the actual header width, including embedded mobile previews. */
@media (min-width: 1280px) and (max-width: 1499px), (max-width: 1279px) {
  body.humuseduSite .gnb {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 4 !important;
  }
}
@media (max-width: 767px) {
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu { right: 14px !important; }
}
@media (max-width: 480px) {
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu { right: 12px !important; }
}

/* The legacy mobile-version link used a fixed 500px width and could widen narrow pages. */
@media (max-width: 1279px) {
  body.humuseduSite .mobileVersionLink {
    width: 100%;
    max-width: 100vw;
    padding: 12px 14px;
    box-sizing: border-box;
    overflow: hidden;
  }
  body.humuseduSite .mobileVersionLinkBtn {
    display: block;
    width: 100% !important;
    max-width: 500px;
    height: auto !important;
    min-height: 52px;
    margin: 0 auto;
    padding: 12px 16px !important;
    box-sizing: border-box;
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
}
@media (max-width: 480px) {
  body.humuseduSite .mobileVersionLinkBtn { font-size: 16px !important; }
}

/* Mobile and tablet navigation drawer with a styled accordion menu. */
@media (max-width: 1599px) {
  body.humuseduSite.menuOpen { overflow: hidden !important; }
  body.humuseduSite #allMenu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    background: rgba(14, 29, 43, 0.46);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
  }
  body.humuseduSite #allMenu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  body.humuseduSite #allMenu > .inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 88vw !important;
    max-width: 420px;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    padding: 18px 24px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    color: #17364c;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.2);
    transform: translate3d(102%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  body.humuseduSite #allMenu.is-open > .inner { transform: translate3d(0, 0, 0); }
  body.humuseduSite #allMenu .allMenuHeader {
    position: relative;
    display: block;
    height: 64px;
    min-height: 64px;
    margin-bottom: 8px;
    padding: 0;
    border-bottom: 2px solid #0a98a5;
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu .allMenuTitle {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    color: #17364c;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    transform: translateY(-50%);
  }
  body.humuseduSite #allMenu button.allMenuCloseBtn {
    appearance: none;
    -webkit-appearance: none;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: block !important;
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid #d4e0e6;
    border-radius: 10px;
    color: #17364c;
    background: #f4f8fa;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1 !important;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu button.allMenuCloseBtn > span {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1 !important;
    transform: none !important;
  }
  body.humuseduSite #allMenu .allMenuCloseBtn:hover,
  body.humuseduSite #allMenu .allMenuCloseBtn:focus-visible {
    border-color: #0a98a5;
    color: #087e89;
    background: #eaf7f8;
  }
  body.humuseduSite #allMenu .gnbMenuWrap {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  body.humuseduSite #allMenu .gnbMenu {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e2e9ed;
  }
  body.humuseduSite #allMenu .gnbMenu > .allMenuParent,
  body.humuseduSite #allMenu .gnbMenu > .allMenuUtility {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 13px 4px;
    border: 0;
    color: #17364c;
    text-align: left;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    box-sizing: border-box;
    transition: color 0.18s ease, background 0.18s ease;
  }
  body.humuseduSite #allMenu .allMenuLabel {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
  }
  body.humuseduSite #allMenu .allMenuIcon {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
  body.humuseduSite #allMenu .gnbMenu.has-submenu > .allMenuParent { cursor: pointer; }
  body.humuseduSite #allMenu .gnbMenu.is-expanded > .allMenuParent,
  body.humuseduSite #allMenu .gnbMenu > .allMenuParent:hover,
  body.humuseduSite #allMenu .gnbMenu > .allMenuUtility:hover,
  body.humuseduSite #allMenu .gnbMenu > .allMenuUtility:focus-visible { color: #087e89; }
  body.humuseduSite #allMenu .allMenuAccountActions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 10px 0 8px;
    padding: 0 4px;
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuAction {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 42px;
    padding: 0;
    border: 1px solid #0a98a5;
    border-radius: 8px;
    color: #087e89;
    background: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    box-sizing: border-box;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuActionLabel {
    position: absolute;
    top: calc(50% + 1px);
    left: 0;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-align: center;
    transform: translateY(-50%);
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuLogin,
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuLogout {
    border-color: #087e89;
    color: #fff;
    background: #087e89;
  }
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuAction:hover,
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuAction:focus-visible {
    border-color: #075d68;
    color: #fff;
    background: #075d68;
  }
  body.humuseduSite #allMenu .menuAccordionIcon {
    display: block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin: -5px 5px 0 0;
    border-right: 2px solid #758895;
    border-bottom: 2px solid #758895;
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  body.humuseduSite #allMenu .gnbMenu.is-expanded .menuAccordionIcon {
    margin-top: 5px;
    border-color: #087e89;
    transform: rotate(225deg);
  }
  body.humuseduSite #allMenu .allMenuSubMenuWrap {
    display: none;
    width: 100%;
    padding: 0 0 6px 12px;
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu .gnbMenu .allMenuGnbSubMenu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu .gnbMenu .allMenuGnbSubMenu a {
    display: block;
    width: 100%;
    min-height: 36px;
    height: auto;
    margin: 0;
    padding: 7px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 7px 7px 0;
    color: #526979;
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    box-sizing: border-box;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }
  body.humuseduSite #allMenu .gnbMenu .allMenuGnbSubMenu a:hover,
  body.humuseduSite #allMenu .gnbMenu .allMenuGnbSubMenu a:focus-visible {
    border-left-color: #0a98a5;
    color: #087e89;
    background: #eff9fa;
  }
  body.humuseduSite #allMenu .footerMenuWrap {
    position: static;
    width: 100% !important;
    margin-top: auto;
    padding-top: 22px;
    box-sizing: border-box;
  }
  body.humuseduSite #allMenu .footerMenuWrap > .center { padding-top: 18px !important; }
  body.humuseduSite #allMenu .footerMenuWrap > .center img { width: 100px; height: auto; }
}
@media (max-width: 767px) {
  body.humuseduSite #allMenu > .inner { padding: 14px 20px 20px; }
  body.humuseduSite #allMenu .allMenuHeader { height: 60px; min-height: 60px; }
  body.humuseduSite #allMenu .allMenuTitle { font-size: 18px; }
  body.humuseduSite #allMenu .gnbMenu > .allMenuParent, body.humuseduSite #allMenu .gnbMenu > .allMenuUtility { min-height: 49px; font-size: 16px; }
  body.humuseduSite #allMenu .allMenuIcon { flex-basis: 20px; width: 20px; height: 20px; }
  body.humuseduSite #allMenu .allMenuAccountActions { gap: 8px; margin-top: 8px; }
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuAction { min-height: 40px; font-size: 15px; }
}
@media (max-width: 480px) {
  body.humuseduSite #allMenu > .inner { width: 90vw !important; padding: 12px 17px 18px; }
  body.humuseduSite #allMenu .allMenuHeader { height: 54px; min-height: 54px; }
  body.humuseduSite #allMenu button.allMenuCloseBtn { flex-basis: 38px; width: 38px !important; min-width: 38px !important; height: 38px !important; min-height: 38px !important; }
  body.humuseduSite #allMenu .allMenuIcon { flex-basis: 19px; width: 19px; height: 19px; }
  body.humuseduSite #allMenu .allMenuAccountActions { gap: 7px; padding: 0 2px; }
  body.humuseduSite #allMenu .allMenuAccountActions .allMenuAction { padding: 0; font-size: 14px; }
  body.humuseduSite #allMenu .gnbMenu > .allMenuParent { min-height: 47px; padding: 11px 3px; }
}
/* Vertically and horizontally center labels across button controls and link-buttons. */
body.humuseduSite button,
body.humuseduSite input[type="button"],
body.humuseduSite input[type="submit"],
body.humuseduSite input[type="reset"],
body.humuseduSite .btn,
body.humuseduSite .allCourseGoBtn,
body.humuseduSite .mainSlideBtn,
body.humuseduSite .mainLinkBtn,
body.humuseduSite .searchBtn,
body.humuseduSite .manualBtn,
body.humuseduSite .subTab a,
body.humuseduSite .tabWrap .tabTitle li a,
body.humuseduSite .divisionBtn,
body.humuseduSite .circleBtn,
body.humuseduSite .mainPopupBtn,
body.humuseduSite .mainPopupCloseBtn,
body.humuseduSite .allMenuCloseBtn,
body.humuseduSite .closeBtn1,
body.humuseduSite #btnFindZipcodeOff,
body.humuseduSite #btnFindZipcode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.3;
}

/* Postcode search layer: keep its header controls centered and dim the page beneath it. */
#searchZipcodeBox .searchZipcodeTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  margin: 0;
  padding: 5px 10px;
  box-sizing: border-box;
  font-weight: 700;
}
#searchZipcodeBox .modalCloseBtn {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  float: none;
  width: 24px;
  height: 24px;
  margin: 0 0 0 12px;
  padding: 0;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
#dim.zipcodeLayerDim {
  display: block !important;
  z-index: 2147483646 !important;
  pointer-events: auto !important;
}

/* Preserve the gap after the consent row, whose right-aligned label floats. */
body.humuseduSite .offlineEduForm #ConsultOffForm .consultSubmitRow {
  clear: both;
  margin-top: 0 !important;
  padding-top: 20px !important;
}

@media (max-width: 767px) {
  #searchZipcodeBox {
    top: 50% !important;
    left: 50% !important;
    width: min(400px, calc(100vw - 24px)) !important;
    height: min(530px, calc(100vh - 24px)) !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box;
  }
}

/* Phone consultation: an edge-to-edge surface with consistently sized fields. */
@media (max-width: 767px) {
  html.consultationOpen,
  body.humuseduSite.consultationOpen { overflow: hidden !important; }
  body.humuseduSite .offlineEduForm {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm > .wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .popupTitle {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .popupTitle .closeBtn1 {
    position: relative;
    flex: 0 0 28px;
    float: none;
    width: 28px;
    height: 28px;
    margin-left: auto;
    padding: 0;
    font-size: 0;
    line-height: 1;
  }
  body.humuseduSite .offlineEduForm .popupTitle .closeBtn1::before,
  body.humuseduSite .offlineEduForm .popupTitle .closeBtn1::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  body.humuseduSite .offlineEduForm .popupTitle .closeBtn1::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  body.humuseduSite .offlineEduForm .consult.eduConsultType { padding: 12px 16px 20px; }
  body.humuseduSite .offlineEduForm .consult table {
    display: block;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
  }
  body.humuseduSite .offlineEduForm .consult table tbody {
    display: grid;
    grid-template-columns: minmax(88px, 28%) minmax(0, 1fr);
    width: 100%;
  }
  body.humuseduSite .offlineEduForm .consult table tr {
    display: contents;
    width: 100%;
    margin: 0 !important;
  }
  body.humuseduSite .offlineEduForm .consult table th,
  body.humuseduSite .offlineEduForm .consult table td {
    display: flex;
    align-items: center;
    width: auto !important;
    min-width: 0;
    padding: 8px 10px;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .consult table th {
    grid-column: 1;
    justify-content: center;
    text-align: center !important;
  }
  body.humuseduSite .offlineEduForm .consult table th[rowspan="2"] {
    grid-row: span 2;
  }
  body.humuseduSite .offlineEduForm .consult .consultPolicyLabel > span {
    display: block;
    white-space: nowrap;
    line-height: 1.5;
  }
  body.humuseduSite .offlineEduForm .consult table td,
  body.humuseduSite .offlineEduForm .consult table td[colspan] {
    grid-column: 2;
  }
  body.humuseduSite .offlineEduForm .consult input[type="text"] {
    display: block;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px;
    margin: 0 auto;
    padding: 0 10px;
    font-size: 14px;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .consult textarea,
  body.humuseduSite .offlineEduForm .consult .textareaBox {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .consult .consultPhoneRow,
  body.humuseduSite .offlineEduForm .consult .consultZipcodeRow,
  body.humuseduSite .offlineEduForm .consult .consultAddressRow {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.humuseduSite .offlineEduForm .consult .consultPhoneRow input[type="text"],
  body.humuseduSite .offlineEduForm .consult .consultZipcodeRow input[type="text"] {
    flex: 1 1 0;
    width: 0 !important;
    min-width: 0;
    margin: 0;
  }
  body.humuseduSite .offlineEduForm .consult .consultPhoneRow input[type="text"] { text-align: center; }
  body.humuseduSite .offlineEduForm .consult .consultPhoneRow > span { flex: 0 0 auto; }
  body.humuseduSite .offlineEduForm .consult .consultAddressRow { flex-direction: column; }
  body.humuseduSite .offlineEduForm #btnFindZipcodeOff {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
  }
}

/* Match consultation text fields to the 34px postcode button on tablet widths. */
@media (min-width: 768px) and (max-width: 1599px) {
  body.humuseduSite .offlineEduForm .consult input[type="text"] {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .consult table td > input.wp94,
  body.humuseduSite .offlineEduForm .consult table td > input.wp98,
  body.humuseduSite .offlineEduForm .consult table td > textarea,
  body.humuseduSite .offlineEduForm .consult table td > .textareaBox {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  body.humuseduSite .offlineEduForm .consult .consultPhoneRow input[type="text"] {
    width: 56px;
  }
  body.humuseduSite .offlineEduForm .consult .consultZipcodeRow #cstZipcode {
    width: 76px;
  }
  body.humuseduSite .offlineEduForm .consult .consultAddressRow {
    display: table-cell;
    white-space: nowrap;
    font-size: 0;
  }
  body.humuseduSite .offlineEduForm .consult .consultAddressRow #cstAddress1 {
    width: calc(100% - 206px) !important;
  }
  body.humuseduSite .offlineEduForm .consult .consultAddressRow #cstAddress2 {
    width: 200px !important;
    margin-left: 6px;
  }
}

/* Tablet: retain the desktop home-page composition while scaling it to the viewport. */
@media (min-width: 600px) and (max-width: 1599px) {
  body.humuseduSite { min-width: 0 !important; overflow-x: hidden; }
  body.humuseduSite .inner,
  body.humuseduSite #container,
  body.humuseduSite .wideInner,
  body.humuseduSite .gnb,
  body.humuseduSite .footerMenuWrap {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.humuseduSite header .gnb { height: 76px; }
  body.humuseduSite .mainLogo {
    width: clamp(92px, 9vw, 108px);
    height: auto;
    left: clamp(14px, 1.6vw, 24px);
    top: calc(50% + 2px);
    margin: 0;
    transform: translateY(-50%);
  }
  body.humuseduSite .mainLogo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 69px;
    object-fit: contain;
  }
  body.humuseduSite #menu,
  body.humuseduSite .gnb_ectMenu { display: none !important; }
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 10px !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 30 !important;
  }
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu > span {
    display: block !important;
    flex: 0 0 2px;
    width: 24px !important;
    height: 2px !important;
    margin: 0 !important;
    background: #273746 !important;
  }

  /* Keep the existing right-to-left drawer at a tablet-friendly width. */
  body.humuseduSite #allMenu > .inner {
    width: min(460px, 60vw) !important;
    max-width: 460px;
  }

  /* The eight course cards keep the four-column desktop layout and original image ratio. */
  body.humuseduSite .mainBtnWrap {
    margin-top: 76px;
    padding-top: clamp(24px, 3vw, 38px);
  }
  body.humuseduSite .mainBtnWrap .wideInner {
    width: 100% !important;
    max-width: 1400px;
    margin: 0 auto;
    background-position: center 30px;
    background-size: contain;
  }
  body.humuseduSite .mainBtnWrap .wideInner > .inner {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px;
    margin: 0 auto;
  }
  body.humuseduSite .mainBtnBox {
    display: grid;
    float: none;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 18px);
  }
  body.humuseduSite .mainBtnBox > p {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    text-align: right;
  }
  body.humuseduSite .mainBtnItem {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 238 / 158;
    margin: 0;
    border-radius: 16px;
  }
  body.humuseduSite .mainBtnItem > a,
  body.humuseduSite .mainBtnItem img {
    display: block;
    width: 100%;
    height: 100%;
  }
  body.humuseduSite .mainBtnItem img { object-fit: cover; }
  body.humuseduSite .mainBtnItem .itemTit { font-size: clamp(13px, 1.35vw, 17px); }
  body.humuseduSite .mainBtnItem .warning {
    display: block;
    font-size: clamp(10px, 1vw, 12px);
    line-height: 1.35;
  }
  body.humuseduSite .mainSlideWrap {
    width: 100%;
    min-width: 0;
    margin-top: clamp(24px, 3vw, 40px);
  }
  body.humuseduSite .mainSlideBox,
  body.humuseduSite .mainSlide { width: 100%; }
  body.humuseduSite .mainSlide img { display: block; width: 100%; height: auto; }
  body.humuseduSite .mainSlideBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: 50%;
    width: clamp(128px, 12vw, 150px);
    transform: translateX(-50%);
    line-height: 1.2;
    font-size: clamp(14px, 1.5vw, 18px);
  }

  /* Keep the notice title beside its cards, as on desktop. */
  body.humuseduSite .mainBtnWrap + .inner {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px;
    margin: 0 auto;
  }
  body.humuseduSite .noticeWrap {
    display: grid;
    grid-template-columns: minmax(132px, 17%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    margin-top: clamp(38px, 5vw, 70px) !important;
  }
  body.humuseduSite .noticeTitle {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    font-size: clamp(24px, 2.8vw, 36px);
  }
  body.humuseduSite .noticeTitle .mainLinkBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(94px, 10vw, 120px);
    height: auto;
    aspect-ratio: 1;
    margin: 8px 0 0;
    font-size: clamp(12px, 1.2vw, 15px);
    line-height: 1.3;
  }
  body.humuseduSite .noticeBox {
    display: grid;
    float: none;
    width: auto;
    height: auto;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.humuseduSite .noticeItem {
    display: block;
    float: none;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 76px;
    margin: 8px 0 12px 24px;
    padding: 14px 12px 14px 48px;
    border-radius: 16px;
  }
  body.humuseduSite .noticeItem .date {
    top: -4px;
    left: -28px;
    width: 64px;
    height: 64px;
    padding: 12px 0;
    font-size: 11px;
  }
  body.humuseduSite .noticeItem .date p { font-size: 23px; }
  body.humuseduSite .noticeItem .simpleTxts { height: auto; min-height: 44px; line-height: 22px; }

  /* Preserve the five circular shortcuts and three-card row. */
  body.humuseduSite .midBtnWrap {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 14px);
    margin-top: clamp(32px, 4vw, 50px);
  }
  body.humuseduSite .midBtnWrap a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    margin: 0;
    padding: 12px 8px;
    border-radius: 50%;
    font-size: clamp(11px, 1.15vw, 15px);
  }
  body.humuseduSite .midBtnWrap a br { display: none; }
  body.humuseduSite .midBtnWrap a img {
    width: clamp(38px, 4.2vw, 56px);
    height: auto;
    margin: 0;
  }
  body.humuseduSite .cardNewsWrap {
    height: auto;
    min-height: 0;
    margin-top: clamp(42px, 5.5vw, 70px);
    padding: 24px 0;
    text-align: right;
  }
  body.humuseduSite .cardNewsWrap .wideInner {
    width: 100% !important;
    max-width: 1400px;
    background-position: left center;
    background-size: auto 100%;
  }
  body.humuseduSite .cardNewsWrap .inner {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px;
    margin: 0 auto;
  }
  body.humuseduSite .cardNewsWrap .mainLinkBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: clamp(94px, 10vw, 120px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 0 14px;
    line-height: 1.3;
  }
  body.humuseduSite .cardNewsBox {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    text-align: center;
  }
  body.humuseduSite .cardNewsItem {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 16px;
  }
  body.humuseduSite .cardNewsItem img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
  body.humuseduSite .boardWrap { margin-top: clamp(72px, 8vw, 120px); }
  body.humuseduSite .boardWrap > .inner {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px;
    margin: 0 auto;
  }
  body.humuseduSite .boardWrap .leftArea,
  body.humuseduSite .boardWrap .rightArea {
    width: calc(50% - 12px);
    height: auto;
    min-height: 300px;
    margin: 0;
    padding: clamp(18px, 2.4vw, 30px);
  }
  body.humuseduSite .boardWrap .leftArea { float: left; }
  body.humuseduSite .boardWrap .rightArea { float: right; }
  body.humuseduSite .csWrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: clamp(36px, 5vw, 70px) 0;
  }
  body.humuseduSite .csWrap a {
    display: block;
    float: none;
    width: auto !important;
    height: auto;
  }
  body.humuseduSite .csWrap a img { display: block; width: 100%; height: auto; }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  body.humuseduSite .noticeBox { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Keep the menu button within the visible header in wide tablet previews. */
@media (min-width: 1500px) and (max-width: 1599px) {
  body.humuseduSite header .gnb > button.mobileNavToggle.allMenu {
    position: fixed !important;
    top: 14px !important;
    right: 20px !important;
    left: auto !important;
    transform: none !important;
  }
}

/* Partner logos stay static on wide screens and scroll in one row when space is limited. */
body.humuseduSite #companyList .companyListTrack,
body.humuseduSite #companyList .companyListGroup { display: contents; }
body.humuseduSite #companyList .companyListClone { display: none; }

@keyframes humuseduCompanyScroll {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 1799px) {
  body.humuseduSite #companyList {
    display: block;
    height: 76px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
  }
  body.humuseduSite #companyList .companyListTrack {
    display: flex;
    width: max-content;
    height: 100%;
    animation: humuseduCompanyScroll 26s linear infinite;
    will-change: transform;
  }
  body.humuseduSite #companyList .companyListGroup,
  body.humuseduSite #companyList .companyListClone {
    display: flex;
    flex: none;
    align-items: center;
    width: max-content;
    height: 100%;
    gap: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
  body.humuseduSite #companyList .companyListGroup a {
    display: flex;
    float: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: clamp(136px, 14vw, 188px);
    max-width: none;
    min-height: 0;
    height: 100%;
    margin: 0;
    line-height: normal;
  }
  body.humuseduSite #companyList .companyListGroup img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
  }
  body.humuseduSite #companyList:hover .companyListTrack,
  body.humuseduSite #companyList:focus-within .companyListTrack { animation-play-state: paused; }
}

@media (max-width: 1799px) and (prefers-reduced-motion: reduce) {
  body.humuseduSite #companyList { overflow-x: auto; }
  body.humuseduSite #companyList .companyListTrack { animation: none; }
}

/* Match the desktop notice composition: the circle sits behind the heading. */
@media (min-width: 1600px) {
  body.humuseduSite .noticeTitle p {
    position: relative;
    z-index: 2;
  }
  body.humuseduSite .noticeTitle .mainLinkBtn {
    display: block;
    position: relative;
    z-index: 1;
    margin: -52px 0 0 21px;
    line-height: 150px;
  }
}

/* Keep the original card layout on wide screens; the wrapper is used for mobile slides. */
body.humuseduSite .mainCourseCarousel,
body.humuseduSite .mainCourseCarousel .coursePair { display: contents; }

@media (max-width: 599px) {
  body.humuseduSite .mainBtnWrap > .mainSlideWrap { display: none; }
  body.humuseduSite .mainBtnWrap .wideInner {
    position: relative;
    padding-bottom: 24px;
    background-image: none;
  }
  body.humuseduSite .mainBtnWrap .wideInner::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 12px;
    width: 132px;
    height: 142px;
    background: url("../Images/mainBtnBg1.png") no-repeat center / contain;
    opacity: 1;
    pointer-events: none;
  }
  body.humuseduSite .mainBtnWrap .wideInner > .inner { position: relative; }
  body.humuseduSite .mainCourseCarousel {
    position: relative;
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 72px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    box-sizing: border-box;
  }
  body.humuseduSite .mainCourseCarousel::-webkit-scrollbar { display: none; }
  body.humuseduSite .mainCourseCarousel .coursePair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 5px;
    border: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem {
    float: none;
    width: 100%;
    min-width: 0;
    height: clamp(140px, 34vw, 175px);
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    box-sizing: border-box;
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem .cover,
  body.humuseduSite .mainCourseCarousel .mainBtnItem:hover .cover {
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 30%, rgba(0, 0, 0, 0.83) 100%);
    border-radius: 12px;
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem .itemTxt,
  body.humuseduSite .mainCourseCarousel .mainBtnItem:hover .itemTxt {
    top: auto;
    bottom: 8px;
    left: 0;
    z-index: 2;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem .itemTit {
    font-size: clamp(11px, 2.8vw, 14px);
    line-height: 1.25;
  }
  body.humuseduSite .mainCourseCarousel .mainBtnItem .warning,
  body.humuseduSite .mainCourseCarousel .mainBtnItem:hover .warning {
    display: -webkit-box;
    position: static;
    bottom: auto;
    margin-top: 4px;
    padding: 0;
    font-size: clamp(9px, 2.1vw, 11px);
    line-height: 1.3;
    min-height: 2.6em;
    color: #ffe46b;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .courseDots {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2px 0 0;
    padding: 0;
  }
  body.humuseduSite .courseDots button {
    display: block;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
  }
  body.humuseduSite .courseDots button[aria-current="true"] {
    background: #fff;
  }
  body.humuseduSite .courseDots button:focus-visible {
    outline: 2px solid #007d91;
    outline-offset: 3px;
  }
}

/* Mobile notices stay in normal flow below the course carousel. */
@media (max-width: 599px) {
  body.humuseduSite .noticeWrap {
    display: block;
    clear: both;
    overflow: visible;
    margin-top: 48px !important;
  }
  body.humuseduSite .noticeTitle {
    display: flex;
    float: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce5e9;
    font-size: 22px;
    line-height: 1.4;
    box-sizing: border-box;
  }
  body.humuseduSite .noticeTitle > p {
    position: static;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding-left: 8px;
    background: radial-gradient(circle at 21px 50%, #d1edf0 0 21px, transparent 21.5px) no-repeat;
    color: #193d49;
    line-height: 1;
  }
  body.humuseduSite .noticeTitle .mainLinkBtn {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 36px;
    margin: 0 0 0 auto;
    padding: 0 12px;
    border: 0;
    border-radius: 18px;
    background: #ffebe5;
    color: #9e4827;
    font-size: 13px;
    line-height: 1;
  }
  body.humuseduSite .noticeBox {
    display: flex;
    flex-direction: column;
    float: none;
    gap: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }
  body.humuseduSite .noticeItem {
    display: flex;
    float: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 56px;
    margin: 0;
    padding: 12px 2px;
    border: 0;
    border-bottom: 1px solid #dce5e9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
  }
  body.humuseduSite .noticeItem:hover { border-bottom-color: #ffb895; }
  body.humuseduSite .noticeItem .simpleTxts {
    display: block;
    order: 1;
    flex: 1 1 0;
    align-self: center;
    min-width: 0;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.4;
  }
  body.humuseduSite .noticeItem .date,
  body.humuseduSite .noticeItem:hover .date {
    position: static;
    display: inline-flex;
    order: 2;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 28px;
    margin: 0;
    padding: 5px 8px;
    border-radius: 18px;
    background: #d1edf0;
    color: #315564;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  body.humuseduSite .noticeItem .date p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0;
  }
  body.humuseduSite .noticeItem .date p::before { content: "."; }
  body.humuseduSite .noticeItem:hover .date {
    background: #ffebe5;
    color: #9e4827;
  }
  body.humuseduSite .noticeItem:focus-visible,
  body.humuseduSite .noticeTitle .mainLinkBtn:focus-visible {
    outline: 2px solid #009aac;
    outline-offset: 2px;
  }
}

/* Keep all five main shortcuts visible in one mobile row. */
@media (max-width: 599px) {
  body.humuseduSite .midBtnWrap {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  body.humuseduSite .midBtnWrap a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 82px;
    margin: 0;
    padding: 5px 2px 3px;
    border: 0;
    border-radius: 12px;
    background: #fbfbfb;
    box-sizing: border-box;
    color: #9e4827;
    font-size: clamp(10px, 2.5vw, 11px);
    line-height: 1.25;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .midBtnWrap a br { display: none; }
  body.humuseduSite .midBtnWrap a img {
    display: block;
    width: clamp(24px, 7vw, 30px);
    height: auto;
    max-height: 30px;
    margin: 0;
    object-fit: contain;
  }
  body.humuseduSite .midBtnWrap .midBtnLabel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 100%;
    height: 36px;
    padding: 5px 1px 1px;
    border-radius: 8px;
    background: #ffebe5;
    box-sizing: border-box;
    color: #9e4827;
    font-family: "GmarketSansM", sans-serif;
    line-height: 1.2;
    text-align: center;
  }
}

/* Match the mobile course section and slide card news one item per step. */
@media (max-width: 599px) {
  body.humuseduSite .cardNewsWrap {
    position: relative;
    margin-top: 36px;
    padding: 18px 0 24px;
    overflow: hidden;
    background: #d1edf0;
    text-align: right;
  }
  body.humuseduSite .cardNewsWrap .wideInner {
    position: relative;
    width: 100% !important;
    max-width: none;
    background: none;
  }
  body.humuseduSite .cardNewsWrap .wideInner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    width: 132px;
    height: 142px;
    background: url("../Images/cardNewsBg.png") no-repeat center / contain;
    pointer-events: none;
  }
  body.humuseduSite .cardNewsWrap .inner { position: relative; z-index: 1; }
  body.humuseduSite .cardNewsWrap .mainLinkBtn {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 38px;
    aspect-ratio: auto;
    margin: 0;
    padding: 0 14px;
    border-radius: 12px;
    background: #ff7800;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    box-sizing: border-box;
  }
  body.humuseduSite .cardNewsBox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 92px;
    text-align: left;
  }
  body.humuseduSite .cardNewsBox.slick-initialized { display: block; }
  body.humuseduSite .cardNewsBox .slick-list { overflow: hidden; }
  body.humuseduSite .cardNewsBox .slick-slide {
    padding: 0;
    box-sizing: border-box;
  }
  body.humuseduSite .cardNewsBox .cardNewsItem {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
  }
  body.humuseduSite .cardNewsBox .cardNewsItem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  body.humuseduSite .cardNewsBox.slick-initialized .cardNewsItem {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
  }
  body.humuseduSite .cardNewsBox.slick-initialized .cardNewsItem img {
    width: calc(100% - 10px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 5px;
  }
  body.humuseduSite .cardNewsBox .slick-dots {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
  }
  body.humuseduSite .cardNewsBox .slick-dots li {
    width: 18px;
    height: 18px;
    margin: 0;
  }
  body.humuseduSite .cardNewsBox .slick-dots button {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    box-sizing: border-box;
  }
  body.humuseduSite .cardNewsBox .slick-dots button::before { display: none; }
  body.humuseduSite .cardNewsBox .slick-dots li.slick-active button { background: #fff; }
  body.humuseduSite .cardNewsBox .slick-dots button:focus-visible {
    outline: 2px solid #007d91;
    outline-offset: 3px;
  }
}

/* The shared wp50 utility must not halve stacked mobile support banners. */
@media (max-width: 599px) {
  body.humuseduSite .boardWrap .csWrap > a.wp50 {
    display: block;
    width: 100% !important;
  }
  body.humuseduSite .boardWrap .csWrap > a.wp50 img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* Keep the LMS subtitle on one line and fill each mobile card's available width. */
@media (max-width: 599px) {
  body.humuseduSite .lmsInfoPage .lmsTitleMain,
  body.humuseduSite .lmsInfoPage .lmsTitleSub { display: block; }
  body.humuseduSite .lmsInfoPage .lmsTitleMain {
    font-size: 24px;
    line-height: 1.3;
  }
  body.humuseduSite .lmsInfoPage .lmsTitleSub {
    margin-top: 4px;
    font-size: min(15px, 3vw);
    line-height: 1.45;
    white-space: nowrap;
  }
  body.humuseduSite .lmsInfoPage > p.mb30 {
    line-height: clamp(22.4px, 5.6vw, 25.6px);
  }
  body.humuseduSite .lmsInfoPage .contentsBox {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
  }
  body.humuseduSite .lmsInfoPage .contentsBox > img {
    display: block;
    float: none;
    align-self: center;
    width: 60%;
    height: auto;
    margin: 0 auto;
  }
  body.humuseduSite .lmsInfoPage .contentsBox > .floatL.wp80 {
    float: none;
    width: 100% !important;
    padding: 14px 0 20px !important;
  }
  body.humuseduSite .lmsInfoPage .contentsBox .num {
    margin-bottom: 18px;
  }
  body.humuseduSite .lmsInfoPage .contentsBox .num span.setting {
    font-size: clamp(17px, 4vw, 20px);
    line-height: 1.3;
  }
  body.humuseduSite .lmsInfoPage .contentsBox .lineHeight28 {
    font-size: var(--humus-content-font-size);
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
}

/* Keep contact details beside their icons even when the address wraps. */
@media (max-width: 599px) {
  body.humuseduSite .locationInfoBox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  body.humuseduSite .locationInfoBox img {
    display: block;
    flex: 0 0 44px;
    width: 44px;
    height: auto;
    float: none;
    margin: 0;
  }
  body.humuseduSite .locationInfoBox .locationInfo {
    flex: 1 1 0;
    min-width: 0;
    float: none;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
  body.humuseduSite .locationInfoBox .locationInfo b {
    margin-bottom: 4px;
    font-size: 17px;
    line-height: 1.3;
  }
}

/* Match the tablet subpage visual to the responsive header height. */
@media (min-width: 600px) and (max-width: 1599px) {
  body.humuseduSite header .gnb + .mainSlideWrap { margin-top: 76px; }
  body.humuseduSite header .subVisualWrap {
    height: 120px;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }
  body.humuseduSite #container .pageTitle {
    top: -60px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1.3;
  }
}

/* Keep subpage headings centered in a shorter mobile visual. */
@media (max-width: 599px) {
  body.humuseduSite header .subVisualWrap {
    height: 120px;
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
  }
  body.humuseduSite #container .pageTitle {
    top: -60px;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1.3;
  }
}

/* Place the original greeting artwork at the bottom on mobile. */
@media (max-width: 599px) {
  body.humuseduSite #container:has(.greeting) {
    position: relative;
    isolation: isolate;
  }
  body.humuseduSite #container:has(.greeting) > .pdt45 {
    position: relative;
    z-index: 1;
  }
  body.humuseduSite .greeting .greetingTitle {
    max-width: 100%; font-family: "GmarketSansB", sans-serif;
    font-size: clamp(16px, 4.6vw, 23px); line-height: 1.35;
    white-space: nowrap; letter-spacing: -0.02em;
  }
  body.humuseduSite .greeting .greetingTitle > .font28 {
    font-family: inherit; font-size: inherit;
  }
  body.humuseduSite #container:has(.greeting)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(72vw, 300px);
    background: url("../Images/ceo_bg.png") center bottom / contain no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%);
    mask-image: linear-gradient(to bottom, transparent, #000 24%);
    pointer-events: none;
    z-index: 0;
  }
  body.humuseduSite .greeting .pdl200 {
    padding-left: 0 !important;
    text-align: right;
    white-space: normal;
  }
  body.humuseduSite .greeting::after { display: none; }
}

/* Keep the copyright text equally subtle at every viewport width. */
body.humuseduSite .bottomContents .companyInfo > p:last-child {
  color: #b7b7b7;
  font-size: 11px;
  line-height: 1.5;
}

/* Show the Kakao consultation shortcut below customer support on compact screens. */
body.humuseduSite .customerCenter > .footerKakaoLink { display: none; }
@media (max-width: 1279px) {
  body.humuseduSite .customerCenter > .footerKakaoLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 40px;
    margin-top: 12px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #fae100;
    color: #292600;
    font-family: "GmarketSansM", sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.3;
    text-decoration: none;
    box-sizing: border-box;
  }
  body.humuseduSite .customerCenter > .footerKakaoLink img {
    display: block;
    width: 24px;
    height: 24px;
  }
  body.humuseduSite .customerCenter > .footerKakaoLink:hover,
  body.humuseduSite .customerCenter > .footerKakaoLink:focus-visible {
    background: #ffeb4d;
    color: #292600;
  }
}

/* Fit the tablet footer to its available width at the layout breakpoint. */
@media (min-width: 600px) and (max-width: 1599px) {
  body.humuseduSite .boardWrap .csWrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-bottom: clamp(24px, 3vw, 40px);
  }
  body.humuseduSite .boardWrap .csWrap > a.wp50 {
    display: block;
    width: 100% !important;
    min-width: 0;
    margin: 0;
  }
  body.humuseduSite .boardWrap .csWrap > a.wp50 img {
    display: block;
    width: 100%;
    height: auto;
  }
  body.humuseduSite .bottomMenu {
    height: auto; min-height: 56px; line-height: normal;
  }
  body.humuseduSite .bottomMenu .inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 4px;
  }
  body.humuseduSite .bottomMenu .inner > a {
    display: flex; float: none; flex: 1 1 0; min-width: 0;
    align-items: center; justify-content: center;
    min-height: 56px; padding: 0 clamp(2px, 0.6vw, 10px);
    font-size: clamp(12px, 1.35vw, 16px); line-height: 1.25;
    white-space: nowrap; box-sizing: border-box;
  }
  body.humuseduSite .bottomContents {
    height: auto; min-height: 0; padding: 16px 0;
  }
  body.humuseduSite .bottomContents > .inner {
    display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  }
  body.humuseduSite .bottomContents .inner > .companyInfo {
    flex: 1 1 auto; min-width: 0; max-width: none; padding: 0;
  }
  body.humuseduSite .bottomContents .inner > .customerCenter {
    float: none !important; flex: 0 0 auto; max-width: 38%; padding: 0;
    text-align: right;
  }
  body.humuseduSite .companyInfo p {
    font-size: clamp(11px, 1.1vw, 14px); line-height: 1.5;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .companyInfo p.mb30 { margin-bottom: 12px; }
  body.humuseduSite .customerCenter > a[href^="tel:"] {
    padding: 8px 0; font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.15; white-space: nowrap;
  }
}

/* Keep mobile footer links in one row and the support number inside the footer. */
@media (max-width: 599px) {
  body.humuseduSite .bottomMenu {
    height: auto;
    min-height: 52px;
    line-height: normal;
  }
  body.humuseduSite .bottomMenu .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2px;
  }
  body.humuseduSite .bottomMenu .inner > a {
    display: inline-flex;
    float: none;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 0 1px;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
  }
  body.humuseduSite .bottomContents {
    height: auto;
    min-height: 0;
    padding: 18px 0 20px;
  }
  body.humuseduSite .bottomContents > .inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body.humuseduSite .bottomContents .inner > .customerCenter {
    display: grid;
    float: none !important;
    order: -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 10px;
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    padding: 14px !important;
    border-left: 3px solid #ffce00;
    border-radius: 8px;
    background: #303030;
    box-sizing: border-box;
    text-align: left;
  }
  body.humuseduSite .customerCenter > p { margin: 0; }
  body.humuseduSite .customerCenter > p:first-child {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    text-align: left !important;
  }
  body.humuseduSite .customerCenter > a[href^="tel:"] {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    font-size: clamp(20px, 5.5vw, 28px);
    line-height: 1.2;
    white-space: nowrap;
  }
  body.humuseduSite .customerCenter > p:last-of-type {
    grid-column: 1;
    grid-row: 2;
    color: #e8e8e8;
    font-size: 11px;
    line-height: 1.5;
    text-align: left !important;
  }
  body.humuseduSite .customerCenter > .footerKakaoLink {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-top: 0;
    min-height: 38px;
    padding: 6px 12px;
    font-size: 12px;
  }
  body.humuseduSite .bottomContents .inner > .companyInfo {
    width: 100%;
    max-width: none;
    padding: 0 !important;
  }
  body.humuseduSite .companyInfo p.mb30 { margin-bottom: 12px; }
}

/* Course list controls: release the fixed desktop widths on smaller screens. */
@media (max-width: 1279px) {
  body.humuseduSite .courseListToolbar {
    display: grid; grid-template-columns: minmax(0, 1fr) 68px;
    grid-template-areas: "heading view" "filters filters";
    align-items: center; gap: 10px 12px;
    height: auto; padding-bottom: 12px; line-height: 1.4; box-sizing: border-box;
  }
  body.humuseduSite .courseListToolbar > .floatL.wp40 {
    grid-area: heading; float: none; width: auto !important; min-width: 0;
    font-size: clamp(18px, 2.2vw, 22px);
  }
  body.humuseduSite .courseListToolbar > .divisionSearchBox.allCateType {
    grid-area: filters; float: none; width: 100%; min-width: 0; padding: 0;
  }
  body.humuseduSite .courseListToolbar .divisionArea {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
    gap: 8px 12px; width: 100%; padding: 0; box-sizing: border-box;
  }
  body.humuseduSite .courseListToolbar .divisionArea > span {
    display: inline-flex; align-items: center; gap: 5px;
    margin-right: 0 !important; white-space: nowrap;
    font-size: 13px; line-height: 34px;
  }
  body.humuseduSite .courseListToolbar .divisionArea > span:first-child label {
    display: inline-flex; align-items: center; gap: 3px;
    margin-right: 0 !important;
  }
  body.humuseduSite .courseListToolbar .divisionArea > span:first-child {
    gap: 12px;
  }
  body.humuseduSite .courseListToolbar .divisionArea .boardSearch {
    display: flex; flex: 1 1 280px; align-items: center; gap: 6px;
    width: auto; min-width: 220px;
  }
  body.humuseduSite .courseListToolbar .boardSearch input[name="csTitle"] {
    flex: 1 1 auto; width: 100%; min-width: 0;
    height: 34px; box-sizing: border-box;
  }
  body.humuseduSite .courseListToolbar .boardSearch .searchBtn {
    flex: none; height: 34px; line-height: 34px;
  }
  body.humuseduSite .courseListToolbar > .listTypeSelect {
    grid-area: view; float: none; justify-self: end;
  }
}
@media (max-width: 767px) {
  body.humuseduSite .courseListToolbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "filters";
    gap: 12px; padding-bottom: 14px;
  }
  body.humuseduSite .courseListToolbar > .floatL.wp40 {
    padding: 3px 0 3px 10px; border-left: 3px solid #ff7800;
    font-size: 19px; line-height: 1.35;
  }
  body.humuseduSite .courseListToolbar > .listTypeSelect { display: none; }
  body.humuseduSite .courseListToolbar > .divisionSearchBox.allCateType {
    padding: 12px; border: 1px solid #e5e8eb;
    border-radius: 8px; background: #f8f9fa;
  }
  body.humuseduSite .courseListToolbar .divisionArea {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 6px;
  }
  body.humuseduSite .courseListToolbar .divisionArea > span {
    font-size: 12px; line-height: 1.3;
  }
  body.humuseduSite .courseListToolbar .divisionArea > span:first-child {
    gap: 8px;
  }
  body.humuseduSite .courseListToolbar .divisionArea .boardSearch {
    grid-column: 1 / -1; width: 100%; min-width: 0;
  }
}

/* Course gallery: compact horizontal rows on phones. */
body.humuseduSite .courseMobilePreview { display: none; }
@media (max-width: 767px) {
  body.humuseduSite .List.galleryType .courseListItem {
    float: none; width: 100%; height: auto; margin: 0 !important;
    padding: 14px 0; border-bottom: 1px solid #d8d8d8; box-sizing: border-box;
  }
  body.humuseduSite .List.galleryType .courseListItem .item {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    grid-template-rows: auto auto; gap: 10px 12px;
    width: 100%; height: auto; border: 0;
  }
  body.humuseduSite .List.galleryType .courseListItem .txtBox {
    display: contents;
  }
  body.humuseduSite .List.galleryType .courseListItem .itemLabel {
    top: 14px; left: 0; width: 52px; height: 24px;
    line-height: 24px; border-radius: 12px; font-size: 12px;
  }
  body.humuseduSite .List.galleryType .courseListItem .itemTit {
    display: -webkit-box; grid-column: 1 / -1; min-width: 0; width: auto; min-height: 24px;
    margin: 0; padding-left: 58px; font-size: 15px; line-height: 1.45;
    max-height: 2.9em; overflow: hidden; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; word-break: keep-all; overflow-wrap: anywhere;
  }
  body.humuseduSite .List.galleryType .courseListItem .imgBox {
    grid-column: 1; grid-row: 2; width: 100%; height: auto;
    aspect-ratio: 1.45 / 1; border: 0; border-radius: 12px; overflow: hidden;
  }
  body.humuseduSite .List.galleryType .courseListItem .imgBox > img {
    display: block; width: 100%; height: 100%; object-fit: cover;
  }
  body.humuseduSite .List.galleryType .courseListItem .cover { display: none; }
  body.humuseduSite .List.galleryType .courseListItemFooter {
    grid-column: 2; grid-row: 2; position: relative;
    width: 100%; min-width: 0; height: 100%; bottom: auto;
  }
  body.humuseduSite .List.galleryType .courseListItemFooter p {
    margin: 0; font-size: 15px; line-height: 1.45;
  }
  body.humuseduSite .List.galleryType .courseListItemFooter p .font14 {
    font-size: 13px;
  }
  body.humuseduSite .List.galleryType .courseListItemFooter .courseBtn {
    left: 0; right: auto; bottom: 0; height: 30px;
  }
  body.humuseduSite .List.galleryType .courseListItemFooter .courseBtn > div {
    width: 30px; height: 30px; background-size: contain;
  }
  body.humuseduSite .List.galleryType .courseMobilePreview {
    display: flex; position: absolute; right: 0; bottom: 0;
    align-items: center; justify-content: center;
    min-width: 70px; height: 30px; padding: 0 8px;
    border-radius: 4px; box-sizing: border-box;
    background: #006cda; color: #fff; font-size: 13px; line-height: 1;
    cursor: pointer;
  }
}

/* Let page body copy scale with the viewport without shrinking into tiny text. */
@media (max-width: 1279px) {
  body.humuseduSite #container {
    --humus-content-font-size: clamp(14px, calc(13px + 0.45vw), 18px);
    font-size: var(--humus-content-font-size);
  }
  body.humuseduSite #container .infoBox,
  body.humuseduSite #container .descriptionTxtBox,
  body.humuseduSite #container .rowTxt,
  body.humuseduSite #container .textBoxType,
  body.humuseduSite #container .boardContentsBox,
  body.humuseduSite #container .locationInfoBox .locationInfo {
    font-size: var(--humus-content-font-size);
  }
  body.humuseduSite #container .greeting > pre {
    max-width: 100%;
    font-family: inherit;
    font-size: var(--humus-content-font-size);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* Keep mobile subpage headings readable while tightening body copy. */
@media (max-width: 767px) {
  body.humuseduSite #container:has(.pageTitle) .infoBox {
    font-size: var(--humus-content-font-size);
  }
  body.humuseduSite #container:has(.pageTitle) .infoBox .num > span {
    font-family: "GmarketSansM", sans-serif; font-weight: 700;
  }
  body.humuseduSite #container:has(.pageTitle) .infoBox .infoTxtBox .lineHeight28 {
    line-height: 24px;
  }
  body.humuseduSite #container:has(.pageTitle) .descriptionTxtBox,
  body.humuseduSite #container:has(.pageTitle) .rowTxt,
  body.humuseduSite #container:has(.pageTitle) .textBoxType,
  body.humuseduSite #container:has(.pageTitle) .locationInfoBox .locationInfo {
    font-size: var(--humus-content-font-size);
  }
  body.humuseduSite #container:has(.pageTitle) .infoBox table td { font-size: 14px; }
  body.humuseduSite #container:has(.pageTitle) .studyInfoType table.legalEduType:not(.faqStyle) th,
  body.humuseduSite #container:has(.pageTitle) .studyInfoType table.legalEduType:not(.faqStyle) td {
    font-size: clamp(12px, 3.2vw, 13px);
  }
  body.humuseduSite .studyInfoType .preventionCompareTable col:first-child { width: 23% !important; }
  body.humuseduSite .studyInfoType .preventionCompareTable col:nth-child(2),
  body.humuseduSite .studyInfoType .preventionCompareTable col:nth-child(3) { width: 38.5% !important; }
  body.humuseduSite .studyInfoType .preventionCompareTable tr > th:first-child {
    padding-left: 4px; padding-right: 4px; white-space: nowrap;
  }
}

/* Let tablet description panels grow with their text instead of clipping it. */
@media (min-width: 768px) and (max-width: 1599px) {
  body.humuseduSite #container .descriptionTxtBox {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .legalEduPage .studyAudience {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: clamp(14px, 2vw, 26px);
    width: 100% !important;
    height: auto !important;
    padding: clamp(14px, 1.5vw, 20px);
  }
  body.humuseduSite .legalEduPage .studyAudience > div {
    float: none !important;
    width: auto !important;
    min-width: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.humuseduSite .legalEduPage .studyAudience {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fit the course category choices and gallery cards to tablet widths. */
@media (min-width: 768px) and (max-width: 1599px) {
  body.humuseduSite #container .subCategoryBox.noLine {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: clamp(6px, 0.8vw, 12px);
    width: 100%; height: auto; overflow: visible;
    box-sizing: border-box;
  }
  body.humuseduSite #container .subCategoryBox.noLine .mainCategory {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; min-width: 0; height: auto; min-height: clamp(82px, 8vw, 100px);
    margin: 0; padding: 7px 4px;
    box-sizing: border-box;
    font-size: clamp(11px, 1.1vw, 14px); line-height: 1.25;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  body.humuseduSite #container .subCategoryBox.noLine .mainCategory img {
    width: clamp(24px, 2.4vw, 30px); height: auto;
  }
  body.humuseduSite #container .subCategoryBox.noLine .mainCategory br { display: none; }
  body.humuseduSite #container .subCategoryBox.noLine .cateName {
    display: block; width: 100%; height: auto; margin-top: 6px;
  }
  body.humuseduSite #container .courseIndexGallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
    align-items: stretch;
  }
  body.humuseduSite #container .courseIndexGallery > .courseListItem {
    float: none; width: 100%; min-width: 0; height: auto;
    margin: 0 !important; padding: 8px 0 0 5px;
    box-sizing: border-box;
  }
  body.humuseduSite #container .courseIndexGallery > .courseListItem .item {
    display: flex; flex-direction: column;
    width: 100%; height: 100%; min-width: 0;
  }
  body.humuseduSite #container .courseIndexGallery .imgBox {
    flex: none; width: 100%; height: auto;
    aspect-ratio: 274 / 165; overflow: hidden;
    background: #fff;
  }
  body.humuseduSite #container .courseIndexGallery .imgBox > img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
  }
  body.humuseduSite #container .courseIndexGallery .coverBtn img {
    width: clamp(20px, 2vw, 28px); height: auto;
    object-fit: contain;
  }
  body.humuseduSite #container .courseIndexGallery .txtBox {
    display: flex; flex: 1; flex-direction: column;
    min-width: 0; height: auto; min-height: 132px;
    padding: 10px clamp(8px, 1vw, 15px);
  }
  body.humuseduSite #container .courseIndexGallery .itemTit {
    display: -webkit-box; width: 100%; min-width: 0;
    overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    font-size: clamp(13px, 1.15vw, 15px); line-height: 1.35;
    word-break: keep-all; overflow-wrap: anywhere;
  }
  body.humuseduSite #container .courseIndexGallery .courseListItemFooter {
    position: relative; bottom: auto; display: flex;
    align-items: flex-end; justify-content: space-between; gap: 6px;
    width: 100%; margin-top: auto;
  }
  body.humuseduSite #container .courseIndexGallery .courseListItemFooter p {
    min-width: 0; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.4;
  }
  body.humuseduSite #container .courseIndexGallery .courseBtn {
    position: static; display: flex; flex: none; align-items: center;
    height: clamp(30px, 3vw, 40px);
  }
  body.humuseduSite #container .courseIndexGallery .courseBtn > div {
    float: none; width: clamp(30px, 3vw, 40px);
    height: clamp(30px, 3vw, 40px); background-size: contain;
  }
  body.humuseduSite #container .courseIndexGallery > .wp100 { grid-column: 1 / -1; }
}

@media (min-width: 1024px) and (max-width: 1599px) {
  body.humuseduSite #container .courseIndexGallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Reserve enough width for one-line course list labels and prices. */
body.humuseduSite #container .courseIndexList {
  max-width: 100%;
  overflow-x: auto;
}
body.humuseduSite #container .courseIndexList .listStyle {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}
body.humuseduSite #container .courseIndexList col:nth-child(1) { width: 4%; }
body.humuseduSite #container .courseIndexList col:nth-child(2) { width: 37%; }
body.humuseduSite #container .courseIndexList col:nth-child(3) { width: 9%; }
body.humuseduSite #container .courseIndexList col:nth-child(4) { width: 9%; }
body.humuseduSite #container .courseIndexList col:nth-child(5) { width: 8%; }
body.humuseduSite #container .courseIndexList col:nth-child(6) { width: 7%; }
body.humuseduSite #container .courseIndexList col:nth-child(7) { width: 10%; }
body.humuseduSite #container .courseIndexList col:nth-child(8) { width: 6%; }
body.humuseduSite #container .courseIndexList col:nth-child(9) { width: 10%; }
body.humuseduSite #container .courseIndexList th,
body.humuseduSite #container .courseIndexList td:not(.left) {
  padding: 8px clamp(3px, 0.4vw, 8px);
  font-size: clamp(10px, 1.05vw, 14px);
  line-height: 1.35;
  white-space: nowrap;
}
body.humuseduSite #container .courseIndexList td.left {
  white-space: normal;
  overflow-wrap: anywhere;
}
body.humuseduSite #container .courseIndexList td .studySample {
  padding: 3px clamp(2px, 0.4vw, 6px);
  font-size: inherit;
}

/* Course detail: replace the 439px + 741px desktop layout at smaller widths. */
body.humuseduSite #container .courseViewPage .courseDetailTit p {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  line-height: 1.35;
}

@media (max-width: 1279px) {
  body.humuseduSite #container .courseViewPage {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.humuseduSite #container .courseViewPage .csTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: auto;
    padding: 18px 0 10px;
    box-sizing: border-box;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.4;
  }
  body.humuseduSite #container .courseViewPage .csTitle .courseBtn {
    position: static;
    display: flex;
    flex: none;
    align-items: center;
    float: none;
    height: 30px;
    margin: 0;
  }
  body.humuseduSite #container .courseViewPage .csTitle .courseBtn > div {
    float: none;
    width: 30px;
    height: 30px;
    background-size: contain;
  }
  body.humuseduSite #container .courseViewPage .courseName {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .courseViewPage .csInfoBox {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: start;
    gap: clamp(12px, 2vw, 20px);
    width: 100%;
    height: auto;
    padding: 16px 0;
    box-sizing: border-box;
  }
  body.humuseduSite #container .courseViewPage .csInfoBox > div {
    float: none;
    min-width: 0;
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .imgBox {
    width: 100%;
    height: auto;
    aspect-ratio: 439 / 265;
    overflow: hidden;
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .imgBox > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .coverBtn img {
    width: 28px;
    height: auto;
  }
  body.humuseduSite #container .courseViewPage .csInfo {
    width: 100%;
    margin: 0;
  }
  body.humuseduSite #container .courseViewPage table.courseType {
    width: 100%;
    table-layout: fixed;
  }
  body.humuseduSite #container .courseViewPage table.courseType th,
  body.humuseduSite #container .courseViewPage table.courseType td {
    padding: clamp(5px, 0.7vw, 9px);
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .courseViewPage > .wp100.hx50 > .btn.large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    box-sizing: border-box;
    font-size: clamp(12px, 1.5vw, 14px);
    line-height: 1.25;
  }
  body.humuseduSite #container .courseViewPage .tabTitle ul {
    display: flex;
    width: 100%;
  }
  body.humuseduSite #container .courseViewPage .tabTitle li {
    flex: 1 1 0;
    float: none;
    width: auto !important;
    min-width: 0;
  }
  body.humuseduSite #container .courseViewPage .tabTitle li a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 4px;
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.3;
  }
  body.humuseduSite #container .courseViewPage .courseDetailView .wrap {
    display: grid;
    grid-template-columns: minmax(116px, 18%) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 20px);
    height: auto;
    overflow: visible;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTit,
  body.humuseduSite #container .courseViewPage .courseDetailTxt {
    float: none;
    width: auto;
    min-width: 0;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTit p {
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(12px, 1.5vw, 14px);
    line-height: 1.3;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt {
    padding: 0;
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt img,
  body.humuseduSite #container .courseViewPage .courseDetailTxt iframe,
  body.humuseduSite #container .courseViewPage .courseDetailTxt video {
    max-width: 100%;
    height: auto;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt table th,
  body.humuseduSite #container .courseViewPage .courseDetailTxt table td {
    overflow-wrap: anywhere;
  }
}

@media (hover: none) and (max-width: 1279px) {
  body.humuseduSite #container .courseViewPage .csInfoBox .cover {
    top: auto;
    bottom: 0;
    height: 44px;
    opacity: 1;
    background: rgba(0, 0, 0, 0.65);
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .coverBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
  }
}

@media (max-width: 999px) {
  body.humuseduSite #container .courseViewPage .csInfoBox {
    grid-template-columns: minmax(0, 1fr);
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .imgBox {
    max-width: 520px;
    justify-self: center;
  }
  body.humuseduSite #container .courseViewPage .courseDetailView .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTit p {
    width: max-content;
    max-width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 10px;
    text-align: center;
  }
}

@media (max-width: 599px) {
  body.humuseduSite #container .courseViewPage .csTitle {
    padding-top: 12px;
    font-size: clamp(15px, 4vw, 18px);
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .imgBox {
    max-width: none;
  }
  body.humuseduSite #container .courseViewPage .csInfoBox .coverBtn a {
    font-size: 15px;
  }
  body.humuseduSite #container .courseViewPage .csInfo table.courseType th,
  body.humuseduSite #container .courseViewPage .csInfo table.courseType td {
    padding: 5px 3px;
    font-size: clamp(10px, 2.8vw, 12px);
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt .half {
    float: none;
    width: 100%;
    padding: 0 !important;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt .half + .half {
    margin-top: 14px;
    border-left: 0 !important;
    border-inline-start: 0 !important;
    box-shadow: none !important;
  }
  body.humuseduSite #container .courseViewPage .courseDetailTxt table.courseType th,
  body.humuseduSite #container .courseViewPage .courseDetailTxt table.courseType td {
    padding: 7px 5px;
    font-size: 12px !important;
  }
}

/* Scale the learning environment guide without its desktop image widths. */
@media (max-width: 1279px) {
  body.humuseduSite #container .settingPage {
    min-width: 0;
  }
  body.humuseduSite #container .settingPage > .contentTitSub + .infoBox {
    margin-top: 40px;
  }
  body.humuseduSite #container .settingPage .infoBox,
  body.humuseduSite #container .settingPage .infoTxtBox {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.humuseduSite #container .settingPage .infoTxtBox {
    float: none;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .settingPage .imgWrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
    height: auto;
    margin: 12px 0 24px;
    overflow: visible;
  }
  body.humuseduSite #container .settingPage .imgWrap .orBg {
    display: none;
  }
  body.humuseduSite #container .settingPage .imgWrap > .imgBox {
    float: none;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
  }
  body.humuseduSite #container .settingPage .imgWrap > .imgBox:only-child {
    grid-column: 1 / -1;
    max-width: 600px;
    justify-self: center;
  }
  body.humuseduSite #container .settingPage .imgWrap > .imgBox img {
    display: block;
    width: 100%;
    height: auto;
  }
  body.humuseduSite #container .settingPage .imgWrap > a {
    display: flex;
    float: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-width: 0;
    margin: 0;
  }
  body.humuseduSite #container .settingPage .imgWrap > a img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  body.humuseduSite #container .settingPage .infoTxtBox .halfRight {
    padding-left: clamp(10px, 2vw, 24px);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.humuseduSite #container .settingPage .contentTitSub {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    overflow: visible;
  }
  body.humuseduSite #container .settingPage .contentTitSub > div {
    float: none;
    width: auto;
    min-width: 0;
    padding: 12px 0;
  }
  body.humuseduSite #container .settingPage .titleBg.setting {
    height: auto;
    aspect-ratio: 640 / 280;
    background-size: contain;
    background-position: center;
  }
  body.humuseduSite #container .settingPage .titTxt.setting > b {
    display: block;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.4;
  }
  body.humuseduSite #container .settingPage .titTxt.setting > br {
    display: none;
  }
  body.humuseduSite #container .settingPage .titTxt.setting p {
    margin: 18px 0 0;
    font-size: clamp(14px, 1.45vw, 17px);
    line-height: 1.6;
  }
}

@media (max-width: 767px) {
  body.humuseduSite #container .settingPage .contentTitSub {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow: visible;
  }
  body.humuseduSite #container .settingPage .contentTitSub > div {
    float: none;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  body.humuseduSite #container .settingPage .titleBg.setting {
    height: auto;
    aspect-ratio: 640 / 280;
    background-size: contain;
    background-position: center;
  }
  body.humuseduSite #container .settingPage .titTxt.setting > b {
    display: block;
    font-size: clamp(17px, 4.5vw, 20px);
    line-height: 1.4;
  }
  body.humuseduSite #container .settingPage .titTxt.setting > br {
    display: none;
  }
  body.humuseduSite #container .settingPage .titTxt.setting p {
    margin: 14px 0 0;
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.65;
  }
  body.humuseduSite #container .settingPage .imgWrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 12px 0 20px;
  }
  body.humuseduSite #container .settingPage .imgWrap > .imgBox,
  body.humuseduSite #container .settingPage .imgWrap > .imgBox:only-child {
    grid-column: 1;
    max-width: 441px;
    justify-self: center;
  }
  body.humuseduSite #container .settingPage .imgWrap > a {
    max-width: 258px;
    justify-self: center;
  }
  body.humuseduSite #container .settingPage .infoTxtBox .halfLeft,
  body.humuseduSite #container .settingPage .infoTxtBox .halfRight {
    float: none;
    width: 100%;
    padding: 0;
  }
}

/* Keep the program screenshots and copy proportional on smaller screens. */
@media (max-width: 1279px) {
  body.humuseduSite #container .downloadPage .downloadWrap {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
    width: 100%;
    margin: 18px 0 42px;
  }
  body.humuseduSite #container .downloadPage .downloadWrap > div {
    float: none;
    min-width: 0;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .imgBox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .imgBox img {
    display: block;
    width: 100%;
    max-width: 576px;
    height: auto;
    box-sizing: border-box;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox p {
    margin: 0 0 24px;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox a {
    display: inline-flex;
    align-self: flex-end;
    float: none;
    width: clamp(180px, 30vw, 258px);
    max-width: 100%;
    height: auto;
    margin: 0;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox a img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 767px) {
  body.humuseduSite #container .downloadPage .downloadWrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 16px 0 36px;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .imgBox {
    max-width: 441px;
    justify-self: center;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox {
    font-size: var(--humus-content-font-size);
    line-height: 1.65;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox p {
    margin-bottom: 20px;
  }
  body.humuseduSite #container .downloadPage .downloadWrap .txtBox a {
    align-self: center;
    width: min(258px, 100%);
  }
}

/* My study room: turn the three dense desktop tables into course cards. */
@media (max-width: 1279px) {
  body.humuseduSite #container .myStudyPage {
    width: 100%;
    min-width: 0;
  }
  body.humuseduSite #container .myStudyPage .listTitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: auto;
    min-height: 40px;
    margin-bottom: 10px;
    border-bottom: 2px solid #6f6f6f !important;
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.35;
  }
  body.humuseduSite #container .myStudyPage .listSlideBtn {
    display: inline-flex;
    float: none !important;
    align-items: center;
    justify-content: center;
    order: 2;
    min-height: 32px;
    margin-left: auto;
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }
  body.humuseduSite #container .myStudyPage #endCourse .yearSelect {
    float: none !important;
    order: 1;
    width: 100px;
    min-height: 32px;
    margin: 0 0 0 auto;
    box-sizing: border-box;
  }
  body.humuseduSite #container .myStudyPage #endCourse .listSlideBtn {
    margin-left: 0;
  }
  body.humuseduSite #container .myStudyPage > div > .tbCourse {
    max-width: 100%;
    overflow: visible;
  }
  body.humuseduSite #container .myStudyPage table {
    display: block;
    width: 100%;
    border: 0 !important;
  }
  body.humuseduSite #container .myStudyPage table colgroup {
    display: none;
  }
  body.humuseduSite #container .myStudyPage table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.humuseduSite #container .myStudyPage table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    padding-top: 12px;
    box-sizing: border-box;
  }
  body.humuseduSite #container .myStudyPage table tbody > tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    column-gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dedfe3;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
  }
  body.humuseduSite #container .myStudyPage table td {
    min-width: 0;
    padding: 6px 0;
    border: 0;
    font-size: clamp(12px, 1.25vw, 14px);
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  body.humuseduSite #container .myStudyPage table td:first-child:not([colspan]) {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eef7f8;
    color: #007f8d;
    font-weight: 700;
  }
  body.humuseduSite #container .myStudyPage table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    padding: 2px 0 10px;
    text-align: left;
    font-size: clamp(14px, 1.45vw, 16px);
    word-break: keep-all;
  }
  body.humuseduSite #container .myStudyPage table td:nth-child(n+3) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid #edf0f2;
    text-align: left;
  }
  body.humuseduSite #container .myStudyPage table td:nth-child(n+3)::before {
    display: block;
    flex: 0 0 76px;
    color: #666;
    font-size: 12px;
    font-weight: 700;
  }
  body.humuseduSite #container .myStudyPage .studyAppTable td:nth-child(3)::before,
  body.humuseduSite #container .myStudyPage .studyEndedTable td:nth-child(3)::before { content: "기간"; }
  body.humuseduSite #container .myStudyPage .studyAppTable td:nth-child(4)::before { content: "상태"; }
  body.humuseduSite #container .myStudyPage .studyAppTable td:nth-child(5)::before { content: "취소"; }
  body.humuseduSite #container .myStudyPage .studyActiveTable td:nth-child(3)::before { content: "진도율"; }
  body.humuseduSite #container .myStudyPage .studyActiveTable td:nth-child(4)::before { content: "기간"; }
  body.humuseduSite #container .myStudyPage .studyActiveTable td:nth-child(5)::before { content: "강의실"; }
  body.humuseduSite #container .myStudyPage .studyEndedTable td:nth-child(4)::before { content: "수강상태"; }
  body.humuseduSite #container .myStudyPage .studyEndedTable td:nth-child(5)::before { content: "평가결과"; }
  body.humuseduSite #container .myStudyPage .studyEndedTable td:nth-child(6)::before { content: "수료증"; }
  body.humuseduSite #container .myStudyPage .studyEndedTable td:nth-child(7)::before { content: "강의실"; }
  body.humuseduSite #container .myStudyPage .studyActiveTable .magnitude {
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
  }
  body.humuseduSite #container .myStudyPage table td .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  body.humuseduSite #container .myStudyPage table tbody > tr:has(td[colspan]) {
    grid-column: 1 / -1;
  }
  body.humuseduSite #container .myStudyPage table td[colspan] {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    padding: 16px 0;
    text-align: center;
  }
}

@media (min-width: 900px) and (max-width: 1279px) {
  body.humuseduSite #container .myStudyPage table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.humuseduSite #container .myStudyPage .listTitle {
    margin-bottom: 6px;
    font-size: clamp(16px, 4.5vw, 19px);
  }
  body.humuseduSite #container .myStudyPage table tbody {
    padding-top: 8px;
  }
  body.humuseduSite #container .myStudyPage table tbody > tr {
    padding: 12px;
  }
  body.humuseduSite #container .myStudyPage table td:nth-child(n+3)::before {
    flex-basis: 64px;
  }
}

/* Match the desktop study-room controls to one shared height. */
@media (min-width: 1280px) {
  body.humuseduSite #container .myStudyPage .listTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    line-height: 1.3;
  }
  body.humuseduSite #container .myStudyPage .listTitle .listSlideBtn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    order: 2;
    height: 32px;
    min-height: 32px;
    margin-left: auto;
    padding: 0 12px;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
  }
  body.humuseduSite #container .myStudyPage #endCourse .yearSelect {
    float: none !important;
    flex: 0 0 110px;
    order: 1;
    width: 110px;
    height: 32px;
    margin: 0 0 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    line-height: normal;
    vertical-align: middle;
  }
  body.humuseduSite #container .myStudyPage #endCourse .listSlideBtn {
    margin-left: 0;
  }
  body.humuseduSite #container .myStudyPage .tbCourse td .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    box-sizing: border-box;
    line-height: 1.2;
  }
}

/* Size the standalone login card to the available tablet and phone viewport. */
@media (max-width: 1279px) {
  body.humuseduSite .loginPage .areaBox {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(20px, 3vw, 48px);
    box-sizing: border-box;
  }
  body.humuseduSite .loginPage .areaBox > .wrap {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 900px);
    height: auto;
    margin: 0 auto;
  }
  body.humuseduSite .loginPage .loginLogo {
    margin: 0 0 20px;
  }
  body.humuseduSite .loginPage .loginBox {
    width: 100%;
    height: auto;
  }
  body.humuseduSite .loginPage .loginBox .popupTitle {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 16px;
    box-sizing: border-box;
  }
  body.humuseduSite .loginPage .loginWrap {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  }
  body.humuseduSite .loginPage .loginBox .loginAdBox,
  body.humuseduSite .loginPage .loginBox .login {
    float: none;
    width: 100%;
    min-width: 0;
    height: auto;
  }
  body.humuseduSite .loginPage .loginAdBox {
    min-height: 420px;
    background-size: cover;
    background-position: center;
  }
  body.humuseduSite .loginPage .loginAdBox > .wrap {
    left: clamp(16px, 2vw, 30px);
    right: clamp(16px, 2vw, 30px);
    bottom: clamp(18px, 2.5vw, 30px);
    width: auto;
    height: auto;
  }
  body.humuseduSite .loginPage .loginAdBox > .wrap p {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.45;
  }
  body.humuseduSite .loginPage .loginAdBox > .wrap .font24 {
    font-size: clamp(17px, 2.1vw, 24px);
  }
  body.humuseduSite .loginPage .login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vw, 32px);
  }
  body.humuseduSite .loginPage .login .inputBox {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
  }
  body.humuseduSite .loginPage .login .description {
    margin-top: clamp(24px, 3vw, 48px);
  }
  body.humuseduSite .loginPage .login .fullBtn,
  body.humuseduSite .loginPage .loginAdBox .joinType {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .loginPage .areaBox {
    align-items: flex-start;
    padding: 20px 14px 32px;
  }
  body.humuseduSite .loginPage .areaBox > .wrap {
    width: min(100%, 480px);
  }
  body.humuseduSite .loginPage .loginLogo {
    margin-bottom: 18px;
  }
  body.humuseduSite .loginPage .loginLogo img {
    width: clamp(110px, 30vw, 130px);
    height: auto;
  }
  body.humuseduSite .loginPage .loginWrap {
    display: flex;
    flex-direction: column;
  }
  body.humuseduSite .loginPage .loginAdBox {
    min-height: 0;
    aspect-ratio: 10 / 11;
    background-position: center;
    border-radius: 0;
  }
  body.humuseduSite .loginPage .loginAdBox > .wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: clamp(16px, 4vw, 22px);
    box-sizing: border-box;
    text-align: right;
  }
  body.humuseduSite .loginPage .loginAdBox > .wrap .font24 {
    font-size: clamp(15px, 4.4vw, 22px) !important;
  }
  body.humuseduSite .loginPage .loginAdBox .loginBrand {
    white-space: nowrap;
  }
  body.humuseduSite .loginPage .loginAdBox > .wrap p {
    width: 100%;
    font-size: clamp(12px, 3vw, 15px);
    line-height: 1.35;
  }
  body.humuseduSite .loginPage .loginAdBox .joinType {
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin-top: clamp(12px, 3vw, 20px);
  }
  body.humuseduSite .loginPage .login {
    padding: clamp(18px, 4vw, 24px);
  }
  body.humuseduSite .loginPage .login .description {
    margin-top: 24px;
  }
}

/* Keep both account recovery forms in the document flow on narrow screens. */
@media (max-width: 767px) {
  body.humuseduSite .findPage .findTabLine {
    margin-bottom: 20px;
  }
  body.humuseduSite .findPage .findForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
  }
  body.humuseduSite .findPage .findForm form {
    width: 100%;
  }
  body.humuseduSite .findPage .findForm form .findBox {
    display: block;
    float: none;
    width: 100%;
    padding: 14px 0 20px;
    box-sizing: border-box;
    background-size: 24px auto;
    background-position: 0 16px;
  }
  body.humuseduSite .findPage .findForm .findBox .bTit {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 14px;
    padding-left: 34px;
    left: auto;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.3;
  }
  body.humuseduSite .findPage .findForm .findBox::after,
  body.humuseduSite .findPage .findForm .hr {
    content: none;
    display: none;
  }
  body.humuseduSite .findPage .findForm .hpBox {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    white-space: nowrap;
  }
  body.humuseduSite .findPage .findForm .hpBox input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0 !important;
  }
  body.humuseduSite .findPage .recaptchaDiv {
    width: 100%;
    max-width: 304px;
  }
}

@media (max-width: 370px) {
  body.humuseduSite .findPage .g-recaptcha {
    transform: scale(.82);
    transform-origin: left top;
  }
}

/* Keep the two recovery methods equal-width on tablet screens. */
@media (min-width: 768px) and (max-width: 1279px) {
  body.humuseduSite .findPage .findForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    height: auto;
  }
  body.humuseduSite .findPage .findForm form {
    min-width: 0;
  }
  body.humuseduSite .findPage .findForm form .findBox {
    display: block;
    float: none;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    background-size: 24px auto;
    background-position: 16px 16px;
  }
  body.humuseduSite .findPage .findForm .findBox .bTit {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 14px;
    padding-left: 34px;
    left: auto;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.3;
  }
  body.humuseduSite .findPage .findForm .findBox::after,
  body.humuseduSite .findPage .findForm .hr {
    content: none;
    display: none;
  }
  body.humuseduSite .findPage .findForm .hpBox {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    white-space: nowrap;
  }
  body.humuseduSite .findPage .findForm .hpBox input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0 !important;
  }
}

/* Size card news entries within the available mobile and tablet width. */
@media (max-width: 1279px) {
  body.humuseduSite .cardNewsListPage > .wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
    width: 100%;
  }
  body.humuseduSite .cardNewsListPage .item.cardNewsType {
    float: none;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 !important;
  }
  body.humuseduSite .cardNewsListPage .cardNewsType .cardNewsWrap {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    text-align: left;
  }
  body.humuseduSite .cardNewsListPage .cardNewsType .imgBox {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7f7f7;
  }
  body.humuseduSite .cardNewsListPage .cardNewsType .imgBox img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  body.humuseduSite .cardNewsListPage .cardNewsType .cardNewsWrap > .mt10 {
    margin-top: 7px !important;
  }
  body.humuseduSite .cardNewsListPage .cardNewsTitle {
    width: 100%;
    height: 2.7em;
    font-size: clamp(11px, 3.4vw, 14px);
    line-height: 1.35;
  }
  body.humuseduSite .cardNewsListPage .cardNewsType p {
    margin-top: 6px !important;
    color: #777;
    font-size: clamp(10px, 2.8vw, 12px);
    text-align: right;
  }
  body.humuseduSite .cardNewsListPage > .right {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    clear: both;
    margin-top: 18px !important;
  }
  body.humuseduSite .cardNewsListPage > .right .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 36px;
    padding: 5px 10px;
    box-sizing: border-box;
    line-height: 1.2;
  }
  body.humuseduSite .cardNewsListPage .noInfo {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.humuseduSite .cardNewsListPage > .wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 16px;
  }
  body.humuseduSite .cardNewsListPage .cardNewsTitle {
    font-size: clamp(13px, 1.35vw, 16px);
  }
  body.humuseduSite .cardNewsListPage .cardNewsType p {
    font-size: clamp(11px, 1.1vw, 13px);
  }
  body.humuseduSite .cardNewsListPage > .right {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    clear: both;
    margin-top: 18px !important;
  }
  body.humuseduSite .cardNewsListPage > .right .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    box-sizing: border-box;
    line-height: 1.2;
  }
}

@media (min-width: 800px) and (max-width: 999px) {
  body.humuseduSite .cardNewsListPage > .wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 799px) {
  body.humuseduSite .cardNewsListPage > .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card news editor: keep labels and file controls usable at narrower widths. */
@media (max-width: 1279px) {
  body.humuseduSite table.cardNewsType {
    width: 100%;
    table-layout: fixed;
  }
  body.humuseduSite table.cardNewsType colgroup col:first-child {
    width: clamp(135px, 18vw, 155px) !important;
  }
  body.humuseduSite table.cardNewsType colgroup col:not(:first-child) {
    width: auto !important;
  }
  body.humuseduSite table.cardNewsType th,
  body.humuseduSite table.cardNewsType td {
    box-sizing: border-box;
    min-width: 0;
  }
  body.humuseduSite table.cardNewsType th {
    white-space: nowrap;
    font-size: clamp(13px, 1.5vw, 15px);
  }
  body.humuseduSite table.cardNewsType td.subject input {
    width: 100% !important;
    max-width: 100%;
    height: 36px;
    box-sizing: border-box;
  }
  body.humuseduSite table.cardNewsType .fileItemBox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  body.humuseduSite table.cardNewsType .fileItemBox input[type="file"]:not(.hidden) {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    height: 32px;
    padding: 0;
    border: 0;
    box-sizing: border-box;
  }
  body.humuseduSite table.cardNewsType .fileItemBox input[type="file"]::file-selector-button {
    height: 32px;
    margin-right: 6px;
    padding: 0 9px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    font: inherit;
    cursor: pointer;
  }
  body.humuseduSite table.cardNewsType .fileItemBox .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-height: 32px;
    padding: 4px 10px;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 13px;
    white-space: nowrap;
  }
  body.humuseduSite table.cardNewsType .fileItemBox .cardNewsImgModifyBtn {
    order: 1;
  }
  body.humuseduSite table.cardNewsType .fileItemBox .cardNewsAddBtn,
  body.humuseduSite table.cardNewsType .fileItemBox .cardNewsAddDelBtn,
  body.humuseduSite table.cardNewsType .fileItemBox .cardNewsImgDeleteBtn {
    order: 2;
    margin-left: auto;
  }
  body.humuseduSite table.cardNewsType + .submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  body.humuseduSite table.cardNewsType + .submit .btn {
    min-height: 36px;
    box-sizing: border-box;
    line-height: normal;
  }
}

@media (max-width: 767px) {
  body.humuseduSite table.cardNewsType,
  body.humuseduSite table.cardNewsType tbody,
  body.humuseduSite table.cardNewsType tr,
  body.humuseduSite table.cardNewsType th,
  body.humuseduSite table.cardNewsType td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  body.humuseduSite table.cardNewsType colgroup {
    display: none;
  }
  body.humuseduSite table.cardNewsType th {
    padding: 9px 12px;
    border-bottom: 0;
    text-align: left;
    font-size: 14px;
  }
  body.humuseduSite table.cardNewsType td {
    padding: 10px 12px 14px;
  }
  body.humuseduSite table.cardNewsType .fileItemBox input[type="file"]:not(.hidden) {
    flex-basis: 0;
    width: 0;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .cardNewsSearchWrap .boardSearch {
    justify-content: flex-end;
  }
  body.humuseduSite .cardNewsSearchWrap .boardSearch form {
    flex: 0 1 270px;
    min-width: 0;
  }
  body.humuseduSite .cardNewsSearchWrap .boardSearch fieldset {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  body.humuseduSite .cardNewsSearchWrap .boardSearch input[name="title"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    box-sizing: border-box;
  }
  body.humuseduSite .cardNewsSearchWrap .boardSearch .searchBtn {
    flex: 0 0 auto;
  }
  body.humuseduSite .cardNewsListPage > .right a[href^="/CardBoard/CardNewsWrite"],
  body.humuseduSite .pdt20 .wrap.board > .submit a[href^="/CardBoard/CardNewsWrite/"],
  body.humuseduSite table.cardNewsType .cardNewsImgModifyBtn {
    display: none !important;
  }
}

/* Let the card news detail slider follow the content width. */
@media (max-width: 1279px) {
  body.humuseduSite .cardNewsViewPage .wrap.board {
    min-width: 0;
    max-width: 100%;
  }
  body.humuseduSite .cardNewsViewPage .wrap.board > p {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .cardNewsViewPage table.boardType {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    overflow: visible;
  }
  body.humuseduSite .cardNewsViewPage .boardContentsBox {
    padding: clamp(8px, 2vw, 20px);
    overflow: hidden;
  }
  body.humuseduSite .cardNewsViewPage .boardContentsBox > .pd20 {
    max-width: 100%;
    padding: clamp(8px, 2vw, 20px) !important;
    box-sizing: border-box;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide {
    width: min(100%, 600px);
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 auto;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-list {
    overflow: hidden;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-prev {
    left: 6px;
    z-index: 2;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-next {
    right: 6px;
    z-index: 2;
  }
  body.humuseduSite .cardNewsViewPage .submit {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  body.humuseduSite .cardNewsViewPage .submit .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    box-sizing: border-box;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .cardNewsViewPage .wrap.board > p {
    font-size: clamp(15px, 4vw, 18px);
  }
  body.humuseduSite .cardNewsViewPage .boardContentsBox > .pd20 {
    padding: 8px !important;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-prev,
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-next {
    display: none !important;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-dots {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(3px, 1.3vw, 7px);
    width: 100%;
    max-width: 100%;
    margin: 12px auto 0;
    padding: 0;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-dots li {
    display: block;
    flex: 0 1 clamp(12px, 4vw, 18px);
    width: clamp(12px, 4vw, 18px);
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-dots li button {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-dots li button::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid #111;
    border-radius: 50%;
  }
  body.humuseduSite .cardNewsViewPage .cardNewsSlide .slick-dots li.slick-active button::before {
    background: #111;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body.humuseduSite table.cardNewsType .fileItemBox {
    padding: 7px 0 9px;
  }
  body.humuseduSite table.cardNewsType .fileItemBox .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    line-height: 1;
    vertical-align: middle;
  }
  body.humuseduSite table.cardNewsType .fileItemBox input[type="file"]::file-selector-button {
    height: 32px;
    padding: 0 9px;
    line-height: 1;
    vertical-align: middle;
  }
  body.humuseduSite table.cardNewsType + .submit .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    line-height: 1;
    vertical-align: middle;
  }
}

/* Shared five-column board lists used by the Basic and BasicNew skins. */
@media (max-width: 1279px) {
  body.humuseduSite .boardListPage,
  body.humuseduSite .boardListSearch {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.humuseduSite .boardListSearch .boardSearch,
  body.humuseduSite .boardListSearch.boardSearch {
    display: block;
  }
  body.humuseduSite .boardListSearch form,
  body.humuseduSite .boardListSearch fieldset {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.humuseduSite .boardListSearch fieldset {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }
  body.humuseduSite .boardListSearch select {
    flex: 0 0 clamp(105px, 15vw, 150px);
    width: clamp(105px, 15vw, 150px) !important;
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
  }
  body.humuseduSite .boardListSearch input[type="text"] {
    flex: 0 1 240px;
    width: 240px !important;
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
  }
  body.humuseduSite .boardListSearch input[type="submit"] {
    flex: none;
    height: 34px;
    min-height: 34px;
    padding: 0 10px !important;
    box-sizing: border-box;
    line-height: 1;
  }
  body.humuseduSite .boardListPage table.listStyle {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }
  body.humuseduSite .boardListPage table.listStyle col:first-child { width: 56px !important; }
  body.humuseduSite .boardListPage table.listStyle col:nth-child(2) { width: auto !important; }
  body.humuseduSite .boardListPage table.listStyle col:nth-child(3) { width: clamp(80px, 10vw, 120px) !important; }
  body.humuseduSite .boardListPage table.listStyle col:nth-child(4) { width: 105px !important; }
  body.humuseduSite .boardListPage table.listStyle col:nth-child(5) { width: 62px !important; }
  body.humuseduSite .boardListPage table.listStyle th,
  body.humuseduSite .boardListPage table.listStyle td {
    padding: 9px 6px;
    box-sizing: border-box;
    font-size: clamp(12px, 1.2vw, 14px);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  body.humuseduSite .boardListPage table.listStyle td.subject a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  body.humuseduSite .boardListPage table.listStyle td:nth-child(n+3) {
    color: #777;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .boardListSearch input[type="text"] {
    flex: 1 1 0;
    width: 0 !important;
  }
  body.humuseduSite .boardListSearch select {
    flex-basis: clamp(90px, 28vw, 120px);
    width: clamp(90px, 28vw, 120px) !important;
  }
  body.humuseduSite .boardListPage table.listStyle,
  body.humuseduSite .boardListPage table.listStyle tbody {
    display: block;
    width: 100%;
  }
  body.humuseduSite .boardListPage table.listStyle colgroup,
  body.humuseduSite .boardListPage table.listStyle thead {
    display: none;
  }
  body.humuseduSite .boardListPage table.listStyle tr {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    grid-template-areas: "number title title title" ". date date hits";
    align-items: center;
    column-gap: 4px;
    row-gap: 2px;
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #d7d7d7;
    box-sizing: border-box;
  }
  body.humuseduSite .boardListPage table.listStyle td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: clamp(11px, 2.9vw, 12px);
  }
  body.humuseduSite .boardListPage table.listStyle td:first-child { grid-area: number; }
  body.humuseduSite .boardListPage table.listStyle td.subject {
    grid-area: title;
    display: flex;
    align-items: center;
    gap: 3px;
    text-align: left;
    font-size: clamp(12px, 3.3vw, 14px);
    font-weight: 600;
  }
  body.humuseduSite .boardListPage table.listStyle td.subject a {
    min-width: 0;
  }
  body.humuseduSite .boardListPage table.listStyle td:nth-child(3) { display: none; }
  body.humuseduSite .boardListPage table.listStyle td:nth-child(4) {
    grid-area: date;
    text-align: left;
    color: #303944;
    font-size: clamp(12px, 3.2vw, 14px);
  }
  body.humuseduSite .boardListPage table.listStyle td:nth-child(5) {
    grid-area: hits;
    text-align: right;
    color: #303944;
    font-size: clamp(12px, 3.2vw, 14px);
  }
  body.humuseduSite .boardListPage table.listStyle td:nth-child(5)::before {
    content: "\f06e";
    margin-right: 5px;
    font-family: FontAwesome;
    font-size: 1.05em;
  }
  body.humuseduSite .boardListPage table.listStyle td[colspan] {
    grid-area: auto;
    grid-column: 1 / -1;
    text-align: center;
  }
  body.humuseduSite .boardListPage table.listStyle td:first-child .btn.small {
    min-height: 22px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 1;
  }
}

/* Original desktop board view, adapted for tablet and mobile widths. */
@media (max-width: 1279px) {
  body.humuseduSite .boardViewPage {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body.humuseduSite .boardViewPage > p {
    max-width: 100%;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .boardViewPage table.boardType {
    display: table;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    overflow: visible;
  }
  body.humuseduSite .boardViewPage table.boardType th {
    padding: 10px 12px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .boardViewPage table.boardType th .lineHeight34 {
    line-height: 1.5;
  }
  body.humuseduSite .boardViewPage table.boardType th.left .boardMetaRow > .lineHeight34 {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    vertical-align: middle;
    line-height: 1.3;
  }
  body.humuseduSite .boardViewPage .downloadBtn {
    float: none;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-left: 12px;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.4;
  }
  body.humuseduSite .boardViewPage .downloadBtn .lineHeight34 {
    display: flex;
    align-items: center;
    min-height: 30px;
    line-height: 1.3;
  }
  body.humuseduSite .boardViewPage .downloadBtn img {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
  }
  body.humuseduSite .boardViewPage .boardContentsBox {
    width: 100%;
    max-width: 100%;
    padding: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .boardViewPage .boardViewContent {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .boardViewPage .boardViewContent > * {
    max-width: 100%;
    box-sizing: border-box;
  }
  body.humuseduSite .boardViewPage .boardViewContent img,
  body.humuseduSite .boardViewPage .boardViewContent video,
  body.humuseduSite .boardViewPage .boardViewContent iframe {
    max-width: 100% !important;
  }
  body.humuseduSite .boardViewPage .boardViewContent img,
  body.humuseduSite .boardViewPage .boardViewContent video {
    height: auto !important;
  }
  body.humuseduSite .boardViewPage .boardViewContent pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  body.humuseduSite .boardViewPage .submit {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  body.humuseduSite .boardViewPage .submit .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    box-sizing: border-box;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  body.humuseduSite .boardViewPage > p {
    font-size: clamp(15px, 4vw, 18px);
  }
  body.humuseduSite .boardViewPage table.boardType th.left {
    padding: 8px clamp(5px, 2vw, 10px);
    overflow-wrap: normal;
  }
  body.humuseduSite .boardViewPage .boardMetaRow {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  body.humuseduSite .boardViewPage .boardMetaText {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(10px, 3vw, 12px);
  }
  body.humuseduSite .boardViewPage .boardMetaAuthor {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.humuseduSite .boardViewPage .boardMetaDivider,
  body.humuseduSite .boardViewPage .boardMetaDate {
    flex: none;
  }
  body.humuseduSite .boardViewPage .downloadBtn {
    display: inline-flex;
    flex: none;
    width: auto;
    margin: 0;
    vertical-align: middle;
    white-space: nowrap;
    font-size: clamp(10px, 3vw, 12px);
  }
  body.humuseduSite .boardViewPage .downloadBtn img {
    width: clamp(18px, 5.2vw, 24px);
    height: auto;
  }
  body.humuseduSite .boardViewPage .downloadBtn .lineHeight34 {
    min-height: 0;
    line-height: 1.2;
  }
  body.humuseduSite .boardViewPage .boardContentsBox {
    padding: 14px 12px;
  }
  body.humuseduSite .boardViewPage .submit .btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Keep every action label centered inside the board view and its comments. */
body.humuseduSite .boardViewPage .submit .btn,
body.humuseduSite .boardViewPage .cmtButtons .btn,
body.humuseduSite .boardViewPage .commentWriteBox a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 1.2;
}
body.humuseduSite .boardViewPage .cmtButtons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
body.humuseduSite .boardViewPage .cmtButtons .btn.small {
  min-height: 26px;
  padding: 0 7px;
  line-height: 1;
}
body.humuseduSite .boardViewPage .cmtListStyle li .cmtInfo {
  display: flow-root;
}
body.humuseduSite .boardViewPage .cmtListStyle li .cmtContents {
  margin-top: 5px;
}
body.humuseduSite .boardViewPage .commentWriteBox input[type="submit"] {
  height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: 34px;
}

/* An unused comment form must not leave a divider under the view actions. */
body.humuseduSite .boardViewPage #commentWrite:empty {
  display: none;
  border: 0;
}

@media (max-width: 767px) {
  body.humuseduSite .boardViewPage .cmtListStyle li .cmtInfo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "writer date" "buttons buttons";
    align-items: center;
    gap: 4px 8px;
  }
  body.humuseduSite .boardViewPage .cmtListStyle li .cmtInfo .writer {
    grid-area: writer;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.humuseduSite .boardViewPage .cmtListStyle li .cmtInfo .datetime {
    grid-area: date;
    padding-left: 0;
    white-space: nowrap;
    text-align: right;
    font-size: clamp(10px, 2.8vw, 12px);
  }
  body.humuseduSite .boardViewPage .cmtListStyle li .cmtButtons {
    grid-area: buttons;
    justify-self: end;
    float: none;
  }
}

/* Keep FAQ answers comfortably spaced on narrow screens. */
@media (max-width: 767px) {
  body.humuseduSite .faqStyle .faqTableBg {
    padding: 10px 12px;
    box-sizing: border-box;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  body.humuseduSite .faqStyle .faqTableBg > p + br {
    display: none;
  }
}

/* Board creation, editing and post replies are hidden on phones. */
@media (max-width: 767px) {
  body.humuseduSite .board a[href^="/Board/Write/"],
  body.humuseduSite .board .cmtModify {
    display: none !important;
  }
  body.humuseduSite .board > .right.mt15 {
    display: none;
  }
  body.humuseduSite .boardViewPage .commentWriteBox input[type="submit"],
  body.humuseduSite .boardViewPage .commentWriteBox .cmtCancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-height: 28px;
    padding: 0 9px;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
  }
}

/* Keep four course-info columns and give the refund amount more room on phones. */
body.humuseduSite #container .courseViewPage .courseRefundMobile {
  display: none;
}

@media (max-width: 767px) {
  body.humuseduSite #container .courseViewPage .csInfo table.courseType col:nth-child(1) { width: 24%; }
  body.humuseduSite #container .courseViewPage .csInfo table.courseType col:nth-child(2) { width: 23%; }
  body.humuseduSite #container .courseViewPage .csInfo table.courseType col:nth-child(3) { width: 17%; }
  body.humuseduSite #container .courseViewPage .csInfo table.courseType col:nth-child(4) { width: 36%; }
  body.humuseduSite #container .courseViewPage .courseRefundDesktop {
    display: none;
  }
  body.humuseduSite #container .courseViewPage .courseRefundMobile {
    display: block;
  }
  body.humuseduSite #container .courseViewPage table.courseType td.courseRefundValue {
    padding: 6px 4px;
    text-align: left;
  }
  body.humuseduSite #container .courseViewPage .courseRefundLine {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 4px;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.5;
  }
  body.humuseduSite #container .courseViewPage .courseRefundLine span { white-space: nowrap; }
  body.humuseduSite #container .courseViewPage .courseRefundLine + .courseRefundLine {
    margin-top: 4px;
  }
  body.humuseduSite #container .courseViewPage .courseRefundLine span:last-child {
    flex: none;
    margin-left: auto;
    text-align: right;
  }
}

/* 일반 게시판의 날짜와 조회수 색을 학습창 게시판과 맞춘다. */
body.humuseduSite .boardListPage table.listStyle tbody td:nth-child(4),
body.humuseduSite .boardListPage table.listStyle tbody td:nth-child(5) {
  color: #697888;
}

/* 일반 FAQ도 학습창 FAQ와 같은 질문·답변 폭을 사용한다. */
@media (max-width: 1279px) {
  body.humuseduSite .publicFaqPage,
  body.humuseduSite .publicFaqPage .faqStyle {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.humuseduSite .publicFaqPage .faqStyle { table-layout: fixed; }
  body.humuseduSite .publicFaqPage .faqTableTitle { padding: 0 6px; }
  body.humuseduSite .publicFaqPage .faqTitle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px 4px;
    line-height: 1.45;
    white-space: normal;
    text-align: left;
  }
  body.humuseduSite .publicFaqPage .faqIcon {
    flex: none;
    width: 36px;
    height: 36px;
    margin: 0;
    object-fit: contain;
  }
  body.humuseduSite .publicFaqPage .faqQuestionText {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
  body.humuseduSite .publicFaqPage .faqTableBg {
    max-width: 100%;
    padding: 18px 20px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    overflow-x: auto;
    line-height: 1.55;
  }
  body.humuseduSite .publicFaqPage .faqTableBg * { box-sizing: border-box; }
  body.humuseduSite .publicFaqPage .faqTableBg p,
  body.humuseduSite .publicFaqPage .faqTableBg div,
  body.humuseduSite .publicFaqPage .faqTableBg table,
  body.humuseduSite .publicFaqPage .faqTableBg iframe,
  body.humuseduSite .publicFaqPage .faqTableBg img,
  body.humuseduSite .publicFaqPage .faqTableBg video { max-width: 100% !important; }
  body.humuseduSite .publicFaqPage .faqTableBg img,
  body.humuseduSite .publicFaqPage .faqTableBg video { height: auto !important; }
}
@media (max-width: 767px) {
  body.humuseduSite .publicFaqPage .faqTableTitle { padding: 0 4px; }
  body.humuseduSite .publicFaqPage .faqTableBg { padding: 14px 12px; }
}

/* 회원정보수정: 기존 4열 폼은 태블릿에서 폭에 맞추고 모바일에서는 항목별 2열로 표시한다. */
@media (max-width: 1279px) {
  body.humuseduSite .memberInfoPage { width: min(800px, calc(100% - 40px)); max-width: 100%; padding-top: 28px !important; box-sizing: border-box; }
  body.humuseduSite .memberInfoPage .registerForm { padding: clamp(12px, 2vw, 20px); }
  body.humuseduSite .memberInfoPage table.memberInfoType { width: 100%; table-layout: fixed; }
  body.humuseduSite .memberInfoPage table.memberInfoType th,
  body.humuseduSite .memberInfoPage table.memberInfoType td { min-width: 0; padding: 9px 7px; box-sizing: border-box; line-height: 1.4; overflow-wrap: anywhere; }
  body.humuseduSite .memberInfoPage table.memberInfoType input,
  body.humuseduSite .memberInfoPage table.memberInfoType select { max-width: 100%; box-sizing: border-box; }
  body.humuseduSite .memberInfoPage table.memberInfoType input[type="text"],
  body.humuseduSite .memberInfoPage table.memberInfoType input[type="password"] { height: 34px; }
  body.humuseduSite .memberInfoPage table.memberInfoType #cpNo { width: 100%; }
}

@media (max-width: 640px) {
  body.humuseduSite .memberInfoPage { width: calc(100% - 24px); padding-top: 18px !important; }
  body.humuseduSite .memberInfoPage .registerForm { padding: 12px; }
  body.humuseduSite .memberInfoPage table.memberInfoType,
  body.humuseduSite .memberInfoPage table.memberInfoType tbody { display: block; width: 100%; }
  body.humuseduSite .memberInfoPage table.memberInfoType colgroup { display: none; }
  body.humuseduSite .memberInfoPage table.memberInfoType tr { display: grid; grid-template-columns: 76px minmax(0, 1fr); width: 100%; border-bottom: 1px solid #d8d8d8; }
  body.humuseduSite .memberInfoPage table.memberInfoType th,
  body.humuseduSite .memberInfoPage table.memberInfoType td { display: block; min-width: 0; padding: 10px 8px; border-bottom: 0; font-size: 13px; }
  body.humuseduSite .memberInfoPage table.memberInfoType th { display: flex; align-items: center; justify-content: center; padding: 10px 4px; text-align: center; word-break: keep-all; }
  body.humuseduSite .memberInfoPage table.memberInfoType tr th:nth-of-type(2),
  body.humuseduSite .memberInfoPage table.memberInfoType tr td:nth-of-type(2) { border-top: 1px solid #d8d8d8; }
  body.humuseduSite .memberInfoPage table.memberInfoType input[type="text"],
  body.humuseduSite .memberInfoPage table.memberInfoType input[type="password"] { width: 100% !important; }
  body.humuseduSite .memberInfoPage table.memberInfoType input[name="mdPhone[]"] { width: clamp(38px, 12vw, 52px) !important; }
  body.humuseduSite .memberInfoPage table.memberInfoType select { width: 100%; min-width: 0; }
  body.humuseduSite .memberInfoPage .submit { margin-top: 20px; }
}
