﻿: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);
}
.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;
}

/* 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;
}

/* 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 Social Media & Back to top */
.social-float-bar {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

    .social-btn:hover {
        transform: scale(1.15);
        color: white;
    }

.btn-zalo {
    background: #0068FF;
}

.btn-messenger {
    background: linear-gradient(135deg, #0084FF, #A800E0);
}

.btn-tiktok {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-hotline {
    background: #0abf07;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-hotline {
    background: #0abf07;
    border: 1px solid rgba(255,255,255,0.2);
}
#backToTopBtn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--byd-primary);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    #backToTopBtn:hover {
        background: var(--byd-secondary);
        color: #0F172A;
        transform: translateY(-3px);
    }

/* Live Chat Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 25px;
    left: 20px;
    z-index: 1040;
    background: linear-gradient(135deg, #00ADB5, #00FFF0);
    color: #0F172A;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 240, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .chat-widget-btn:hover {
        transform: scale(1.05);
    }

.chat-window {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    z-index: 1050;
    display: none;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.chat-header {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    padding: 15px;
    border-bottom: 1px solid var(--byd-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #0B1120;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg-bot {
    background: #1E293B;
    color: #E2E8F0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--byd-border);
}

.chat-msg-user {
    background: var(--byd-primary);
    color: #FFFFFF;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 10px;
    background: #0F172A;
    border-top: 1px solid var(--byd-border);
    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;
}