/* ============================================================
   태블릿 가로 모드 대응 (세로 767px 이상)
   ============================================================ */
@media (orientation: landscape) and (min-height: 768px) {
	.section-wrap .section.TV .tv-group .item .link .thumbnail{max-width:100%;}
}

/* ============================================================
   태블릿 가로 모드 대응 (세로 최대 767px)
   ============================================================ */
@media (orientation: landscape) and (max-height: 767px) {
	
	.section-wrap .hire-area{right:20px; bottom:100px;}
	.section-wrap .qlink-bar{top:auto; bottom:30px; right:41px; transform:none;}
	.section-wrap .qlink-bar .group,#fp-nav{display:none;}
}


/* ============================================================
   스마트폰 가로 모드 대응 (최대 1023px, 세로 568px 이하)
   ============================================================ */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 568px) {

  /* 상단 레이아웃 높이 축소 */
  #top_layout { height: 55px; }

  /* 퀵링크 바 위치 */
  .section-wrap .qlink-bar { bottom: 5px; }

  /* 고용 영역 · 섹션 부제목 숨김 */
  .fp-viewing-a1 .section-wrap .hire-area,
  .section-wrap .section-sub-title { display: none; }


  /* ── 비주얼 슬라이더 ── */

  /* 썸네일 오버레이 반투명 흰색 */
  .section-wrap .section.visual .visualSwiper .link .thumbnail::before { background: #ffffff75; }

  /* 커스텀 박스 위치 */
  .section-wrap .section.visual .visualSwiper .link .contents a.v-custom-box { top: -60px; }

  
  /* 모바일 폼 바 상단 박스 높이 · 패딩 */
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box .link { height: 45px; }
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box.n1 .link,
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box.n2 .link,
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box.n3 .link { padding: 0 45px; }
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box.n1 .link .name,
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box.n2 .link .name,
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.top .box.n3 .link .name { padding: 0 10px; }

  /* 모바일 폼 바 하단 박스: 가로 배치 */
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar .box-group.bottom .box .link { flex-direction: row; height: 60px; }

  /* 고용 영역 위치 */
  .section-wrap .hire-area { bottom: 130px; }

  /* 포인트 블록 제목 줄바꿈 제거 */
  .section-wrap .section.visual .visualSwiper .swiper-slide.swiper-slide-active .link .contents:has(.point-block) .title br { display: none !important; }


  /* ── 검색 섹션 ── */

  /* 퀵링크 그룹: 한 줄 5개 배치 */
  .section-wrap .section.search .qlink-group { width: calc(100% + 5px); margin-left: -3px; }
  .section-wrap .section.search .qlink-group li { padding: 2px; width: 20%; }
  .section-wrap .section.search .qlink-group .link { padding: 5px 0; min-height: 90px; }
  .section-wrap .section.search .qlink-group .link .icon { width: 35px; height: 35px; }
  .section-wrap .section.search .qlink-group .link .title { font-size: 14.5px; }

  /* 검색창 · 버튼 크기 축소 */
  .section-wrap .section.search .search-input-group .inner { height: 55px; }
  .section-wrap .section.search .search-input-group .search-button { width: 40px; height: 40px; }


  /* ── TV 섹션 ── */

  /* 3·4번째 아이템 숨김 */
  .section-wrap .section.TV .tv-group .item:nth-child(3),
  .section-wrap .section.TV .tv-group .item:nth-child(4) { display: none; }

  /* 제목·개인화 영역 정렬 */
  .section-wrap .section.TV .tv-group .title-wrap { align-items: center; }
  .section-wrap .section.TV .tv-group .personal { display: flow; text-align: center; }

  /* 더보기 버튼 위치 */
  .section-wrap .section.TV .more-button { top: -44px; }


  /* ── 정보(info) 섹션 ── */

  /* 한 줄 4개 배치 · 가운데 정렬 */
  .section-wrap .section.info .info-group .item { width: 25%; }
  .section-wrap .section.info .layout { justify-items: center; }
  .section-wrap .section.info .more-button { top: 8px; }


  /* ── 뉴스 섹션 ── */

  /* 탭 제목 · 3번째 그룹 · 4번째 그룹 숨김 */
  .section-wrap .section.news .news-group .item.tab .item-title,
  .section-wrap .section.news .news-group .item .panel-group .tab-panel.thumb .group:nth-child(3),
  .section-wrap .section.news .news-group .item .panel-group .tab-panel:not(.thumb) .group:nth-child(4) { display: none; }

  /* 썸네일 너비 · 날짜 마진 제거 */
  .section-wrap .section.news .news-group .item .panel-group .tab-panel.thumb .group .link .thumbnail { width: 16%; }
  .section-wrap .section.news .news-group .item .panel-group .tab-panel.thumb .group .link .date,
  .section-wrap .section.news .news-group .item .panel-group .tab-panel .group .link .date { margin: 0; }

  /* 뉴스 그룹 · 아이템 높이 자동 */
  .section-wrap .section.news .news-group { margin: 10px 0 0; height:215px;}
  .section-wrap .section.news .news-group .item,
  .section-wrap .section.news .news-group .item .panel-group .tab-panel:not(.thumb) .group { height: auto; }

  /* 탭 · 링크 여백 축소 */
  .section-wrap .section.news .news-group .item .tab-select .tab-ul { padding: 10px 0; }
  .section-wrap .section.news .news-group .item .panel-group .tab-panel.thumb .group .link,
  .section-wrap .section.news .news-group .item .panel-group .tab-panel .group .link { margin: 7px 0; }
  .section-wrap .section.news .news-group .item.tab > .inner { padding: 5px 20px; }


  /* ── 서비스 섹션 ── */

  /* 부제목 숨김 · 스와이퍼 여백 · 컨트롤 숨김 */
  .section-wrap .section.service .service-group .service-sub-title { display: none; }
  .section-wrap .section.service .serviceSwiper { margin: 12px 0 0; }
  .section-wrap .section.service .serviceSwiper .swiper-control { margin: 0; display: none; }
  .section-wrap .section.service .serviceSwiper .link .medal-badge { height: auto; padding: 15px 50px; }

  /* 멀티로우 → 단일 가로 행으로 변경 */
  .section-wrap .section.service .serviceSwiper.swiper-container-multirow { --swiper-slides-per-column: 1; }
  .section-wrap .section.service .serviceSwiper.swiper-container-multirow > .swiper-wrapper {
    flex-wrap: nowrap;
    flex-direction: row;
    height: auto !important;
    align-items: center;
  }

  /* 슬라이드 높이 자동 · 간격 · 중앙 정렬 (duplicate 포함) */
  .section-wrap .section.service .serviceSwiper .swiper-wrapper { align-items: center; }
  .section-wrap .section.service .serviceSwiper .swiper-wrapper > .swiper-slide,
  .section-wrap .section.service .serviceSwiper .swiper-wrapper > .swiper-slide-duplicate {
    height: auto !important;
    margin-top: 0 !important;
    margin-left: 20px !important;
  }


  /* ── 푸터 ── */

  /* 가로 배치 · 여백 정리 */
  #foot_layout .top { flex-direction: row; padding:0; }
  #foot_layout .top .point-badge { margin: 10px 0 0; }
  #foot_layout .top .point-badge strong, #foot_layout .top .point-badge span{font-size:16px;}
  #foot_layout .top .point-badge{height:auto;}  
  #foot_layout .top .item + .item { padding: 0; }
  #foot_layout .middle{padding:8px 0 10px; border-top:none;}
  #foot_layout .middle .link-ul{margin:0 0 8px;}
  #foot_layout .middle .linksite .dropdown-menu .ul{height:210px;}
  #foot_layout .bottom{padding:12px 0 0;}
}


/* ============================================================
   초소형 화면 (세로 344px 이하) 추가 보정
   ============================================================ */
@media (max-height: 344px) {

  /* 컨트롤 슬라이드 콘텐츠 위치 */
  .section-wrap .section.visual .visualSwiper .swiper-slide.control-slide .link .contents { top: 88px; }
  
  /* 스크롤 다운 · 슬라이더 컨트롤 숨김 */
  .section-wrap .section.visual .visualSwiper .over-box .scroll-down,
  .section-wrap .section.visual .visualSwiper .over-box .swiper-control { display: none !important; }

  /* 퀵링크 최소 높이 축소 */
  .section-wrap .section.search .qlink-group .link { min-height: 60px; }

  /* TV 제목 가로 배치 · 배지 여백 */
  .section-wrap .section.TV .tv-group .title-wrap { flex-direction: row; justify-content: center; }
  .section-wrap .section.TV .tv-group .badge { margin-right: 5px; }
  
  /* 더보기 버튼 위치 */
  .section-wrap .section.TV .more-button { top: -26px; }

  /* 정보 섹션: 한 줄 5개 · 가운데 정렬 */
  .section-wrap .section.info .info-group .inner { justify-content: center; }
  .section-wrap .section.info .info-group .item { width: 22%; }
  .section-wrap .section.info .more-button { top: 26px; }
  
  /* ── 푸터 ── */

  /* 가로 배치 · 여백 정리 */  
  #foot_layout .middle .link-ul li .link span{margin:2px 0; font-size:14px;} 
  
}

@media (max-height: 376px) {
	#foot_layout .middle{border-bottom:none;}
	#foot_layout .bottom{display:none;}
}

/* ============================================================
   모바일 가로화면 (가로 932px 이하) 추가
   ============================================================ */
   
@media (max-width: 932px) and (orientation: landscape) and (max-height: 568px) {
  .section-wrap .section.visual .visualSwiper .over-box .form-bar {
    display: none;
  }
  .section-wrap .section.visual .visualSwiper .over-box .mobile-form-bar {
    display: block;
  }
  .section-wrap .section.visual .visualSwiper .link .contents a.v-custom-box{top:-40px;}
}