.hero-section {
    position: relative;
    padding: 4rem 1rem;
    text-align: center;
    color: #fff; /* white text for contrast */
    overflow: hidden;

}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* keeps text above overlay */
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    color: #fff;
}

.hero-section .btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* Books Section */
.books-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

/* Book Cards */
.book-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.book-image {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: #ffffff;
    margin: 0 auto;
}

.card-body {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-category {
    background-color: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.book-footer {
    display: flex;
    justify-content: center;
    padding: 0 0.75rem 0.75rem;
    margin-top: auto;
}

.book-price {
    font-size: 1rem;
    font-weight: bold;
    color: #2563eb;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.15rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 768px) {
    .book-image { width: 140px; height: 180px; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
}

@media (max-width: 576px) {
    .book-image { width: 120px; height: 160px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }
}
