
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    padding-top: 70px;
}

/* Navbar Custom Styles */
.custom-navbar {

    background-color: #343a40;
    padding: 0px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.custom-navbar .navbar-brand img {
    height: 40px;
    max-width: 100%;
}

.custom-navbar .navbar-nav .nav-link {
    color: #f8f9fa !important;

    padding-left: 15px;
    padding-right: 15px;
}

.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link.active {

    color: #5bc0de !important;
    background-color: rgba(91, 192, 222, 0.1);

}

.search-bar input {
    width: 200px;
    margin-right: 10px;
}

.search-bar button {
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 6px 15px;
}

.search-bar button:hover {

    background-color: #0056b3;
}

.custom-navbar .btn-primary {
    background-color: #007bff;

}

.custom-navbar .btn-outline-primary {
    color: white;
}

.custom-navbar .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.vh-100 {
    height: 100vh;
}















footer {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    height: auto;
    padding: 20px;
}


footer a {
    color: #5bc0de;
    text-decoration: none;
}

footer a:hover {
    color: #007bff;
}

footer .newsletter-button {
    background-color: #007bff;
    color: white;
}

footer .newsletter-button:hover {
    background-color: #0056b3;
}

.newsletter-form input:focus,
.newsletter-form button:hover {
    outline: none;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.newsletter-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 14px;
    box-sizing: border-box;
}

.newsletter-button {
    background-color: #3fa1f1;
    color: white;
    padding: 5px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.2s ease;
    text-wrap: nowrap;
}

.newsletter-button:hover {
    background-color: #055abb;

    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .custom-navbar {
        padding: 5px;
    }

    .custom-navbar .navbar-nav {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .custom-navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .search-bar {
        flex-direction: column; /* Stack input and button */
        width: 90%; /* Make it span most of the screen width */
        margin: 10 auto; /* Center the search bar */
    }

    .search-bar input {
        max-width: 100%; /* Ensure full width */
        width: 100%;
        border-radius: 5px; /* Fully rounded corners */
        margin-bottom: 5px; /* Add spacing below input */
    }

    .search-bar button {
        width: 100%; /* Full width button */
        border-radius: 5px; /* Fully rounded corners */
        margin-bottom: 10px;
    }

    .category-section img {
        height: auto;
    }

    .books-section,
    .category-section {
        margin-top: 20px;
        padding: 0 10px;
    }

    .card {
        margin-bottom: 15px;
    }

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .footer-section {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    footer .newsletter-form {
        flex-direction: column;

        align-items: center;
    }

    footer .newsletter-input,
    footer .newsletter-button {

        width: 100%;
        margin-bottom: 10px;
    }
}

/* Adjust Typography */
h1, h2, h3 {
    font-size: calc(1.5rem + 1vw);
}


  /* Định dạng nút */
  .scroll-to-top {
    position: fixed;
    bottom: 38px;
    right: 20px;
    display: none; /* Ẩn nút ban đầu */
    background-color: #ccc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #0056b3;
}



.small-menu-container.bg-color {
    background-color: #f0f0f0;
    /* Thay thế với màu nền mong muốn của bạn */
    padding: 10px 0;
}

.small-menu-container.bg-color {
    background-color: #f0f0f0;
    /* Màu nền của menu nhỏ */
    padding: 10px 0;
}

.nav-link {
    color: #000;
    /* Màu chữ mặc định là đen */
}

.nav-link:hover,
.nav-link.active {
    background-color: #000;
    /* Màu nền là đen */
    color: #fff;
    /* Màu chữ là trắng */
}