:root {
    --primary-color: #f5a730;
}
a{
    text-decoration: none;
    color:#333;
}
.h5,h5{
    font-size: 1rem;
}
.custom-bg {
    background-color: var(--primary-color) !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
}

.book-cover {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.book-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.book-author {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.book-desc {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-update {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.latest-list .list-group-item {
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #eee;
}

.latest-title {
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    display: block;
}

.latest-title:hover {
    color: var(--primary-color);
}

.latest-author {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

.latest-chapter {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

@media (min-width: 992px) {
    .latest-title, .latest-author, .latest-chapter {
        display: inline-block;
        margin-right: 10px;
    }
}

.category-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eee;
}

.category-list .list-group-item {
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #eee;
}

.category-list a {
    color: #333;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--primary-color);
}

.rank-list .list-group-item {
    padding: 0.6rem 1rem;
    border: none;
    border-bottom: 1px solid #eee;
}

.rank-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 0.7rem;
}

.rank-list a {
    color: #333;
    text-decoration: none;
}

.rank-list a:hover {
    color: var(--primary-color);
}

.update-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.update-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.update-table a {
    color: #333;
    text-decoration: none;
}

.update-table a:hover {
    color: var(--primary-color);
}

.update-table tr:hover {
    background-color: #f8f9fa;
}

.new-book-list .list-group-item {
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid #eee;
}

.new-book-list a {
    color: #333;
    text-decoration: none;
}

.new-book-list a:hover {
    color: var(--primary-color);
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.toptop{
    background: #fdfdfd;
    text-align: center;
    border:1px solid #eee;
    border-radius:10px;
    padding:10px 0px;
    margin-bottom:20px;
}
.toptop a{
    display: inline-block;
    width:24%;

}

.pagination a{
    color:#666;
}

.pagination .active a{
    background:var(--primary-color) !important;
    border-color:var(--primary-color);
    color:#fff;
}

@media (max-width: 767.98px) {
    .update-table th, .update-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .category-list .list-group-item {
        font-size: 0.9rem;
    }
    .m-hide{
        display: none;
    }
}