/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&family=Indie+Flower&family=Gloria+Hallelujah&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Apply Calendula font to all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Calendula', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

#header-container {
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    cursor: pointer;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: #e74c3c;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav button:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s;
}

.main-nav button:hover:after,
.main-nav button.active:after {
    width: 100%;
}

/* Hero Section with Fade-in Animation */
.hero-section {
    position: relative; /* Needed for absolute positioning of background */
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: center; /* Center content horizontally */
    text-align: center;
    min-height: 70vh; /* Adjust height as needed */
    padding: 0; /* Remove padding */
    overflow: hidden; /* Ensure background doesn't overflow */
    opacity: 0; /* Start with 0 opacity */
    animation: fadeIn 1s ease-in-out forwards; /* Fade in animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content */
    background-color: #444; /* Fallback color */
    /* --- HERO IMAGE --- */
    background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), url('images/hero.jpg'); 
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Add a darker overlay for better text legibility */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.01); /* Darker semi-transparent overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Above background and overlay */
    width: 100%; /* Full width */
    color: white; /* Ensure text is white */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8); /* Add text shadow for better readability */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 2rem; /* Add padding around text */
    border-radius: 0; /* Remove rounded corners */
    backdrop-filter: blur(3px); /* Slight blur effect if supported */
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 5%;
    min-height: 80vh;
}

/* Home Page */
.home-container {
    display: block;
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #FFF;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #FFF;
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.timeline-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.books-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.book-card {
    padding: 2rem;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.book-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Books Page (Timeline View) */
.books-container {
    display: block;
}

.books-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.timeline-view {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background: #e74c3c;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-books {
    position: relative;
    z-index: 2;
}

/* Updated timeline book styles */
.timeline-book {
    display: flex;
    margin-bottom: 40px; /* Increased for better spacing on standalone pages */
    position: relative;
    width: 100%;
    clear: both;
}

.timeline-book:nth-child(odd) {
    float: left;
    padding-right: calc(50% + 30px);
}

.timeline-book:nth-child(even) {
    float: right;
    padding-left: calc(50% + 30px);
}

.timeline-book-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
}

.timeline-book-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.timeline-book:nth-child(odd) .timeline-book-content::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 4px;
    background-color: #e74c3c;
}

.timeline-book:nth-child(even) .timeline-book-content::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 4px;
    background-color: #e74c3c;
}

.book-cover-image {
    width: 300px;
    height: 300px;
    margin-right: 20px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.timeline-book-info {
    flex: 1;
    margin-right: 20px;
}

.timeline-book-title {
    color: #2c3e50;
    font-size: 1.6rem;
    padding-top: 10px;
    margin-bottom: 10px;
}

.timeline-book-year {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Book Detail Page - Fixed Layout */
.book-detail-container {
    display: block;
    max-width: 1000px;
    margin: 50px auto;
    overflow: visible;
}

/* Base shadow styling for all pages */
.book-page-single::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.2), transparent);
    z-index: 5;
    pointer-events: none;
}

/* Left pages (even numbers) have narrower shadow on right side */
.book-page-spread-first::before {
    right: 0;
    width: 30px; /* Narrower shadow for left pages */
}

/* Right pages (odd numbers) have wider shadow on left side */
.book-page-spread-second::before {
    left: 0;
    width: 30px; /* Wider shadow for right pages - adjust this value */
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

/* First page (p1) needs shadow on left side */
.first-spread .book-page-single::before {
    left: 0;
    width: 30px; /* Wider shadow for first page - adjust this value */
    background: linear-gradient(to right, rgba(0,0,0,0.2), transparent);
}

/* Make sure all pages have proper positioning */
.book-page-single {
    position: relative;
    overflow: visible;
}

/* Book header styling */
.book-header {
    display: block;
    text-align: center;
}

/* Hide back button as we now use standard navigation */
.back-button {
    display: none;
}

/* Book Pages Container */
.book-pages-container {
    position: relative;
    width: 100%;
    filter: drop-shadow(8px 8px 10px rgba(0, 0, 0, 0.2));
    z-index: 10; /* Add this line */ 
    margin-top: 30px;
}

/* Special Left Section (Title area) */
.book-title-section {
    float: left;
    width: 50%;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 450px;
}

.book-title-section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
    display: none;
}

/* Book description with decorative background */
.book-title-section p {
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
    font-size: 1.4rem;
    color: #104e8b; /* Medium dark blue color */
    font-family: 'Rock Salt', 'Indie Flower', 'Gloria Hallelujah', sans-serif; /* Preferred fonts in order */
    transform: rotate(-4deg); /* slight angle */
    padding: 50px; /* Increased padding to fit within the decorative border */
    background-image: url(''); /* Path to your decorative border image - pulled from javascript */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* First Spread (Page 1) */
.first-spread {
    margin-bottom: 30px;
    box-shadow: none;
    background: none;
}

/* Page 1 styling */
.first-spread .book-page-single {
    float: right;
    width: 50%;
    max-width: none; /* Remove max-width constraint */
    margin: 0;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.first-spread .book-page-image {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.first-spread .book-page-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: none; /* Allow image to be full size */
}

/* Regular spreads */
.regular-spread {
    clear: both;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-page-single {
    width: 50%;
    margin: 0;
    padding: 0;
}

.book-page-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Book actions */
.book-actions {
    clear: both;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.book-action-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.book-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.book-action-button.secondary {
    background-color: #3498db;
}

.book-action-button.secondary:hover {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Clearfix to handle floats */
.book-detail-container::after,
.first-spread::after {
    content: "";
    display: table;
    clear: both;
}

/* About Page with Fade-in Animation */
.about-container {
    display: block;
    opacity: 1;
    animation: fadeIn 1s ease-in-out forwards;
}

.about-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.about-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.about-section h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Contact Page with Fade-in Animation */
.contact-container {
    display: block;
    opacity: 1;
    animation: fadeIn 1s ease-in-out forwards;
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-info a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

/* Shop Page */
.shop-container {
    display: block;
    opacity: 1;
    animation: fadeIn 1s ease-in-out forwards;
}

.shop-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.category {
    margin-bottom: 3rem;
}

.category h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 150px; /* Reduced height to make the panel less tall */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden; /* Prevent image overflow */
}

.product-image h3 {
    text-align: center;
    padding: 0 1rem;
}

.product-cover {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important; /* Changed from contain to cover */
    background-position: top center !important; /* Position from top */
}

.product-info {
    padding: 1rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.add-to-cart {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Book flip card container */
.book-flip-card {
    perspective: 1000px; /* 3D effect */
    width: 250px;
    height: 250px;
    margin: 15px;
    cursor: pointer;
}

/* This container positions the front and back sides */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Hide the year in the book timeline */
.flip-card-year {
    display: none !important;
}

/* Timeline styles (maintaining the original structure) */
.timeline-view {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background: #e74c3c;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-books {
    position: relative;
    z-index: 2;
}

/* Updated timeline book styles with flip functionality */
.timeline-book {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
    clear: both;
}

.timeline-book:nth-child(odd) {
    float: left;
    padding-right: calc(50% + 30px);
}

.timeline-book:nth-child(even) {
    float: right;
    padding-left: calc(50% + 30px);
}

/* The flip card container */
.timeline-book-content {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px; /* 3D effect */
    position: relative;
}

/* The connector line to the timeline */
.timeline-book:nth-child(odd) .timeline-book-content::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 4px;
    background-color: #e74c3c;
    z-index: 10;
}

.timeline-book:nth-child(even) .timeline-book-content::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 4px;
    background-color: #e74c3c;
    z-index: 10;
}

/* The flip card inner container */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Flip the card when hovered */
.timeline-book-content:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Position front and back sides */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

/* Front side styling (the book cover) */
.flip-card-front {
    display: flex;
    background-color: white;
}

.book-cover-image {
    width: 300px;
    height: 300px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Back side styling (rotated 180deg) */
.flip-card-back {
    background-color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.flip-card-description {
    font-family: 'Rock Salt', 'Indie Flower', 'Gloria Hallelujah', sans-serif;
    color: #104e8b;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 30px;
}

.view-book-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.view-book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Clearfix for the timeline */
.timeline-books::after {
    content: "";
    display: table;
    clear: both;
}


/* Team */
.team-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9f7f2;
    border-radius: 8px;
}

.team-intro {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-align: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0e9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    border: 1px solid #333333; /* Thin dark grey border */
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-name {
    text-align: center;
    font-family: 'Calendula', serif; /* Changed to Calendula font */
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: #2d2d2d;
}

.member-title {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: #6b5c45;
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.member-details {
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid #e6e0d2;
}

.member-details p {
    margin-bottom: 0.5rem;
}

.team-tagline {
    margin-top: 3rem;
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    color: #6b5c45;
}
        
        /* Mobile adjustments */
        @media (max-width: 991px) {
            .team-members {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            
            .team-section {
                padding: 1.5rem;
            }
            
            .member-image {
                width: 180px;
                height: 180px;
            }
        }
  
/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}

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

.footer-logo p {
    margin-top: 0.5rem;
    color: #bdc3c7;
}

.footer-links h3,
.footer-newsletter h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links button {
    background: none;
    border: none;
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.3s;
}

.footer-links button:hover {
    color: white;
}

.footer-newsletter p {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 1rem;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Clearfix for timeline */
.timeline-books::after {
    content: "";
    display: table;
    clear: both;
}

/* Book Navigation Widget Styles */
.book-navigation-widget {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.book-navigation-widget h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.book-covers-slider {
    display: flex;
    align-items: center;
    position: relative;
}

.book-covers-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    flex: 1;
}

.book-covers-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Opera */
}

.book-cover-item {
    flex: 0 0 120px;
}

.book-cover-image-small {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-cover-image-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.slider-arrow {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
    background-color: #f8f9fa;
}
