﻿:root {
    --byd-primary: #00ADB5;
    --byd-secondary: #00FFF0;
    --byd-dark-card: rgb(86 98 135 / 85%);
    --byd-border: rgba(255, 255, 255, 0.12);
    --byd-blue: #005696;
    --byd-dark: #0f172a;
    --byd-light: #f8fafc;
    --byd-accent: #0284c7;
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #334155;
}
/* 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 Navigation */
.byd-navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.byd-logo-text {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.5rem;
    color: #fff;
}

.byd-nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

    .byd-nav-link:hover, .byd-nav-link.active {
        color: #38bdf8 !important;
    }

/* Hero BYD Header */
.byd-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(0, 86, 150, 0.8) 100%), url('https://placehold.co/1920x600/0f172a/38bdf8?text=BYD+Long%20Bi%C3%AAn+Vehicles+2026') center/cover no-repeat;
    padding: 4.5rem 0;
    color: #fff;
    position: relative;
}

.byd-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
}

/* News Cards Styling */
.news-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

.news-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .news-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.news-card:hover .news-img-wrapper img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

/* Featured Big Article */
.featured-card {
    border-radius: 1.25rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.featured-img-wrapper {
    min-height: 340px;
    position: relative;
}

    .featured-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Compact Horizontal Card */
.news-card-horizontal {
    display: flex;
    flex-direction: row;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .news-card-horizontal:hover {
        transform: translateX(4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    }

    .news-card-horizontal .thumb {
        width: 160px;
        min-width: 160px;
        height: 120px;
        position: relative;
    }

        .news-card-horizontal .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* Filter Pills */
.filter-btn {
    border-radius: 50rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

    .filter-btn:hover, .filter-btn.active {
        background-color: var(--byd-blue);
        color: #fff;
        border-color: var(--byd-blue);
        box-shadow: 0 4px 6px -1px rgba(0, 86, 150, 0.25);
    }

/* Styles cho List View khi người dùng bật chế độ danh sách */
.news-grid-container.list-view .col-md-6 {
    width: 100% !important;
}

.news-grid-container.list-view .news-card {
    flex-direction: row !important;
    align-items: stretch;
}

.news-grid-container.list-view .news-img-wrapper {
    width: 320px !important;
    min-width: 320px !important;
    height: auto !important;
    min-height: 200px;
}

@media (max-width: 767.98px) {
    .news-grid-container.list-view .news-card {
        flex-direction: column !important;
    }

    .news-grid-container.list-view .news-img-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        height: 200px !important;
    }
}

/* Search Box in Main */
.search-widget input {
    border-radius: 0.75rem 0 0 0.75rem;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 1rem;
}

.search-widget button {
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 0.65rem 1.25rem;
}
.logo-desktop {
    height: 20px;
}
/* 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: rgb(0 24 83 / 85%);
    /*rgb(0 24 83 / 85%)*/
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--byd-border);
}
.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;
    }
.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);
    }