/* --- 1. BẢNG MÀU TRẮNG - XANH - ĐỎ --- */
:root {
    --color-bg: #FFFFFF;      /* Nền web: Trắng */
    --color-nav: #FFFFFF;     /* Nền thanh menu: Trắng */

    --logo-blue: #3A5B9C;     /* Xanh dương Ngân Việt */
    --logo-red: #E23E45;      /* Đỏ Ngân Việt */

    --color-text-body: #4b5563; /* Chữ mô tả: Xám đậm cho dễ đọc */
    --color-text-head: #111827; /* Tiêu đề: Đen đậm */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.8;
}

/* --- 2. THANH ĐIỀU HƯỚNG (NAVBAR) --- */
.navbar {
    background-color: #3A5B9C; /* Nền xanh dương nhạt */
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex; /* Dòng này cực kỳ quan trọng để dàn hàng ngang */
    justify-content: space-between;
    align-items: center;
}
/* Căn chỉnh Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: -1px;
}

/* Ô Tìm kiếm giao diện sáng */
.search-taskbar input {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: var(--color-text-head);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    width: 300px;
    transition: all 0.3s;
}

.search-taskbar input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--logo-blue);
    box-shadow: 0 0 10px rgba(58, 91, 156, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    color: #FFFFFF; /* Đã đổi thành màu trắng tinh */
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--logo-red); /* Đổi thành màu đỏ khi rê chuột vào */
}

/* --- 3. PHẦN GIỚI THIỆU (HERO) --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    background-color: #f8fafc; /* Nền xám cực nhạt để tách khối */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section h1 {
    font-size: 4em;
    color: var(--color-text-head);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25em;
    margin-bottom: 40px;
}

/* Nút bấm Đỏ - Xanh */
.cta-button {
    background-color: var(--logo-red);
    color: #FFFFFF;
    border: none;
    padding: 18px 40px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(226, 62, 69, 0.3); /* Bóng đổ màu đỏ */
}

.cta-button:hover {
    background-color: var(--logo-blue);
    box-shadow: 0 4px 15px rgba(58, 91, 156, 0.4); /* Bóng đổ màu xanh */
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* --- 4. PHẦN DỊCH VỤ (PORTFOLIO) --- */
.portfolio-section {
    padding: 120px 20px 100px;
    background-color: #ffffff;
    text-align: center;
}

.portfolio-section h2 {
    font-size: 3em;
    color: var(--color-text-head);
    margin-bottom: 60px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Thẻ Dịch vụ trên nền sáng */
.project-card {
    background-color: #ffffff;
    width: 320px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Bóng đổ cho thẻ nổi lên */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--logo-blue);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.project-card h3 {
    color: var(--color-text-head);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--color-text-body);
    font-size: 1em;
    line-height: 1.6;
}

/* --- 5. PHẦN LIÊN HỆ (CONTACT) --- */
.contact-section {
    padding: 120px 20px 100px;
    text-align: center;
    background-color: #f8fafc;
}

.contact-section h2 {
    font-size: 3em;
    color: var(--color-text-head);
    margin-bottom: 20px;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ô nhập liệu trên nền sáng */
.contact-form input,
.contact-form textarea {
    padding: 18px;
    font-size: 1em;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: var(--color-text-head);
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--logo-blue);
    box-shadow: 0 0 0 3px rgba(58, 91, 156, 0.1);
}
/* --- 6. KIỂU DÁNG PHẦN CHÂN TRANG (FOOTER) --- */
.footer {
    background-color: #f8fafc; /* Màu xám rất nhạt */
    border-top: 1px solid #e5e7eb; /* Đường kẻ viền mờ phân cách */
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Cho phép rớt dòng trên màn hình nhỏ */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info, .footer-contact {
    flex: 1;
    min-width: 300px; /* Đảm bảo độ rộng tối thiểu */
}

.footer h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.footer h4 {
    color: var(--color-text-head);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9em;
    color: #6b7280;
}
/* --- 7. NÚT ZALO VÀ GỌI ĐIỆN LƠ LỬNG --- */
.floating-buttons {
    position: fixed;
    bottom: 30px; /* Cách đáy màn hình 30px */
    right: 30px;  /* Cách lề phải 30px */
    display: flex;
    flex-direction: column; /* Xếp dọc 2 nút */
    gap: 15px; /* Khoảng cách giữa 2 nút */
    z-index: 9999; /* Luôn nổi lên trên cùng mọi thành phần khác */
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Bo tròn xoe */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Nút Zalo màu xanh đặc trưng */
.zalo-btn {
    background-color: #0068FF;
}

/* Nút Gọi điện dùng luôn màu đỏ của thương hiệu Ngân Việt */
.phone-btn {
    background-color: var(--logo-red);
    animation: pulse-red 2s infinite; /* Gắn hiệu ứng nhấp nháy */
}

/* Rê chuột vào nút sẽ to lên một chút */
.float-btn:hover {
    transform: scale(1.1);
}
.phone-btn:hover {
    animation: none; /* Rê chuột vào thì dừng nhấp nháy */
}

/* Hiệu ứng nhịp tim tỏa vòng tròn ra xung quanh */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 62, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(226, 62, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 62, 69, 0);
    }
}

/* Tối ưu riêng cho màn hình điện thoại nhỏ */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
}
/* --- 8. TƯƠNG THÍCH MÀN HÌNH ĐIỆN THOẠI (MOBILE RESPONSIVE) --- */

/* Ẩn nút 3 gạch khi ở màn hình máy tính rộng */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

/* Vẽ 3 đường gạch ngang màu trắng */
.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease-in-out;
}

/* Kích hoạt chế độ Mobile cho các màn hình nhỏ */
@media (max-width: 768px) {
    /* Thu hẹp lề của thanh navbar */
    .navbar-container {
        padding: 0 20px;
    }

    /* Hiển thị nút 3 gạch */
    .menu-toggle {
        display: flex;
    }

    /* Tạm ẩn thanh tìm kiếm cho menu gọn gàng */
    .search-taskbar {
        display: none;
    }

    /* Biến menu ngang thành menu thả xuống (Dropdown) */
    .nav-links {
        position: absolute;
        top: 70px; /* Nằm ngay dưới thanh navbar */
        left: 0;
        width: 100%;
        background-color: var(--logo-blue); /* Lấy màu nền xanh đậm */
        flex-direction: column;
        text-align: center;
        gap: 0;
        /* Mặc định chiều cao bằng 0 để giấu đi */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    /* Khi được cấp class 'active', menu sẽ mở ra */
    .nav-links.active {
        max-height: 300px;
    }

    /* Cách điệu các dòng chữ trong menu thả xuống */
    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        display: block;
        width: 100%;
    }

    /* Thu nhỏ các chữ tiêu đề siêu bự để vừa màn hình điện thoại */
    .hero-section h1 { font-size: 2.5em; }
    .hero-section p { font-size: 1.1em; }
    .portfolio-section h2, .contact-section h2 { font-size: 2.2em; }

    /* Canh lại phần chân trang */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/* --- CODE NÂNG CẤP PHẦN LIÊN HỆ --- */
.quick-contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #fff;
}

.contact-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #fff;
}

.contact-card p {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0.9;
    color: #fff;
}

/* Màu sắc từng nút */
.zalo-card { background-color: #0068FF; }
.phone-card { background-color: var(--logo-red); }
.sms-card { background-color: #10B981; } /* Xanh lá cây mướt mắt */

/* Tùy chỉnh Nút Chỉ đường trên Map */
.directions-btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--logo-blue);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.directions-btn:hover {
    background-color: var(--logo-red);
    transform: translateX(-50%) translateY(-3px);
    color: white;
}

@media (max-width: 768px) {
    .contact-card {
        width: 100%;
        justify-content: center;
    }
}
/* --- CODE CHO PHẦN QUY TRÌNH LÀM VIỆC --- */
.process-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.process-section h2 {
    color: var(--logo-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto 0;
}

.step-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 35px 20px;
    width: 260px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step-icon {
    background-color: var(--logo-red);
    color: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(226, 62, 69, 0.4);
}

.step-card h3 {
    color: var(--logo-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.step-card p {
    font-size: 1em;
    color: #666;
}

/* --- CODE CHO PHẦN CAM KẾT CHẤT LƯỢNG --- */
.commitment-section {
    padding: 80px 20px;
    text-align: center;
}

.commitment-section h2 {
    color: var(--logo-red);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.commitment-card {
    background: #ffffff;
    padding: 35px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.commitment-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.commitment-card h3 {
    color: var(--logo-blue);
    margin: 15px 0 10px;
    font-size: 1.3em;
}

.commitment-card p {
    color: #555;
    font-size: 1em;
}
/* --- CODE CHO PHẦN TIN TỨC / KIẾN THỨC --- */
.news-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.news-section h2 {
    color: var(--logo-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.news-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto 0;
}

.news-card {
    background: #f9f9f9;
    border-radius: 15px;
    width: 350px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    color: var(--logo-red);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--logo-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--logo-red);
}
/* --- CODE CHO PHẦN THƯ VIỆN HÌNH ẢNH (GALLERY) --- */
.gallery-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f8fafc; /* Nền hơi xám nhạt để tách biệt với phần trên */
}

.gallery-section h2 {
    color: var(--logo-red);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.gallery-section p {
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tạo chính xác 3 cột bằng nhau */
    gap: 25px; /* Khoảng cách giữa các ô */
    padding: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 4 / 3; /* Ép tất cả các khung ảnh vuông vức bằng nhau */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh lấp đầy khung mà không bị méo */
    transition: transform 0.5s ease;
}

/* Phóng to ảnh nhẹ khi rê chuột */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Phần chữ tên dự án ẩn dưới đáy */
.gallery-overlay {
    position: absolute;
    bottom: -100%; /* Giấu đi khi chưa rê chuột */
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); /* Hiệu ứng đổ bóng mờ màu đen */
    padding: 30px 20px 15px;
    box-sizing: border-box;
    transition: bottom 0.3s ease;
}

/* Hiện tên dự án trượt lên khi rê chuột */
.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h4 {
    color: #fff;
    margin: 0;
    font-size: 1.2em;
    text-align: left;
}
/* --- CODE CHO FORM BÁO GIÁ --- */
.quote-section {
    padding: 80px 20px;
    background-color: var(--logo-blue); /* Nền xanh dương đậm */
    color: white;
    text-align: center;
}

.quote-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-container h2 {
    color: #fff;
    margin-top: 0;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.quote-container p {
    margin-bottom: 30px;
    font-size: 1.05em;
    color: #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--logo-red);
    background-color: #ffffff;
}

.submit-btn {
    background-color: var(--logo-red);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #c93037;
    transform: translateY(-2px);
}
/* --- CODE CHO PHẦN KHÁCH HÀNG ĐÁNH GIÁ --- */
.reviews-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f8fafc;
}

.reviews-section h2 {
    color: var(--logo-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
    border-top: 5px solid var(--logo-red); /* Tạo đường viền đỏ nổi bật ở trên */
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer-name {
    color: var(--logo-blue);
    font-weight: bold;
    margin: 0;
}

/* --- CODE CHO NÚT TRƯỢT LÊN ĐẦU TRANG --- */
#backToTopBtn {
    display: none; /* Ban đầu ẩn đi */
    position: fixed;
    bottom: 30px;
    left: 30px; /* Đặt bên trái để không đè lên nút Zalo/Gọi ở bên phải */
    z-index: 99;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: var(--logo-blue);
    color: white;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTopBtn:hover {
    background-color: var(--logo-red);
    transform: translateY(-5px);
}
/* --- Gallery Section Upgrade CSS (Đã fix 3 cột + fix lỗi hiển thị) --- */

:root {
    --logo-blue: #3A5B9C;
    --logo-red: #E23E45;
    --text-dark: #333;
    --text-light: #fff;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-dark: 0 10px 25px rgba(0,0,0,0.2);
    --transition-fast: all 0.3s ease;
}

.gallery-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* Tối ưu header phần Gallery */
.gallery-section .section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-section h2 {
    font-size: 2.5rem;
    color: var(--logo-blue);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Đường gạch trang trí */
.gallery-section .divider {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--logo-blue), var(--logo-red));
    margin: 0 auto;
    border-radius: 2px;
}

/* --- ÉP BUỘC HIỂN THỊ 3 CỘT (Đã fix) --- */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    padding: 10px !important;
}

/* Item styling */
.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid #eee;
}

/* Hiệu ứng nổi lên khi hover vào ô */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
}

/* Link area setup */
.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

/* Fix aspect ratio - Ép tất cả ảnh về cùng 1 tỷ lệ 4:3 */
.image-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 75%; /* Tỷ lệ 4:3 giúp hình luôn đều nhau */
    overflow: hidden;
}

/* Cấu hình ảnh chuẩn */
.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Tự động cắt gọt vừa khung */
    transition: transform 0.5s ease;
    display: block;
}

/* Phóng to ảnh khi hover */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Tối ưu Overlay cho chuyên nghiệp --- */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

/* Hiện overlay khi hover */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Icon kính lúp trang trí */
.overlay-icon {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: auto;
    text-align: center;
    margin-top: 20px;
    opacity: 0.7;
}

.gallery-overlay h4 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.4;
}

/* --- Responsive cho màn hình nhỏ (Đã fix lỗi dấu ngoặc) --- */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px !important;
    }

    /* Trên mobile hiện chữ luôn không cần hover */
    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
        height: 40%;
    }

    .overlay-icon {
        display: none;
    }
}
/* --- TRANG TRÍ BỘ LỌC GALLERY --- */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--logo-blue);
    background-color: transparent;
    color: var(--logo-blue);
    border-radius: 30px; /* Bo tròn như viên thuốc */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Hiệu ứng khi lướt chuột hoặc khi nút đang được chọn */
.filter-btn:hover, .filter-btn.active {
    background-color: var(--logo-blue);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(58, 91, 156, 0.3);
}

/* Lệnh ẩn đi các hình không đúng danh mục */
.gallery-item.hide-item {
    display: none !important;
}