/* Start css của header trang chủ */

/* Logo box */
.logo-box {
    background-color: white;
    padding: 6px 12px;
    border-radius: 8px;
}

    .logo-box img {
        width: 40px;
        height: auto;
        /* Đổi màu icon laptop sang xanh giống chữ */
        filter: invert(26%) sepia(94%) saturate(500%) hue-rotate(130deg) brightness(95%) contrast(90%);
    }

.text-brand {
    color: #037a66; /* Màu xanh của navbar */
    font-size: 1.2rem;
}

/* Navbar */

.navbar-custom {
    background-color: #037a66;
    position: sticky;
    top: 0;
    z-index: 1000; /* đảm bảo nằm trên các phần khác */
}


.navbar-brand img {
    height: 40px;
}

/* Icon chung */
.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-icon-white {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Biến đen thành trắng */
}



/* Search bar */
/* Khung search */
.search-wrapper {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    padding: 4px 8px;
    max-width: 600px;
    width: 100%;
    height: 40px; /* chiều cao tổng thể */
}

    /* Input bên trong: thấp hơn một chút để dư viền */
    .search-wrapper input {
        height: 32px; /* khớp với nút */
        padding: 6px 12px; /* padding gọn */
        border-radius: 50px;
        background-color: transparent;
        box-shadow: none;
    }

    /* Nút chứa icon: bỏ padding thừa và căn giữa */
    .search-wrapper button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px; /* giảm từ px-3 xuống 8px */
        height: 32px; /* khớp input */
        border-radius: 50px;
        flex-shrink: 0;
    }

    /* Icon search: nhỏ hơn để không vượt khung */
    .search-wrapper .nav-icon {
        width: 18px; /* giảm kích thước icon */
        height: 18px;
        object-fit: contain;
    }


/* Hover cho icon */
.icon-hover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px; /* vuông bo góc nhẹ */
    transition: background-color 0.3s ease;
}

    .icon-hover:hover {
        background-color: rgba(255, 255, 255, 0.2); /* nền mờ khi hover */
    }

        .icon-hover:hover img {
            transform: scale(1.1);
            transition: transform 0.3s ease;
        }

/* Hover cho nav-link */
.navbar-nav .nav-link {
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

/* End css của header trang chủ */

/* Start css của body trang chủ */
/* Menu trái */
/* Menu bên trái */

.menu-box {
    padding: 0;
    border: 1px solid #037a66;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px; /* khoảng cách đều giữa các menu */
}


    /* Tiêu đề menu */
    .menu-box h5 {
        background-color: #04a68b; /* màu header */
        color: white;
        padding: 12px 16px;
        margin: 0; /* bỏ khoảng cách để dính sát viền */
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* viền dưới nhẹ */
    }


/* Các mục bên trong */
.menu-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.9); /* nền trắng mờ */
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .menu-link:hover {
        background-color: rgba(3, 122, 102, 0.1);
        color: #037a66;
    }

.menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
}





/* End css của body trang chủ */


/* Start css của footer trang chủ */
/* Footer */
.footer-custom {
    background-color: #383845;
}

    .footer-custom h5 {
        margin-bottom: 12px;
    }

    .footer-custom p,
    .footer-custom li,
    .footer-custom small {
        color: white;
        font-size: 0.95rem;
    }

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: #d1f7f0; /* Màu xanh nhạt khi hover */
    }
/* End css của footer trang chủ */

/* Thêm class active để giữ trạng thái focus */
.menu-link.active {
    background-color: rgba(3, 122, 102, 0.1) !important; /* Màu xanh chủ đạo */
    
    font-weight: bold;
    border-left: 4px solid #f9a328; /* (Tùy chọn) Thêm viền cam bên trái cho nổi bật */
    padding-left: 12px; /* Cân chỉnh lại padding do thêm viền */
}