﻿:root {
    /* BYD Brand Theme Colors */
    --byd-primary: #00ADB5;
    --byd-secondary: #00FFF0;
    --byd-red: #e60012;
    --byd-red-hover: #c40010;
    --byd-cyan: #00bcd4;
    --byd-silver: #9eaab6;
    --byd-light-bg: #f4f6f8;
    --byd-card-bg: #ffffff;
    --byd-text-dark: #0f172a;
    --byd-text-muted: #64748b;
    --byd-dark: #080D1A;
    --byd-dark-card: rgba(30, 41, 59, 0.85);
    --byd-border: rgba(255, 255, 255, 0.12);
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
}
.btn-byd-primary {
    background: linear-gradient(135deg, #0052D4 0%, #00C6FF 100%);
    color: #ffffff;
    border: none;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    box-shadow: 0 10px 20px -5px rgba(0, 198, 255, 0.3);
    transition: all 0.3s ease;
}

    .btn-byd-primary:hover {
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 15px 25px -5px rgba(0, 198, 255, 0.5);
    }
.logo-desktop {
    height: 20px;
}

.design-by-techsoftplus {
    display: flex;
    border-top: 1px #777 dashed;
    padding-top: 25px;
    justify-content: center;
    align-items: end;
    padding-bottom: 50px;
}

    .design-by-techsoftplus a {
        font-size: 12px;
        color: #7d8487;
        text-decoration: none;
    }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--byd-light-bg);
    color: var(--byd-text-dark);
    overflow-x: hidden;
}
/* Navbar Styling */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background: rgb(52 53 54 / 90%);
    backdrop-filter: blur(10px);
}

    .navbar.scrolled {
        padding: 10px 0;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 8px;
    transition: color 0.3s;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary-color) !important;
    }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 26px;
    transition: all 0.3s ease;
}

    .btn-primary-custom:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    }
/* BYD Header Bar */
.byd-navbar {
    background-color: var(--byd-primary);
    border-bottom: 2px solid var(--byd-red);
}

.byd-brand {
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff !important;
    font-size: 1.5rem;
}

    .byd-brand span {
        color: var(--byd-red);
    }

.byd-nav-link {
    color: var(--byd-silver) !important;
    transition: color 0.2s ease;
}

    .byd-nav-link:hover, .byd-nav-link.active {
        color: #ffffff !important;
    }

/* Hero / Article Banner */
.byd-badge-category {
    background-color: var(--byd-red);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-header h1 {
    font-weight: 800;
    line-height: 1.3;
    color: var(--byd-text-dark);
    font-size: 2.15rem;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.65rem;
    }
}
@media (max-width: 390px) {
    .article-header h1 {
        font-size: 1.65rem;
    }
    .btn-byd-red{
        font-size:12px;
    }
}
.article-meta {
    color: var(--byd-text-muted);
    font-size: 0.9rem;

}
.card-body .text-muted {
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #1e293b;
    text-align: justify;
}
    .article-content h2 {
        font-weight: 700;
        text-align: left;
        font-size: 24px;
        line-height:30px;
    }
    /* BYD Styled Highlight Box */
    .byd-quote-box {
        border-left: 4px solid var(--byd-red);
        background: linear-gradient(135deg, rgba(10, 17, 24, 0.03) 0%, rgba(230, 0, 18, 0.05) 100%);
        padding: 1.25rem 1.5rem;
        border-radius: 0 0.75rem 0.75rem 0;
        font-style: italic;
        margin: 1.75rem 0;
    }

/* Tech Spec Highlights Container */
.tech-spec-box {
    background-color: var(--byd-primary);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .tech-spec-box h5 {
        color: var(--byd-secondary);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

.author-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--byd-primary);
    border-radius: 0.75rem;
}

/* Buttons */
.btn-byd-red {
    background-color: var(--byd-red);
    color: #ffffff;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s ease;
}

    .btn-byd-red:hover {
        background-color: var(--byd-red-hover);
        color: #ffffff;
    }

.btn-byd-outline {
    border: 1px solid var(--byd-silver);
    color: var(--byd-silver);
    background: transparent;
}

    .btn-byd-outline:hover {
        border-color: #ffffff;
        color: #ffffff;
    }
.article-content img{
    display:block;
    height:auto;
    width:100%;
}
.col-lg-9 img{
    margin:0 auto;
    display:block;
}
/* Cards */
.related-card {
    transition: transform 0.25 ease, box-shadow 0.25s ease;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

    .related-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

.sticky-share {
    position: sticky;
    top: 100px;
}

@media (max-width: 991.98px) {
    .sticky-share {
        position: static;
    }
}

/* Sticky Sidebar Column for Widgets */
.sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* Custom Toast Alert Position */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
}
/* Floating Contact & AI Chat Widget */
.floating-contact-group {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
}

    .float-btn:hover {
        transform: translateY(-3px) scale(1.06);
        color: #fff;
    }

.float-btn-tooltip {
    position: absolute;
    right: 64px;
    background: var(--byd-red-dark);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.float-btn:hover .float-btn-tooltip {
    opacity: 1;
}

.btn-float-phone {
    background: #16a34a;
    animation: pulse-green 2s infinite;
}

.btn-float-zalo {
    background: #0068ff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
}

.btn-float-fb {
    background: #1877f2;
}

.btn-float-ai {
    background: linear-gradient(135deg, #e63946, #7c3aed);
}

.btn-float-top {
    background: var(--byd-red-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

    .btn-float-top:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* AI Chatbox Window */
/* Floating AI Chat Window */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--byd-red), var(--byd-red-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(230, 0, 9, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

    .chat-btn:hover {
        transform: scale(1.1);
    }

.chat-box {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    border: 1px solid #eee;
    animation: fadeInUp 0.3s ease-out;
}

.chat-header {
    background: var(--byd-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--byd-red);
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-msg {
    margin-bottom: 12px;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.4;
}

    .chat-msg.bot {
        background: #ffffff;
        color: #333;
        border: 1px solid #e9ecef;
        align-self: flex-start;
        border-bottom-left-radius: 2px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

    .chat-msg.user {
        background: var(--byd-red);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 2px;
        margin-left: auto;
    }

.chat-footer {
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--byd-border);
}

/* Swiper Custom Styles */
.related-swiper {
    padding-bottom: 45px !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--byd-red) !important;
    background: #ffffff;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
}

    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 16px !important;
        font-weight: bold;
    }

.swiper-pagination-bullet-active {
    background-color: var(--byd-red) !important;
    width: 24px !important;
    border-radius: 4px !important;
}