/* 마지막 메뉴 스타일 */
@media (min-width: 992px) {
    #xet-header .xet-nav-ul > li:last-child > a {
        /* 마지막 <li>의 <a> 요소에만 적용할 스타일 */
        color: white;
        height: 0px;
        line-height: 0;
        background: #001242;
        border-radius: 30px;
        padding: 20px;
    }
}


/* 첫번째 섹션 */
.xet-main-sections .xet-section:nth-child(1) {
    background-color: #ffffff;
    padding: 0px !important;
}

.xet-main-sections > .xet-section:first-of-type .xet-container{
    width: 100% !important;
    padding: 0px !important;
}

h2.section-title.wow.fadeInUp {
    font-family: 'Pretendard-Regular' !important;
    font-weight: 700;
    color: #142344;
    letter-spacing: 1px !important;
}

.fi-sr-phone-call:before {
    color: #142344;
}


/* 헤더 배경색 및 스타일 */
#xet-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#xet-header .xet-header-body {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0;
}

/* 네비게이션 메뉴 스타일 */
#xet-header .xet-nav-ul > li > a {
    color: #142344 !important;
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px;
    transition: all 0.3s ease;
    position: relative;
}

#xet-header .xet-nav-ul > li > a:hover {
    color: #001242 !important;
}

/* 활성 메뉴 표시 */
#xet-header .xet-nav-ul > li > a.current,
#xet-header .xet-nav-ul > li.active > a {
    color: #001242 !important;
    font-weight: 600;
}

#xet-header .xet-nav-ul > li > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #001242;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

#xet-header .xet-nav-ul > li > a:hover:after,
#xet-header .xet-nav-ul > li > a.current:after {
    width: 80%;
}

/* 마지막 메뉴 (연락처) 버튼 스타일 강화 */
@media (min-width: 992px) {
    #xet-header .xet-nav-ul > li:last-child > a {
        color: white !important;
        background: #001242 !important;
        border-radius: 30px !important;
        padding: 12px 25px !important;
        height: auto !important;
        line-height: normal !important;
        margin-left: 10px;
        transition: all 0.3s ease;
    }
    
    #xet-header .xet-nav-ul > li:last-child > a:hover {
        background: #002366 !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,18,66,0.3);
    }
    
    #xet-header .xet-nav-ul > li:last-child > a:after {
        display: none !important;
    }
}

/* 드롭다운 메뉴 스타일 */
.xet-nav-ul ul.submenu {
    background: #fff !important;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0 !important;
}

.xet-nav-ul ul.submenu li a {
    color: #142344 !important;
    font-size: 14px;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
}

.xet-nav-ul ul.submenu li a:hover {
    background: #f8f9fa;
    color: #001242 !important;
    padding-left: 30px !important;
}

#xet-header .xet-header-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #142344 !important;
}

/* 메가메뉴 스타일 */
.xet-nav-ul .megamenu-inner {
    background: #fff !important;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px !important;
}

.xet-nav-ul .megamenu-inner ul li a {
    color: #142344 !important;
    transition: all 0.3s ease;
}

.xet-nav-ul .megamenu-inner ul li a:hover {
    color: #001242 !important;
    transform: translateX(5px);
}

/* 모바일 메뉴 토글 버튼 */
#xet-header .xet-toggle-menu span,
#xet-header .xet-toggle-menu span::before,
#xet-header .xet-toggle-menu span::after {
    background: #142344 !important;
}

/* 스크롤시 헤더 스타일 */
#xet-header.hd-not-top {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#xet-header.hd-not-top .xet-header-body {
    background: #fff !important;
}

/* 호버 효과 강화 */
#xet-header .xet-nav-ul > li {
    transition: all 0.3s ease;
}

#xet-header .xet-nav-ul > li:hover {
    transform: translateY(-2px);
}



/* 네비게이션 배경색 흰색 설정 */
.xet-nav {
    background: #ffffff !important;
}

#xet-header .xet-header-body {
    background: #ffffff !important;
}

/* 메인 메뉴 텍스트 색상 */
#xet-header .xet-nav-ul > li > a {
    color: #000000 !important;
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px;
    transition: all 0.3s ease;
}

#xet-header .xet-nav-ul > li > a:hover {
    color: #001242 !important;
}

/* 드롭다운(서브메뉴) 스타일 */
.xet-nav-ul ul.submenu {
    background: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0 !important;
}

/* 하위 카테고리 텍스트 검정색 */
.xet-nav-ul ul.submenu li a {
    color: #000000 !important;
    font-size: 14px;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
    background: transparent !important;
}

.xet-nav-ul ul.submenu li a:hover {
    background: #f8f9fa !important;
    color: #001242 !important;
    padding-left: 30px !important;
}

/* 메가메뉴 배경 및 텍스트 */
.xet-nav-ul .megamenu-inner {
    background: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px !important;
}

/* 메가메뉴 하위 카테고리 텍스트 */
.xet-nav-ul .megamenu-inner ul li a {
    color: #000000 !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.xet-nav-ul .megamenu-inner ul li a:hover {
    color: #001242 !important;
    transform: translateX(5px);
}

.xet-nav-ul .megamenu-inner ul li p > a {
    color: #000000 !important;
    font-weight: bold;
}

/* 메가메뉴 3차 메뉴 */
.xet-nav-ul .megamenu-inner .megamenu-items a {
    color: #333333 !important;
}

.xet-nav-ul .megamenu-inner .megamenu-items a:hover {
    color: #001242 !important;
}

/* 마지막 메뉴 (연락처) 버튼은 기존 스타일 유지 */
@media (min-width: 992px) {
    #xet-header .xet-nav-ul > li:last-child > a {
        color: white !important;
        background: #001242 !important;
        border-radius: 30px !important;
        padding: 12px 25px !important;
        height: auto !important;
        line-height: normal !important;
        margin-left: 10px;
    }
    
    #xet-header .xet-nav-ul > li:last-child > a:hover {
        background: #002366 !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,18,66,0.3);
    }
}

/* 모바일 메뉴 배경 */
@media (max-width: 991px) {
    .xet-nav-ul {
        background: #ffffff !important;
    }
    
    .xet-nav-ul > li > a {
        color: #000000 !important;
    }
}

/* 스크롤시에도 배경 흰색 유지 */
#xet-header.hd-not-top {
    background: #ffffff !important;
}

#xet-header.hd-not-top .xet-header-body {
    background: #ffffff !important;
}

#xet-header.hd-not-top .xet-nav-ul > li > a {
    color: #000000 !important;
}


/* 하위 메뉴 가시성 보장 */
.xet-nav-ul ul.submenu li a {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.xet-nav-ul ul.submenu {
    background: #ffffff !important;
    opacity: 1 !important;
}

.xet-nav-ul li:hover > ul.submenu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 텍스트 선명도 개선 */
.xet-nav-ul ul.submenu li a {
    font-weight: normal !important;
    text-shadow: none !important;
}
