/* --- 1. RESET & NỀN --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

a {
    text-decoration: none !important;
    color: inherit;
}

body {
    /* Thay 'bg-dark-pattern.jpg' bằng tên file ảnh Quang vừa gửi */
    background-image: url('../images/bg1.png');
    background-repeat: repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: auto;
    background-color: #000;
    /* Màu nền dự phòng */
    color: #fff;
    /* Màu chữ mặc định toàn trang chuyển sang trắng */
}


/* --- 2. HEADER & MENU --- */
/* --- MENU CẤP 2 (DROPDOWN) --- */
.nav-item {
    position: relative;
    /* Gốc tọa độ cho menu con */
}

/* Ẩn menu con mặc định */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(20, 15, 10, 0.95);
    /* Màu đen nâu sang trọng */
    border: 1px solid #a0732e;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Hiện menu con khi rê chuột vào Sản phẩm */
.nav-item:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Kiểu chữ menu con */
.dropdown-menu-custom li a {
    display: block;
    padding: 10px 20px;
    color: #f4e1a0;
    /* Màu vàng sáng */
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(160, 115, 46, 0.2);
    transition: 0.3s;
}

/* Hiệu ứng khi rê chuột vào mục con */
.dropdown-menu-custom li a:hover {
    background: #a0732e;
    color: #fff;
    padding-left: 30px;
    /* Hiệu ứng dịch sang phải một chút */
}

/* Xóa viền mục cuối cùng */
.dropdown-menu-custom li:last-child a {
    border-bottom: none;
}

/* Mũi tên nhỏ chỉ xuống cho Sản phẩm */
.dropdown-toggle::after {
    content: "\f107";
    /* Icon mũi tên FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 14px;
    color: #fff;
}

/* --- TỐI ƯU HEADER HEADER --- */
.header-main-top {
    border-bottom: 1px solid rgba(244, 225, 160, 0.2);
}

/* Hiệu ứng hào quang cho Logo */
.logo-glow {
    filter: drop-shadow(0 0 15px rgba(244, 225, 160, 0.4));
    transition: 0.5s;
    max-height: 200px;
    object-fit: contain;
}


.header-hotline-btn:hover {
    background: #a0732e;
    color: #fff !important;
}

.icon-pulse {
    background: #a0732e;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #fff;
    animation: pulse-gold 2s infinite;
}

/* Thanh tìm kiếm Glassmorphism */
.search-wrapper {
    position: relative;
    max-width: 300px;
    margin-left: auto;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(244, 225, 160, 0.3);
    border-radius: 50px;
    padding: 10px 50px 10px 20px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}



.search-btn:hover {
    background: #f4e1a0;
    color: #000;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 115, 46, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(160, 115, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(160, 115, 46, 0);
    }
}


.main-logo:hover .logo-glow {
    filter: drop-shadow(0 0 25px rgba(244, 225, 160, 0.7));
    transform: scale(1.05);
}

/* Nút Hotline chuyên nghiệp */
.header-hotline-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(160, 115, 46, 0.1);
    border: 1px solid #a0732e;
    padding: 8px 20px;
    border-radius: 50px;
    color: #f4e1a0 !important;
    transition: 0.3s;
}


.icon-pulse {
    background: #a0732e;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #fff;
    animation: pulse-gold 2s infinite;
}

.search-input:focus {
    border-color: #f4e1a0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(244, 225, 160, 0.2);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: #a0732e;
    border: none;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}

.search-btn:hover {
    background: #f4e1a0;
    color: #000;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 115, 46, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(160, 115, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(160, 115, 46, 0);
    }
}

.header .header-bottom {
    min-height: 150px;
}

.hotline-header {
    color: #f4e1a0;
    font-size: 25px;
}

.search-box .form-control {
    border-radius: 20px;
    background-color: #f8e474;
    padding-right: 45px;
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.menu {
    background: url('../images/background-nav.png') no-repeat center / 100% 100%;
}

.flex-menu h2 {
    padding: 10px;
    font-size: 20px;
    color: #fff;
    font-weight: bolder;
    text-transform: uppercase;
    margin: 0;
}


/* Container chính */
.news-container {
    /* Hoa văn mờ nếu có */
    padding: 60px 0;
    min-height: 600px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-title {
    color: #d4af37;
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
}

/* Kẻ gạch chân dưới tiêu đề */
.main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #d4af37;
    margin: 10px auto;
}

/* Lưới 2 cột */
.news-list {
    display: grid;
    /* Trên PC sẽ chia làm 3 cột đều nhau */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Khoảng cách giữa các bài viết */
    padding: 20px 0;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card:hover {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.07);
}

.card-inner {
    display: flex;
    flex-direction: column; /* Đổi từ ngang sang dọc */
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.03); /* Thêm nền nhẹ cho card */
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-media {
    flex: 0 0 30%;
    height: 100%;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 220px;
    transition: 0.5s;
    object-fit: cover;
}

.news-card:hover .card-media img {
    transform: scale(1.1);
}

.card-body {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
}

.card-title {
    height: 3em;
    color: #d4af37 !important;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    /* Giới hạn 2 dòng tiêu đề */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    color: #ccc;
    font-size: 0.95rem;
    /* Giới hạn 3 dòng mô tả */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-detail {
    display: inline-block;
    margin-top: 15px;
    color: #d4af37;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}


/* --- FOOTER MAIN --- */
.footer-section {
    background: radial-gradient(circle, rgba(97, 74, 26, 0.8) 0%, rgba(26, 22, 16, 1) 100%),
        url('./asset/images/bg1.png') !important;
    background-repeat: repeat;
    /* Sử dụng lại hoa văn nền tối */
    color: #ccc;
    position: relative;
    background-attachment: fixed;
}

.footer-top-border {
    height: 25px;
    background: url('../images/f2.png') repeat-x center;
    background-size: contain;
    width: 100%;
    position: absolute;
    top: -20px;
    z-index: 2;
}

.footer-title {
    color: #f4e1a0;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
}

.brand-name {
    color: #f4e1a0;
    font-weight: bold;
    font-size: 1rem;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.text-gold {
    color: #f4e1a0 !important;
}

.map-link {
    color: #f4e1a0;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline !important;
}

/* --- CHÍNH SÁCH --- */
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #f4e1a0;
    padding-left: 5px;
}

.subscribe-box .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #614a1a;
    color: #fff;
    font-size: 0.85rem;
}

.btn-gold-sm {
    background: #614a1a;
    color: #f4e1a0;
    border: 1px solid #a0732e;
    font-weight: bold;
    padding: 5px;
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    background: #110e0a;
    border-top: 1px solid rgba(244, 225, 160, 0.2);
    color: #888;
}

/* --- STICKY SOCIAL BUTTONS --- */
.sticky-social {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.zalo-btn {
    background: transparent;
}

.phone-btn {
    background: #0084ff;
    border: 2px solid #fff;
}

.mess-btn {
    background: #00c6ff;
    border: 2px solid #fff;
}

.social-btn:hover {
    transform: scale(1.1);
}

/* PHÂN TRANG (PAGINATION) GOLD STYLE */
.custom-pagination .page-link {
    background: transparent;
    border: 1px solid #a0732e;
    color: #f4e1a0;
    margin: 0 5px;
    border-radius: 4px !important;
}

.custom-pagination .page-item.active .page-link {
    background: #a0732e;
    color: #fff;
    border-color: #f4e1a0;
}

.custom-pagination .page-link:hover {
    background: rgba(160, 115, 46, 0.3);
    color: #fff;
}

.post-detail-container {
    color: #e0e0e0;
    padding: 40px 0;
    line-height: 1.8;
}

.post-layout {
    display: flex;
    gap: 40px;
}

.post-main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 8px;
}

/* Tiêu đề & Meta */
.post-title {
    color: #d4af37;
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.post-meta span {
    margin-right: 20px;
}

/* Nội dung bài viết */
.post-sapo {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
}

.post-body h2 {
    color: #d4af37;
    margin: 30px 0 15px;
    font-size: 22px;
}

.post-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Hình ảnh trong bài */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #d4af37;
    margin-top: 10px;
}

figcaption {
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: #777;
    margin-top: 8px;
}

/* Trích dẫn (Blockquote) */
blockquote {
    border-left: 4px solid #d4af37;
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

/* Sidebar */
.post-sidebar {
    flex: 0 0 300px;
}

.sidebar-title {
    color: #d4af37;
    font-size: 18px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.related-list {
    list-style: none;
    padding: 0;
}

.related-list li {
    margin-bottom: 15px;
}

.related-list a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
}

.related-list a:hover {
    color: #d4af37;
}

.related-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}


/* Responsive cho mobile */
@media (max-width: 992px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-layout {
        flex-direction: column;
    }

    .post-sidebar {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card-inner {
        flex-direction: column;
    }

    .card-media {
        flex: 0 0 200px;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
}