/* Custom CSS for styling */
body {
    background-color: #f4f6f9;
    padding-top: 70px;
    font-family: Arial, sans-serif;
}

/* Navbar Custom Styles */
.custom-navbar {
    background-color: #343a40; /* Charcoal dark background for the navbar */
    padding: 0px;
    position: fixed;
    top: 0;
    width: 100%; /* Ensure it spans across the entire page */
    z-index: 1000; /* Make sure the navbar stays on top of other content */
}

.custom-navbar .navbar-brand img {
    height: 40px; /* Adjust the size of the logo */
}

.custom-navbar .navbar-nav .nav-link {
    color: #f8f9fa !important; /* Light gray for the text to stand out */
    padding-left: 15px;
    padding-right: 15px;
}

.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link.active {
    color: #5bc0de !important; /* Light blue for hover and active states */
    background-color: rgba(91, 192, 222, 0.1); /* Light background on hover */
}

.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; /* Darker blue on hover */
}

.custom-navbar .btn-primary {
    background-color: #007bff; /* Blue button background */
}

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

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

.vh-100 {
    height: 100vh;
}

.card-title,
.btn-details {
    font-weight: bold;
    color: #007bff;
}

.books-section {
    margin-top: 30px;
    /* Add margin above the featured books section */
}

.category-section h1,
.books-section h1 {
    margin-top: 40px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.card-title,
.card-body p {
    white-space: nowrap;
    /* Không cho phép xuống dòng */
    overflow: hidden;
    /* Ẩn phần nội dung tràn ra ngoài */
    text-overflow: ellipsis;
    /* Thêm dấu "..." khi nội dung quá dài */
}

/* Hover effect for cards */
.card {
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}



.team-section {
    text-align: center;
    padding: 20px;
}

.team-section h2 {
    font-size: 1.8em;
    color: #555;
    margin-bottom: 20px;
}

    /* Header Section */

header h1 {
    font-size: 2em;
    margin: 0;
    color: #222;
}
    
/* Team Container */
.team-container {
    display: flex;              /* Use flexbox for layout */
    flex-wrap: wrap;            /* Allow items to wrap to the next line */
    gap: 20px;                  /* Add spacing between items */
    justify-content: center;    /* Center align items */
}

/* Team Card */
.team-card {
    flex: 1 1 200px;            /* Flexible cards with a minimum width of 200px */
    max-width: 300px;           /* Optional: Set a maximum width */
    box-sizing: border-box;     /* Include padding and border in width calculation */
    margin: 10px;               /* Add margin around cards */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng mượt */
}

    /* Hiệu ứng hover cho team card */
.team-card:hover {
    transform: translateY(-10px); /* Di chuyển lên 10px */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Tăng đổ bóng */
}

.team-card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #007bff;
}

.team-card h3 { 
    font-size: 1.2em;
    margin: 10px 0 5px;
}

.team-card .role {
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 10px;
    text-align: center;
}

.team-card p {
    margin: 5px 0;
    color: #555;
    text-align: left;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease; /* Hiệu ứng mượt */
}

.social-icons a:hover img {
    transform: scale(1.2); /* Phóng to nhẹ khi hover */
}

footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling caused by the footer */    
    box-sizing: border-box;
    position: relative;
    height: auto; /* Automatically adjust height */
}


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); /* Slightly enlarges the button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow for depth */
}
/* 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;

    }
}