@charset "utf-8";

/* ===================================
   더 팰리스트 데시앙 테마 CSS
=================================== */

:root {
    --primary-color: #a33570;
    --primary-dark: #8a2d5f;
    --primary-light: #c75a92;
    --secondary-color: #1a1a2e;
    --text-dark: #222222;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --font-main: 'Noto Sans KR', sans-serif;
    --transition: all 0.3s ease;
    --header-height: 90px;
}

/* 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
}

ul, ol, dl {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
}

hr {
    display: none;
}

/* 접근성 */
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#skip_to_container a {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
}

#skip_to_container a:focus {
    top: 0;
}

/* ===================================
   헤더 스타일
=================================== */
#hd {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

#hd_h1 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* 메인 페이지 - 투명 헤더 */
#hd.hd_main {
    background: transparent;
}

#hd.hd_main.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 서브 페이지 - 흰색 헤더 */
#hd:not(.hd_main) {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#hd_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
    height: var(--header-height);
}

/* 로고 스타일 - 투명 배경 */
#logo {
    flex-shrink: 0;
}

#logo a {
    display: block;
}

#logo img {
    height: 70px;
    width: auto;
}

/* 네비게이션 */
#gnb {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

#gnb > h2 {
    position: absolute;
    font-size: 0;
    overflow: hidden;
}

#gnb_1dul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gnb_1dli {
    position: relative;
}

.gnb_1da {
    display: block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.3px;
    transition: var(--transition);
    white-space: nowrap;
}

#hd.scrolled .gnb_1da,
#hd:not(.hd_main) .gnb_1da {
    color: var(--text-dark);
}

.gnb_1da:hover {
    color: var(--primary-color) !important;
}

/* 2차 메뉴 */
.gnb_2dul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 10px 0;
}

.gnb_1dli:hover .gnb_2dul {
    opacity: 1;
    visibility: visible;
}

.gnb_2dli {
    border-bottom: 1px solid #f0f0f0;
}

.gnb_2dli:last-child {
    border-bottom: none;
}

.gnb_2da {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.gnb_2da:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* ===================================
   상담문의 박스 - 이미지와 동일하게
=================================== */
.hd_right {
    flex-shrink: 0;
}

.hd_tel {
    display: flex;
    align-items: center;
    background: var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
}

.hd_tel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(163, 53, 112, 0.4);
}

.tel_label {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.15);
}

.tel_number {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* ===================================
   메인 슬라이더
=================================== */
#main_slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.main_swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

/* 동영상 슬라이드 */
.slide_video_wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide_video_wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 이미지 슬라이드 */
.slide_image_wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Swiper 페이지네이션 */
.main_swiper .swiper-pagination {
    bottom: 60px !important;
}

.main_swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px !important;
    transition: var(--transition);
}

.main_swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Swiper 네비게이션 */
.main_swiper .swiper-button-prev,
.main_swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: var(--transition);
}

.main_swiper .swiper-button-prev {
    left: 20px;
}

.main_swiper .swiper-button-next {
    right: 20px;
}

.main_swiper .swiper-button-prev:hover,
.main_swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.main_swiper .swiper-button-prev::after,
.main_swiper .swiper-button-next::after {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

/* 스크롤 다운 인디케이터 */
.scroll_down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.scroll_text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 8px;
}

.scroll_dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scrollDot 1.5s ease infinite;
}

@keyframes scrollDot {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
}

/* ===================================
   콘텐츠 영역
=================================== */
#wrapper {
    width: 100%;
}

#container_wr {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

#container {
    width: 100%;
}

#container_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

/* ===================================
   최신글 영역
=================================== */
.latest_top_wr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.latest_wr {
    margin-bottom: 60px;
}

.latest_wr::after {
    content: '';
    display: block;
    clear: both;
}

.lt_wr {
    width: 32%;
    margin-bottom: 30px;
}

/* ===================================
   푸터 스타일
=================================== */
#ft {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 40px;
}

#ft_wr {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

#ft_copy {
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

#ft_copy a {
    color: var(--primary-color);
}

/* ===================================
   공통 버튼 스타일
=================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
}

.btn_primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn_primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn_outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn_outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===================================
   폼 스타일
=================================== */
.frm_input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    transition: var(--transition);
}

.frm_input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(163, 53, 112, 0.1);
    outline: none;
}

textarea.frm_input {
    height: auto;
    padding: 15px;
    resize: vertical;
}

/* ===================================
   테이블 스타일
=================================== */
.tbl_head01 {
    width: 100%;
    border-collapse: collapse;
}

.tbl_head01 th,
.tbl_head01 td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.tbl_head01 th {
    background: var(--bg-light);
    font-weight: 600;
}

/* ===================================
   페이징
=================================== */
.pg_wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pg {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pg_page,
.pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.pg_page {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.pg_page:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pg_current {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-weight: 600;
}

/* ===================================
   반응형
=================================== */
@media screen and (max-width: 1200px) {
    #hd_wrapper {
        padding: 0 20px;
    }
    
    #container_wr {
        padding: 60px 20px;
    }
    
    .gnb_1da {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .tel_label {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .tel_number {
        font-size: 18px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    #logo img {
        height: 55px;
    }
    
    #gnb {
        display: none;
    }
    
    .tel_label {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tel_number {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .latest_top_wr {
        grid-template-columns: 1fr;
    }
    
    .lt_wr {
        width: 100%;
        float: none !important;
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    #main_slider {
        min-height: 500px;
    }
    
    .main_swiper .swiper-button-prev,
    .main_swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .main_swiper .swiper-button-prev::after,
    .main_swiper .swiper-button-next::after {
        font-size: 14px;
    }
    
    #container_wr {
        padding: 40px 15px;
    }
}

/* ===================================
   로그인 메시지
=================================== */
#hd_login_msg {
    display: none;
}

/* ===================================
   메뉴 비어있을 때
=================================== */
.gnb_empty {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

#hd.scrolled .gnb_empty,
#hd:not(.hd_main) .gnb_empty {
    color: var(--text-light);
}

/* ===================================
   기본 폼 스타일 (그누보드 호환)
=================================== */
.tbl_frm01 {
    margin: 0 0 20px;
}

.tbl_frm01 table {
    width: 100%;
    border-collapse: collapse;
}

.tbl_frm01 th {
    width: 120px;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    text-align: left;
    font-weight: 600;
}

.tbl_frm01 td {
    padding: 15px;
    border: 1px solid var(--border-color);
    background: #fff;
}

/* ===================================
   기타 유틸리티
=================================== */
.empty_table,
.empty_list {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
}

.required {
    background-image: url('../img/require.png');
    background-repeat: no-repeat;
    background-position: right top;
}
