:root {
    --primary: #1d4fd8;       /* xanh duong chinh */
    --primary-dark: #0f2f8c;  /* xanh duong dam */
    --navy: #0b1e4d;          /* nen footer / banner toi */
    --secondary: #ffc328;     /* vang/gold nhan manh */
    --secondary-dark: #e6a800;
    --dark: #16213e;
    --light-bg: #f4f7fd;
    --font-main: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: #333;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--primary); }

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: .85rem;
}

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-title-center {
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: .8rem;
}

.section-title-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--navy);
    color: #fff;
    font-size: .82rem;
    letter-spacing: .3px;
    padding: .45rem 0;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem 1.5rem;
    flex-wrap: wrap;
}

.topbar-hotline-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1.2rem;
}

.topbar-hotline {
    color: #cfd8f2;
    display: inline-block;
    white-space: nowrap;
}

.topbar-hotline i { margin-right: .25rem; color: var(--secondary); }
.topbar-hotline strong { color: #fff; }
.topbar-hotline:hover { color: var(--secondary); }

.topbar-social {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-shrink: 0;
}

.topbar-social a { color: #cfd8f2; white-space: nowrap; }
.topbar-social a:hover { color: var(--secondary); }

/* ---------- Header ---------- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(11,30,77,.08);
    border-bottom: 3px solid var(--primary);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--navy) !important;
    font-weight: 800;
    font-size: 1.25rem;
}

.navbar-brand i { font-size: 1.6rem; color: var(--primary); }

.main-header .navbar-nav {
    align-items: center;
}

.main-header .nav-link {
    color: var(--dark) !important;
    font-weight: 700;
    padding: .5rem 1rem !important;
    text-transform: uppercase;
    font-size: .88rem;
    border-bottom: 3px solid transparent;
}

.main-header .nav-link:hover { color: var(--primary) !important; }

.main-header .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary);
}

.main-header .dropdown-menu {
    border: none;
    border-top: 3px solid var(--primary);
    box-shadow: 0 10px 24px rgba(11,30,77,.15);
    border-radius: 0 0 .5rem .5rem;
    padding: .5rem 0;
    margin-top: 0;
}

.main-header .dropdown-item {
    font-weight: 600;
    color: var(--dark);
    padding: .5rem 1.25rem;
}

.main-header .dropdown-item:hover,
.main-header .dropdown-item:focus {
    background: rgba(29,79,216,.08);
    color: var(--primary);
}

.main-header .dropdown-toggle::after { vertical-align: middle; }

@media (min-width: 992px) {
    .main-header .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.btn-hotline {
    background: var(--secondary);
    color: var(--navy) !important;
    font-weight: 700;
    border-radius: 30px;
    padding: .5rem 1.2rem;
}

.btn-hotline:hover { background: var(--primary); color: #fff !important; }

.btn-hero {
    background: var(--secondary);
    color: var(--navy) !important;
    font-weight: 700;
    border-radius: 30px;
    padding: .8rem 2rem;
    display: inline-block;
    border: none;
}

.btn-hero:hover { background: #fff; color: var(--primary) !important; }

/* ---------- Hero ---------- */
.hero-slider { background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, var(--secondary) 130%); }

.hero-slide {
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 700;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--navy);
    position: relative;
}

.hero-fallback {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 140%);
    padding: 5rem 0;
    color: #fff;
    text-align: center;
}

.hero-fallback .hero-kicker {
    display: inline-block;
    background: var(--secondary);
    color: var(--navy);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.hero-fallback h2 { font-weight: 800; font-size: 2.6rem; line-height: 1.15; }

.hero-badges {
    background: rgba(255,255,255,.08);
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    padding: 1rem 0;
    font-size: .85rem;
    font-weight: 600;
}

.hero-badge i { font-size: 1.5rem; color: var(--secondary); }

.hero-perks {
    background: var(--navy);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    padding: .7rem 0;
}

.hero-perks i { color: var(--secondary); margin-right: .4rem; }

/* ---------- Stats ---------- */
.stat-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(11,30,77,.08);
    padding: 1.75rem 1.1rem;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(11,30,77,.16);
    border-bottom-color: var(--secondary);
}

.stat-box i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(29,79,216,.1);
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: .6rem;
}

.stat-box h3 { font-weight: 800; margin: .3rem 0 0; font-size: 1.9rem; color: var(--navy); }
.stat-box p { margin: 0; color: #777; font-size: .9rem; font-weight: 600; }

/* ---------- Gioi thieu (home section) ---------- */
.section-intro-home {
    background: #fff;
    color: var(--dark);
}

.intro-panel {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(11,30,77,.12);
    border-top: 5px solid var(--secondary);
    padding: 2.75rem;
}

@media (max-width: 767.98px) {
    .intro-panel { padding: 1.75rem; border-radius: 16px; }
}

.section-intro-home .section-title-center::after { background: var(--primary); }
.section-intro-home .section-title-center { color: var(--navy); font-size: 2rem; }
@media (min-width: 992px) {
    .section-intro-home .section-title-center.text-lg-start::after { left: 0; transform: none; }
}
.section-intro-home p { color: #556; line-height: 1.85; font-size: 1.05rem; }
.section-intro-home img { border-radius: 14px; box-shadow: 0 10px 30px rgba(11,30,77,.15); }

.intro-hotline-box {
    background: #f4f7fd;
    border: 1px solid rgba(11,30,77,.1);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: .9rem 1.1rem;
}

.intro-hotline-box a {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 400;
    font-size: .92rem;
    padding: .3rem 0;
    line-height: 1.3;
}

.intro-hotline-box a span { flex: 1; }

.intro-hotline-box a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(29,79,216,.12);
    color: var(--primary);
    margin-right: .55rem;
    font-size: .78rem;
    flex-shrink: 0;
}

.intro-hotline-box a strong { color: var(--navy); font-weight: 500; }

/* ---------- Service cards ---------- */
.service-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(11,30,77,.08);
    padding: 2.3rem 1.5rem 2rem;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(11,30,77,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(29,79,216,.22);
    border-color: transparent;
}

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

.service-icon {
    width: 76px;
    height: 76px;
    line-height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 22px rgba(29,79,216,.3);
    transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 10px 22px rgba(255,195,40,.4);
}

.service-card h5 { font-weight: 700; color: var(--dark); transition: color .25s ease; }
.service-card:hover h5 { color: var(--primary); }
.service-card p { color: #777; font-size: .9rem; margin-bottom: .5rem; }

/* ---------- News / Article cards ---------- */
.news-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(11,30,77,.07);
    height: 100%;
    color: #333;
}

.news-thumb {
    display: block;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.news-body { padding: 1.2rem; }
.news-date { color: var(--primary); font-size: .8rem; font-weight: 600; }
.news-body h5 { margin: .5rem 0; font-weight: 700; }
.news-body h5 a { color: var(--dark); }
.news-body p { color: #777; font-size: .9rem; margin-bottom: 0; }

/* ---------- Tin tuc: bai viet noi bat + danh sach ---------- */
.news-featured-carousel {
    height: 100%;
    min-height: 320px;
    border-radius: 14px;
    overflow: hidden;
}

.news-featured-carousel .carousel-inner,
.news-featured-carousel .carousel-item {
    height: 100%;
}

.news-featured {
    position: relative;
    display: block;
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.news-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11,20,60,.75) 0%, rgba(11,20,60,0) 55%);
}

.news-featured .news-featured-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem;
    z-index: 2;
}

.news-featured .news-featured-caption h4 { color: #fff; font-weight: 800; margin: 0; }
.news-featured .news-featured-caption p { color: #dfe6fb; margin: .4rem 0 0; font-size: .9rem; }

.news-featured-indicators {
    position: absolute;
    bottom: .6rem;
    z-index: 3;
    margin-bottom: 0;
}

.news-featured-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.55);
    border: none;
    opacity: 1;
    margin: 0 4px;
}

.news-featured-indicators [data-bs-target].active {
    background-color: var(--secondary);
}

/* ---------- Khoi "Dich vu" noi bat o sidebar trang Tin tuc/Kien thuc ---------- */
.sidebar-service-box {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(11,30,77,.08);
}

.sidebar-service-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    margin: 0;
    padding: 1.1rem 1.3rem;
}

.sidebar-service-header i { color: var(--secondary); margin-right: .4rem; }

.sidebar-service-list {
    margin: 0;
    padding: .2rem 1.3rem 0;
}

.sidebar-service-list li { border-bottom: 1px solid #eef1f8; }
.sidebar-service-list li:last-child { border-bottom: none; }

.sidebar-service-list li a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 0;
    color: var(--dark);
    font-weight: 600;
    font-size: .92rem;
    transition: color .15s ease, padding-left .15s ease;
}

.sidebar-service-list li a i { color: var(--primary); font-size: .75rem; flex-shrink: 0; }

.sidebar-service-list li a:hover {
    color: var(--primary);
    padding-left: .3rem;
}

.sidebar-service-footer { padding: 1rem 1.3rem 1.3rem; }

.news-list-item {
    display: flex;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid #eef1f8;
}

.news-list-item:last-child { border-bottom: none; }

.news-list-thumb {
    width: 90px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.news-list-item h6 { font-weight: 700; margin: 0 0 .3rem; }
.news-list-item h6 a { color: var(--dark); }
.news-list-item p { font-size: .85rem; color: #888; margin: 0; }

/* ---------- Banner strip ---------- */
.banner-strip {
    background: linear-gradient(120deg, var(--navy) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 1.6rem 0;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Gallery ---------- */
.section-gallery-home { background: var(--light-bg); }

.gallery-thumb {
    height: 180px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    box-shadow: 0 4px 14px rgba(11,30,77,.08);
}

/* ---------- Testimonials (kieu tin nhan chat) ---------- */
.testimonial-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(11,30,77,.07);
    padding: 1.5rem;
    height: 100%;
    text-align: center;
}

.testimonial-chat {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    margin-bottom: 1rem;
    min-height: 140px;
}

.testimonial-bubble {
    display: inline-block;
    background: #fff;
    border-radius: 14px;
    padding: .5rem .9rem;
    font-size: .82rem;
    margin-bottom: .5rem;
    box-shadow: 0 1px 4px rgba(11,30,77,.08);
    max-width: 90%;
}

.testimonial-bubble.bubble-out {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
    display: block;
    width: fit-content;
}

.testimonial-stars i { color: var(--secondary); }
.testimonial-card p.quote { font-style: italic; color: #555; margin: .8rem 0; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .5rem; }
.testimonial-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--dark); }
.testimonial-author span { font-size: .8rem; color: #999; }

/* ---------- CTA ---------- */
.section-cta {
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
}

.section-cta h2 { font-weight: 800; }

/* ---------- Footer ---------- */
.main-footer {
    background: var(--navy);
    color: #b9c4e6;
}

.footer-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #b9c4e6; }
.footer-links a:hover { color: var(--secondary); }

.card .footer-links a { color: #4a5578; }
.card .footer-links a:hover { color: var(--primary); }

.widget-title {
    position: relative;
    font-weight: 800;
    color: var(--dark);
    padding-bottom: .7rem;
    margin-bottom: 1.1rem;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}
.footer-contact li { margin-bottom: .8rem; }
.footer-contact i { color: var(--secondary); margin-right: .5rem; width: 16px; }

.footer-branch-block { margin-bottom: 1.4rem; }
.footer-branch-block h6 { color: var(--secondary); font-weight: 700; margin-bottom: .6rem; text-transform: uppercase; font-size: .85rem; }
.footer-branch-block p { margin: 0 0 .4rem; font-size: .88rem; color: #cfd8f2; }

.social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    margin-top: .5rem;
}

.social-icon:hover { background: var(--secondary); color: var(--navy); }

.footer-bottom {
    background: #081537;
    color: #8a95bd;
    font-size: .85rem;
}

/* ---------- Floating buttons ---------- */
.floating-btn {
    position: fixed;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 1000;
}

.floating-zalo { bottom: 90px; background: #0068ff; }
.floating-call { bottom: 24px; background: #25d366; animation: pulse 1.6s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--navy);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--navy) 0%, var(--primary) 100%);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
}

.page-banner h1 { font-weight: 800; margin-bottom: .5rem; }
.page-banner .breadcrumb { margin: 0; }
.page-banner .breadcrumb a { color: #ffe1b3; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #ffe1b3; }

/* ---------- Article content ---------- */
.article-content { line-height: 1.8; }
.article-content img { max-width: 100%; border-radius: 8px; }
.article-meta span { margin-right: 1.2rem; color: #888; font-size: .9rem; }
.article-meta i { color: var(--primary); margin-right: .3rem; }

.cta-box {
    background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 65%, var(--navy) 130%);
    color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 47, 140, .28) !important;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 195, 40, .25), transparent 55%);
    pointer-events: none;
}

.cta-box-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(255, 195, 40, .4);
}

.cta-box h5 {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: .6rem;
}

.cta-box p {
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

.btn-cta-call {
    background: var(--secondary);
    color: var(--navy) !important;
    font-weight: 700;
    border-radius: 30px;
    padding: .8rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 195, 40, .35);
    transition: transform .2s ease, background .2s ease, color .2s ease;
    position: relative;
}

.btn-cta-call:hover {
    background: #fff;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* ---------- Login page ---------- */
.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

@media (max-width: 991px) {
    .hero-caption h1 { font-size: 1.8rem; }
    .news-featured, .news-featured-carousel { min-height: 220px; }
}
