/* ==========================================================================
    (Slide Menu) 
   ========================================================================== */

/* 側邊欄主體：由左往右滑出 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 99999;
    transition: left 0.4s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    left: 0;
}

/* 背景黑色半透明遮罩 */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 頂部 Logo 與關閉按鈕 */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.sidebar-logo {
    height: 35px;
    width: auto;
}

/* 圓形關閉按鈕 */
.close-btn {
    background-color: #eef1f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 選單文字排版 --- */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 針對第一層選單 */
.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
    margin: 0 30px;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: block;
    padding: 20px 0;
    font-size: 16px;
    font-family: "Montserrat", "arial", sans-serif;
    font-weight: 800;
    /* 粗體字 */
    color: #1a2436;
    /* 深藍黑色 */
    text-transform: uppercase;
    text-decoration: none;
}

.sidebar-menu .drop-down-multilevel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, margin 0.4s, border 0.4s;
    padding-left: 20px;
    border-top: 1px dashed transparent;
    margin-bottom: 0;
}

.sidebar-menu li.is-open>.drop-down-multilevel {
    max-height: 1000px;
    border-top: 1px dashed #eee;
    margin-bottom: 10px;
}

/*.sidebar-menu li:last-child a {
    color: #2b74e2;
}*/

/* ==========================================================================
   Revolution Slider
   ========================================================================== */


.mobile-rounded-slider {
    padding: 15px !important;

    background: #f8f9fa;
    border: 0px;
    shape-outside: 0px;
}

#rev_slider_264_1_wrapper,
#rev_slider_264_1 {
    border-radius: 25px !important;
    overflow: hidden !important;
}


.rev_slider .slotholder,
.rev_slider .tp-bgimg {
    border-radius: 25px !important;
}

/* 右下角的點點 */
.mobile-rounded-slider .tp-bullets {
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    z-index: 100 !important;
    padding: 0 !important;
    bottom: 15px !important;

    right: 15px !important;
}

/* 預設的點點 */
.mobile-rounded-slider .tp-bullets .tp-bullet {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;

    width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    margin: 0 4px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* 啟用中的點點 */
.mobile-rounded-slider .tp-bullets .tp-bullet.selected {
    width: 24px !important;
    background-color: #ffffff !important;
}

.mobile-rounded-slider .tp-bullets .tp-bullet * {
    display: none !important;
}

/* ==========================================================================
   Solutions
   ========================================================================== */

.mobile-solutions {
    background-color: #f8f9fa;
    overflow: hidden;
}

/* --- 網格排版 --- */
.solutions-grid {
    display: grid;
    gap: 15px;
    padding: 5px;
}

/* 當只有2個時，上下排列 (1欄) */
.solutions-grid.grid-1-col {
    grid-template-columns: 1fr;
}

/* 當大於2個時，左右排列 (2欄) */
.solutions-grid.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

/* --- 卡片設計--- */
.solution-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 13px 10px 13px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.solution-card:hover,
.solution-card:active {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* --- Icon 藍底圓角方塊 --- */
.solution-card .icon-wrap {
    width: 60px;
    height: 60px;
    background: #0056b3;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.solution-card .icon-wrap img {
    width: 30px;
    height: auto;
    object-fit: contain;
    /*filter: brightness(0) invert(1);*/

}

.solution-card .title-wrap span {
    font-family: "Montserrat", "arial", sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #1a2436;
}

/* --- Dot (膠囊狀) --- */
.mobile-solutions-carousel .owl-dots {
    text-align: center;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-solutions-carousel .owl-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 8px !important;
    background-color: #d6d6d6 !important;
    border: none !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    padding: 0 !important;
}

.mobile-solutions-carousel .owl-dot.active {
    width: 24px !important;
    background-color: #0056b3 !important;
}

.mobile-solutions-carousel .owl-dot span {
    display: none !important;
}

/* ==========================================================================
   Footer 
   ========================================================================== */

.mobile-footer {
    background-color: #214896;
    border-radius: 40px 40px 0 0;

    padding: 30px 20px 30px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

/* 三個按鈕置中對齊並保持距離 */
.mobile-social-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /* 按鈕之間的距離 */
    margin-bottom: 25px;
}

/* Icon  */
.glass-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;

    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 14px;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}


.glass-icon:hover,
.glass-icon:active {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 版權 */
.mobile-copyright-text {
    color: #8da9d4;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-family: "Montserrat", "Arial", sans-serif;
    text-transform: uppercase;
}

@media (max-width: 991px) {

    html,
    body {
        height: 100%;
        margin: 0;
        background-color: #f8f9fa;
    }

    .wrapper {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
    }

    footer.footer {
        margin-top: auto !important;
        width: 100%;
    }

    footer.blue-bg {
        background-color: transparent !important;
        background-image: none !important;
    }
}