@charset "utf-8";

/* ============================================================
   SAVE-M Mobile Styles — supplements default.css
   ============================================================ */

/* ===== Mobile Base ===== */
body {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Mobile Header ===== */
#header { height: 56px; }
#header .header-inner { height: 56px; padding: 0 15px; }
#logo .logo-img { height: 28px; }
.logo-text { font-size: 20px !important; }
#gnb_1dul { display: none; }
.language > button { font-size: 11px; padding: 4px 8px; }
.siteMap-btn { width: 34px; height: 34px; font-size: 17px; flex-shrink: 0; }
/* 모바일에서는 로그인/로그아웃 링크 숨김(햄버거 메뉴 내에 이미 존재) */
.header-right > a { display: none !important; }
.header-right { gap: 8px; flex-shrink: 0; }

@media screen and (max-width: 400px) {
    #logo .logo-img { height: 24px; }
    #header .header-inner { padding: 0 12px; }
    .language > button { padding: 3px 6px; font-size: 10px; }
    .siteMap-btn { width: 32px; height: 32px; font-size: 16px; }
}

/* ===== Mobile Sitemap ===== */
#siteMap { width: 85%; max-width: 340px; right: -340px; padding: 60px 20px 20px; }

/* ===== Mobile Hero Slider ===== */
.hero-section {
    height: calc(100vh - 56px);
    margin-top: 56px;
    min-height: 400px;
}
.slide-content {
    padding: 0 6% !important;
    text-align: center;
}
.slide-text { max-width: 100%; }
.slide-title { font-size: 32px !important; line-height: 1.25 !important; letter-spacing: -0.5px !important; }
.slide-sub { font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; margin-bottom: 10px !important; }
.slide-desc { font-size: 14px !important; font-weight: 500 !important; line-height: 1.6 !important; margin-bottom: 0 !important; }
.slide-cta { padding: 11px 28px !important; font-size: 13px !important; }

/* Hide right side elements on mobile */
.slide-screens { display: none !important; }
.slide-numbers { display: none !important; }

/* Mobile timeline dots */
.slide-timeline { bottom: 18px; }
.timeline-line { width: 18px; }
.timeline-dot { width: 8px; height: 8px; }
.timeline-dot.active { width: 12px; height: 12px; }
.timeline-dot.active::before { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.timeline-dot.active::after { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; }
.slide-playpause { width: 30px; height: 30px; font-size: 14px; }

/* Mobile progress bar */
.slide-progress { height: 2px; }

/* ===== Mobile Sections ===== */
.section { min-height: auto; }
.layout { padding: 0 1% !important; }
.section-title { margin-bottom: 30px; }
.section-title span { font-size: 30px; letter-spacing: 0px; }
.section-title b { font-size: 12px; }

/* Cards */
.table { flex-direction: column; gap: 15px; }
.table-box { max-width: 100%; padding: 30px 20px; border-radius: 8px; }
.table-box .icon { width: 60px; height: 60px; font-size: 24px; }
.table-box strong { font-size: 17px; }
.table-box span { font-size: 13px; }
.table-box .view { padding: 8px 22px; font-size: 12px; }

/* Products */
.product-cate ul { flex-direction: column; gap: 15px; }
.product-cate li { max-width: 100%; }
.product-cate li > div { padding: 35px 20px; border-radius: 8px; }
.product-cate .icon { width: 70px; height: 70px; border-radius: 14px; }
.product-cate .icon i { font-size: 30px; }
.product-cate .title { font-size: 17px; }

/* News */
.news-slider { gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
.news-slider li { min-width: 75vw; flex-shrink: 0; }
.news-slider .thumb { height: 140px; }
.news-slider .info { padding: 15px; }
.news-slider .date { font-size: 12px; }
.news-slider .title { font-size: 14px; }
.news-nav { margin-top: 25px; }
.news-nav button { width: 38px; height: 38px; font-size: 14px; }

/* ===== Mobile Footer ===== */
#footer { padding: 0; }
.footer-btn { padding: 15px 0; }
.footer-btn .layout { flex-direction: column; align-items: center; gap: 12px; }
.footer-btn ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-btn a { font-size: 13px; }
.footer-copy { padding: 25px 0; }
.footer-copy .layout { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.footer-logo { font-size: 18px; }
.footer-info p { font-size: 12px; line-height: 1.8; }
.footer-info span { display: block; margin-right: 0; }
.footer-copyright { font-size: 12px; text-align: center; }

/* ===== Mobile Sub Page ===== */
.page-title-area { height: 160px; margin-top: 56px; }
.page-title-area h2 { font-size: 22px; }
.page-title-area .breadcrumb { font-size: 12px; }
.sub-content { padding: 30px 0; }
.sub-content .layout { flex-direction: column; gap: 20px; padding: 0 15px; }
.snb { width: 100%; }
.snb h3 { font-size: 18px; padding-bottom: 12px; }
.snb ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.snb li { border-right: 1px solid #eee; }
.snb li:nth-child(2n) { border-right: none; }
.snb a { text-align: center; padding: 11px 8px; font-size: 13px; }
.snb a.active::before { display: none; }
.snb a.active { background: #0068b7; color: #fff; }
.sub-page-content h3 { font-size: 20px; margin-bottom: 20px; padding-bottom: 15px; }

/* ===== Mobile Form/Table ===== */
.form-group label { font-size: 13px; }
.form-control { padding: 10px 12px; font-size: 13px; }
.tbl-wrap { margin: 0 -15px; }
.tbl-wrap th { padding: 10px 8px; font-size: 12px; }
.tbl-wrap td { padding: 10px 8px; font-size: 12px; }

/* ===== Mobile Floating ===== */
.floating-btns { right: 10px; bottom: 10px; }
.floating-btns a { width: 40px; height: 40px; font-size: 17px; }

/* ===== Gnuboard5 Mobile Override ===== */
#wrapper { margin-top: 0; }
#container { padding: 0; }
#container_title { display: none; }
