/* 홈캐스트 메인 스타일 - 정리된 버전 */
/* 전역 웹폰트 로드 (모든 페이지에서 동일한 렌더링) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 슬라이더 텍스트 박스 우측 정렬 */
.slide-content {
    margin-left: auto;
    margin-right: 1050px;
    max-width: 750px;
}

.slide-text {
    text-align: right;
}

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard Variable', 'Pretendard', 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    /* 좌우 스크롤 완전 방지 */
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* HTML 요소에도 좌우 스크롤 방지 적용 */
html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* 모바일에서 헤더 고정 (서브페이지와 동일하게) */
@media (max-width: 900px) {
    html {
        /* iOS Safari 스크롤 바운스 차단 */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none;
        -webkit-overscroll-behavior-y: none;
    }

    /* 모바일에서 헤더 완전 고정 */
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
        height: 70px !important;
        /* 좌우 스크롤 방지 */
        overflow-x: hidden !important;
        /* 드롭다운이 헤더 밖으로 자연스럽게 표시되도록 */
        overflow-y: visible !important;
        overflow: visible !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        /* 모바일에서 헤더 절대 고정 - 모든 브라우저 대응 */
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translate3d(0, 0, 0) !important;
        -ms-transform: translate3d(0, 0, 0) !important;
        will-change: auto !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        -moz-backface-visibility: hidden !important;
        /* iOS Safari 스크롤 바운스 완전 차단 */
        -webkit-overflow-scrolling: auto !important;
        /* paint containment 제거: 드롭다운이 헤더 밖으로 나올 수 있게 */
        contain: none !important;
        /* 추가 고정 강화 */
        margin: 0 !important;
        padding: 0.25rem 0.5rem !important;
        box-sizing: border-box !important;
        /* 절대 움직이지 않도록 강제 */
        transition: none !important;
        animation: none !important;
    }

    body {
        /* iOS Safari 스크롤 바운스 차단 */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none;
        -webkit-overscroll-behavior-y: none;
        /* 좌우 스크롤만 차단 */
        overflow-x: hidden !important;
    }

    /* 서브페이지(모바일)에서 스크롤 시 헤더 배경 흰색 처리 */
    .main-header.scrolled {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: none !important;
    }

    .main-header.scrolled .nav-link,
    .main-header.scrolled .dropdown-btn {
        color: #333 !important;
    }

    .main-header.scrolled .dropdown-btn {
        background: #ffffff !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
    }

    .main-header.scrolled .mobile-menu-toggle span {
        background: #333 !important;
    }

    /* 주의: fullPage.js의 transform을 제거하지 않습니다 (스크롤 동작 유지) */
}

/* 모바일 로고 위치 보정: 좌측 상단 고정 */
@media (max-width: 900px) {
  .logo-section {
    display: block !important;
    position: absolute !important;
    left: 0px !important;
    top: 15px !important;
    margin: 0 !important;
  }
  .logo img {
    height: 28px !important;
  }

  /* 언어 드롭다운 버튼 아래로 살짝 띄우기 */
  .dropdown.language .dropdown-menu {
    margin-top: 6px;
    right: 0;
  }
}

/* 임시 스타일 - 개발 확인용 */
.section {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* 메인 슬라이더 스타일 */
#section1 {
    background: #000;
    overflow: hidden;
    /* 섹션 자체 스크롤 숨김 */
}

.main-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* 내부 스크롤 숨김 */
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* 가로/세로 스크롤 방지 */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* 각 슬라이드에서 스크롤 방지 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide {
    background: #000;
}

/* 비디오 배경 스타일 */
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #000;
}

/* 1섹션(슬라이더) 내 임의 스크롤 표시 방지 - 브라우저별 처리 */
#section1,
#section1 * {
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

#section1 *::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

/* 혹시 비디오 컨트롤이 노출되는 경우 숨김 (WebKit 계열) */
.slide-video::-webkit-media-controls-enclosure,
.slide-video::-webkit-media-controls,
.slide-video::-webkit-media-controls-panel,
.slide-video::-webkit-media-controls-timeline,
.slide-video::-webkit-media-controls-play-button,
.slide-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5%;
    z-index: 2;
}

.slide-text {
    max-width: 600px;
    color: white;
    text-align: left;
    transition: opacity 0.5s ease;
}

.slide:not(.active) .slide-text {
    opacity: 0;
}

.slide.active .slide-text {
    opacity: 1;
}

.slide-title {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #4ade80;
}

.title-main {
    display: block;
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    color: #4ade80;
}

.slide-main-text {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-main-text .highlight {
    font-weight: 700;
    color: white;
}

.slide-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.slide-cta {
    margin-top: 2rem;
}

.btn-company {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-company::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn-company:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-company:hover::after {
    left: 0;
}

/* 슬라이더 네비게이션 */
.slider-navigation {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-number {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    letter-spacing: 1px;
}

.current-slide {
    font-size: 2.5rem;
    font-weight: 500;
}

.total-slides {
    font-size: 1.5rem;
    opacity: 0.7;
}

.progress-bar {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 5s linear;
}

.progress-fill.active {
    width: 100%;
}

.slider-controls {
    display: flex;
    gap: 1rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 우측 하단 가로 인디케이터 */
.slide-indicators {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    z-index: 10;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    border-color: white;
}

.indicator:hover {
    border-color: white;
    transform: scale(1.2);
}

/* fullPage.js 네비게이션 숨김 */
#fp-nav {
    display: none !important;
}

.fp-slidesNav {
    display: none !important;
}

.fp-controlArrow {
    display: none !important;
}

.fp-watermark {
    display: none !important;
}

.fp-tooltip {
    display: none !important;
}

.fp-section::before,
.fp-section::after {
    display: none !important;
}

/* 기본적으로 스크롤바 표시 (서브페이지용) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    -ms-overflow-style: auto;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .slide-text {
        max-width: 100%;
        text-align: center;
    }

    .slide-content {
        padding: 0 5%;
        justify-content: center;
    }

    .slide-main-text {
        font-size: 2.2rem;
        min-height: 120px;
        line-height: 1.2;
    }

    .slide-title {
        font-size: 0.9rem;
    }

    .slide-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .slider-navigation {
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        gap: 1rem;
    }

    .slide-indicators {
        right: 20px;
        bottom: 20px;
        gap: 0.8rem;
    }

    .progress-bar {
        width: 80px;
    }
}

/* 추가 모바일 스타일 (576px 이하) */
@media (max-width: 576px) {
    .slide-content {
        padding: 0 3%;
    }

    .slide-main-text {
        font-size: 1.8rem;
        min-height: 100px;
    }

    .slide-title {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn-company {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .slider-navigation {
        bottom: 20px;
        gap: 0.8rem;
    }

    .progress-number {
        font-size: 1.5rem;
    }

    .current-slide {
        font-size: 2rem;
    }

    .total-slides {
        font-size: 1.2rem;
    }

    .slide-indicators {
        right: 15px;
        bottom: 15px;
        gap: 0.6rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* 섹션 배경 색상 */
#section2 {
    background: #f8f9fa;
    color: #333;
}

#section3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

#section4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

#section5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    position: relative;
}

/* 섹션5: HR 본문 하단에 푸터 고정 부착 - new layout aligns panels + static footer */
.section5-body {
    padding-bottom: 0;
}

#section5 .site-footer {
    position: static;
}

/* ===== Footer Redesign ===== */
.site-footer {
    background: #0f0f12;
    color: #bfc3c9;
    padding: 60px 24px 24px;
}

.site-footer .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    align-items: start;
    gap: 40px;
}

.site-footer .footer-left .footer-logo img {
    width: 160px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.site-footer .footer-center .company-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer .company-info .info-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: start;
}

.site-footer .company-info .info-label {
    color: #dfe5ec;
    font-weight: 500;
}

.site-footer .company-info .info-value {
    color: #dfe5ec;
}

.site-footer .footer-right .policy-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.site-footer .footer-right .policy-link {
    color: #dfe5ec;
    text-decoration: none;
    font-weight: 500;
}

.site-footer .footer-right .policy-link:hover {
    color: #58a6ff;
}

/* Social media icon styles */
.site-footer .footer-right .social-link {
    color: #dfe5ec;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.site-footer .footer-right .social-link:hover {
    color: #58a6ff;
}

.site-footer .footer-bottom {
    max-width: 1280px;
    margin: 36px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-copy {
    color: #7e848d;
    font-size: 14px;
}

@media (max-width: 960px) {
    .site-footer {
        padding: 40px 20px 20px;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }

    .site-footer .footer-right .policy-links {
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }

    .site-footer .footer-left .footer-logo img {
        width: 120px;
    }

    .site-footer .company-info .info-row {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .site-footer .company-info .info-label {
        font-size: 0.9rem;
    }

    .site-footer .company-info .info-value {
        font-size: 0.9rem;
    }

    .site-footer .footer-bottom {
        margin: 24px auto 0;
        padding-top: 16px;
    }

    .site-footer .footer-copy {
        font-size: 13px;
    }
}

/* 모바일 (768px 이하)에서 푸터 더 작게 */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 16px 16px;
    }

    .site-footer .footer-inner {
        gap: 16px;
    }

    .site-footer .footer-left .footer-logo img {
        width: 100px;
    }

    .site-footer .company-info {
        gap: 8px;
    }

    .site-footer .company-info .info-row {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }

    .site-footer .company-info .info-label {
        font-size: 0.8rem;
    }

    .site-footer .company-info .info-value {
        font-size: 0.8rem;
    }

    .site-footer .footer-right .policy-links {
        gap: 12px;
    }

    .site-footer .footer-right .policy-link {
        font-size: 0.9rem;
    }

    .site-footer .footer-bottom {
        margin: 20px auto 0;
        padding-top: 12px;
    }

    .site-footer .footer-copy {
        font-size: 12px;
    }
}

/* 작은 모바일 (480px 이하)에서 푸터 최소화 */
@media (max-width: 480px) {
    .site-footer {
        padding: 24px 12px 12px;
    }

    .site-footer .footer-inner {
        gap: 12px;
    }

    .site-footer .footer-left .footer-logo img {
        width: 80px;
    }

    .site-footer .company-info {
        gap: 6px;
    }

    .site-footer .company-info .info-row {
        grid-template-columns: 60px 1fr;
        gap: 8px;
    }

    .site-footer .company-info .info-label {
        font-size: 0.75rem;
    }

    .site-footer .company-info .info-value {
        font-size: 0.75rem;
    }

    .site-footer .footer-right .policy-links {
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }

    .site-footer .footer-right .policy-link {
        font-size: 0.8rem;
    }

    .site-footer .footer-right .social-link {
        font-size: 1rem;
    }

    .site-footer .footer-bottom {
        margin: 16px auto 0;
        padding-top: 10px;
    }

    .site-footer .footer-copy {
        font-size: 11px;
    }
}

/* 섹션4 리디자인 스타일은 분리된 파일로 이동: assets/css/section-notice-inquiry.css */

/* 헤더 기본 스타일 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s ease;
    height: 70px;
}

.main-header:hover,
.main-header.menu-active {
    background: white;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.main-header:hover .nav-link,
.main-header.menu-active .nav-link {
    color: #333;
}

.main-header:hover .logo span,
.main-header.menu-active .logo span {
    color: #333 !important;
}

.main-header:hover .dropdown-btn,
.main-header.menu-active .dropdown-btn {
    color: #333;
    background: white;
    border-color: rgba(0, 0, 0, 0.2);
}

.main-header:hover .mobile-menu-toggle span,
.main-header.menu-active .mobile-menu-toggle span {
    background: #333;
}

/* 섹션3(회사소개)에서 헤더 스타일 */
.main-header.section3-active {
    background: transparent;
}

.main-header.section3-active .nav-link {
    color: #333;
}

.main-header.section3-active .logo span {
    color: #333 !important;
}

.main-header.section3-active .dropdown-btn {
    color: #333;
    background: transparent;
    border-color: rgba(0, 0, 0, 0.2);
}

.main-header.section3-active .mobile-menu-toggle span {
    background: #333;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    width: 100%;
}

.logo-section {
    flex-shrink: 0;
    position: absolute;
    left: 13rem;
}

.logo {
    text-decoration: none;
}

.logo img {
    height: 40px;
}

/* 메인 페이지 로고 색상 */
.logo-text {
    color: white !important;
    font-weight: 600;
    letter-spacing: .2px;
    font-size: 1.5rem;
    /* 로고 텍스트 고정 사이즈 */
}

/* Header typography tuning */
.main-header .nav-link {
    font-weight: 500;
    font-size: 1rem;
}

.main-header .dropdown-btn {
    font-weight: 500;
    font-size: 0.9rem;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    margin-left: 35rem;
}

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

.nav-item {
    margin-left: 3.5rem;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

/* 메가메뉴와 충돌하지 않도록 특정 컨텍스트로 제한 */
.main-navigation .nav-link:hover {
    color: #007bff !important;
}

.main-header:hover .main-navigation .nav-link:hover,
.main-header.menu-active .main-navigation .nav-link:hover {
    color: #007bff !important;
}

/* 우측 헤더 메뉴 스타일 */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10010; /* 메가메뉴(10000) 및 모바일 패널(9999)보다 위 */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.language .dropdown-menu {
    min-width: 120px;
    width: auto;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* 햄버거 메뉴 스타일 */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #007bff;
}

/* 반응형 디자인 */
@media (max-width: 1710px) {
    .dropdown-btn span {
        display: none;
    }

    .dropdown-btn i {
        display: none;
    }

    .dropdown-btn {
        padding: 0.5rem 0.7rem;
        min-width: 35px;
        justify-content: center;
    }

    .family-site .dropdown-btn::before {
        content: "🏢";
        font-size: 1rem;
    }

    .language .dropdown-btn::before {
        content: "🌐";
        font-size: 1rem;
    }

    .header-right {
        gap: 0.5rem;
    }
}

@media (max-width: 1350px) {
    .main-navigation {
        margin-left: 0;
        justify-content: center;
    }

    .nav-item {
        margin-left: 2rem;
    }
}

@media (max-width: 1024px) {
    .nav-item {
        margin-left: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .header-right {
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {

    /* 모바일에서 헤더 완전 고정 - 메뉴만 표시 */
    .main-header,
    header.main-header,
    .header,
    header {
        position: fixed !important;
        top: 0px !important;
        left: 0px !important;
        right: 0px !important;
        z-index: 10000 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
        height: 70px !important;
        /* 좌우 스크롤 방지 */
        overflow-x: hidden !important;
        /* 드롭다운이 헤더 밖으로 자연스럽게 표시되도록 */
        overflow-y: visible !important;
        overflow: visible !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        /* 모바일에서 헤더 절대 고정 - 모든 브라우저 대응 */
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        -moz-transform: translate3d(0, 0, 0) !important;
        -ms-transform: translate3d(0, 0, 0) !important;
        will-change: auto !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        -moz-backface-visibility: hidden !important;
        /* iOS Safari 스크롤 바운스 완전 차단 */
        -webkit-overflow-scrolling: auto !important;
        /* paint containment 제거: 드롭다운이 헤더 밖으로 나올 수 있게 */
        contain: none !important;
        /* 추가 고정 강화 */
        margin: 0 !important;
        padding: 0.25rem 0.5rem !important;
        box-sizing: border-box !important;
        /* 절대 움직이지 않도록 강제 */
        transition: none !important;
        animation: none !important;

    }

    .main-navigation {
        display: none;
    }

    .header-right {
        position: absolute;
        transform: none;
        top: 8px;
        right: 10px;
        flex-shrink: 0;
    }

    /* 모바일에서 기본 상태 - 흰색 요소들 */
    .main-header .dropdown-btn {
        color: white !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    .main-header .mobile-menu-toggle span {
        background: white !important;
    }

    /* 전체메뉴가 열렸을 때만 검정색으로 변경 */
    .main-header.menu-active .dropdown-btn {
        color: #333 !important;
        background: white !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
    }

    .main-header.menu-active .mobile-menu-toggle span {
        background: #333 !important;
    }
}

/* Global Menu: mobile header logo sizing */
@media (max-width: 768px) {
  .gm-header .gm-logo-image {
    height: 26px !important; /* 기존보다 소폭 축소 */
    width: auto !important;
  }
}

@media (max-width: 480px) {
  .gm-header .gm-logo-image {
    height: 22px !important; /* 초소형에서는 한 단계 더 축소 */
    width: auto !important;
  }
}