﻿:root {
    --primary: #0d6efd;
    --secondary: #0b5ed7;
    --light-bg: #f8fcff;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    color: #2c3e50;
    overflow-x: hidden;
    background: #ffffff;
}
/* top bar */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

    .top-bar a {
        color: white;
        margin-right: 15px;
    }
/* search box */
.search-wrapper {
    position: relative;
}

.search-icon {
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
}

    .search-icon:hover {
        background: var(--primary);
        color: white;
    }

.search-expand {
    position: absolute;
    top: -2px;
    right: 35px;
    width: 0;
    overflow: hidden;
    transition: width 0.4s ease;
    background: white;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    padding: 5px 0px;
}

    .search-expand.active {
        width: 250px;
        padding: 5px 15px;
    }

    .search-expand input {
        border: none;
        outline: none;
        width: 100%;
    }
/* navbar */
.navbar {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    height: 55px;
    border-radius: 12px;
}

.phone-header {
    background: var(--primary);
    color: white;
    border-radius: 40px;
    padding: 8px 20px;
    font-weight: 600;
    animation: ring 2s infinite;
}

@keyframes ring {
    0% {
        transform: rotate(0)
    }

    2% {
        transform: rotate(6deg)
    }

    4% {
        transform: rotate(-6deg)
    }

    6% {
        transform: rotate(3deg)
    }

    8% {
        transform: rotate(-3deg)
    }

    10% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(0)
    }
}
/* menu 3 cấp với hiệu ứng mở/đóng mượt và hỗ trợ touch */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    transform: translateY(10px);
    pointer-events: none;
}

.dropdown.show > .dropdown-menu, .dropdown-submenu.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu .dropdown-submenu {
    position: relative;
}

    .dropdown-menu .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -0.5rem;
    }

    .dropdown-menu .dropdown-submenu > a::after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #ccc;
        margin-top: 5px;
    }

@media (max-width: 991px) {
    .dropdown-menu .dropdown-submenu > .dropdown-menu {
        position: static;
        border: none;
        padding-left: 1rem;
        transition: none;
        transform: none;
    }

    .dropdown-submenu .dropdown-toggle::after {
        display: none;
    }
}
/* hero slider slick - nút điều hướng trắng nổi rõ */
.hero-slider {
    position: relative;
}

    .hero-slider .slick-slide {
        height: 580px;
        background-size: cover;
        background-position: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: white;
        position: relative;
    }

        .hero-slider .slick-slide::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(10, 50, 90, 0.4);
            z-index: 1;
        }

    .hero-slider .container {
        position: relative;
        z-index: 2;
        text-align: center;
    }

.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    z-index: 10;
    opacity: 1 !important;
    border: 1px solid rgba(255,255,255,0.5);
}

.slick-prev {
    left: 20px;
}

.slick-next {
    right: 20px;
}

    .slick-prev:hover, .slick-next:hover {
        background: rgba(255,255,255,0.8) !important;
    }

    .slick-prev:before, .slick-next:before {
        color: white;
        font-size: 28px;
        opacity: 1;
    }
/* service card */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem 1rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.4s;
    margin: 10px;
    border: 1px solid #eee;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .service-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 40px rgba(13,110,253,0.15);
    }

    .service-card i {
        font-size: 3.2rem;
        color: var(--primary);
        margin-bottom: 1rem;
    }

.owl-carousel .owl-stage-outer {
    padding: 10px 0;
}

.owl-nav button {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
/* album */
.album-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: 0.5s;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

    .album-item:hover {
        transform: scale(1.05) rotate(1deg);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

.video-wrapper {
    border-radius: 24px;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}
/* tin tức */
.news-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    height: 100%;
    transition: all 0.4s cubic-bezier(.2,.8,.2,1);
    /* Chiều sâu mặc định */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05), 0 15px 30px rgba(0,0,0,0.06), 0 30px 60px rgba(0,0,0,0.04);
}

    /* Hover sâu hơn */
    .news-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 25px 50px rgba(0,0,0,0.18), 0 45px 90px rgba(0,0,0,0.12);
    }

/* Ảnh */
.news-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb {
    transform: scale(1.06);
}

/* Nội dung */
.news-content {
    padding: 1.5rem;
}

/* Meta */
.news-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Tiêu đề */
.news-content h6 {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    transition: 0.3s;
}

.news-card:hover h6 {
    color: #0d6efd;
}
/* phân trang */
.pagination .page-link {
    color: var(--primary);
    border-radius: 30px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
/* nút gọi khẩn cấp ring ring - nhỏ hơn, dưới cùng bên trái */
.emergency-call {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: #dc3545;
    border-radius: 40px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(220,53,69,0.6);
    z-index: 999;
    animation: ring-ring 2s infinite;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid white;
    font-size: 14px;
}

    .emergency-call i {
        font-size: 18px;
        margin-right: 8px;
        animation: phone-shake 0.5s infinite;
    }

    .emergency-call span {
        font-size: 16px;
    }

    .emergency-call:hover {
        animation: none;
        transform: scale(1.05);
        background: #bb2d3b;
    }

@keyframes ring-ring {
    0% {
        transform: rotate(0);
        box-shadow: 0 0 0 0 rgba(220,53,69,0.7);
    }

    2% {
        transform: rotate(6deg)
    }

    4% {
        transform: rotate(-6deg)
    }

    6% {
        transform: rotate(3deg)
    }

    8% {
        transform: rotate(-3deg)
    }

    10% {
        transform: rotate(0)
    }
    50% {
        box-shadow: 0 0 0 15px rgba(220,53,69,0);
    }

    100% {
        transform: rotate(0);
        box-shadow: 0 0 0 0 rgba(220,53,69,0);
    }
}

@keyframes phone-shake {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0);
    }
}
/* nút scroll top */
.scroll-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }
/* footer */
footer {
    background: #0889d6;
    color: white;
}

    footer a {
        color: rgba(255,255,255,0.9);
    }

        footer a:hover {
            color: white;
            text-decoration: underline;
        }

.footer-map iframe {
    border-radius: 16px;
    width: 100%;
    height: 180px;
    border: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: #0a2b6e;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 80px;
        height: 4px;
        background: var(--primary);
        border-radius: 4px;
    }
/* hỏi đáp accordion */
.accordion .card {
    border: none;
    margin-bottom: 10px;
    border-radius: 16px !important;
    overflow: hidden;
}

.accordion .card-header {
    background: #f0f7ff;
    border: none;
    padding: 0;
}

.accordion .btn-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
}

    .accordion .btn-link:hover {
        background: #e1f0fe;
    }
/* partner links */
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .partner-item img {
        max-height: 60px;
        margin-bottom: 8px;
        filter: grayscale(0.3);
        transition: 0.3s;
    }

    .partner-item:hover img {
        filter: grayscale(0);
        transform: scale(1.05);
    }

    .partner-item span {
        color: var(--primary);
        font-weight: 500;
    }


a.flag_lang img {
    width: 50px;
    height: auto;
}

