﻿/* Reset và base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header - BookSaw Style */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
}

    .nav-link:hover, .nav-link.active {
        color: #d4af37 !important;
    }

/* Top content styling */
.top-content {
    background: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.social-links a {
    color: #6c757d;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #d4af37;
}

.right-element a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.right-element a:hover {
    color: #d4af37;
}

/* Billboard - BookSaw Hero Section */
#billboard {
    background: #f8f9fa;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.main-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-item {
    display: flex;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.banner-content {
    flex: 1;
    padding-right: 3rem;
    z-index: 2;
}

.banner-title {
    font-family: 'Georgia', serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-accent-arrow {
    background: #d4af37;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent-arrow:hover {
    background: #b8941f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.banner-image {
    flex: 1;
    max-width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Navigation arrows */
.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #d4af37;
    color: #d4af37;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
}

.slick-arrow:hover {
    background: #d4af37;
    color: white;
}

.prev {
    left: -25px;
}

.next {
    right: -25px;
}

/* Client Logos - Từ _Imagelibrary */
#client-holder {
    background: #fff;
    padding: 2rem 0;
}

.logo-wrap .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 logos ngang */
    gap: 2rem;
    justify-items: center;
}

.logo-wrap img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

    .logo-wrap img:hover {
        opacity: 1;
    }

/* General Sections */
.section-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

/* Featured Books */
#featured-books {
    padding: 6rem 0;
    background: #fff;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.card-img-top {
    transition: transform 0.3s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-price {
    font-size: 1.25rem;
    color: #d4af37 !important;
    font-weight: bold;
}

.btn-dark {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-dark:hover {
    background-color: #d4af37;
    border-color: #d4af37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Popular Books Filter */
#popular-books {
    padding: 6rem 0;
    background: #f8f9fa;
}

.nav-pills {
    justify-content: center;
    margin-bottom: 3rem;
}

.nav-pills .nav-link {
    border-radius: 0;
    margin: 0 1rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #2c3e50;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

    .nav-pills .nav-link:hover {
        color: #d4af37;
        border-bottom-color: #d4af37;
    }

    .nav-pills .nav-link.active {
        background-color: transparent;
        color: #d4af37;
        border-bottom-color: #d4af37;
    }

.book-item {
    display: none; /* Ẩn ban đầu, JS show */
}

    .book-item.filter-all {
        display: block; /* All mặc định show */
    }

/* Books With Offer */
#books-offer {
    padding: 6rem 0;
    background: #fff;
}

#books-offer .section-subtitle {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Latest Articles */
#latest-articles {
    padding: 6rem 0;
    background: #f8f9fa;
}

.card-text {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Footer - Giữ nguyên từ _Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-menu ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-menu ul li a:hover {
        color: white;
    }

/* Responsive */
@media (max-width: 768px) {
    .logo-wrap .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-pills {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Fix cho Index - sách không dính chùm */
    #popular-books .row {
        gap: 1rem !important; /* Thêm gap giữa sách */
    }

    .book-item {
        margin-bottom: 1rem !important; /* Spacing dưới mỗi card */
    }

    /* Fix Footer - logo sát trái */
    .company-brand {
        text-align: left !important; /* Force left align */
    }

        .company-brand img {
            display: block; /* Block để align trái */
            margin-bottom: 1rem;
        }

        .company-brand p {
            text-align: left !important; /* P text left */
        }
    #popular-books .row {
        gap: 1rem !important;
    }

    .company-brand {
        text-align: left !important;
    }

        .company-brand img {
            max-width: 150px !important;
            height: auto !important;
        }
}
