@charset "utf-8";

/* ======================================================================
   [01] 모바일 브라우저 표준 리셋 및 스크롤 환경 초기화
====================================================================== */
html, body {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    background: #f5f7f9;
    color: #333;
    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;
    padding-top: 60px !important; 
}
.m_sub_bar_space { height: 1px; margin-top: -10px; }

/* ======================================================================
   [02] 고정형 레이아웃 구성 요소 (상단 고정 UI 레이어)
====================================================================== */
#m_hd { 
    background: #ffffff; 
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    box-sizing: border-box;
}
.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: #222; 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: 26px; width: auto; display: block; }
.hd_right .btn_search { font-size: 20px; color: #222; 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 #e2e8f0;
    margin-bottom: 10px;
    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: #334155; border-radius: 50%; transition: background 0.2s;
}
.m_sub_title_bar .btn_back:active { background: #f1f5f9; }
.m_sub_title_bar h2 {
    font-size: 16px; font-weight: 700; color: #1e293b; 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(0, 0, 0, 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: #dc2626; padding: 30px 20px; color: #fff; position: relative; }
.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.4); border-radius: 4px; background: rgba(255,255,255,0.1); }
.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 #edf2f7; text-align: center; }
.side_quick a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #475569; }
.side_quick i { font-size: 18px; color: #dc2626; 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: #1e293b; }
.menu_2depth { background: #f8fafc; display: none; padding: 5px 0; }
.menu_2depth li a { display: block; padding: 10px 30px; font-size: 13px; color: #64748b; }

.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; }
.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: #dc2626; font-size: 16px; }
.btn_sch_close { font-size: 22px; color: #64748b; }
.search_recommend h3 { font-size: 14px; color: #1e293b; margin: 0 0 12px 0; font-weight: 700; }
.tag_list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag_list a { font-size: 12px; color: #475569; background: #f1f5f9; padding: 6px 14px; border-radius: 20px; font-weight: 500; }

.m_sub_title_bar .m_font_control { display: flex; align-items: center; gap: 4px; width: auto; }
.m_sub_title_bar .m_font_control button {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; transition: all 0.2s;
}
.m_sub_title_bar .m_font_control button:active { background: #fef2f2; color: #dc2626; }
#m_wrapper.ts_up2 { font-size: 1.15em !important; }
#m_wrapper.ts_up2 p, #m_wrapper.ts_up2 td, #m_wrapper.ts_up2 a, #m_wrapper.ts_up2 span { font-size: 1.05em !important; line-height: 1.6 !important; }
#m_wrapper.ts_up4 { font-size: 1.3em !important; }
#m_wrapper.ts_up4 p, #m_wrapper.ts_up4 td, #m_wrapper.ts_up4 a, #m_wrapper.ts_up4 span { font-size: 1.15em !important; line-height: 1.7 !important; }

/* ======================================================================
   [04] 서브페이지 공통 설정 및 통합검색 페이지 레드 보정 수치
====================================================================== */
#bo_list, #bo_v, #bo_w, .g5_msb_title, #ctt, #sch_res_ov { margin-top: 60px !important; box-sizing: border-box !important; }
body:not(._index_) #container { padding-top: 55px !important; box-sizing: border-box !important; }
#bo_list { padding: 10px 15px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }

#sch_res_ov {
    background: #ffffff !important; margin: 15px 15px 0 !important; padding: 15px !important;
    border-radius: 12px 12px 0 0 !important; border: 1px solid #e2e8f0 !important; border-bottom: none !important;
}
#sch_res_ov h2 { display: none !important; } 
#sch_res_ov ul { display: flex !important; justify-content: space-between; font-size: 13px; color: #64748b; }
#sch_res_ov strong { color: #dc2626 !important; margin-left: 3px; } 

#sch_res_detail {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 0 0 12px 12px !important;
    padding: 15px !important; margin: 0 15px 15px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important; box-sizing: border-box !important; width: auto !important;
}
#sch_res_detail legend { display: none !important; }
#sch_res_detail .sch_wr { display: flex !important; flex-direction: column !important; gap: 10px !important; width: 100% !important; position: relative !important; }
#sch_res_detail select, #sch_res_detail #stx {
    width: 100% !important; height: 45px !important; line-height: 45px !important; border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important; padding: 0 12px !important; font-size: 14px !important; background-color: #f8fafc !important;
    color: #334155 !important; box-sizing: border-box !important; margin: 0 !important; outline: none !important; -webkit-appearance: none; appearance: none;
}
#sch_res_detail select:focus, #sch_res_detail #stx:focus { border-color: #dc2626 !important; background-color: #ffffff !important; } 
#sch_res_detail .btn_submit {
    width: 100% !important; height: 45px !important; background: #dc2626 !important; color: #ffffff !important; border: none !important;
    border-radius: 8px !important; font-size: 15px !important; font-weight: 700 !important; cursor: pointer !important; margin: 5px 0 0 0 !important;
    box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
}
#sch_res_detail .btn_submit::after { content: '검색하기'; font-family: 'Pretendard', sans-serif; }
#sch_res_detail .btn_submit:active { background: #991b1b !important; } 

#sch_res_detail .switch_field { display: flex !important; align-items: center !important; justify-content: center !important; gap: 20px !important; margin-top: 12px !important; padding-top: 12px !important; border-top: 1px dashed #edf2f7 !important; font-size: 13px !important; color: #475569 !important; }
#sch_res_detail .switch_field input[type="radio"] { margin: 0 4px 0 0 !important; vertical-align: middle !important; accent-color: #dc2626 !important; width: 16px !important; height: 16px !important; } 
#sch_res_detail .switch_field label { cursor: pointer !important; display: inline-flex !important; align-items: center !important; }

#sch_res_board { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; padding: 0 15px !important; margin: 15px 0 !important; }
#sch_res_board li { margin: 0 !important; }
#sch_res_board li a { display: inline-block !important; padding: 8px 14px !important; background: #fff !important; border: 1px solid #e2e8f0 !important; border-radius: 20px !important; font-size: 13px !important; color: #475569 !important; }
#sch_res_board li a.sch_on { background: #dc2626 !important; color: #fff !important; border-color: #dc2626 !important; font-weight: 600; } 

.sch_res_list { padding: 15px !important; background: #fff !important; margin-bottom: 10px !important; }
.sch_res_list h2 { font-size: 15px !important; font-weight: 700 !important; color: #1e293b !important; margin: 0 0 15px 0 !important; padding-left: 8px !important; border-left: 3px solid #dc2626 !important; } 
.sch_res_list ul li { padding: 15px 0 !important; border-bottom: 1px solid #f1f5f9 !important; }
.sch_res_list ul li:last-child { border-bottom: none !important; }        
.sch_res_list .sch_res_title a { font-size: 15px !important; font-weight: 600 !important; color: #1e293b !important; line-height: 1.4 !important; }
.sch_res_list .sch_word { color: #ef4444 !important; background: none !important; }        
.sch_res_list p { font-size: 13px !important; color: #64748b !important; margin: 8px 0 !important; line-height: 1.5 !important; }        
.sch_res_info { display: flex !important; justify-content: space-between; align-items: center; font-size: 12px; color: #94a3b8; margin-top: 10px; }
.sch_res_info .sv_member { inline-flex !important; align-items: center; gap: 4px; color: #475569; }
.sch_res_info .profile_img { border-radius: 50%; vertical-align: middle; }
.sch_res_info .sv { display: none !important; }
.sch_more a { display: block !important; text-align: center !important; background: #fef2f2 !important; padding: 12px !important; border: 1px solid #fee2e2 !important; border-radius: 6px !important; font-size: 13px !important; color: #dc2626 !important; margin-top: 10px !important; } 

/* ======================================================================
   [05] 그누보드 순정 모바일 게시판 스킨 세부 교정 (Gallery 중심)
====================================================================== */
#bo_gall { margin-top: 55px !important; padding: 10px 15px !important; box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; clear: both !important; }
#bo_gall h2 { display: none !important; }
#gall_ul { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 0 !important; margin: 0 !important; width: 100% !important; box-sizing: border-box !important; }
#gall_ul .gall_li { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; background: #ffffff; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
#gall_ul .gall_img { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; overflow: hidden !important; background: #f8fafc; }
#gall_ul .gall_img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.gall_text_href { padding: 10px !important; }
.gall_li_tit { font-size: 14px !important; font-weight: 700 !important; color: #1e293b !important; display: block !important; margin-bottom: 5px !important; }
.gall_info { font-size: 11px !important; color: #94a3b8; line-height: 1.5 !important; }
.pg_wrap { margin: 25px 0 15px 0 !important; }
#bo_sch { margin-bottom: 30px !important; padding: 0 15px !important; }

/* ======================================================================
   [06] 회원정보 찾기(new_win) 및 회원정보 수정 프리미엄 카드 레이아웃
====================================================================== */
#find_info.new_win {
    margin-top: 65px !important; padding: 20px 15px !important; box-sizing: border-box !important;
    background: #ffffff; border-radius: 12px; margin-left: 15px; margin-right: 15px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
#find_info h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin-top: 0; margin-bottom: 12px; }
#info_fs p { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 15px; }
#info_fs .frm_input { width: 100% !important; height: 45px !important; line-height: 45px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; padding: 0 12px !important; font-size: 14px !important; box-sizing: border-box !important; outline: none !important; }
#info_fs .frm_input:focus { border-color: #dc2626 !important; }

#captcha.captcha { margin: 20px 0 !important; padding: 15px !important; background: #f8fafc !important; border: 1px solid #edf2f7 !important; border-radius: 8px !important; position: relative !important; z-index: 1001 !important; display: block !important; }
#captcha_img { display: inline-block; vertical-align: middle; height: 40px; border-radius: 4px; margin-right: 5px; }
#captcha_key { vertical-align: middle; height: 40px; border: 1px solid #cbd5e1; border-radius: 4px; padding: 0 10px; font-size: 15px; width: 80px !important; box-sizing: border-box; }
#captcha_mp3, #captcha_reload { vertical-align: middle; height: 40px; padding: 0 10px; font-size: 12px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 4px; margin-left: 3px; color: #475569; }
#captcha_info { display: block; font-size: 11px; color: #94a3b8; margin-top: 8px; }

.win_btn .btn_submit { width: 100% !important; height: 48px !important; background: #dc2626 !important; color: #ffffff !important; font-weight: 700; border-radius: 6px; border: none; cursor: pointer; }
.win_btn .btn_submit:active { background: #991b1b !important; }

#fregisterform, .m_register_wrap, #ctt_register { padding: 15px !important; background: #f5f7f9 !important; }
#fregisterform .tbl_frm01 table, #fregisterform .tbl_frm01 tbody, #fregisterform .tbl_frm01 tr, #fregisterform .tbl_frm01 th, #fregisterform .tbl_frm01 td { display: block !important; width: 100% !important; box-sizing: border-box !important; border: none !important; background: transparent !important; padding: 0 !important; }
#fregisterform .tbl_frm01 tr { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; padding: 18px 15px !important; margin-bottom: 12px !important; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01) !important; }
#fregisterform .tbl_frm01 th { font-size: 14px !important; font-weight: 700 !important; color: #0f172a !important; margin-bottom: 8px !important; text-align: left !important; }
#fregisterform .tbl_frm01 th .reg_req { color: #dc2626 !important; margin-left: 3px; }
#fregisterform .frm_input, #fregisterform select { width: 100% !important; height: 46px !important; line-height: 46px !important; border: 1px solid #cbd5e1 !important; border-radius: 8px !important; padding: 0 12px !important; font-size: 14px !important; color: #334155 !important; background-color: #ffffff !important; box-sizing: border-box !important; outline: none !important; transition: all 0.2s ease !important; }
#fregisterform .frm_input:focus, #fregisterform select:focus { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important; background-color: #ffffff !important; }
#fregisterform .frm_info, #fregisterform .sound_only + text, #fregisterform td span.reg_msg { display: block !important; font-size: 12px !important; color: #64748b !important; margin-top: 6px !important; line-height: 1.4 !important; }
#fregisterform .win_btn, #fregisterform .btn_confirm { display: flex !important; gap: 10px !important; margin: 25px 0 35px 0 !important; clear: both !important; }
#fregisterform .win_btn .btn_submit, #fregisterform .btn_confirm .btn_submit { flex: 1 !important; width: 100% !important; height: 50px !important; background: #dc2626 !important; color: #ffffff !important; font-size: 16px !important; font-weight: 700 !important; border-radius: 8px !important; border: none !important; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important; cursor: pointer !important; }
#fregisterform .win_btn .btn_submit:active, #fregisterform .btn_confirm .btn_submit:active { background: #991b1b !important; }

/* ======================================================================
   [MAIN] 모바일 인덱스 메인 비주얼 및 콘텐츠 (레드 테마 컴포넌트)
====================================================================== */
.m_visual_container { width: 100%; position: relative; overflow: hidden; background: #fff; }
.m_visual .swiper-slide { width: 100%; display: block; }
.m_visual .swiper-slide img { width: 100%; height: auto; display: block; }
.m_visual_container .swiper-pagination-bullet-active { background: #dc2626 !important; width: 16px; border-radius: 4px; transition: all 0.3s; }

.m_brand_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px; box-sizing: border-box; }
.m_brand_card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.m_brand_card:active { transform: scale(0.97); background: #fef2f2; }
.m_brand_card img { width: 100%; height: auto; display: block; border-radius: 6px; }

.m_service_title { font-size: 16px; font-weight: 700; color: #1e293b; padding: 15px 15px 5px 15px; margin: 0; }
.m_service_title i { color: #dc2626; margin-right: 5px; }
.m_service_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 15px 15px 15px; box-sizing: border-box; }
.m_service_card { background: #ffffff; border: 1px solid #f1f5f9; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
.m_service_card:active { border-color: #dc2626; background: #fff5f5; }
.m_service_card img { width: 100%; height: auto; display: block; }

.m_cs_box { background: #ffffff; margin: 15px; padding: 25px 20px; border-radius: 16px; border: 2px solid #ffeeef; text-align: center; box-shadow: 0 4px 15px rgba(220, 38, 38, 0.03); }
.m_cs_box h3 { font-size: 14px; font-weight: 700; color: #64748b; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.m_cs_box .m_cs_tel { display: inline-block; font-size: 32px; font-weight: 800; color: #dc2626; text-decoration: none; margin-bottom: 15px; letter-spacing: -1px; }
.m_cs_box .m_cs_info { font-size: 13px; color: #475569; line-height: 1.6; }
.m_cs_box .m_cs_info strong { color: #0f172a; }
.m_cs_box .cs_highlight { color: #dc2626; font-weight: 600; }

/* ======================================================================
   [FOOTER] 모바일 하단 푸터 안내 및 플로팅 탑버튼
====================================================================== */
#m_ft { background: #1e293b; color: #cbd5e1; padding: 25px 15px 40px; font-size: 13px; line-height: 1.6; clear: both; }
.ft_links { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #334155; }
.ft_links a { margin-right: 15px; color: #ffffff; font-weight: 600; }
.ft_info h3 { font-size: 14px; color: #ffffff; margin: 0 0 8px 0; }
.ft_copy { margin-top: 15px; font-size: 11px; color: #94a3b8; }
#m_top_btn { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; background: #dc2626; color: #fff; border: none; border-radius: 50%; font-size: 16px; box-shadow: 0 4px 10px rgba(220,38,38,0.3); display: none; align-items: center; justify-content: center; z-index: 999; transition: all 0.2s ease; }
#m_top_btn:active { background: #991b1b; transform: scale(0.95); }

