/* 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 và Footer */
    --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; 
}

.large-title {
    font-size: 1.25rem; 
    line-height: 1;
}

/* Màu nền cho nút "Trang chủ" (hoặc mục Active) */
.custom-green-bg {
    background-color: var(--custom-green) !important;
    padding: 0.375rem 0.75rem !important; 
}

.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;
}

/* --- Banner (Carousel) Tùy chỉnh --- */
.custom-carousel-height {
    height: 350px; 
}

.custom-pink-bg {
    background-color: var(--custom-pink);
    position: relative;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.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;
}

/* Định dạng tab Tìm kiếm */
.custom-nav-tabs .nav-link {
    background-color: #f8f9fa; 
    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; 
    border-top: 3px solid var(--custom-green); 
    color: var(--custom-green);
    font-weight: bold;
}

.custom-input-border-color {
    border: 1px solid var(--custom-dark-green) !important;
}

/* Nút Tìm */
.btn.custom-green-bg {
    background-color: var(--custom-dark-green) !important; /* Dùng màu xanh đậm cho nút Tìm */
}

/* Mục Sách mới */
.book-scroll-container {
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
}

.book-item {
    width: 120px;
}

.book-cover {
    transition: transform 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.book-cover:hover {
    transform: translateY(-5px); 
}

/* --- FOOTER Tùy chỉnh --- */

.custom-footer-heading {
    text-transform: uppercase;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
}

.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; 
    padding-left: 5px; 
}

/* 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; 
    font-family: monospace; 
    color: #ffd700; 
}

.custom-horizontal-line {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 1; 
}

/* 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;
}

.custom-facebook-bg { background-color: #3b5998; }
.custom-youtube-bg { background-color: #ff0000; }
.custom-tiktok-bg { background-color: #000000; }
.custom-zalo-bg { 
    background-color: #0080ff; 
    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-btn {
    position: fixed;
    bottom: 20px;
    right: 70px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 1000;
}

.floating-zalo-btn .zalo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}