:root {
    --primary-color: #9d1927;
    --secondary-color: #353535;
    --accent-color: #f2e5c5;
    --background-color: #f5f1df;
    --text-dark: #353535;
    --text-light: #f4f2e1;
    --border-color: #cdcdcd;
}

body {
    font-family: 'Pridi', serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar-custom {
    background-color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    width: 208px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 100%;
}

.nav-group {
    display: flex;
    align-items: center;
    height: 30px;
}

.nav-item-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    height: 30px;
    padding: 0;
    width: 90px;
    justify-content: center;
}

.nav-item-custom:hover {
    color: var(--primary-color);
}

.nav-item-custom i {
    font-size: 14px;
}

.nav-divider {
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
    margin: 0 90px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 377px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 652px;
    opacity: 0.8;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-container {
    position: absolute;
    top: 79px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.search-card {
    background: rgba(212, 219, 229, 0.06);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 242, 242, 0.25);
    border-radius: 8px;
    padding: 17px 15px 16px;
    box-shadow: 0 4px 20px rgba(255, 230, 183, 0.1);
}

.category-tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 16px;
    margin-left: 15px;
}

.category-tab {
    padding: 7px 20px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.category-tab.active {
    border-bottom-color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    margin-left: 15px;
}

.search-input {
    background: rgba(244, 243, 243, 0.5);
    border: 1px solid white;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px;
    color: var(--text-dark);
    width: 462px;
}

.search-input::placeholder {
    color: var(--text-dark);
    opacity: 0.7;
}

.search-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 7px 63px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #7a141f;
    border-color: #7a141f;
}

.advanced-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 15px;
}

.advanced-btn {
    background: none;
    border: 1px solid #690800;
    color: #7b191a;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.advanced-btn:hover {
    background-color: rgba(105, 8, 0, 0.1);
}

/* Main Content */
.main-content {
    padding: 40px 210px;
    background-color: #F4F2E1;
}

.main-content .section-header h2,
.main-content .section-header p {
    color: #7b191a;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0;
}

.view-more-btn {
    background-color: unset;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 7px 30px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #7a141f;
    border-color: #7a141f;
    color: white;
}

.book-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 60px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.book-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.book-card:hover {
    transform: translateY(-4px);
}

.book-cover {
    width: 210px;
    height: 295px;
    object-fit: cover;
}

.book-info {
    padding: 16px;
    width: 210px;
}

.book-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.book-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.book-status {
    font-size: 12px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status-available {
    background-color: #e8f5e8;
    color: #2d5a2d;
}

.status-borrowed {
    background-color: #ffe8e8;
    color: #8b2d2d;
}

/* Suggested Menu */
.suggested-menu-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/suggested-menu-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 210px;
}

.menu-title {
    font-size: 28px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
}

.menu-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.menu-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.menu-btn {
    background-color: rgba(244, 243, 243, 0.5);
    border: 1px solid white;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.menu-btn:hover {
    background-color: rgba(244, 243, 243, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Browse Categories */
.browse-categories-section {
    padding: 40px 210px;
    background-color: #F2E5C5;
}

.category-grid {
    margin-bottom: 60px;
}

.category-btn {
    min-height: 46px;
    background: none;
    border: 1px solid #690800;
    color: #7b191a;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.category-btn:hover {
    background-color: rgba(105, 8, 0, 0.1);
}

/* Footer */
.footer-main {
    background-color: #484848;
    padding: 15px 210px;
    color: var(--text-light);
}

.footer-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.96px;
}

.footer-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 12px;
}

.footer-address {
    width: 335px;
}

.footer-address h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 2px;
}

.footer-address p {
    font-size: 14px;
    font-weight: 300;
    margin: 2px 0;
}

.footer-contact h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.footer-contact p {
    font-size: 14px;
    margin: 4px 0;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.social-links a {
    display: block;
}

.footer-bottom {
    background-color: var(--secondary-color);
    border-top: 1px solid #515151;
    padding: 15px 210px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    font-weight: 300;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar-custom, .footer-main, .footer-bottom, .main-content, .suggested-menu-section, .browse-categories-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .nav-divider {
        margin: 0 30px;
    }
}

@media (max-width: 992px) {
    .navbar-custom {
        padding: 15px 40px;
        height: auto;
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-brand img {
        height: 40px;
        width: auto;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
    
    .nav-divider {
        margin: 0 30px;
    }
    
    .hero-section {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar-custom {
        padding: 15px 20px;
        height: auto;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .nav-group {
        width: 100%;
        justify-content: center;
    }
    
    .nav-item-custom {
        width: auto;
        min-width: 120px;
    }
    
    .nav-divider {
        display: none;
    }
    
    .search-card {
        padding: 20px 15px;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-left: 0;
    }
    
    .category-tab {
        font-size: 14px;
        padding: 5px 15px;
        min-width: auto;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        padding: 10px;
    }
    
    .book-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .book-card {
        width: 100%;
        max-width: 300px;
    }
    
    .book-cover {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    .book-info {
        width: 100%;
    }
    
    .suggested-menu-section {
        padding: 30px 20px;
    }
    
    .menu-buttons {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .menu-btn {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .browse-categories-section {
        padding: 30px 20px;
    }
    
    .category-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .view-more-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .footer-main, .footer-bottom {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-address {
        width: 100%;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 30px;
    }
    
    .nav-item-custom {
        font-size: 12px;
        min-width: 100px;
    }
    
    .category-tab {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .search-input, .search-btn {
        font-size: 14px;
    }
    
    .menu-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .category-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .book-title {
        font-size: 12px;
    }
    
    .book-author {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .menu-title {
        font-size: 24px;
    }
}


/* coverflow */
#coverflow {
	overflow: hidden;
	padding: 25px 0px;
}
#coverflow .koha-coverflow .flipster__item__content p {
	min-height: 55px;
}
#coverflow .flipster__item__content {
	background-color: #FFFFFF;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
	text-align: center;
}
#coverflow .flipster__item .flipster__item__content p {
	display: -webkit-box !important;
	margin: 5px auto;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.8;
}
.indicator {
	border-bottom: 3px solid #7B191A;
}
.title label {
	font-size: 24px;
}
.flipster--flat .flipster__item--past,
.flipster--flat .flipster__item--future {
	opacity: unset;
}
