/* ==========================================================================
   BENG SENG TRAVEL - TEMPLATE CSS (v2.5 - Fixed & Synced)
   ========================================================================== */

/* 1. RESET & GLOBAL */
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: "Noto Sans", "Microsoft JhengHei", sans-serif; background: #eff3f7; color: #333; line-height: 1.5; font-size: 14px; }
a { text-decoration: none; color: #2476bb; transition: color 0.3s; }
a:hover { color: #C00; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.clearfix::after { clear: both; content: " "; display: block; height: 0; overflow: hidden; }

#ja-wrapper { background: #eff3f7; width: 100%; min-height: 100vh; position: relative; }
.main-container { max-width: 1160px; margin: 0 auto; padding: 0 15px; position: relative; }
.inner-content-wrap { background: #fff; padding: 20px; margin: 20px auto; border-radius: 4px; border: 1px solid #e5e5e5; }

/* Header Wide Container */
.header-wide-container {
    max-width: 1400px;
    width: 96%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* 2. HEADER & TOP BAR */
.notice-bar { background: #fff; border-top: 3px solid #fbcd0c; border-bottom: 1px solid #eaeaea; width: 100%; z-index: 101; position: relative; }
.header-top { height: 36px; display: flex; justify-content: space-between; align-items: center; font-size: 12px !important; color: #666; }
.header-top .header-left { font-weight: 500; color: #16c86c; }
.header-top .header-right { display: flex; align-items: center; margin-left: auto; }
.header-top .header-right a { margin-left: 15px; color: #555; display: flex; align-items: center; font-size: 12px; }
.header-top .fa-facebook { color: #3b5998; font-size: 14px; }
.header-top .fa-whatsapp { color: #25D366; font-size: 14px; margin-right: 5px; }
.header-top .contact-num { font-weight: bold; color: #333; }

/* Sticky Header */
#ja-header { background: #fff; padding: 15px 0; width: 100%; z-index: 100; transition: all 0.3s ease; border-bottom: 1px solid transparent; }
#ja-header.is-sticky { position: fixed; top: 0; left: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 10px 0; border-bottom: 1px solid #eee; }

/* Layout: Logo Left, Menu Right (Bottom Aligned) */
.header-inner { 
    display: flex; 
    align-items: flex-end; /* 底部對齊 */
    justify-content: space-between; 
    padding-bottom: 5px;
}

.logo { flex-shrink: 0; margin-right: auto; }
.logo img { max-height: 70px; width: auto; display: block; transition: max-height 0.3s ease; }
#ja-header.is-sticky .logo img { max-height: 50px; }

/* Desktop Navigation */
#ja-mainnav { 
    margin-left: auto; 
    margin-bottom: 5px;
    padding-left: 20px;
    flex-shrink: 0;
}

#ja-mainnav ul.level0 { 
    display: flex; 
    align-items: center; 
    margin-bottom: 0; 
    flex-wrap: nowrap;
}

#ja-mainnav ul.level0 > li { 
    padding: 0 2px; 
    position: relative; 
    white-space: nowrap; 
}

#ja-mainnav ul.level0 > li > a { 
    color: #333; 
    font-weight: 500;
    font-size: 14px;
    display: block; 
    padding: 8px 15px;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s;
}

/* Dropdown Arrow */
#ja-mainnav ul.level0 > li > a i, 
#ja-mainnav ul.level0 > li > a .caret {
    font-size: 10px;
    margin-left: 4px;
    color: #999;
    vertical-align: middle;
}

/* Menu Hover */
#ja-mainnav ul.level0 > li:hover > a, 
#ja-mainnav ul.level0 > li.active > a { 
    color: #2476bb;
    background-color: transparent; 
    text-decoration: none;
}

/* Mobile Menu */
.mobile-toggle { display: none; cursor: pointer; padding: 10px; z-index: 110; }
.mobile-toggle span { display: block; width: 25px; height: 3px; background: #333; margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.mobile-nav-header, .site-overlay { display: none; }

/* 3. HOME MODULES */
.bsp-section { max-width: 1160px; margin: 0 auto 40px auto; text-align: left; padding: 0 15px; }
.bsp-section .moduletable > h3, .bsp-section .module > h3 { display: none !important; }

h2.module-title { font-size: 24px; font-weight: 700; color: #333; border-left: 5px solid #2476bb; padding-left: 15px; margin: 40px 0 20px 0; display: block; clear: both; }

/* Slider & Cards */
.planning-slider, .product-slider { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.planning-slider.slick-initialized, .product-slider.slick-initialized { display: block; }
.slide-item { width: 25%; padding: 0 10px; box-sizing: border-box; margin-bottom: 20px; }
.slick-slide { width: auto; margin-bottom: 5px; outline: none; }
.slick-slide img { width: 100%; display: block; border-radius: 4px; }
.slick-prev, .slick-next { width: 40px; height: 40px; z-index: 10; background: rgba(255,255,255,0.8); border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); display: flex !important; align-items: center; justify-content: center; }
.slick-prev:hover, .slick-next:hover { background: #2476bb; }
.slick-prev:before, .slick-next:before { font-family: 'FontAwesome'; color: #333; font-size: 20px; opacity: 1; }
.slick-prev:hover:before, .slick-next:hover:before { color: #fff; }
.slick-prev:before { content: '\f104'; } 
.slick-next:before { content: '\f105'; } 
.slick-prev { left: -20px; }
.slick-next { right: -20px; }

.base_card { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; }
.base_card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-2px); }
.b_bg { position: relative; width: 100%; padding-top: 62.5%; overflow: hidden; }
.b_bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.base_card:hover .b_bg img { transform: scale(1.1); }
.b_content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.b_content .title { font-size: 15px; font-weight: bold; margin-bottom: 10px; line-height: 1.4; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.b_content .title a { color: #333; }
.b_content .desc { font-size: 12px; color: #777; margin-bottom: 10px; }
.b_content .price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 10px; }
.custom-note-blue { background-color: #f0f6f9; padding: 5px; border-radius: 2px; display: inline-block; font-size: 12px; margin: 0; }
.BestSellerExtras { position: absolute; top: 10px; left: 10px; z-index: 2; }
.BestSellerExtras span { padding: 2px 6px; font-size: 11px; border-radius: 2px; color: #fff; font-weight: bold; }
.BestSellerExtras span.turbo { background: #FF0000; }
.BestSellerExtras span.cotai { background: #0866ae; }
.price .currency { font-size: 12px; color: #555; }
.price .num { font: bold 20px "arial", sans-serif; color: #555570; }
.btn_book { background: #d22100; color: #fff !important; padding: 5px 12px; font-size: 14px; font-weight: bold; border-radius: 3px; display: inline-block; }
.btn_book:hover { background: #c62d1f; }

/* 4. FOOTER */
#ja-footerwrap { background: #fff; color: #333; border-top: 1px solid #eee; margin-top: 40px; padding-bottom: 20px; }
.footer-contact-bar { text-align: center; padding: 30px 0; color: #026dc5; }
.footer-contact-bar .contact-number { font-size: 24px; font-weight: 700; margin-left: 10px; }
.footer-main { padding: 40px 0; border-top: 1px solid #f2f2f2; display: flex; flex-wrap: wrap; }
.footer-col-bright { padding: 0 15px; box-sizing: border-box; width: 20%; }
.footer-col-bright.col-intro { width: 40%; }
.footer-col-bright h3 { color: #333; font-size: 14px; font-weight: 700; margin-bottom: 15px; }
.footer-logo-img { max-width: 200px; height: auto; margin-bottom: 15px; }
.footer-col-bright ul li { margin-bottom: 8px; font-size: 12px; }
.footer-col-bright ul li a { color: #666; }
.footer-col-bright ul li a:hover { color: #026dc5; text-decoration: underline; }

.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.payment-icons i { font-size: 24px; margin-right: 0; color: #555; }
.pay-tag { background-color: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 3px; padding: 2px 6px; font-size: 11px; font-weight: bold; color: #555; display: inline-block; line-height: 1.5; }
.pay-tag.payme { color: #d00707; border-color: #ffcccc; background: #fff0f0; }
.pay-tag.fps { color: #16c86c; border-color: #ccffdd; background: #f0fff5; }

.social-icons a { font-size: 24px; margin-right: 15px; color: #555; }
.footer-copyright { text-align: center; padding: 20px 0; border-top: 1px solid #f2f2f2; color: #999; font-size: 11px; }
.footer-copyright a { color: #999; text-decoration: none; margin-left: 5px; }
.footer-copyright a:hover { color: #2476bb; text-decoration: underline; }

/* 6. RESPONSIVE */
@media screen and (max-width: 900px) {
    .mobile-toggle { display: block; }
    .header-top { display: none; }
    #ja-mainnav { 
        position: fixed; top: 0; right: -280px; width: 280px; height: 100%; 
        background: #fff; z-index: 1000; box-shadow: -2px 0 10px rgba(0,0,0,0.1); 
        transition: right 0.3s ease; display: block !important; overflow-y: auto;
    }
    #ja-mainnav.active { right: 0; }
    .mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; background: #f9f9f9; }
    .close-btn { font-size: 24px; cursor: pointer; color: #555; }
    #ja-mainnav ul.level0 { flex-direction: column; }
    #ja-mainnav ul.level0 > li { width: 100%; border-bottom: 1px solid #f5f5f5; }
    #ja-mainnav ul.level0 > li > a { padding: 15px 20px; font-size: 14px; white-space: normal; }
    #ja-mainnav ul.level0 > li:hover > a { border-bottom: none; background: #f0f6f9; }
    .site-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; display: none; }
    .site-overlay.active { display: block; }
    .footer-main { display: block; }
    .footer-col-bright { width: 100% !important; margin-bottom: 30px; text-align: center; }
    .payment-icons { justify-content: center; }
    .slide-item { width: 50%; }
    .slick-prev { left: 0; } .slick-next { right: 0; }
}
@media screen and (max-width: 600px) {
    .slide-item { width: 100%; }
}