@charset "utf-8";

/* ====================================================================== 
   [01] 모바일 프리미엄 블루 테마 변수 및 표준 리셋 
====================================================================== */
:root {
    --primary-blue: #0A58CA;      /* 세련된 로열 블루 */
    --primary-hover: #08449E;     /* 액티브 블루 */
    --deep-navy: #0F172A;         /* 헤더 텍스트 및 푸터 배경 딥 네이비 */
    --light-bg: #F8FAFC;          /* 서브 배경 블루 그레이 */
    --border-color: #E2E8F0;      /* 가벼운 보더 라인 */
    --text-dark: #1E293B;         /* 본문 텍스트 */
    --text-muted: #64748B;        /* 서브 텍스트 그레이 */
}

html, body {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden; 
    overflow-y: visible !important; 
    position: relative !important;
    -webkit-text-size-adjust: none;
}

ul, li { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; padding: 0; outline: none; }

#m_wrapper {
    padding-top: 55px !important; 
    box-sizing: border-box;
}

#container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px;
    box-sizing: border-box;
}

/* 그누보드 컴포넌트 상단 덮임 방지 보정값 */
#bo_list, #bo_v, #bo_w, .g5_msb_title, #ctt, #sch_res_ov, #bo_gall { 
    margin-top: 60px !important; 
    box-sizing: border-box !important; 
}

/* ====================================================================== 
   [02] 고정형 글로벌 모바일 상단 헤더 
====================================================================== */
#m_hd { 
    background: #ffffff; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); 
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
}

.hd_container { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 15px; position: relative; }
.hd_left .btn_menu { font-size: 20px; color: var(--deep-navy); width: 40px; height: 40px; text-align: left; display: block; }
.hd_center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hd_center .m_logo img { height: 40px; width: auto; display: block; } /* 로고 비율 최적화 */
.hd_right .btn_search { font-size: 20px; color: var(--deep-navy); width: 40px; height: 40px; text-align: right; display: block; }

/* 서브페이지 전용 네비게이션 타이틀 바 */
.m_sub_title_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    height: 50px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    z-index: 990;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.m_sub_title_bar .btn_back {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--text-dark); border-radius: 50%;
}

.m_sub_title_bar h2 {
    font-size: 16px; font-weight: 700; color: var(--deep-navy); margin: 0; text-align: center;
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ====================================================================== 
   [03] 슬라이드 메뉴 내비게이션 드로어 (블루 테마)
====================================================================== */
.side_menu_wrapper { position: fixed; top: 0; left: -100%; width: 100%; height: 100%; z-index: 2000; transition: all 0.3s ease-in-out; visibility: hidden; }
.side_menu_wrapper.open { left: 0; visibility: visible; }
.side_menu_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px); }
.side_menu_content { position: absolute; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; box-shadow: 4px 0 20px rgba(0,0,0,0.15); display: flex; flex-direction: column; transition: all 0.3s ease-in-out; }
.side_menu_wrapper.open .side_menu_content { left: 0; }

.side_hd { background: var(--deep-navy); padding: 30px 20px; color: #fff; position: relative; border-bottom: 3px solid var(--primary-blue); }
.side_hd .welcome_txt { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.side_login_btns { display: flex; gap: 10px; }
.side_login_btns a { font-size: 12px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; background: rgba(255,255,255,0.07); color: #fff; }
.side_close { position: absolute; top: 15px; right: 15px; color: #fff; font-size: 20px; }

.side_quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 15px 10px; background: #f8fafc; border-bottom: 1px solid var(--border-color); text-align: center; }
.side_quick a { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-dark); font-weight: 500; }
.side_quick i { font-size: 20px; color: var(--primary-blue); margin-bottom: 6px; }

.side_nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.menu_1depth > li { border-bottom: 1px solid #f1f5f9; }
.menu_1depth > li > a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; font-size: 15px; font-weight: 600; color: var(--text-dark); }
.menu_1depth > li > a:active { color: var(--primary-blue); background: #f8fafc; }

/* 풀스크린 검색 오버레이 */
.search_overlay { position: fixed; top: -100%; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 3000; transition: all 0.3s ease-in-out; padding: 20px; box-sizing: border-box; }
.search_overlay.open { top: 0; }
.search_hd { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.search_box_wr { flex: 1; display: flex; align-items: center; background: #f1f5f9; border-radius: 30px; padding: 0 15px; height: 45px; border: 1px solid transparent; }
.search_box_wr:focus-within { border-color: var(--primary-blue); background: #fff; }
.search_box_wr input { flex: 1; border: none; background: transparent; font-size: 15px; outline: none; color: #333; height: 100%; }
.search_box_wr .btn_sch_submit { color: var(--primary-blue); font-size: 16px; }
.btn_sch_close { font-size: 22px; color: var(--text-muted); }
.search_recommend h3 { font-size: 14px; color: var(--deep-navy); margin: 0 0 12px 0; font-weight: 700; }
.tag_list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag_list a { font-size: 12px; color: var(--text-dark); background: #f1f5f9; padding: 6px 14px; border-radius: 20px; font-weight: 500; }

/* ====================================================================== 
   [04] 모바일 인덱스 본문 영역 스타일 
====================================================================== */
.m_visual { width: 100%; aspect-ratio: 1000 / 450; background: #eee; }
.m_visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-pagination-bullet-active { background: var(--primary-blue) !important; }

.swiper-slide { position: relative; }
.slide_txt_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7)); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
}
.slide_txt_box h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.slide_txt_box p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
    color: #93C5FD;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.m_shortcut { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px; background: #fff; }
.sc_item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border-color); transition: all 0.2s ease; }
.sc_item:active { background: #f1f5f9; transform: scale(0.98); }
.sc_item i { font-size: 26px; color: var(--primary-blue); margin-bottom: 10px; }
.sc_item span { font-size: 14px; font-weight: 600; color: var(--text-dark); }

.m_section { background: #fff; margin-top: 12px; padding: 20px 15px; }
.sec_title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 2px solid var(--primary-blue); padding-bottom: 8px; }
.sec_title h2 { font-size: 16px; margin: 0; font-weight: 700; color: var(--deep-navy); }
.sec_title .btn_more { font-size: 12px; color: var(--text-muted); }

.prod_scroll_box { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.prod_scroll_box::-webkit-scrollbar { display: none; }
.prod_item { flex: 0 0 45%; max-width: 160px; }
.prod_img { width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: #f0f0f0; border: 1px solid var(--border-color); }
.prod_img img { width: 100%; height: 100%; object-fit: cover; }
.prod_name { font-size: 13px; font-weight: 600; margin-top: 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dark); }

.txt_list li { padding: 12px 0; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.txt_list li:last-child { border-bottom: none; }
.txt_list a { font-size: 14px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; padding-right: 10px; display: inline-block; }
.txt_list .date { font-size: 11px; color: var(--text-muted); }
.txt_list .hot_icon { color: #ef4444; font-size: 12px; margin-right: 4px; }

/* ====================================================================== 
   [05] 모바일 푸터 영역 
====================================================================== */
#m_ft { background: var(--deep-navy); color: #cbd5e1; padding: 30px 20px 40px; font-size: 13px; line-height: 1.6; clear: both; border-top: 3px solid var(--primary-blue); }
.ft_links { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #1E293B; }
.ft_links a { margin-right: 18px; color: #94a3b8; font-weight: 500; }
.ft_links a:first-child { color: #38BDF8; font-weight: 700; } /* 개인정보처리방침 강조 */
.ft_info h3 { font-size: 14px; color: #fff; margin: 0 0 10px 0; font-weight: 700; }
.ft_info p { margin: 0; color: #cbd5e1; }
.ft_copy { margin-top: 20px; font-size: 12px; color: #64748b; }

/* 다스 나인뷰 스타일 이식 원형 탑 버튼 */
#m_top_btn { 
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    width: 44px; 
    height: 44px; 
    background: var(--primary-blue); 
    color: #fff; 
    border: none; 
    border-radius: 50%; 
    font-size: 15px; 
    box-shadow: 0 4px 10px rgba(10, 88, 202, 0.3); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 999; 
    transition: all 0.25s ease; 
}
#m_top_btn:active { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(8, 68, 158, 0.4); }

.m_sub_title_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    height: 48px;                 /* 컴팩트하고 세련된 높이감 */
    padding: 0 5px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    position: fixed;
    top: 55px;                    /* 메인 헤더(55px) 바로 밑에 고정 */
    left: 0;
    width: 100%;
    z-index: 990;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

/* 뒤로가기 화살표 */
.m_sub_title_bar .btn_back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;              /* 시원시원한 크기의 뒤로가기 */
    color: var(--deep-navy);
}

/* 중앙 현재 메뉴 타이틀 명 */
.m_sub_title_bar h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--deep-navy);
    margin: 0;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;      /* 제목이 길어져도 UI가 깨지지 않음 */
    padding: 0 10px;
}

/* 폰트 조절 버튼 그룹 */
.m_font_control {
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.m_font_control button {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 11px;
    margin-left: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.m_font_control button:active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* ⚠️ [중요] 서브페이지 진입 시 타이틀바 높이(48px)만큼 본문 밀어주기 보정 */
body:not(.main-page) #m_wrapper {
    padding-top: 103px !important; /* 메인헤더(55px) + 서브바(48px) = 103px */
}

/* 그누보드 컴포넌트들 상단 덮임 방지 여백 재조정 */
body:not(.main-page) #bo_list, 
body:not(.main-page) #bo_v, 
body:not(.main-page) #bo_w, 
body:not(.main-page) #ctt, 
body:not(.main-page) #bo_gall { 
    margin-top: 10px !important;   /* 전체 래퍼가 내려왔으므로 컴포넌트 여백은 줄여서 안정화 */
}

/* ====================================================================== 
   폰트 사이즈 가변 리사이징 스케일 정의
====================================================================== */
/* 기본 상태는 기본 폰트 크기 유지 */
#m_wrapper.ts_up2 p, #m_wrapper.ts_up2 td, #m_wrapper.ts_up2 div, #m_wrapper.ts_up2 a {
    font-size: 105% !important; /* 살짝 확대 */
}
#m_wrapper.ts_up4 p, #m_wrapper.ts_up4 td, #m_wrapper.ts_up4 div, #m_wrapper.ts_up4 a {
    font-size: 115% !important; /* 대폭 확대 (어르신 전용 시니어 모드) */
}


/* ====================================================================== 
   [내용관리] 폰터스 스타일 택배공정 안내 레이아웃 (제이와이커스텀 블루 테마)
====================================================================== */
.parcel-service-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 0 50px;
    font-family: 'Pretendard', sans-serif;
    color: #1E293B;
    line-height: 1.6;
}

/* 상단 메인 블루 그라데이션 배너 */
.parcel-top-banner {
    background: linear-gradient(135deg, #0F172A 0%, #0A58CA 100%);
    border-radius: 12px;
    padding: 40px 30px;
    color: #ffffff;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(10, 88, 202, 0.15);
}
.parcel-top-banner h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}
.parcel-top-banner p {
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
}

/* 단계별 정렬 본문 그리드 */
.parcel-step-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.parcel-step-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.parcel-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    border-color: #0A58CA;
}

/* 카드 헤더 라인 */
.card-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
    margin-bottom: 18px;
}
.card-hd .step-badge {
    background: #F8FAFC;
    color: #0A58CA;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(10, 88, 202, 0.15);
}
.card-hd h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

/* 리스트 도트 가상 요소 처리 */
.card-bd ul {
    margin: 0;
    padding: 0 0 0 5px;
    list-style: none;
}
.card-bd ul li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}
.card-bd ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #0A58CA;
    font-weight: bold;
}
.card-bd ul li:last-child {
    margin-bottom: 0;
}
.card-bd ul li strong.highlight {
    color: #0A58CA;
    font-weight: 600;
}

/* 주소 전용 스카이블루 라인박스 */
.address-info-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #0A58CA;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}
.address-info-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #1E293B;
}
.address-info-box p i {
    color: #0A58CA;
    margin-right: 5px;
    width: 16px;
}
.address-info-box p:last-child {
    margin-bottom: 0;
}
.address-info-box strong {
    color: #0F172A;
    display: inline-block;
    width: 65px;
}

/* 주황색 알림 가이드 오버레이 */
.warning-info-box {
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    border-left: 4px solid #FF6600;
    border-radius: 6px;
    padding: 18px;
    margin: 15px 0;
}
.warning-info-box h5 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #C2410C;
    display: flex;
    align-items: center;
    gap: 6px;
}
.warning-info-box p {
    margin: 0;
    font-size: 13px;
    color: #7C2D12;
    padding-left: 20px;
    line-height: 1.5;
}

/* 데이터 백업 보정 그레이 박스 */
.warning-info-box.backup-box {
    background: #F4F4F5; 
    border-color: #E4E4E7; 
    border-left-color: #71717A;
}
.warning-info-box.backup-box h5 {
    color: #27272A;
}
.warning-info-box.backup-box p {
    color: #52525B;
}

/* 하단 세부 안내 리스트 가독성 */
.sub-notice-list {
    margin-top: 20px !important;
}
.sub-notice-list li {
    margin-bottom: 15px !important;
}
.notice-sub-title {
    font-weight: 700; 
    color: #0F172A;
    display: inline-block;
    margin-bottom: 4px;
}

/* 수리 내역 실시간 조회 링크 버튼 */
.btn-as-lookup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0A58CA;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin: 5px 0 15px;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(10, 88, 202, 0.2);
}
.btn-as-lookup:hover {
    background-color: #08449E;
}

@media (max-width: 768px) {
    /* ⚠️ [수정] 모바일에서 카드 양옆에 최소 안전 마진 여백 부여 */
    .parcel-service-container {
        padding: 10px 15px 50px !important; /* 양옆 패딩을 15px로 늘려 본문 컴포넌트 여백과 일치시킴 */
        box-sizing: border-box;
    }

    .parcel-top-banner {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-radius: 8px; /* 모바일 크기에 맞는 둥글기 조절 */
    }

    .parcel-top-banner h3 {
        font-size: 20px;
    }

    /* ⚠️ [수정] 카드 컴포넌트 간격 및 모바일 시각 밸런스 조정 */
    .parcel-step-section {
        gap: 16px; /* 카드와 카드 사이 틈 조절 */
    }

    .parcel-step-card {
        padding: 20px 18px; /* 카드 내부 좌우 여백을 스마트폰에 맞게 컴팩트화 */
        border-radius: 8px;
    }

    .card-hd h4 {
        font-size: 16px;
    }

    .address-info-box, .warning-info-box {
        padding: 15px;
    }

    .btn-as-lookup {
        width: 100%;
        box-sizing: border-box;
        padding: 14px; /* 한 손 터치가 용이하게 세로 크기 확장 */
    }
}