﻿: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;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #334155;
}

/* 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+Electric+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 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);
}
#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: 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);
    }