@charset "utf-8";

/* ==========================================================
 * IB인베스트먼트투자클럽 모바일 반응형 전용 스타일시트 (768px 이하)
 * ========================================================== */

@media (max-width: 768px) {
    /* 최상위 컨테이너 가로 오버플로우 방지 및 여백 제거 */
    html,
    body,
    #wrap,
    .fs26-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 0. 모바일 좌우 여백 중첩 제거 및 10px 단일 통일 (부모 컨테이너만 지정) */
    .fs26-container,
    #wrap .inner {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* 컨테이너 하위의 레이아웃/그리드 요소들은 패딩을 0으로 설정하여 중첩 방지 */
    .fs26-hero-wrap,
    .fs26-trust-grid,
    .fs26-posts-grid,
    .fs26-gallery-grid,
    .fs26-service-grid,
    .fs26-alert-grid {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    body.fs26-wrap .fs26-section {
        padding: 40px 0 !important; /* 상하 여백도 모바일에 맞춰 축소 */
    }

    /* 1. GNB 헤더 모바일 정렬 및 햄버거 메뉴 구조 */
    .fs26-gnb .gnb-main .fs26-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        height: 54px !important;
        max-width: 100% !important;
    }
    
    .fs26-gnb .gnb-logo {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .fs26-gnb .gnb-logo img {
        height: 44px !important;
        width: auto !important;
    }
    
    /* 기존 가로 스크롤 GNB는 모바일에서 숨김 */
    .fs26-gnb .gnb-menu {
        display: none !important;
    }
    
    /* 모바일 햄버거 버튼 디자인 */
    .fs26-gnb .gnb-burger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 20px !important;
        height: 14px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 9991 !important;
    }
    
    .fs26-gnb .gnb-burger span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: #1a1a1a !important;
        border-radius: 2px !important;
        transition: all 0.2s ease !important;
    }
    
    /* 모바일용 전체화면 슬라이드 오버레이 네비게이션 */
    .fs26-mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 100000 !important; /* 항상 최상위에 뜨도록 설정 */
        display: block !important; /* PC용 display: none 해제 */
        visibility: hidden !important;
        pointer-events: none !important;
        transition: visibility 0.3s ease !important;
    }
    
    .fs26-mobile-nav.active {
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .fs26-mobile-nav .nav-mask {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(1.5px) !important;
        -webkit-backdrop-filter: blur(1.5px) !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    .fs26-mobile-nav.active .nav-mask {
        opacity: 1 !important;
    }
    
    .fs26-mobile-nav .nav-content {
        position: absolute !important;
        top: 0 !important;
        right: -280px !important;
        width: 280px !important;
        height: 100% !important;
        background: #fff !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    .fs26-mobile-nav.active .nav-content {
        right: 0 !important;
    }
    
    .fs26-mobile-nav .nav-header {
        padding: 15px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .fs26-mobile-nav .nav-logo img {
        height: 40px !important;
        width: auto !important;
    }
    
    .fs26-mobile-nav .nav-close {
        font-size: 32px !important;
        background: transparent !important;
        border: none !important;
        color: #555 !important;
        cursor: pointer !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    .fs26-mobile-nav .nav-menu {
        list-style: none !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        overflow-y: auto !important;
        flex: 1 !important;
    }
    
    .fs26-mobile-nav .nav-item {
        border-bottom: 1px solid #f8f9fa !important;
    }
    
    .fs26-mobile-nav .nav-link {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #222 !important;
        text-decoration: none !important;
        transition: background 0.15s ease !important;
    }
    
    .fs26-mobile-nav .nav-item.has-sub.open > .nav-link {
        color: var(--fs-dark) !important;
        background: #fcfcfc !important;
    }
    
    .fs26-mobile-nav .nav-link .arrow {
        display: inline-block !important;
        width: 6px !important;
        height: 6px !important;
        border-top: 1.5px solid #888 !important;
        border-right: 1.5px solid #888 !important;
        transform: rotate(135deg) !important;
        transition: transform 0.2s ease !important;
        margin-right: 4px !important;
    }
    
    .fs26-mobile-nav .nav-item.has-sub.open > .nav-link .arrow {
        transform: rotate(-45deg) !important;
        border-color: var(--fs-dark) !important;
    }
    
    .fs26-mobile-nav .nav-sub {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fafafa !important;
        display: none;
    }
    
    .fs26-mobile-nav .nav-sub a {
        display: block !important;
        padding: 12px 30px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #555 !important;
        text-decoration: none !important;
        transition: color 0.15s ease !important;
        border-bottom: 1px solid #f4f4f4 !important;
    }
    
    .fs26-mobile-nav .nav-sub li:last-child a {
        border-bottom: none !important;
    }
    
    .fs26-mobile-nav .nav-sub a:active,
    .fs26-mobile-nav .nav-sub a:hover {
        color: var(--fs-dark) !important;
    }
    
    /* 2. Hero 배너 영역 (모바일 높이 붕괴 해결) */
    .fs26-hero .fs26-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .fs26-hero-wrap {
        display: block !important;
        height: auto !important;
        margin-bottom: 12px !important;
        padding-left: 0 !important; /* 배너는 양끝 여백 없이 꽉 채우기 */
        padding-right: 0 !important;
    }
    
    .fs26-hero-slider,
    .fs26-hero-slider .swiper-container2,
    .fs26-hero-slider .swiper-wrapper,
    .fs26-hero-slider .swiper-slide {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important; /* PC의 min-height 무력화 */
        aspect-ratio: 1000 / 368 !important; /* 원래 이미지 해상도(1000x368) 비율 유지 */
    }
    
    .fs26-hero-slider .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: fill !important; /* 비율이 부모에서 고정되므로 채우기 */
    }
    
    .fs26-hero-list {
        display: none !important; /* 우측 텍스트 리스트 숨김 */
    }
    
    .fs26-hero-quick {
        grid-template-columns: 1fr !important; /* 세로 1열 */
        gap: 8px !important;
        padding-top: 12px !important;
        padding-left: 10px !important; /* 하단 퀵카드는 본문 여백에 맞춤 */
        padding-right: 10px !important;
    }
    
    .fs26-hero-quick .q-card {
        padding: 14px 16px !important;
    }
    
    /* 3. Trust Bar (수익률 지표) */
    .fs26-trust-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding-left: 0 !important; /* 부모인 container에 10px 패딩이 있으므로 중첩 방지를 위해 0으로 설정 */
        padding-right: 0 !important;
    }
    
    .fs26-trust-item {
        padding: 0 5px !important;
    }
    
    .fs26-trust-item:not(:last-child)::after {
        display: none !important;
    }
    
    .fs26-trust-item:nth-child(even)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        width: 1px;
        height: 70%;
        background: var(--fs-border);
    }
    
    .fs26-trust-item .num {
        font-size: 26px !important;
    }
    
    .fs26-trust-bar .fs26-trust-item.tel-item {
        grid-column: 1 / -1 !important;
        border-top: 1px dashed var(--fs-border) !important;
        padding-top: 14px !important;
        margin-top: 4px !important;
    }
    
    /* 4. 실시간 투자성과 */
    .fs26-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .fs26-post-card .thumb {
        height: 170px !important;
    }
    
    /* 5. 수익인증 갤러리 */
    .fs26-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .fs26-gallery-card .thumb {
        height: 130px !important;
    }
    
    .fs26-gallery-card.gal-more {
        min-height: 190px !important;
    }
    
    /* 6. 비디오 및 서비스 */
    .fs26-videos {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .fs26-service-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    .fs26-service-card {
        padding: 25px 15px !important;
        min-height: auto !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .fs26-service-card::before {
        display: none !important;
    }
    
    .fs26-service-card::after {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        display: inline-flex !important;
        margin-bottom: 12px !important;
    }
    
    .fs26-service-card .icon {
        position: absolute !important;
        left: 50% !important;
        top: 40px !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .fs26-service-card .btn {
        align-self: center !important;
        padding: 10px 24px !important;
    }
    
    /* 7. 공지 & 사칭 경고 */
    .fs26-alert-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .fs26-alert-list {
        min-height: auto !important;
    }
    
    /* 8. Final CTA 및 푸터 */
    .fs26-cta {
        padding: 40px 15px !important;
    }
    
    .fs26-cta .phone {
        font-size: 30px !important;
    }
    
    .footer-meta__inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .footer-contact {
        flex-direction: column !important;
        gap: 4px !important;
        align-items: center !important;
    }
}
