/* Màu sắc đặc trưng của trang web */
:root {
    --custom-blue: #004c97; /* Màu xanh đậm của logo */
    --custom-green: #009245; /* Màu xanh lá cây của menu */
    --custom-dark-green: #00773b; /* Màu xanh lá cây đậm của thanh tìm kiếm */
    --custom-pink: #f7a6a4; /* Màu hồng của banner */
    --custom-text-color: #333;
}

body {
    font-family: Arial, sans-serif;
    color: var(--custom-text-color);
}

/* --- Header & Navbar Tùy chỉnh --- */

.custom-blue-text {
    color: var(--custom-blue) !important;
}

.small-title {
    font-size: 0.75rem; /* Tùy chỉnh kích thước cho "ĐẠI HỌC QUỐC GIA TP.HCM" */
}

.large-title {
    font-size: 1.25rem; /* Tùy chỉnh kích thước cho "THƯ VIỆN TRUNG TÂM" */
    line-height: 1;
}

.custom-green-bg {
    background-color: var(--custom-green) !important;
    padding: 0.375rem 0.75rem !important; /* Tùy chỉnh padding cho nút "Trang chủ" */
}

.nav-link {
    color: var(--custom-text-color) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--custom-green) !important;
}

/* Thanh tìm kiếm dưới Navbar */
.custom-dark-green-bg {
    background-color: var(--custom-dark-green) !important;
}

.search-box input {
    width: 300px; /* Tùy chỉnh chiều rộng ô tìm kiếm */
}


/* --- Banner (Carousel) Tùy chỉnh --- */
.custom-carousel-height {
    height: 350px; /* Chiều cao cố định cho banner */
}

.custom-pink-bg {
    background-color: var(--custom-pink);
    position: relative;
    overflow: hidden; /* Che đi phần ảnh bị tràn nếu không muốn scroll ngang */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tùy chỉnh chữ trên banner để giống phong cách hoạt hình */
.custom-welcome-text {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-shadow: 2px 2px var(--custom-blue);
    line-height: 1;
    font-size: 3rem;
    display: inline-block;
    padding: 10px;
}

.custom-year {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-weight: bold;
    font-size: 1.5rem !important;
}


/* --- Nội dung chính Tùy chỉnh --- */

.custom-search-section-border-color {
    border-color: #ccc !important;
}

.custom-green-text {
    color: var(--custom-green) !important;
    font-weight: bold;
}

.custom-nav-tabs .nav-link {
    background-color: #f8f9fa; /* Màu nền cho các tab */
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 0;
    margin-right: 5px;
    padding: 0.5rem 1rem;
    color: var(--custom-text-color);
}

.custom-nav-tabs .nav-link.active {
    background-color: #fff; /* Tab active có nền trắng */
    border-top: 3px solid var(--custom-green); /* Đường viền xanh trên cùng */
    color: var(--custom-green);
    font-weight: bold;
}

.custom-input-border-color {
    border: 1px solid var(--custom-dark-green) !important;
}

/* Mục Sách mới */
.book-scroll-container {
    white-space: nowrap; /* Ngăn chặn việc xuống dòng */
    -webkit-overflow-scrolling: touch; /* Hỗ trợ cuộn mượt mà trên iOS */
}

.book-item {
    width: 120px; /* Chiều rộng cố định cho mỗi sách */
}

.book-cover {
    transition: transform 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.book-cover:hover {
    transform: translateY(-5px); /* Hiệu ứng hover nhẹ */
}
/* --- FOOTER Tùy chỉnh --- */

/* Sử dụng lại màu xanh đậm của thanh tìm kiếm cho Footer */
.custom-dark-green-bg {
    background-color: var(--custom-dark-green) !important;
}

.custom-footer-heading {
    /* Đảm bảo tiêu đề in hoa và có màu sắc nổi bật hơn một chút nếu cần */
    text-transform: uppercase;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Đường gạch dưới nhẹ */
}

/* Kiểu dáng cho danh sách Tiện ích Thư viện */
.footer-links a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s, padding-left 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    color: #ffd700; /* Màu vàng khi hover */
    padding-left: 5px; /* Hiệu ứng dịch chuyển nhẹ */
}

.footer-links li:last-child a {
    border-bottom: none;
}

/* Hộp Lượt truy cập */
.custom-access-box-border {
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}

.custom-counter-number {
    letter-spacing: 5px; /* Tạo khoảng cách cho bộ đếm số */
    font-family: monospace; /* Font chữ đơn giản dễ đọc */
    color: #ffd700; /* Màu vàng cho số đếm */
}

.custom-horizontal-line {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1; /* Đảm bảo đường kẻ hiện rõ */
}

/* --- Mạng xã hội --- */
.social-icon-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    color: white;
    font-size: 1.2rem;
    margin-right: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-icon-box:hover {
    opacity: 0.8;
}

.custom-facebook-bg { background-color: #3b5998; }
.custom-youtube-bg { background-color: #ff0000; }
.custom-tiktok-bg { background-color: #000000; }
.custom-zalo-bg { 
    background-color: #0080ff; /* Màu xanh Zalo */
    /* Tùy chỉnh cho icon cờ (giả lập icon Zalo) */
    padding: 5px;
}

/* Nút Scroll to Top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    z-index: 1000;
}

/* Nút Zalo nổi (Floating Zalo Button) */
.floating-zalo-btn {
    position: fixed;
    bottom: 20px;
    right: 70px; /* Dịch sang trái so với nút Scroll to Top */
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 1000;
}

.floating-zalo-btn .zalo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%; /* Icon Zalo thường là hình tròn */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Đảm bảo nút "Tìm" trong phần nội dung chính dùng đúng màu xanh */
.btn.custom-green-bg {
    background-color: var(--custom-dark-green) !important; /* Dùng màu xanh đậm cho nút Tìm */
}