html, body {
    height: 100%;  /* 전체 페이지 높이를 100%로 설정 */
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-left: 1px;
    padding-right: 1px;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    padding-bottom: 350px; /* fixed-bottom의 높이와 동일하게 설정 */

}

header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2px; /* header 아래 여백 */
    margin-top: 42px;
}

.navbar {
    width: 100%;
}

.container {
    max-width: 1200px; /* 최대 너비를 설정하여 가운데 정렬 */
    margin: 0 auto;    /* 좌우 가운데 정렬 */
    padding: 0 15px;   /* 좌우 여백 설정 */
}

.mainLogo {
    display: inline-block;
    width: 150px;
}

.mainLogo img {
    width: 100%; 
    height: auto; 
}

.nav-item {
    position: relative;
}
.nav-navbar{
  display: flex;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-title {
    display: block;
    padding-right: 0;
    padding-left: 0;
    text-decoration: none;
    font-weight: 700;
    
  }
.nav-button {
    display: flex;
}


.submenu {
    display: none;
    position: absolute;
    top: 100%; /* 메인 메뉴 바로 아래 */
    left: 50%; /* 부모 요소의 중앙에 위치 */
    transform: translateX(-50%); /* 자신의 너비의 절반만큼 왼쪽으로 이동 */
    width: 200px; /* 원하는 너비로 조정 */
    /* background-color: #f9f9f9; */
    padding: 10px 0;
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    z-index: 10;
}

.submenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;

}

.submenu ul li a {
    display: block;
    padding: 8px 10px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;

}

.submenu ul li a:hover {
    color: #007bff;
}

/* 로케이션 스타일 */
.location {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.loca_home a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    padding-right: 10px;
}

.loca_sel {
    position: relative;
    font-size: 16px;
    cursor: pointer;
}

.loca_sel:hover .hidden_div {
    display: block;
}
/* 서브 메뉴 */
.hidden_div {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.hidden_loca {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.hidden_loca li {
    position: relative; /* li를 기준으로 a를 확장 */
}

.hidden_loca li a {
    display: block; /* a 태그를 블록 요소로 변경 */
    width: 100%; /* 부모(li)의 너비를 모두 차지 */
    height: 100%; /* 부모(li)의 높이를 모두 차지 */
    padding: 10px 15px; /* 클릭 영역을 더 넓게 */
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    z-index: 1000;
}

.hidden_loca li:hover {
    background-color: #e1e1e9a6;
}
.hidden_loca li a:hover {
    color:#044489;
    font-weight: 800;
}

.submenu-background {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw; /* 전체 화면 너비로 설정 */
    height: 0; /* 기본적으로 보이지 않음 */
    background-color: rgba(200, 200, 200, 0.98); /* 연한 회색 배경색 */
    transition: height 0.3s ease; /* 애니메이션 효과 */
    z-index: 900; /* 서브메뉴보다 낮지만 상위 요소보다는 높게 */
}

/* navbar-nav에 마우스를 올렸을 때 서브메뉴 배경 표시 */
/* .navbar:hover .submenu-background {
    height: 340px; 
} */

.new-content {
    max-height: 700px;
    min-height: 250px;
}
.inner-vertical {
    max-width: 1200px;
    min-height: 450px;
    margin: 0 auto;
    padding: 50px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */

}
.inner-horizontal {
    max-width: 1200px;
    min-height: 450px;
    margin: 0 auto;
    padding: 50px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;

}
/* gnb_top 스타일링 */
.gnb_top_pc_back { 
    background-color: #f9f9f9; 
    border-bottom: 1px solid #ddd; 
    display: flex; 
    justify-content: center; 
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 35px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
} 
.gnb_top_pc_text { 

    text-align: right; 
    padding: 5px 0px;
    display: flex; 
    justify-content: space-between; 
    position: fixed;
    top: 0;
    z-index: 1000;
    width: clamp(500px, 1300px, 1300px);
    
} 
.gnb_top_pc_text ul li{ 
    white-space: nowrap;
    
} 
.gnb_top_mobile { 
    background-color: #f9f9f9; 
    padding: 8px 15px; 
    text-align: center; 
    border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; 
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
} 

.gnb_sub { 
    list-style: none; margin: 0; padding: 0; display: flex; 
} 

.gnb_sub li { 
    margin-right: 20px; 
} 

.gnb_sub li a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 500; 
    transition: color 0.3s; 
    font-size: 14px; 
} 


.gnb_sub li a:hover{ 
    color: #044489; 
}

/* nav */
.d-flex {
    display: flex;
}
.herder-btn {
    border: 1.5px solid #044489; /* 테두리 색과 두께 */
    border-radius: 5px; /* 라운드 모서리 */
    background-color: #044489; /* 배경 색 */
    color: #ffffff; /* 텍스트 색 */
    text-align: center; /* 텍스트 중앙 정렬 */
    padding: 5px 25px; /* 패딩 */
    font-size: 1rem; /* 폰트 크기 */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s; /* 배경색과 텍스트 색 전환 애니메이션 */
    display: block; /* 블록 요소로 설정 */
    width: 100%; /* 기본적으로 너비 100% */
    white-space: nowrap;
    margin: 0 10px;
}

.herder-btn:hover,
.herder-btn:focus,
.herder-btn:active {
    background-color: #ffffff; /* 선택 시 배경색 */
    color: #044489; /* 선택 시 텍스트 색 */
    outline: none; /* 포커스 시 아웃라인 제거 */
    box-shadow: none; /* 클릭 시 그림자 제거 */
    text-decoration: none;
}
/* 배너 전체 스타일 */
.banner {
    background-color: #E9E9F4;
    /* background-image: url('/images/banner-bg.jpg'); */
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
    color: white;
    position: relative;
}

/* 배너 안의 컨텐츠 스타일 */
.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 제목 스타일 */
.banner-title {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #111;
}
/* 경로 스타일 (breadcrumb) */
.breadcrumb {
    font-size: 16px;
    color: #111;
    justify-content: center;
    background-color: transparent;
}

.breadcrumb a {
    color: #111;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* floating btn */

.floating-btn-pc {
    position: fixed;
    bottom: 38px;
    right: 15px;
    z-index: 9000;
    font-size: 14px;
    background-color: #ff9800;
    border-color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    color: #ffffff;
    text-decoration: none;
    pointer-events: none;
}
.floating-btn-mobile{
    display: none;
    position: fixed;
    bottom: 38px;
    right: 15px;
    z-index: 3000;
    font-size: 14px;
    background-color: #044489;
    border-color: #044489;
    border: 1px solid #044489;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    color: #ffffff;
    text-decoration: none;
}

.fixed-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  /* 모바일 상담 폼 컨테이너 */
.prd-fixed-request {
    display: flex;

    /* background-color: #f9f9f9; */
    padding: 2px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    width: 100%;
    margin: 2px auto;
    gap:5px
}

/* 폼 내부 정렬 */
.fixed-title {
    display: flex;
    justify-content: space-between;
}
.fixed-title h4 {
    margin-left: 2px;
    font-size: 1.1rem;
    white-space: nowrap;
    font-weight: 900;
}
.fixed-title span {
    font-size: 0.8rem;

}
.office-search {
    width: 400px;
}

/* 설명 텍스트 */
.fixed-request span {
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 입력 필드 스타일 */
.fixed-request-dp {
    display: flex;
    gap: 20px;
}
.fixed-request-form input {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 버튼 스타일 */
.fixed-request-form .btn-request {
    width: 100%;
    background-color: #044489;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.close-btn, .close-btn-pop {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}

/* 버튼 hover 효과 */
.fixed-request-form .btn-request:hover {
    background-color: #044489;
}


/* 고정상담 폼 컨테이너 */
.prd-office-searchbar {
    /* background-color: #f9f9f9; */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    width: 100%;
    max-width: 1200px;
}

/* 폼 내부 정렬 */
.office-align {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px; /* 각 항목 사이의 간격 */
}


/* 설명 텍스트 */
.office-search span {
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 입력 필드 스타일 */
.officesearch input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 버튼 스타일 */
.officesearch .btn-search {
    background-color: #044489;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

/* 버튼 hover 효과 */
.officesearch .btn-search:hover {
    background-color: #044489;
}

.onlinebtn h4 {
    font-weight: 900;
}

/* 토글 버튼 */
.navbar-toggler {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .toggler-icon {
    width: 30px;
    height: 3px;
    background-color: #044489;
  }


  .navbar-collapse.show {
    display: flex; /* 토글 시 표시 */
  }

.request-bottom{
    padding: 10px;background-color: #ffffff;background-image: url('/images/jh_bg_3.png');background-size: cover;background-position: center;
}

/* 팝업 오버레이 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    z-index: 1000;
}

/* 팝업 컨텐츠 */
.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

/* 타이틀 섹션 */
.popup-title h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    text-align: center;
}

.popup-title span {
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    color: #666;
}

/* 폼 스타일 */
.popup-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.popup-form .btn-submit {
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.popup-form .btn-submit:hover {
    background: #0056b3;
}

/* 닫기 버튼 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}
/* 로딩 화면 스타일 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.bouncing-notes {
    display: flex;
    gap: 10px;
}

.note {
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.note:nth-child(2) {
    animation-delay: 0.2s;
}

.note:nth-child(3) {
    animation-delay: 0.4s;
}

/* 숨기기 위한 클래스 */
.hidden {
    display: none;
}

/*개인정보 동의*/
.privacy-consent {
    margin-top: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }
.privacy-consent input {
    width: auto;
    margin: 10px;
}
  .privacy-consent label{
    margin-bottom: 0px;
  }
  .privacy-info-btn {
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
  }
  .Privacy {
    font-size: 13px;
  }
  .Privacy_pop{
    font-size: 12px;
  }


@media (min-width: 1325px) {

    /* gnb_top 스타일링 */
    .gnb_top_mobile { 
        display: none;
     }

     .fixed-bottom {
        display: none;
      }
      body {
        padding-bottom: 0;
      }
      .pc-none{
        display: none;
      }
      .floating-btn-mobile {
        display: none;
      }


}
@media (min-width: 769px) and (max-width: 1324px) {

    /* gnb_top 스타일링 */

     .fixed-bottom {
        display: none;
      }
      body {
        padding-bottom: 0;
      }
      .tablet-none{
        display: none;
      }
      .floating-btn-mobile {
        display: none;
      }
      


}

@media (max-width: 768px) {
    .container {
        margin: 0 5px;    /* 좌우 가운데 정렬 */
    }
    .navbar-brand {
        width: 90px; /* 작은 화면에서 너비 축소 */
    }
    .main-container{
        padding: 0 5px; /* 작은 화면에서 패딩 조정 */
    }
    /* gnb_top 스타일링 */
    .gnb_top_pc { 
        display: none;
     }
     .gnb_sub li a { 
        font-size: 12px; 
    } 
     /* nav */
     .d-flex.mobile-none {
        display: none !important;
    }
    .submenu-background{
        display: none !important;
    }
    .submenu {
        display: none !important;
    }
    .mobile-none{
        display: none;
      }
    .banner {
        padding: 15px 0;
    }
    .banner-title {
        font-size: 25px;
        margin-bottom: 1px;
    }
    .breadcrumb {
        font-size: 12px;
    }
    .floating-btn-pc{
    display: none;
    }
      .inner-horizontal {
        padding: 20px 20px;
    }
    .onlinebtn h4 {
        font-size: 16px
    }
    .office-align {
        flex-direction: column;

    }
    .Privacy {
        font-size: 8px;
        white-space: nowrap;
      }
      .privacy-consent input {
        margin: 5px;
    }
    .office-search span {
        font-size: 0.7rem;
    }
    .officesearch input {
        padding: 6px;
    }
    .office-align {
        gap: 10px;
    }
    .office-search {
        width: 100%;
    }
}