/* --- BẢNG MÀU (Dựa trên Logo) --- */
:root {
    /* Màu Xanh Dương Đậm từ Logo */
    --primary-color: #002855;
    /* Màu Đỏ Điểm Nhấn từ Logo */
    --accent-color: #CE1126;
    /* Màu Chữ Tối */
    --text-color: #333333;
    /* Màu Nền Sáng */
    --bg-light: #F8F9FA;
}

/* --- CHUNG --- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

/* --- THANH ĐIỀU HƯỚNG (NAVBAR) --- */
.navbar.bg-dark {
    /* Sử dụng màu Xanh Dương Đậm */
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand {
    letter-spacing: 1px;
    font-size: 1.5rem;
}
/* Chỉnh màu chữ MAX thành màu Đỏ để tạo điểm nhấn */
.navbar-brand .text-primary {
    color: var(--accent-color) !important;
}

.small-us {
    font-size: 0.6em;
    vertical-align: top;
    color: rgba(255,255,255,0.7);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    /* Màu chữ trắng mờ khi chưa hover */
    color: rgba(255,255,255,0.85) !important;
    transition: all 0.3s;
}
.nav-link:hover, .nav-link.active {
    /* Chuyển sang màu Trắng sáng và thêm gạch chân Đỏ */
    color: #ffffff !important;
}

/* --- NÚT BẤM (BUTTONS) --- */
.btn-primary {
    /* Sử dụng màu Đỏ làm màu chính cho nút */
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    /* Màu khi hover tối hơn một chút */
    background-color: #A30E1E;
    border-color: #A30E1E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(206, 17, 38, 0.3);
}

/* Nút viền trắng ở Hero Section */
.btn-outline-light {
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
}
.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* --- HERO SECTION --- */
.hero-section {
    /* Lớp phủ màu Xanh Dương Đậm mờ lên ảnh nền */
    background: linear-gradient(rgba(0, 40, 85, 0.75), rgba(0, 40, 85, 0.65)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    height: 85vh; /* Full screen height */
}

/* --- CÁC KHỐI TÍNH NĂNG (FEATURE CARDS) --- */
.feature-card {
    transition: all 0.3s;
    height: 100%;
    /* Đường viền màu Xanh Dương Đậm */
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    /* Đổi sang màu Đỏ khi hover */
    border-left-color: var(--accent-color);
}
.feature-card h3.text-dark {
    color: var(--primary-color) !important;
}

/* --- CÁC KHỐI SẢN PHẨM (PRODUCT CARDS) --- */
.product-card {
    transition: all 0.3s;
    overflow: hidden;
    border: none;
    border-radius: 8px;
}
.product-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
    transform: translateY(-3px);
}
.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* Link "Learn more" */
a.text-primary {
    /* Sử dụng màu Đỏ để nổi bật */
    color: var(--accent-color) !important;
    transition: color 0.3s;
}
a.text-primary:hover {
    /* Chuyển sang màu Xanh Dương Đậm khi hover */
    color: var(--primary-color) !important;
}

/* --- SECTIONS & FOOTER --- */
/* Nền màu Xanh Dương Đậm cho phần About và Footer */
#about.bg-dark, footer.bg-black {
    background-color: var(--primary-color) !important;
}

#products h6.text-primary, #about h2 {
    color: var(--primary-color) !important;
}

.hover-white:hover {
    color: var(--accent-color) !important; /* Hover ở footer chuyển màu đỏ */
}

hr.border-secondary {
    border-color: rgba(255,255,255,0.2) !important;
}

/* --- CSS CHO TRANG CON (PAGE STYLES) --- */

/* Banner đầu trang (Page Header) */
.page-header {
    background: linear-gradient(rgba(0, 40, 85, 0.85), rgba(0, 40, 85, 0.8)), url('https://images.unsplash.com/photo-1486262715619-01b80258e0a5?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 3rem;
}

/* Nội dung bài viết */
.content-area {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}
.content-area h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}
.content-area ul {
    margin-bottom: 1.5rem;
    list-style-type: none; /* Bỏ chấm tròn mặc định */
    padding-left: 0;
}
.content-area ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
/* Thêm dấu tích đỏ đầu dòng */
.content-area ul li::before {
    content: "✔";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sidebar bên phải */
.sidebar-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.sidebar-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-list a {
    display: block;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    font-weight: 600;
}
.sidebar-list a:hover {
    background: #f8f9fa;
    color: var(--accent-color);
    padding-left: 25px;
}
/* Trạng thái đang xem */
.sidebar-list a.active {
    color: var(--accent-color);
    background-color: #fff0f0;
    border-left: 4px solid var(--accent-color);
}