@font-face {
    font-family: 'Manjari';
    src: url('../../fonts/Manjari-Regular.ttf') format('truetype');
    font-weight: 400; /* Normal weight */
    font-style: normal;
}

@font-face {
    font-family: 'Manjari';
    src: url('../../fonts/Manjari-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Manjari';
    src: url('../../fonts/Manjari-Thin.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

.body-text {
    font-family: 'Manjari', sans-serif;
    font-size: 16px;
}

.large-text {
    font-family: 'Manjari', sans-serif;
    font-size: 24px;
    font-weight: 700; 
}

.medium-text {
    font-family: 'Manjari', sans-serif;
    font-size: 20px;
    font-weight: 400; 
}

.small-text {
    font-family: 'Manjari', sans-serif;
    font-size: 14px;
    font-weight: 300; 
}

:root {
    --primary-color: #1a237e;
    --secondary-color: #c62828;
    --accent-color: #ffd700;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-bg: #121212;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

/* Navbar Styles */
.navbar {
background-color: var(--primary-color);
padding: clamp(0.5rem, 1vw, 1rem) 0;
transition: var(--transition);
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}

.navbar.scrolled {
background-color: rgba(26, 35, 126, 0.95);
backdrop-filter: blur(10px);
}

/* Brand Styles */
.navbar-brand {
display: flex;
align-items: center;
white-space: nowrap;
margin-right: 1rem;
}

.navbar-brand img {
height: clamp(35px, 5vw, 45px);
width: auto;
margin-right: clamp(5px, 1vw, 10px);
transition: var(--transition);
}

/* Collapse Button */
.navbar-toggler {
padding: 0.25rem 0.5rem;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
box-shadow: none;
outline: none;
}

/* Search Form */
.search-form {
position: relative;
max-width: 500px;
width: 100%;
margin: 0.5rem auto;
}

.search-form input {
width: 100%;
border-radius: 25px;
padding: 0.75rem 2.5rem 0.75rem 1.5rem;
border: none;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
transition: var(--transition);
}

.search-form button {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
border: none;
background: none;
color: var(--primary-color);
cursor: pointer;
padding: 0.25rem;
}


a {
    text-decoration: none; /* Removes underline */
    color: blue; /* Optional: Sets the link color */
  }


/* Button Group */
.btn {
padding: 0.5rem 1rem;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 0.5rem;
}

.btn i {
font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
.navbar-collapse {
padding: 1rem 0;
}

.search-form {
margin: 1rem 0;
}

.navbar-nav {
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: stretch;
}

.btn {
justify-content: center;
}
}

@media (min-width: 992px) {
.navbar-collapse {
display: flex;
align-items: center;
}

.search-form {
margin: 0 2rem;
min-width: 300px;
}

.navbar-nav .btn {
margin: 0 0.25rem;
}
}


/* Animation for collapse */
.navbar-collapse {
transition: height 0.35s ease;
}

/* Optional: Hide scrollbar when navbar is expanded */
body.navbar-expanded {
overflow: hidden;
}
.hero-section {
background: linear-gradient(135deg, var(--primary-color) 0%, #303f9f 100%);
color: white;
padding: 6rem 0;
margin-bottom: 3rem;
position: relative;
overflow: hidden;
}

.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('/api/placeholder/1920/1080') center/cover;
opacity: 0.1;
}

.hero-book {
transform: perspective(1000px) rotateY(-15deg);
transition: transform 0.5s ease;
max-width: 350px;
box-shadow: 20px 20px 40px rgba(0,0,0,0.3);
}

.hero-book:hover {
transform: perspective(1000px) rotateY(0deg);
}

/* Improved Carousel Styles */
.carousel-inner {
padding: 2rem 0;
}

.carousel-item {
display: none;
position: relative;
float: left;
width: 100%;
margin-right: -100%;
backface-visibility: hidden;
transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
transform: translateX(-100%);
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
transform: translateX(0);
}

/* Layout alternation styles */
.carousel-item:nth-child(2) .row {
flex-direction: row-reverse;
}

.carousel-indicators {
bottom: -3rem;
}

.carousel-indicators [data-bs-target] {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
border: none;
margin: 0 5px;
}

.carousel-indicators .active {
background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
width: 5%;
opacity: 0;
transition: opacity 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.hero-section {
padding: 3rem 0;
}

.carousel-item .row {
flex-direction: column-reverse !important;
}

.carousel-item .col-md-6 {
text-align: center;
padding: 1rem;
}

.hero-book {
max-width: 250px;
margin: 0 auto;
}
}


/* Card Container */
.book-card {
height: 100%;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
margin-bottom: 1rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.book-card img {
width: 100%;
height: 280px; /* Fixed height for images */
object-fit: cover;
}

/* Card Body */
.book-card .card-body {
padding: 1.8rem;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
display: flex;
flex-direction: column;
flex: 1;
}

/* Card Title */
.book-card .card-title {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #1a237e;
display: -webkit-box;
-webkit-line-clamp: 2; /* Limit to 2 lines */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
height: 3.4em; /* Approximately 2 lines of text */
line-height: 1.7em;
}

/* Author Name */
.book-card .text-muted {
font-size: 0.95rem;
letter-spacing: 0.5px;
margin-bottom: 1rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* Price Container */
.book-card .d-flex {
margin-top: auto;
margin-bottom: 1rem;
}

/* Price */
.book-price {
color: #c62828;
font-weight: 700;
font-size: 1.5rem;
font-family: 'Playfair Display', serif;
margin: 0;
}

/* Discount Badge */
.discount-badge {
position: absolute;
top: 1rem;
right: 1rem;
background: rgba(198, 40, 40, 0.95);
color: white;
padding: 0.6rem 1.2rem;
border-radius: 30px;
font-weight: 600;
font-size: 0.9rem;
backdrop-filter: blur(5px);
box-shadow: 0 4px 15px rgba(198, 40, 40, 0.2);
z-index: 1;
}

/* Add to Cart Button */
.book-card .btn-primary {
background: #1a237e;
border: none;
padding: 0.8rem;
border-radius: 15px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: all 0.3s ease;
margin-top: auto;
}

.book-card .btn-primary:hover {
background: #283593;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(26, 35, 126, 0.2);
}

/* Section Header */
.section-header {
text-align: center;
margin-bottom: 3.5rem;
position: relative;
}

.section-header h2 {
font-size: 2.5rem;
font-weight: 700;
color: #1a237e;
margin-bottom: 1rem;
font-family: 'Playfair Display', serif;
}

.section-header::after {
content: '';
display: block;
width: 80px;
height: 4px;
background: linear-gradient(90deg, #1a237e, #c62828);
margin: 1rem auto;
border-radius: 2px;
}

/* Row fix for equal height cards */
.row {
display: flex;
flex-wrap: wrap;
}

.row > [class*='col-'] {
display: flex;
flex-direction: column;
}

.section-header {
text-align: center;
margin-bottom: 3.5rem;
position: relative;
}

.section-header h2 {
font-size: 2.5rem;
font-weight: 700;
color: #1a237e;
margin-bottom: 1rem;
font-family: 'Playfair Display', serif;
}

.section-header::after {
content: '';
display: block;
width: 80px;
height: 4px;
background: linear-gradient(90deg, #1a237e, #c62828);
margin: 1rem auto;
border-radius: 2px;
}
/* Categories Section */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card img {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

/* Slider Wrapper */
.author-slider-wrapper {
position: relative;
overflow: hidden;
}

/* Horizontal Scrollable Author Slider */
.author-slider {
display: flex;
gap: 1rem;
overflow-x: auto;
scroll-behavior: smooth;
padding-bottom: 1rem;
}

.author-slider::-webkit-scrollbar {
display: none; /* Hide scrollbar */
}

/* Author Cards */
.author-card {
flex: 0 0 200px; /* Fixed width for uniformity */
text-align: center;
margin-bottom: 2.5rem;
padding: 2rem;
background: white;
border-radius: 25px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.author-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #1a237e, #c62828);
opacity: 0;
transition: opacity 0.3s ease;
}

.author-card:hover::before {
opacity: 1;
}

.author-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.author-image {
width: 180px;
height: 180px;
border-radius: 50%;
margin-bottom: 1.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
border: 4px solid white;
}

.author-card:hover .author-image {
transform: scale(1.08);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.author-card h5 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #1a237e;
}

.author-card .text-muted {
font-size: 1rem;
letter-spacing: 0.5px;
background: #f8f9fa;
padding: 0.5rem 1rem;
border-radius: 20px;
display: inline-block;
margin-top: 0.5rem;
}

/* Slider Navigation Buttons */
.slider-control-prev,
.slider-control-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
color: #333; /* Color for the arrow */
background: none; /* Remove background */
border: none;
cursor: pointer;
z-index: 10;
transition: color 0.3s ease;
padding: 0;
}

.slider-control-prev {
left: 10px;
}

.slider-control-next {
right: 10px;
}

/* Arrow hover effect for better visibility */
.slider-control-prev:hover .carousel-control-prev-icon,
.slider-control-next:hover .carousel-control-next-icon {
filter: brightness(0.7); /* Slight darkening on hover */
}

/* Remove default background of carousel-control icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
background-color: transparent;
filter: invert(1); /* Makes the arrow white for visibility */
width: 2rem;
height: 2rem;
}


.deal-section {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    padding: 3rem 1rem;
    margin: 2rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.deal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1920/1080') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.deal-content {
    position: relative;
    z-index: 2;
}

.specialdeal-image {
    text-align: center;
}

.specialdeal-image img {
    max-width: 453px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.deal-timer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
}

.countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    color: #1a237e;
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.countdown-item h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.current-price {
    margin: 0;
    font-size: 1.75rem;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.75;
}

.discount-badge {
    background: #dc3545;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .deal-section {
        padding: 2rem 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .countdown-item h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .deal-timer {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .price-info {
        gap: 0.75rem;
    }
}



/* Enhanced Categories Section */
.category-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    color: white;
}

.category-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* New Features */
.features-section {
    padding: 4rem 0;
    background: white;
}

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #1a237e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Book Preview Modal */
.preview-image {
    max-height: 400px;
    object-fit: contain;
}

/* Reading Progress Section */
.reading-progress {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
}

/* Reading List Feature */
.reading-list {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: translateX(10px);
}

/* New Release Section */
.new-release-section {
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    padding: 4rem 0;
    color: white;
    margin: 3rem 0;
}

.new-release-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/api/placeholder/1920/1080') center/cover;
    opacity: 0.05;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form button {
    border-radius: 0 25px 25px 0;
    border: none;
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
}
  /* Enhanced Footer */
  .footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.hero-section {
background: linear-gradient(135deg, var(--primary-color) 0%, #303f9f 100%);
color: white;
padding: 6vh 0; /* Fluid padding */
margin-bottom: 3rem;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
}

.hero-section .carousel-inner {
width: 100%;
min-height: 30vh; /* Optional, based on desired height */
}

.hero-section .carousel-item {
display: flex;
align-items: center;
justify-content: center;
}

.hero-section h1 {
font-size: calc(1.5rem + 2vw); /* Responsive font size */
line-height: 1.2;
}

.hero-section p {
font-size: calc(1rem + 0.5vw);
}

@media (max-width: 768px) {
.hero-section {
padding: 4vh 0;
}
.hero-section h1 {
font-size: 1.8rem;
}
}

.hero-section {
background: linear-gradient(135deg, var(--primary-color) 0%, #303f9f 100%);
color: white;
min-height: 50vh; /* Ensures minimum height for spacing */
padding: 4vh 0; /* Adjusted padding to give space */
display: flex;
align-items: center;
justify-content: center; /* Centers content both vertically and horizontally */
position: relative;
overflow: hidden;
padding-top: 90p
}

.hero-section .carousel-inner {
width: 100%;
}

.hero-section h1,
.hero-section p {
margin-top: 1rem;
margin-bottom: 1rem;
}

@media (max-width: 768px) {
.hero-section {
padding: 6vh 0; /* Increase padding for mobile */
min-height: 60vh;
}
}


/* Slider Wrapper */
.category-slider-wrapper {
position: relative;
overflow: hidden;
}

/* Horizontal Scrollable Slider */
.category-slider {
display: flex;
gap: 1rem;
overflow-x: auto;
scroll-behavior: smooth;
padding-bottom: 1rem;
}

.category-slider::-webkit-scrollbar {
display: none; /* Hide scrollbar */
}

/* Category Cards */
.category-card {
flex: 0 0 250px;
position: relative;
border-radius: 20px;
overflow: hidden;
height: 300px;
transition: transform 0.3s ease;
}

.category-card:hover {
transform: translateY(-10px);
}

.category-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.category-card:hover img {
transform: scale(1.1);
}

.category-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
padding: 2rem;
color: white;
}

.category-stats {
display: flex;
gap: 1rem;
margin-top: 0.5rem;
font-size: 0.9rem;
}

/* Slider Navigation Buttons */
.slider-control-prev,
.slider-control-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
color: #333; /* Color for the arrow */
background: none; /* Remove background */
border: none;
cursor: pointer;
z-index: 10;
transition: color 0.3s ease;
padding: 0;
}

.slider-control-prev {
left: 10px;
}

.slider-control-next {
right: 10px;
}

/* Arrow hover effect for better visibility */
.slider-control-prev:hover .carousel-control-prev-icon,
.slider-control-next:hover .carousel-control-next-icon {
filter: brightness(0.7); /* Slight darkening on hover */
}

/* Remove default background of carousel-control icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
background-color: transparent;
filter: invert(1); /* Makes the arrow white for visibility */
width: 2rem;
height: 2rem;
}

/* Author Cards */
.author-card {
flex: 0 0 200px; /* Fixed width for uniformity */
height: 360px; /* Fixed height for uniformity */
text-align: center;
margin-bottom: 2.5rem;
padding: 2rem;
background: white;
border-radius: 25px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Author Image */
.author-image {
width: 180px;
height: 180px;
border-radius: 50%;
margin-bottom: 1rem; /* Adjusted margin */
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
border: 4px solid white;
}

/* Author Name and Info */
.author-card h5 {
font-size: 1.3rem;
font-weight: 600;
margin: 0.5rem 0; /* Reduce margin for better spacing */
color: #1a237e;
height: 1.5em; /* Set a specific height for consistency */
overflow: hidden; /* Hide overflow text */
text-overflow: ellipsis; /* Add ellipsis for overflow text */
white-space: nowrap; /* Prevent text wrapping */
}

.author-card .text-muted {
font-size: 1rem;
letter-spacing: 0.5px;
background: #f8f9fa;
padding: 0.5rem 1rem;
border-radius: 20px;
display: inline-block;
margin-top: 0.5rem;
}

/* Make sure the card does not shrink too small */
.author-card {
min-height: 300px; /* Ensures cards maintain a minimum height */
}

.hero-section {
background: linear-gradient(135deg, var(--primary-color) 0%, #303f9f 100%);
color: white;
padding: 6vh 0; /* Fluid padding */
margin-bottom: 3rem;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; /* Centering content */
min-height: 50vh; /* Ensures minimum height for spacing */
}

.hero-section .carousel-inner {
width: 100%;
min-height: 30vh; /* Optional, based on desired height */
}

.hero-section .carousel-item {
display: flex;
align-items: center;
justify-content: center;
}

.hero-section h1 {
font-size: calc(1.5rem + 2vw); /* Responsive font size */
line-height: 1.2;
}

.hero-section p {
font-size: calc(1rem + 0.5vw);
}

.hero-section .carousel-item {
min-height: 50vh; /* Ensure that the carousel items have a minimum height */
}

@media (max-width: 768px) {
.hero-section {
padding: 8vh 0; /* Increased padding for mobile */
min-height: 60vh; /* Ensures more space for smaller devices */
}

.hero-section h1 {
font-size: 1.8rem; /* Adjusted font size for smaller devices */
}

.hero-section p {
font-size: 1.2rem; /* Adjusted font size for readability */
}
}

Header Styles
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
margin: 0; /* Ensure no margin */
}

/* Hero Section Styles */
.hero-section {
background: linear-gradient(135deg, var(--primary-color) 0%, #303f9f 100%);
color: white;
min-height: 50vh; /* Ensures minimum height for spacing */
padding: 7vh 0 10vh; /* Adjusted padding for responsiveness, extra space at bottom */
display: flex;
align-items: center;
justify-content: center; /* Centers content both vertically and horizontally */
position: relative;
z-index: 1; /* Ensure the banner is behind the header */
margin-top: 3rem; /* Adjust this value based on the header height */
overflow: hidden;
}

.hero-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('/api/placeholder/1920/1080') center/cover;
opacity: 0.1;
}

.hero-book {
transform: perspective(1000px) rotateY(-15deg);
transition: transform 0.5s ease;
max-width: 350px;
box-shadow: 20px 20px 40px rgba(0,0,0,0.3);
}

.hero-book:hover {
transform: perspective(1000px) rotateY(0deg);
}

/* Improved Carousel Styles */
.carousel-inner {
width: 100%;
min-height: 30vh; /* Optional, based on desired height */
}

.carousel-item {
display: flex;
align-items: center;
justify-content: center;
}

.hero-section h1 {
font-size: calc(1.5rem + 2vw); /* Responsive font size */
line-height: 1.2;
}

.hero-section p {
font-size: calc(1rem + 0.5vw);
margin-top: 1rem;
margin-bottom: 1rem;
}

.carousel-indicators {
bottom: -3rem;
}

.carousel-indicators [data-bs-target] {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
border: none;
margin: 0 5px;
}

.carousel-indicators .active {
background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
width: 5%;
opacity: 0;
transition: opacity 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.hero-section {
padding: 4vh 0 6vh; /* Adjusted padding for mobile */
min-height: 60vh; /* Ensures minimum height for spacing on mobile */
}

.hero-section h1 {
font-size: 1.8rem; /* Smaller font size for mobile */
}

.carousel-item .row {
flex-direction: column-reverse !important;
}

.carousel-item .col-md-6 {
text-align: center;
padding: 1rem;
}

.hero-book {
max-width: 250px;
margin: 0 auto;
}
}


/* Card Styling for Featured Books Section */
#featured-books-section .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#featured-books-section .product-card img {
    width: 100%;
    height: 280px; /* Fixed height for images */
    object-fit: fill;
}

#featured-books-section .product-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

#featured-books-section .product-card .product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3rem; /* Ensures consistent height for titles */
    line-height: 1.5;
}

#featured-books-section .product-card .text-muted {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#featured-books-section .product-card .price-container {
    margin-top: auto;
    margin-bottom: 1rem;
}

#featured-books-section .product-card .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(198, 40, 40, 0.95);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 1;
}

#featured-books-section .product-card .add-to-cart {
    margin-top: auto;
}

#featured-books-section .row {
    display: flex;
    flex-wrap: wrap;
}

#featured-books-section .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* Navbar General */
.navbar {
    background-color: var(--primary-color);
    padding: clamp(0.5rem, 1vw, 1rem);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
}

/* Brand */
.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Search Form */
.search-form {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.search-form button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Icons Section */
.icon-links .btn-icon {
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    transition: color 0.3s ease;
}

.icon-links .btn-icon:hover {
    color: var(--secondary-color);
}

.icon-links .cart-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    top: 56px; /* Adjust to match navbar height */
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    z-index: 999;
    animation: slideDown 0.3s ease-in-out;
}

.mobile-search-bar.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .search-form.d-lg-flex {
        display: none;
    }

    #search-toggle {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        height: 30px;
    }
}

@media (min-width: 992px) {
    .mobile-search-bar {
        display: none !important;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Navbar Responsive Adjustments */
.navbar {
    background-color: var(--primary-color);
    padding: clamp(0.5rem, 1vw, 1rem);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 25px;
    }

    .navbar-brand span {
        display: none; /* Hide text on very small screens */
    }

    .icon-links .btn-icon {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    .cart-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.25rem;
    }
}

@media (min-width: 577px) and (max-width: 991.98px) {
    .navbar-brand img {
        height: 30px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .icon-links .btn-icon {
        font-size: 1.3rem;
        padding: 0.4rem;
    }
}

/* Existing styles remain the same */
.mobile-search-bar {
    top: 100%; /* Positioned right under the navbar */
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    z-index: 999;
    animation: slideDown 0.3s ease-in-out;
}

/* Desktop Search Form Positioning */
@media (min-width: 992px) {
    .search-form {
        width: 400px; /* Adjust width as needed */
        max-width: 500px;
    }
}

/* Existing mobile styles remain unchanged */
@media (max-width: 991.98px) {
    /* Mobile-specific styles stay the same */
    .mobile-search-bar {
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 1rem;
        z-index: 999;
    }
}

.book-logo-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 10;
}

.book-logo-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}