:root {
    --bg-color: #f6f3ee;
    --heading-color: #587994;
    --menu-textcolor: #545454;
    --text-color: #2d2823;
    --button-color: #726741;
    --border-color: #ddd4cc;
    --title-color: #545454;
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --light-bg: #f9f9f9;
}

/* Add these styles near the top of the file, after the body styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: 'Quattrocento';
}

/* Header Layout */
.main-header {
    width: 100%;
    background-color: #DDD4CC;
    height: 60px;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1557px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

.title-link {
    font-family: 'Quattrocento';
    font-weight: 700;
    font-size: 25px;
    color: var(--title-color);
    text-decoration: none;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-nav .nav-list {
    display: flex !important;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8rem !important;
    height: 100%;
    align-items: center;
}

.main-nav .nav-list .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    color: var(--menu-textcolor);
    text-decoration: none;
    font-family: "Cormorant Upright", serif;
    font-size: 20px !important;
}

.main-nav .nav-list .nav-link.active {
    font-weight: bold;
}

/* Reset any potential conflicting styles */
header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

header {
    text-align: center !important;
    /*padding: 1rem 0;*/
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    display: block !important;
}

.site-title {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 1rem auto !important;
    width: 100% !important;
}

.site-title a {
    font-family: 'Quattrocento' !important;
    font-weight: 700 !important;
    font-size: 25px;
    color: var(--title-color) !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 155px !important;
    height: 20px !important;
    line-height: 20px !important;
    margin: 0 auto !important;
}

/* Title Styling */
.title-link {
    display: inline-block;
    text-align: center;
    font-family: 'Quattrocento';
    font-weight: 700;
    font-size: 1.5rem; /* Make it slightly bigger */
    color: var(--title-color);
    text-decoration: none;
    padding-left: 3rem;
    /*margin-bottom: 10px; /* Adds spacing between title and nav */
}

nav {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

nav ul {
    display: inline-flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 22px !important;
    font-family: 'Migra';
    letter-spacing: 0.02em;
}

/* Menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background: var(--text-color);
    height: 2px;
    width: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before {
    position: absolute;
    transform: translateY(-8px);
}

.hamburger::after {
    position: absolute;
    transform: translateY(8px);
}

/* Main Content Styles */
main {
    flex: 1 0 auto;
    padding: 2rem;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 2rem;
    /*margin: -2rem -2rem 2rem -2rem;*/
}

.book-feature {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.book-feature img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.contact-form button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--button-color);
    border-radius: 30px;
    color: var(--button-color);
    text-decoration: none;
    text-align: center;
    font-family: 'HK Grotesk';
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: transparent;
}

.contact-form button:hover {
    background-color: var(--button-color);
    color: white;
}

/* Footer */
footer {
    flex-shrink: 0;
    background: var(--bg-color);
    padding: 1rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* This helps push the footer down */
}

.footer-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    max-width: 1557px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

/* Update signature styles */
.signature {
    width: fit-content;
    justify-self: start;
}

.footer-column.signature {
    justify-self: start;
}

.signature-img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Update footer menu styles - commented out since footer menu was removed */
/* .footer-menu {
    text-align: left;
}

.footer-menu .nav-list {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    align-items: flex-start !important;
}

.footer-menu .nav-list li {
    width: auto;
}

.footer-menu .nav-list .nav-link {
    font-size: 18px !important;
    height: auto;
} */

/* Update copyright styles */
.copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none; /* Allows clicking through to elements behind */
    width: 100%;
    z-index: 0;
}

/* Ensure other footer elements stay above copyright text */
.signature, .social-links {
    position: relative;
    z-index: 1;
}

/* Update social links styles */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    justify-self: end;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--button-color);
}

.latest-book {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Published Book Layout */
.book-announcement.published {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;

    /*display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 20px;
    */
}

.book-announcement.published .book-cover {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px; /* Match the book image width */
}

.book-announcement.published .book-cover a {
    display: block;
    position: relative;
    z-index: 1;
}

.book-announcement.published .book-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.book-announcement.published .out-now-badge {
    position: absolute;
    bottom: 17%; /* Position it 1/3 from the bottom */
    right: 80px; /* Half the badge off the edge */
    width: 120px;
    height: 120px;
    z-index: 2;
}

.book-announcement.published .out-now-badge .badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-announcement.published .book-info {
    flex: 1;
    padding-right: 2rem;
}

.book-announcement.published .book-title {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.book-announcement.published .book-author {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: normal;
}

.book-announcement.published .author-badge {
    margin-bottom: 2rem;
}

.book-announcement.published .za-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #6c5ce7;
    padding: 5px;
}

.book-announcement.published .book-summary {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.book-announcement.published .order-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #6c5ce7;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-announcement.published .order-button:hover {
    background-color: #5f4dd0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Add back the missing styles */
.book-details {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.heading {
    color: var(--heading-color);
    font-size: 35px;
    margin-bottom: 30px;
}

.book-release-date {
    font-family: 'Migra';
    font-size: 16.5px;
    font-style: italic;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1;
    text-align: left;
    width: 100%;
    margin: 0 0 0 0; /* Adjust spacing above the date */
}

.release-month {
    font-family: 'Noto Serif Display';
    font-size: 120px;
    font-weight: 700;
    color: #000;
    line-height: 0.8;
    margin-top: 0px;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 0;
}

.release-year {
    font-family: 'Noto Serif Display';
    font-size: 120px;
    font-weight: 700;
    letter-spacing: 28px;
    color: #000;
    line-height: 0.8;
    margin-top: -10px;
    width: 100%;
    margin-bottom: 3rem;
    padding-left: 30px;
}

.pre-order-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--button-color);
    border-radius: 30px;
    color: var(--button-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'HK Grotesk';
    font-weight: 500;
    transition: all 0.3s ease;
    width: auto;
    min-width: min-content;
}

.pre-order-button:hover {
    background-color: var(--button-color);
    color: white;
}

.book-cover {
    flex: .75;
}

.book-cover img {
    max-width: 70%;
    height: auto;
}

/* Books grid layout */
.books-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 56px;
    color: var(--title-color);
    font-weight: normal;
}

.books-page h2 {
    font-size: 56px;
    color: var(--title-color);
    margin-bottom: 2rem;
    margin-left: 5%;
    font-weight: normal;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
}

.book-card {
    background: transparent;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.book-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.book-card a:hover {
    transform: scale(1.03);
}

.book-card img {
    width: 60%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.book-card img:hover {
    transform: scale(1.03);
}

.book-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.book-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    width: 60%;
}

.book-button {
    padding: 0.4rem 0.3rem;
    border: 1px solid #545454;
    border-radius: 25px;
    color: #545454;
    text-decoration: none;
    font-family: 'HK Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 90%;
}

.book-button:last-child {
    grid-column: 1 / -1;
    width: 50%;
    margin: 0 auto;
}

.book-button:hover {
    background-color: #545454;
    color: white;
}

/* Update mobile styles for books grid */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1rem;
    }

    .books-page h2 {
        font-size: 40px;
        margin-left: 15%;
    }

    .book-buttons {
        grid-template-columns: 1fr;
        width: 80%;
    }

    .book-button:last-child {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-card img {
        width: 70%;
    }

    .books-page h2 {
        margin-left: 15%;
    }
}

/* Update the existing mobile media query to include all book-related styles */
@media (max-width: 768px) {
    /* Reset any potential overflow issues */
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    .header-content {
        justify-content: space-between;
    }

    /* Show hamburger menu on mobile */
    .menu-toggle {
        display: block !important;
    }

    /* Hide navigation on mobile by default */
    .main-nav {
        display: none !important;
    }

    /* Show navigation only when active */
    .main-nav.active {
        display: flex !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #DDD4CC;
        padding: 1rem 0;
        z-index: 1000;
    }

    /* Override any generic nav styles */
    nav {
        display: none !important;
    }

    nav.active {
        display: flex !important;
    }

    /* Override nav ul styles specifically */
    nav ul {
        display: none !important;
    }

    nav.active ul {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }

    .main-nav .nav-list .nav-link {
        padding: 0.5rem 1rem;
        width: 100%;
        justify-content: center;
    }

    /* Adjust main content padding */
    main {
        padding: 80px 0 2rem 0;
    }

    /* Ensure all content containers are properly contained */
    .container, 
    .hero, 
    .book-feature,
    .about-page,
    .contact-form {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }

    /* When menu is open */
    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 10px;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 10px;
    }

    /* Book feature styles */
    .book-feature {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .book-feature img {
        width: 66.666%;
        margin: 0 auto;
        display: block;
    }

    .book-info {
        text-align: center;
        padding: 0 1rem;
    }

    .book-info h3 {
        margin-top: 1rem;
    }

    /* Books grid styles */
    .books-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .book-card {
        padding: 1rem;
    }

    .book-card img {
        width: 66.666%;
        margin: 0 auto;
        display: block;
    }

    .book-card h3 {
        margin-top: 1rem;
    }

    .book-card p {
        margin: 0.5rem 0;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .signature {
        margin: 0;
    }

    .signature-img {
        width: 70%;
        height: auto;
        display: block;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        margin: 0;
    }

    .copyright {
        width: 100%;
        text-align: center;
        margin: 0;
        position: relative;
        padding-top: 0.5rem;
    }

    .copyright p {
        margin: 0;
    }

    /* Add about page mobile styles here */
    .about-content {
        display: flex;  /* Change to flex for better mobile control */
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-image img {
        width: 70%;
        margin: 0 auto;
    }

    .about-bio {
        width: 100%;
        padding: 0 1rem;
    }

    .about-bio p {
        text-align: center;
        margin: 0 auto;
    }

    .page-title {
        text-align: center;
        font-size: 40px;
        margin-bottom: 2rem;
    }

    /* Updated book announcement mobile styles */
    .book-announcement {
        flex-direction: column-reverse;
        gap: 2rem;
        width: 100%;
        align-items: center;
        padding: 0 20px;
        margin: 0 auto;
    }

    .book-cover {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
        padding: 0 20px;
        position: relative; /* Ensure positioning context for badge */
    }

    .book-cover img {
        width: 66.666%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .book-details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }

    .heading {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .release-month,
    .release-year {
        font-size: 80px;
        text-align: center;
        width: auto;
    }

    .release-year {
        letter-spacing: 15px;
        padding-left: 15px;
        margin-bottom: 2rem;
    }

    .latest-book {
        padding: 2rem 0;
        width: 90%;
    }
}

/* About Page Styles */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.about-heading {
    font-size: 56px;
    color: var(--title-color);
    text-align: left;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-image {
    width: 100%;
}

.about-image img {
    width: 70%;
    height: auto;
    display: block;
}

.about-bio p {
    font-size: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Mobile styles for About page */
@media screen and (max-width: 768px) {
    .about-page {
        padding: 3rem;
        width: 100%;
        box-sizing: border-box;
    }

    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        width: 100%;
        align-items: center;
    }
    
    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-image img {
        width: 70%;
        margin: 0 auto;
    }

    .about-bio {
        width: 100%;
        padding: 0;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }

    .about-bio p {
        text-align: center;
        margin: 0 auto;
        width: 100%;
        max-width: 90%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 18px;
        line-height: 1.6;
    }

    .page-title {
        text-align: center;
        font-size: 40px;
        margin-bottom: 2rem;
        width: 100%;
    }
}

/* Contact Page Styles */
.contact-page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-page h2 {
    font-size: 56px;
    color: var(--title-color);
    text-align: left;
    margin-bottom: 2rem;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #d6e9c6;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ebccd1;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
    width: 100%;
}

.form-column {
    max-width: 890px;
}

.social-column {
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100%;
    padding: 2rem 0;
}

.social-column h3 {
    font-size: 32px;
    color: var(--title-color);
    margin-bottom: 2rem;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links-contact .social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links-contact .social-link i {
    font-size: 3rem;
}

.social-links-contact .social-link:hover {
    color: var(--button-color);
}

/* Update existing mobile styles */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-column,
    .contact-form {
        max-width: 100%;
    }

    .social-column {
        padding: 0;
    }

    .contact-header h2 {
        font-size: 40px;
    }
}

/* Book Detail Page */
.book-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.book-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.book-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
    width: 100%;
}

.title-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    width: 100%;
    align-items: center;
}

.title-section h1 {
    font-size: 56px;
    color: var(--title-color);
    font-weight: normal;
    margin: 0;
}

.release-date {
    font-family: 'Migra';
    font-style: italic;
    font-size: 16.5px;
    color: var(--text-color);
    white-space: nowrap;
    justify-self: end; /* Align to the right of its grid cell */
}

.book-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
    align-items: center;
}

.book-image {
    width: 300px; /* Adjust based on your needs */
}

.book-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.book-summary {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

.book-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 150px;
}

.book-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--button-color);
    border-radius: 30px;
    color: var(--button-color);
    text-decoration: none;
    text-align: center;
    font-family: 'HK Grotesk';
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.book-link:hover {
    background-color: var(--button-color);
    color: white;
}

/* Order Dropdown Styles */
.order-dropdown {
    position: relative;
    width: 100%;
}

.order-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--button-color);
    border-radius: 30px;
    background: transparent;
    color: var(--button-color);
    font-family: 'HK Grotesk';
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.order-dropdown-btn:hover,
.order-dropdown-btn.active {
    background-color: var(--button-color);
    color: white;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.order-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.order-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-dropdown-content.show {
    display: block;
}

.store-link {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'HK Grotesk';
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.store-link:hover {
    background-color: var(--bg-color);
    color: var(--button-color);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .book-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-image {
        width: 60%;
        margin: 0 auto;
    }

    .title-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .title-section h1 {
        font-size: 40px;
    }

    .release-date {
        justify-self: start;
    }

    .book-links {
        width: 100%;
        padding: 0 1rem;
    }

    .order-dropdown-btn {
        font-size: 14px;
    }

    .store-link {
        font-size: 14px;
    }
}

/* Update mobile styles */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .signature {
        margin: 0;
    }

    .signature-img {
        width: 70%;
        height: auto;
        display: block;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        margin: 0;
    }

    .copyright {
        width: 100%;
        text-align: center;
        margin: 0;
        position: relative;
        padding-top: 0.5rem;
    }

    .copyright p {
        margin: 0;
    }
}

/* Latest Book Section Styles */
.latest-book {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Upcoming Book Layout */
.book-announcement.upcoming {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
}

.book-announcement.upcoming .book-cover {
    flex: 0 0 auto;
    max-width: 400px;
    /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);*/
    transition: transform 0.3s ease;
}

.book-announcement.upcoming .book-cover:hover {
    transform: translateY(-10px);
}

.book-announcement.upcoming .book-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.book-announcement.upcoming .book-details {
    flex: 1;
    text-align: center;
}

.book-announcement.upcoming .heading {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.book-announcement.upcoming .release-month {
    font-size: 3rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.book-announcement.upcoming .release-year {
    font-size: 2.5rem;
    color: #888;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.book-announcement.upcoming .pre-order-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.book-announcement.upcoming .pre-order-button:hover {
    background-color: #555;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .book-announcement.upcoming,
    .book-announcement.published {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .book-announcement.upcoming .book-cover,
    .book-announcement.published .book-cover {
        max-width: 300px;
        margin: 0 auto;
    }

    .book-announcement.published .book-info {
        padding-right: 0;
    }

    .book-announcement.published .book-title {
        font-size: 2.5rem;
    }

    .book-announcement.published .book-author {
        font-size: 1.5rem;
    }

    .book-announcement.published .out-now-badge {
        width: 100px;
        height: 100px;
        right: -50px;
        bottom: 17%;
    }
}

@media (max-width: 768px) {
    /* Specific mobile styles for published book layout */
    .book-announcement.published {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    .book-announcement.published .book-cover {
        position: relative !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        flex: none !important;
    }

    .book-announcement.published .book-cover img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Fix badge positioning for mobile - make it overlap properly */
    .book-announcement.published .out-now-badge {
        position: absolute !important;
        bottom: 15% !important;
        right: -40px !important; /* Position to overlap the book cover */
        width: 80px !important;
        height: 80px !important;
        z-index: 10 !important;
    }

    .book-announcement.published .book-info {
        flex: 1 !important;
        padding: 0 20px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .book-announcement.published .book-title {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    .book-announcement.published .book-author {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
    }

    /* Fix text wrapping for book summary */
    .book-announcement.published .book-summary {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 576px) {
    .book-announcement.upcoming .heading {
        font-size: 1.5rem;
    }

    .book-announcement.upcoming .release-month {
        font-size: 2rem;
    }

    .book-announcement.upcoming .release-year {
        font-size: 1.8rem;
    }

    .book-announcement.published .book-title {
        font-size: 2rem !important;
    }

    .book-announcement.published .book-author {
        font-size: 1.2rem !important;
    }

    .book-announcement.published .book-summary {
        font-size: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 15px !important;
    }

    .book-announcement.published .out-now-badge {
        width: 70px !important;
        height: 70px !important;
        right: 50px !important;
        bottom: 15% !important;
    }
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 1px solid #DDD4CC;
    margin: 4rem auto;
    max-width: 1200px;
    width: 90%;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 1rem 4rem;
    text-align: center;
}

.reviews-title {
    font-size: 56px;
    color: var(--text-color);
    margin-bottom: 4rem;
    font-family: 'Migra', serif;
    font-weight: normal;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-bubble {
    background-color: #E9E4DE;
    padding: 2rem;
    border-radius: 70px;
    position: relative;
}

.review-bubble::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 25px;
    width: 60px;
    height: 70px;
    background-color: #E9E4DE;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.review-bubble p {
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Quattrocento', serif;
}

.review-cta {
    text-align: center;
    margin-top: 6rem;
}

.review-cta p {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-family: 'Migra', serif;
}

.review-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Quattrocento', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-button:hover {
    background-color: var(--text-color);
    color: white;
}

/* Responsive styles for reviews section */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .reviews-title {
        font-size: 42px;
    }

    .review-cta p {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reviews-title {
        font-size: 32px;
        margin-bottom: 2rem;
    }

    .review-bubble {
        padding: 1.5rem;
    }

    .review-bubble p {
        font-size: 16px;
    }

    .review-cta {
        margin-top: 3rem;
    }

    .review-cta p {
        font-size: 24px;
    }
}