
h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 0;
    padding: 0;
}

img {
    display: block;
}
.review-header {
    grid-column: 1 / span 2; 
    text-align: center;
    margin-bottom: 40px; 
}

.review-header h1 {
    font-size: 2.8em;
    /* ... */
    margin-bottom: 10px; /
}


/* ---------------------------------------------------------------- */
/* TOÀN TRANG */
/* ---------------------------------------------------------------- */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    background-color: #fff;
    color: #222;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #222;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Phần đầu trang */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.hop-chua {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 26px;
    color: #222;
}
.logo span {
    color: #ff5e00;
}

/* Menu */
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s;
}
.menu a:hover,
.menu a.dang-chon {
    color: #ff5e00;
}

/* Thanh công cụ đầu trang */
/* Ô tìm kiếm có icon */
.cong-cu-dau-trang {
    display: flex;
    align-items: center;
    gap: 15px;
}

.khung-tim-kiem {
    position: relative;
    display: flex;
    align-items: center;
}

.o-tim-kiem {
    padding: 8px 35px 8px 12px; 
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.o-tim-kiem:focus {
    border-color: #ff5e00;
}

.nut-tim-kiem {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nut-tim-kiem img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: 0.2s;
}

.nut-tim-kiem:hover img {
    opacity: 1;
}

.anh-dai-dien {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Phần nổi bật */
.phan-noi-bat {
    padding: 60px 0;
    background: #fffaf6;
}

.khung-noi-bat {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.anh-sach img {
    width: 500px;
    height: 500px;
    border: none; 
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.noi-dung-sach {
    max-width: 500px;
}

.noi-dung-sach .gioi-han {
    font-size: 14px;
    color: #ff5e00;
    font-weight: 600;
}

.noi-dung-sach h2 {
    font-size: 34px;
    margin: 15px 0;
}

.giai-thuong span {
    display: block;
    font-size: 15px;
    margin: 5px 0;
    color: #666;
}

.nut {
    display: inline-block;
    margin-top: 15px;
    background: #ff5e00;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.nut:hover {
    background: #e14b00;
}


/* Nút Xem Tất Cả */
.xem-tat-ca {
    text-align: center;
    margin-top: 40px;
}

.nut-phu {
    background: #ff5e00;
}

.nut-phu:hover {
    background: #0056b3;
}


/* ----------------------------------------------------- */
/* GÓC REVIEW MỚI NHẤT */
/* ----------------------------------------------------- */
.review-moi-nhat h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #ff5722;
    padding-bottom: 5px;
    display: inline-block; 
    text-align: left; 
}


/* Tiêu đề góc review */
.review-moi-nhat h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #ff5722;
    padding-bottom: 5px;
    display: inline-block; 
}

.danh-sach-review-ngang {
    display: flex;
    overflow-x: auto; 
    overflow-y: hidden;
    gap: 30px;
    padding: 10px 40px 20px 40px; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

.danh-sach-review-ngang::-webkit-scrollbar {
    display: none;
}

.review-item-ngang {
    flex-shrink: 0;
    width: 250px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.review-item-ngang:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.anh-review-ngang {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.info-ngang {
    padding: 15px;
}

.the-loai-ngang {
    font-size: 0.8em;
    color: #007bff;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.info-ngang h4 a {
    font-size: 1.1em;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.mo-ta-ngang {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}


/* ---------------------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------------------- */

.main-footer.minimal {
    background-color: #fcfcfc; 
    color: #555;
    padding: 40px 0;
    border-top: 1px solid #eee; 
}


.main-footer.minimal .footer-content {
    display: flex; 
    justify-content: space-between; 
    gap: 20px;
    flex-wrap: wrap; 
}

.main-footer.minimal .footer-col {
    flex: 1; 
    min-width: 200px; 
    padding: 0 10px;
}

/* Logo và Tiêu đề */
.main-footer.minimal .footer-logo {
    font-size: 1.8em;
    font-weight: 800;
    color: #333; 
    margin-bottom: 10px;
}

/* Nội dung Mô tả */
.main-footer.minimal .about-us p {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #777;
}

/* Tiêu đề cột */
.main-footer.minimal .footer-col h4 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Liên kết */
.main-footer.minimal .footer-links ul {
    list-style: none;
    padding: 0;
}

.main-footer.minimal .footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.95em;
    transition: color 0.3s;
    line-height: 2; 
}

/* Hiệu ứng Hover  */
.main-footer.minimal .footer-links a:hover {
    color: #ff5722; 
}

/* Liên kết xã hội */
.main-footer.minimal .social-links a {
    color: #555;
    font-size: 1.5em;
    margin-right: 15px;
}

.main-footer.minimal .social-links a:hover {
    color: #ff5722;
}

/* Bản quyền */
.main-footer.minimal .copyright-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85em;
    text-align: left;
}

/* Ẩn Bản quyền ban đầu  */
.main-footer.minimal .copyright-text {
text-align: left;
}


/* --- CSS PHẢN HỒI (RESPONSIVE) cho chân trang --- */
@media (max-width: 768px) {
    .main-footer.minimal .footer-content {
        flex-direction: column; 
    }
    .main-footer.minimal .footer-col {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .main-footer.minimal .copyright-text {
        text-align: center;
        width: 100%;
    }
    
    .main-footer.minimal .about-us {
        order: 4; 
        text-align: center;
    }
    .main-footer.minimal .social-links {
        justify-content: center;
        display: flex;
        margin-bottom: 15px;
    }
}


/* ----------------------------------------------------------------- */
/* REVIEW SÁCH */
/* ----------------------------------------------------------------- */

.danh-sach-review {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    padding-top: 10px;
    padding-bottom: 60px;
}

.review-item {
    display: flex; 
    background-color: #fff;
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ảnh bìa sách */
.review-anh-bia {
    width: 130px; 
    height: 180px; 
    object-fit: cover;
    flex-shrink: 0; 
}

/* Phần Thông tin Review */
.review-info {
    padding: 20px 20px 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Thể loại và tag nổi bật */
.review-the-loai {
    font-size: 0.8em;
    color: #ff5722; 
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Tiêu đề Bài review */
.review-info h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.review-info h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.review-info h3 a:hover {
    color: #007bff; 
}

/* Tóm tắt nội dung */
.review-info p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

/* Nút/Liên kết Đọc Tiếp */
.nut-doc-tiep {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 5px;
    transition: margin-left 0.2s;
}

.nut-doc-tiep:hover {
    margin-left: 5px; 
    color: #0056b3;
}

/* css phản hồi */
@media (max-width: 992px) {
    .danh-sach-review {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .danh-sach-review {
        grid-template-columns: 1fr; 
    }
    
    .review-item {
        flex-direction: column; 
    }
    .review-anh-bia {
        width: 100%;
        height: auto;
    }
    .review-info {
        padding: 15px;
    }
}

/** REVIEW CÂY CAM NGỌT **/

.review-chi-tiet .hop-chua {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px; 
    padding: 30px 0;
}

/* -------------------------------------- */
/* Phần Header của bài Review (Tiêu đề H1) */
/* -------------------------------------- */
.review-header {
    grid-column: 1 / span 2; 
    text-align: center;
    margin-bottom: 40px;
}

.review-header h1 {
    font-size: 2.8em;
    color: #1a1a1a;
    font-weight: 900;
    margin-bottom: 10px;
}

.meta-info {
    font-size: 0.95em;
    color: #888;
}

/* -------------------------------------- */
/* TRANG REVIEW CHI TIẾT  */
/* -------------------------------------- */

.thong-tin-sach {
    display: flex;
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    grid-column: 1 / 2;
}

.anh-bia-sach img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    margin-right: 25px;
}

.diem-noi-bat h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #ff5722; 
}

/* Thiết kế Rating */
.rating-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #ffc107; 
    margin-right: 5px;
}

.nut-mua-sach {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.nut-mua-sach:hover {
    background-color: #0056b3;
}

/* Nội dung bài viết chi tiết */
.noi-dung-bai-viet {
    font-size: 1.05em; 
    line-height: 1.8; 
    grid-column: 1 / 2;
    padding: 0 15px 0 0; 
}

/* TRANG REVIEW CHI TIẾT */
.noi-dung-bai-viet h2 {
    color: #007bff;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 40px;
    font-size: 1.8em;
    margin-left: 15px; 
}

/* Sidebar (Nội dung phụ) */
.review-sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.box-noi-dung-them {
    display: block; 
    background-color: #f8f8f8; 
    border-left: 5px solid #ff5e00; 
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic; 
    color: #444;
    border-radius: 0 8px 8px 0; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.box-noi-dung-them p {
    margin: 0;
    font-size: 1.1em; 
    line-height: 1.5;
}
/* CSS PHẢN HỒI (RESPONSIVE) */
@media (max-width: 992px) {
    .review-chi-tiet .hop-chua {
        grid-template-columns: 1fr; 
    }
    .review-header {
        grid-column: 1 / 1; 
    }
    .noi-dung-bai-viet {
        padding-right: 0;
    }
}



/* ---------------------------------------------------------------- */
/* MENU THẢ XUỐNG (DROPDOWN MENU) */
/* ---------------------------------------------------------------- */

.menu-tha-xuong {
    position: relative; 
}

/* Menu con (Thẻ ul ẩn) */
.menu-con {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    list-style: none;
    background-color: #fff;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}

/* Các mục trong Menu con */
.menu-con li {
    margin: 0; 
}

.menu-con li a {
    padding: 8px 20px; 
    display: block;
    width: 100%;
    color: #333;
    font-weight: 500;
}

.menu-con li a:hover {
    background-color: #f5f5f5; /
    color: #ff5e00; 
}


.menu-tha-xuong:hover .menu-con {
    display: block; 
}



/** GIỚI THIỆU ABOUT US **/

.container {
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}


.content-section {
    padding: 60px 0; 
    border-bottom: 1px solid #eee; 
}

.content-section:nth-child(even) {
    background-color: #f8f9fa;
}


.about-us p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1em;
}


.mission {
    text-align: center;
}

.mission .container {
    display: flex;
    gap: 30px;
}

.mission-item {
    flex: 1; 
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

.mission-item h3 {
    color: #333;
    margin-bottom: 10px;
}


.policy ul {
    list-style-type: none;
    padding-left: 0;
}

.policy li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23007bff"><path d="M9 16.2l-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4z"/></svg>') no-repeat left center;
    background-size: 16px;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.link-more {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}


@media (max-width: 768px) {
    .mission .container {
        flex-direction: column; 
    }
    h2 {
        font-size: 2em;
    }
}
/* ------------------------------------ */
/* TÁC GIẢ */
/* ------------------------------------ */

.authors-section {
    padding: 40px 20px;
    max-width: 1200px; 
    margin: 0 auto;
}

/* Tiêu đề "Tác giả" */
.authors-title {
    font-size: 2em;
    color: #38761d; 
    margin-bottom: 30px;
    font-weight: bold;
}

/* Container chứa danh sách tác giả  */
.authors-list {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
}

/* Định dạng từng item Tác giả */
.author-item {
    text-decoration: none; 
    color: #333;
    text-align: center;
    width: calc(25% - 15px); 
    min-width: 150px; 
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.author-item:hover {
    opacity: 0.8; 
}

/* Container ảnh để đảm bảo ảnh tròn */
.author-photo-wrapper {
    width: 150px; 
    height: 150px;
    margin: 0 auto 10px; 
    overflow: hidden; 
    border-radius: 50%; 
    border: 3px solid transparent; 
}

/* Định dạng ảnh bên trong */
.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tên tác giả */
.author-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 5px;
}

/* Responsive: 2 cột trên thiết bị di động */
@media (max-width: 768px) {
    .author-item {
        width: calc(50% - 10px); 
    }
}
/* Responsive: 1 cột trên màn hình siêu nhỏ */
@media (max-width: 480px) {
    .author-item {
        width: 100%; /* 1 cột trên màn hình siêu nhỏ */
    }

}


        /* --- STYLE MỚI CHO KẾT QUẢ TÌM KIẾM --- */
        #search-results {
            display: none; 
            position: absolute;
            top: 110%;
            left: 0;
            width: 100%;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
        }
        .result-item {
            display: block;
            padding: 12px 15px;
            text-decoration: none;
            color: #333;
            border-bottom: 1px solid #f0f0f0;
            font-size: 0.9em;
        }
        .result-item:last-child {
            border-bottom: none;
        }
        .result-item:hover {
            background-color: #f8f8f8;
        }
        .result-item strong {
            color: #ff5e00;
        }
        .result-item .context {
            font-size: 0.8em;
            color: #777;
            margin-top: 2px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;  
            overflow: hidden;
        }
        .no-result {
            padding: 15px;
            font-size: 0.9em;
            color: #888;
            text-align: center;
        }
    




