/**
 * KGPC 모바일 전용 메인 페이지 스타일
 * 생성일: 2025-12-03
 */

/* ==================== 모바일 기본 레이아웃 Override ==================== */
@media (max-width: 768px) {
  
  /* ===== 고정 너비 제거 ===== */
  #wrap {
    min-width: auto !important;
    width: 100% !important;
  }
  
  .content,
  .headerWrap,
  #content,
  #container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* ===== 검색창 너비 조정 ===== */
  .searchMain,
  .searchMain .searchBar,
  .searchMain .searchInt,
  .searchMain .extension,
  .mainSearchBox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    float: none !important;
  }
  
  .searchMain .searchBar {
    margin-bottom: 0;
  }
  
  .searchMain .searchInt {
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .searchMain .searchMainBtn {
    position: relative !important;
    width: 100% !important;
    height: 60px !important;
    margin-top: 10px;
    background: #7db70e url("../images/main/search.png") left 20px center no-repeat !important;
    background-size: 24px !important;
    border-radius: 48px 10px 10px 48px !important;
    font-size: 18px !important;
    color: #fff !important;
    font-weight: 700;
    text-indent: 0 !important;
    padding-left: 55px !important;
    border: none;
    box-shadow: 0 4px 12px rgba(125, 183, 14, 0.4);
    top: auto !important;
    right: auto !important;
  }
  
  .searchMain .searchMainBtn:active {
    transform: scale(0.98);
  }
  
  .searchMain .search_guide {
    display: none; /* 모바일에서 검색도우미 숨김 */
  }
  
  .searchMain .search_agree {
    width: 100% !important;
    padding: 15px;
    margin-top: 15px;
  }
  
  /* ===== SNB 너비 조정 ===== */
  #snb .location_nav {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ==================== 모바일 메인 레이아웃 ==================== */
@media (max-width: 768px) {
  
  /* ===== 모바일 메인 컨테이너 ===== */
  .mobile-main-container {
    width: 100%;
    padding: 0;
  }
  
  .mobile-main-container .sub-slogan {
    color: rgba(255, 255, 255, 0.95);
    font-size: 27px;
    text-align: center;
    margin-bottom: 3px;
    font-weight: 400;
  }
  
  .mobile-main-container .sub-slogan strong {
    font-weight: 700;
  }
  
  .mobile-main-container .slogan {
    color: #fff;
    font-size: 45px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
  }
  
  /* ===== 모바일 검색 박스 ===== */
  .mobile-search-box {
    width:96% !important;
    margin: 0 2%;
  }
  
  .mobile-search-box .searchBar {
    background: #fff;
    border-radius: 10px 30px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
  }
  
  .mobile-search-box .searchInt {
    width: 100%;
    height: 55px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 25px;
    background: transparent;
    box-sizing: border-box;
  }
  
  /* .mobile-search-box .searchMainBtn은 위의 .searchMain .searchMainBtn에서 통합 적용 */
  
  /* ===== 모바일 동의 영역 ===== */
  .mobile-agree {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .mobile-agree .agree-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  
  .mobile-agree .agree_txt {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
    word-break: keep-all;
    cursor: pointer;
  }
  
  .mobile-agree .agree_chk {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
  }
  
  .mobile-agree label[for="search_agree"]:first-of-type {
    flex-shrink: 0;
    cursor: pointer;
  }
  
  .mobile-disclaimer-btn {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    text-decoration: underline;
    margin-top: 8px;
    text-align: center;
  }
  
  /* ===== 모바일 면책조항 모달 ===== */
  body.is-mobile .disclaimer_box {
    display: none;
    position: fixed;
    width: 90%;
    max-width: 500px;
    height: 80vh;
    max-height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    background: #fff;
    border-radius: 12px;
    z-index: 999999 !important;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  
  body.is-mobile #mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999998;
  }
  
  /* ===== 모바일 로그인 영역 ===== */
  .mobile-login-area {
    margin: 25px 20px 0;
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  
  .mobile-login-btn,
  .mobile-join-btn {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .mobile-login-btn {
    background: #fff;
    color: #1a399e;
    border: 2px solid #fff;
  }
  
  .mobile-join-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
  }
  
  .mobile-login-btn:active,
  .mobile-join-btn:active {
    transform: scale(0.98);
  }
  
  .mobile-mypage-btn {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .mobile-mypage-btn .mypage-icon {
    float: right;
  }
  
  /* ===== 모바일 첫 섹션 배경 - PC와 동일 ===== */
  body.is-mobile #section1 {
    background: rgba(20, 0, 0, 0.85);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  body.is-mobile #section1 .overlayMV {
    background: rgba(20, 0, 0, 0.3);
  }
  
  body.is-mobile #section1 .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
body.is-mobile .mobile-main-container {
    padding: 50px 0 30px;
    background: url('../images/main/mobile_visual.png') no-repeat center top 0px;
    background-size: 130% auto;
}
  
  /* ===== fullPage.js 비활성화 ===== */
  body.is-mobile #fullpage {
    height: auto !important;
    position: relative !important;
  }
  
  body.is-mobile .section {
    height: auto !important;
    min-height: auto !important;
    position: relative !important;
  }
  
  body.is-mobile .fp-tableCell {
    height: auto !important;
    display: block !important;
  }
  
  body.is-mobile #fp-nav,
  body.is-mobile .scroll-down {
    display: none !important;
  }
  
  /* ===== 비디오 배경 숨김 ===== */
  #background-video,
  .video-bg {
    display: none !important;
  }
  
  .overlayMV {
    background: linear-gradient(135deg, #1a399e 0%, #2a4aae 100%) !important;
  }
  
  /* ===== 터치 인터랙션 ===== */
  button:active,
  .btn:active,
  a:active {
    opacity: 0.7;
  }
  
  img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
  }
  
  button,
  .btn,
  .menu-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}
