/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f3f4f6, #e2e8f0);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    flex-direction: column;
}

/* Footer Theme Toggle Styles */
.theme-toggle-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle-footer:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

#theme-icon {
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle-footer:hover #theme-icon {
    transform: rotate(30deg);
}

body.dark-theme .theme-toggle-footer {
    background-color: #2c2c2c;
}

body.dark-theme #theme-icon {
    color: #f5f5f5;
}

body.dark-theme .theme-toggle-footer:hover {
    background-color: #3a3a3a;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle-footer,
    #theme-icon {
        transition: none;
    }
}


/* Header Styles */
.header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 0;
    position: relative;
    box-sizing: border-box;
}

.burger {
    cursor: pointer;
}

/* Logo Styles */
.logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .logo {
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo img {
        transition: none;
    }
}

.logo:hover img {
    transform: scale(1.05);
}

.logo:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.logo img[alt] {
    font-size: 0.8rem;
    color: #666;
}

nav {
    display: flex;
    align-items: center;

}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.divider {
    width: 1px;
    height: 24px;
    background-color: #ccc;
    margin: 0 1rem;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: hsl(0, 0%, 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: margin-top 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}


.container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 1.5rem;
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .container {
        transition: none;
    }
    .container:hover {
        transform: none;
    }
}


/* Main Content Styles */
main {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Book Showcase Styles */
.book-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.book {
    background: #f3f4f6;
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem); /* Ensure items don't exceed their intended size */
    box-sizing: border-box; /* Include padding and border in element's total width/height */
}

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

.book-content {
    text-align: center;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.book-details {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.book-details li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}


.buy-btn {
    background: #007bff;
    color: #fff;
}

.btn i {
    margin-right: 0.5rem;
}

.buy-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-btn {
    background: #28a745;
    color: #fff;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



/* About Us Section Styles */
.about-section {
    background: linear-gradient(135deg, #e2e8f0, #f9fafb);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2.5rem;
    border-left: 5px solid #007bff;
    border-right: 5px solid #007bff;
    position: relative;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #007bff;
    position: relative;
    display: inline-block;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #007bff;
    position: absolute;
    bottom: -6px;
    left: 0;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
    text-align: justify;
}

/* Contact Form Styles */
.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expanded {
    max-height: 1000px;
    /* Set a large enough value to accommodate the form */
    transition: max-height 0.5s ease-in;
}

.contact-section .btn {
    margin-bottom: 1rem;
}

.contact-section {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    background: #007bff;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #0056b3;
}


/* Add a specific style for the toggle-contact-form button */
#toggle-contact-form {
    background: #007bff;
    color: #fff;
}

#toggle-contact-form:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Update dark theme styles for the button */
body.dark-theme #toggle-contact-form {
    background: #30363d;
    color: #58a6ff;
}

body.dark-theme #toggle-contact-form:hover {
    background: #161616;
}


/* Footer Styles */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 0.5rem;
    background: #f8f9fa;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.footer-content p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.social-links a:hover {
    color: #0056b3;
}


.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.legal-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.legal-links a:hover {
    color: #0056b3;
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #0056b3;
}

/* Media Queries */
@media (max-width: 768px) {
    .book-showcase {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .book {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }


    .header-content {
        padding: 1rem 2rem;
        padding-bottom: 0rem;
    }

    .burger {
        margin-left: 1rem;
        /* Add some margin to the left of the burger icon */
    }

    .announcement {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .announcement::before,
    .announcement::after {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-section p {
        font-size: 1rem;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        background: #ffffff8b;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    body.dark-theme nav {
        background: #0000008b;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        display: flex;
        margin-top: 10px;
    }

    nav a {
        margin-top: 5px;
        margin-bottom: 5px;
        padding: 0.5rem 1rem;
        /* Add padding for better touch targets */
        width: 100%;
        /* Ensure full width to center align the text */
        box-sizing: border-box;
        /* Include padding in width */
        text-align: center;
        /* Ensure text is centered */
    }

    nav hr {
        width: 80%;
        border: 0;
        border-top: 1px solid #ccc;
        margin: 0.5rem 0;
    }

    .divider {
        display: none;
    }

    .container.nav-active {
        margin-top: 130px;
        /* Adjust based on the height of your navigation menu */
    }

    .book-title {
        font-size: 1.2rem; /* Smaller font size for mobile */
        margin: 0.75rem 0; /* Adjusted margin */
    }

    .book-details li {
        font-size: 0.9rem; /* Smaller font size for mobile */
    }

    .book-actions {
        gap: 0.5rem; /* Reduced gap between buttons */
    }

}

@media (max-width: 480px) {
    .book {
        flex: 1 1 100%; /* Full width for very small screens */
        max-width: 100%;
    }

    .book-title {
        font-size: 1rem; /* Even smaller font size for very small screens */
    }

    .book-details li {
        font-size: 0.8rem; /* Even smaller font size for very small screens */
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement {
        transition: none;
    }
}



@media (prefers-reduced-motion: reduce) {
    .announcement {
        transition: none;
    }
}


/* Blue Accent Dark Mode Styles */
body.dark-theme {
    background: #0d1117;
    color: #c9d1d9;
}

body.dark-theme .header-content nav a {
    color: #58a6ff;
}

body.dark-theme .container {
    background: #161b22;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

body.dark-theme .announcement {
    background: linear-gradient(135deg, #1a3a4a, #0d2b3a);
    color: #7fdbff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-theme .announcement:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .book {
    background: #21262d;
    color: #c9d1d9;
}


body.dark-theme .about-section {
    background: linear-gradient(135deg, #161b22, #21262d);
    color: #c9d1d9;
    border-left: 5px solid #58a6ff;
    border-right: 5px solid #58a6ff;
}

body.dark-theme .about-section h2 {
    color: #58a6ff;
}

body.dark-theme .about-section h2::after {
    background: #58a6ff;
}

body.dark-theme .about-section p {
    color: #c9d1d9;
}


body.dark-theme .contact-section {
    background: #21262d;
    color: #c9d1d9;
}

body.dark-theme .footer-content {
    background: #1a1e24;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-theme .footer-content p {
    color: #a9b3c1;
}

body.dark-theme .social-links a {
    color: #58a6ff;
}

body.dark-theme .social-links a:hover {
    color: #aed2fa;
}

body.dark-theme .legal-links a {
    color: #58a6ff;
}

body.dark-theme .legal-links a:hover {
    color: #aed2fa;
}

body.dark-theme .back-to-top {
    background: #21262d;
    color: #58a6ff;
}

/* Button Styles for Dark Theme */
body.dark-theme .btn {
    background: #30363d;
    color: #58a6ff;
}

body.dark-theme .btn:hover {
    background: #161616;
}

/* Dark Theme Burger Menu Color */
body.dark-theme .burger .burger-lines {
    background-color: #f5f5f5;
    /* Color for dark theme */
}


@media (prefers-reduced-motion: reduce) {
    .footer-content,
    .social-links a {
        transition: none;
    }
}


@media (max-width: 480px) {
    .book {
        flex: 1 1 calc(100% - 0.5rem);
        max-width: calc(100% - 0.5rem);
    }
}

.announcement {
    text-align: center;
    background: linear-gradient(135deg, #cefeff, #a0e9ff);
    color: #005a7d;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 1rem auto 2rem;
    max-width: 90%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement::before,
.announcement::after {
    content: '🎉';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.announcement::before {
    left: 1rem;
}

.announcement::after {
    right: 1rem;
}

.announcement:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .announcement {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .announcement::before,
    .announcement::after {
        display: none; /* Hide emojis on smaller screens */
    }
}

@media (max-width: 480px) {
    .announcement {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement {
        transition: none;
    }
}


.disclosures {

    text-align: left;

    h1 {
        font-size: 2.5em;
        margin-bottom: 1em;
    }

    h2 {
        font-size: 1.8em;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }

    p {
        margin-bottom: 1em;
        line-height: 1.6;
    }

    ul {
        margin-bottom: 1em;
        padding-left: 2em;
    }

    li {
        margin-bottom: 0.5em;
        line-height: 1.4;
    }

    /* Custom bullet points */
    ul {
        list-style-type: none;
    }

    ul li::before {
        content: "\2022";
        color: #007bff; /* Use your brand color */
        font-weight: bold;
        display: inline-block;
        width: 1em;
        margin-left: -1em;
    }
}