/* ============================================================
   Min Hang Express — Custom Enhancement Styles
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 70px;
}

/* ---- Navbar ---- */
.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.12);
}

.navbar-default .navbar-nav > li > a {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-default .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #38f;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li.active > a::after {
    transform: scaleX(1);
}

.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:focus {
    color: #38f;
    background-color: transparent;
}

#lang {
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 14px !important;
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px !important;
}

#lang:hover,
#lang:focus {
    border-color: #38f !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 136, 255, 0.1);
}

/* ---- #bbs Service Icon Grid ---- */
#bbs {
    background: linear-gradient(160deg, #f5f8ff 0%, #eef3ff 100%);
}

.service-container {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38f, #00A4B4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: 1px;
}

.service-container:hover::before {
    transform: scaleX(1);
}

.service-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(51, 136, 255, 0.18) !important;
}

.service-container img {
    transition: transform 0.4s ease;
}

.service-container:hover img {
    transform: scale(1.08);
}

.service-container h3 {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* ---- #html5 Company Intro ---- */
#html5 h2 {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 28px;
    color: #222;
}

#html5 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #38f, #00A4B4);
    border-radius: 2px;
}

#html5 .col-md-5 img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

#html5 .col-md-6 p,
#html5 .col-md-6 > p {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 3px solid #38f;
    transition: box-shadow 0.3s, border-color 0.3s;
}

#html5 .col-md-6 p:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #00A4B4;
}

#html5 .elementor-widget-container img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.mai-icon {
    background: linear-gradient(135deg, #38f, #00A4B4) !important;
    box-shadow: 0 4px 12px rgba(51, 136, 255, 0.3);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.witr_section_title_inner h2 {
    letter-spacing: 2px;
    font-size: 13px !important;
    text-transform: uppercase;
}

.witr_section_title_inner h3 {
    font-size: 20px;
    color: #444;
    margin: 8px 0 12px;
}

.witr_section_title_inner h1 {
    font-size: 32px;
    letter-spacing: 5px;
}

/* ---- #service OUR SERVICES ---- */
#service {
    background: linear-gradient(150deg, #0d1b3e 0%, #1565c0 60%, #00838f 100%);
    padding: 100px 0;
}

#service .witr_section_title_inner h2 {
    color: #ffa040;
    background: transparent !important;
}

#service .witr_section_title_inner h3 {
    color: rgba(255, 255, 255, 0.85);
}

#service .witr_section_title_inner h1 {
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 164, 180, 0.6);
}

#service .service-container {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none !important;
    border-radius: 12px !important;
}

#service .service-container::before {
    background: linear-gradient(90deg, rgba(255, 160, 64, 0.8), rgba(0, 164, 180, 0.8));
}

#service .service-container:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#service .service-container h3 {
    color: #fff;
    font-size: 18px;
}

#service .service-container p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.9;
    box-shadow: none !important;
    background: transparent !important;
    border-left: none !important;
}

#service .service-container img {
    width: 100%;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.bountry-number {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: 8px !important;
    height: 65px !important;
    line-height: 65px !important;
    text-shadow: none;
}

/* Equal-height service cards in #service */
#service .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#service .row .col-md-6 {
    display: flex;
    flex-direction: column;
}

#service .row .col-md-6 .service-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#service .row .col-md-6 .service-container p {
    flex: 1;
}

/* ---- #bootstrap Advantages ---- */
#bootstrap {
    background: #fff;
}

#bootstrap h2 {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 30px;
    color: #222;
}

#bootstrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #38f, #00A4B4);
    border-radius: 2px;
}

#bootstrap .col-md-6:first-child img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#bootstrap .col-md-6:first-child img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

#bootstrap .col-md-6:last-child p {
    background: #f8faff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #38f;
    transition: box-shadow 0.3s, border-color 0.3s;
}

#bootstrap .col-md-6:last-child p:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    border-left-color: #00A4B4;
}

/* ---- #choose Franchise ---- */
#choose {
    background: linear-gradient(160deg, #f0f6ff 0%, #e8f4fd 100%);
}

#choose h2 {
    position: relative;
    padding-bottom: 14px;
    color: #222;
}

#choose h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #38f, #00A4B4);
    border-radius: 2px;
}

#choose .col-md-6:last-child img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

#choose .col-md-6:first-child p {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 3px solid #38f;
    transition: box-shadow 0.3s, border-color 0.3s;
}

#choose .col-md-6:first-child p:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    border-left-color: #00A4B4;
}

/* ---- #course Culture & Responsibility ---- */
#course {
    background: #f7f9fc !important;
}

#course h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    color: #222;
    margin-bottom: 40px;
}

#course h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #38f, #00A4B4);
    border-radius: 2px;
}

.course {
    overflow: hidden;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.course:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.img_fit {
    transition: transform 0.5s ease !important;
}

.course:hover .img_fit {
    transform: scale(1.06) !important;
}

/* ---- Banner 2 ---- */
.banner2 {
    padding: 80px 0;
}

.banner2 h1 {
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 12px;
}

/* ---- #contact ---- */
.lvjing {
    background: rgba(0, 0, 0, 0.68) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#contact h2 {
    font-size: 26px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 28px;
}

#contact address p {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

#contact address p:last-child {
    border-bottom: none;
}

#contact address p:hover {
    color: #87ceeb;
    padding-left: 6px;
}

#contact address a {
    transition: color 0.3s ease;
}

#contact address a:hover {
    color: #87ceeb !important;
}

/* ---- Footer ---- */
footer {
    background: #0f1117 !important;
    color: #777 !important;
    padding: 28px 20px !important;
    position: relative;
    border-top: none !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38f, #00A4B4);
}

footer .col-md-12 {
    padding: 8px 0;
    letter-spacing: 0.4px;
    font-size: 13px;
}

/* ---- Buttons ---- */
.btn-success {
    background: linear-gradient(135deg, #38f, #00A4B4) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 36px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(51, 136, 255, 0.35);
    transition: all 0.35s ease !important;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #0055dd, #007b88) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 136, 255, 0.45) !important;
}

/* ---- Scroll-to-top button ---- */
#scrollTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #38f, #00A4B4);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 16px rgba(51, 136, 255, 0.4);
    font-size: 18px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#scrollTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    box-shadow: 0 6px 22px rgba(51, 136, 255, 0.55);
    transform: translateY(-3px);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .witr_section_title_inner h1 {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .banner2 h1 {
        font-size: 48px !important;
        letter-spacing: 6px;
    }

    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
    }
}
