/* 전역 안전벨트 - 문제 원인이 제거되면 주석 처리 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 전역 이미지/비디오 스타일 */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 긴 텍스트 오버플로우 방지 */
.email, .url, code, pre {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 기본 폰트 설정 */
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSansLight';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'GmarketSansMedium', sans-serif;
    background-color: #f5f7fa;
}

/* 네비게이션 바 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* 스크롤 시 네비게이션 바 투명도 변경 */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    padding: 0;
    margin-left: 0px;
}

.navbar-brand img {
    height: 35px;
    filter: brightness(0);
}

.nav-link {
    color: #444;
    font-weight: 400;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: #1a56ff;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #1a56ff;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item {
    margin: 0 40px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    min-width: 220px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s ease;
    color: #000;
}

.dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.dropdown-item:hover {
    background-color: #edf2ff;
    color: #1a56ff;
    font-weight: 500;
}

.dropdown-item:active {
    background-color: #dbe4ff;
    color: #1a56ff;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    margin: 0 auto;
}

/* 메인 컨텐츠 영역 */
.main-content {
    margin-top: 75px;
    min-height: calc(100vh - 75px - 200px); /* 네비게이션 높이와 푸터 높이를 제외한 최소 높이 */
}

/* 히어로 섹션 */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-container {
    position: relative;
    width: 1700px;
    max-width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-caption {
    position: absolute;
    bottom: 30%;
    left: 10%;
    text-align: left;
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.hero-caption h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    white-space: nowrap;
}

.hero-caption p {
    font-size: 1.5rem;
    font-family: 'GmarketSansLight', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

/* 푸터 스타일 */
.footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
    position: relative;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.footer-info {
    text-align: left;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
    font-weight: 300;
    font-family: 'GmarketSansLight', sans-serif;
}

.footer-info .address {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100vw;
}

.copyright {
    font-size: 0.9rem;
    color: #999;
    position: relative;
    z-index: 1;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        margin-top: 0px;
        padding-top: 0px;
        border-top: 1px solid #eee;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .nav-item {
        margin: 0px 0px 10px 20px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .navbar-brand img {
        height: 28px;
    }

    .hero-caption {
        display: none;
    }

    .section-container-1 {
        justify-content: center;
        gap: 60px;
    }
}

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

    .footer-info h3 {
        font-size: 1.3rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.85rem;
    }

    .hero-image {
        height: 250px;
        object-fit: cover;
    }

    .section-container-1 {
        flex-direction: column;
        padding: 1rem;
        gap: 20px;
    }

    .section-box {
        width: 100%;
        margin-bottom: 0rem;
    }

    .section-box p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* ===========================================
   섹션 타이틀
   모든 페이지에서 통일된 섹션 타이틀 스타일
   =========================================== */
.section-title {
    text-align: center;
    padding: 0.8rem 2rem;
    position: relative;
    max-width: 1800px;
    margin: 50px auto 30px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c7c1c1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title::before {
    top: 0;
}

.section-title::after {
    bottom: 0;
}

.section-title h2 {
    font-size: 1.5rem;
    color: #2a2a2a;
    margin: 10px 0px 0px 0px;
    padding: 0.5rem 0;
    font-family: 'GmarketSansMedium', sans-serif;
}

/* 섹션 타이틀 반응형 스타일 */
@media (max-width: 767.98px) {
    .section-title {
        padding: 0.2rem 2rem;
        margin: 20px auto 30px;
    }
    
    .section-title h2 {
        font-size: 1rem;
    }
}

/* 섹션 컨테이너 1 */
.section-container-1 {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 1.5rem 1rem;
}

.section-box {
    width: 650px;
}

.section-box p {
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2.0;
    margin-bottom: 1rem;
    color: #000;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .section-container-1 {
        justify-content: center;
        padding: 1rem 2rem;
        gap: 60px;
    }
}

@media (max-width: 767.98px) {
    .section-container-1 {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 20px;
    }

    .section-box {
        width: 100%;
        margin-bottom: 0rem;
    }

    .section-box p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 1199.98px) {
    .section-container-2 {
        padding: 1rem 2rem;
        justify-content: flex-start;
    }

    .image-grid {
        max-width: 900px;
        gap: 12px;
    }
}

.spec-table td {
    padding: 8px;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #000;
}

/* ===========================================
   스크롤 투 탑 버튼 (모바일 전용)
   =========================================== */

.scroll-to-top-btn {
    position: fixed !important;
    bottom: 30px;
    right: 20px;
    left: auto;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin: 0;
    padding: 0;
}

.scroll-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.scroll-to-top-btn:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.05);
}

.scroll-to-top-btn i {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 태블릿(768~991.98px)에서는 숨김, 모바일/데스크톱에서만 표시 가능 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .scroll-to-top-btn {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    /* 모바일에서 스크롤 투 탑 버튼 위치 조정 - 카드와 겹치지 않도록 화면 오른쪽 끝에 배치 */
    .scroll-to-top-btn {
        right: 20px !important;
        left: auto !important;
    }
}