/* Base Styles */
:root {
    --primary-color: #0A2A1B;
    --secondary-color: #FFFFFF;
    --accent-color: #D8E8D8;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.cta-button, .secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.cta-button {
    background-color: #1e7e34;
    color: var(--secondary-color);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.3);
}

.cta-button:hover {
    background-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.4);
}

.secondary-button {
    background-color: transparent;
    color: #1e7e34;
    border: 2px solid #1e7e34;
    font-weight: 500;
}

.secondary-button:hover {
    background-color: #1e7e34;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 126, 52, 0.3);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.main-nav {
    display: flex;
    margin-right: 2rem;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10rem 0 5rem;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 0.5rem;
}

.hero-text h1 span {
    display: block;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 500px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
}

.geometric-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--accent-color);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
    opacity: 0.3;
}

.geometric-overlay.reverse {
    top: -50px;
    bottom: auto;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

/* Value Proposition */
.value-proposition {
    background-color: var(--light-gray);
    text-align: center;
}

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

.value-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: var(--primary-color);
}

/* Book Contents */
.book-contents {
    background-color: var(--secondary-color);
}

.tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--medium-gray);
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.tab-button:hover,
.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.content-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-text ul li {
    position: relative;
    margin-bottom: 0.5rem;
    list-style-type: none;
}

.content-text ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

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

.geometric-shape {
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: var(--transition);
}

.geometric-shape:hover {
    transform: rotate(45deg);
}

/* Author Section */
.author {
    background-color: var(--light-gray);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.author-image {
    display: flex;
    justify-content: center;
}

.author-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-text h3 {
    color: var(--primary-color);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 5rem 0;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--light-gray);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
        margin-right: 0;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav li {
        margin: 0.75rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .geometric-shape {
        width: 200px;
        height: 200px;
    }
}

/* Book Page Specific Styles */
.book-page-container {
    display: flex;
    margin-top: 20px;
    gap: 20px; /* Adds space between outline and content */
}

.book-outline-panel {
    width: 300px; /* Fixed width for the outline panel */
    flex-shrink: 0; /* Prevents the panel from shrinking */
    height: calc(100vh - 100px); /* Adjust 100px based on your header/footer height */
    overflow-y: auto; /* Allows scrolling for the outline */
    position: sticky;
    top: 80px; /* Adjust based on header height */
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.book-outline-panel h2 {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.book-outline-panel h3 {
    font-family: 'Playfair Display', serif;
    color: #555;
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.book-outline-panel ul {
    list-style-type: none;
    padding-left: 0;
}

.book-outline-panel ul li a {
    text-decoration: none;
    color: #555;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    display: block;
    padding: 5px 0;
}

.book-outline-panel ul li a:hover,
.book-outline-panel ul li a.active-chapter-link {
    color: #007bff; /* Or your site's primary color */
    font-weight: 500;
}

.book-outline-panel ul ul {
    padding-left: 20px; /* Indent sub-items */
}

.book-outline-panel ul ul li a {
    font-size: 0.9em;
    color: #666;
}

.book-content-panel {
    flex-grow: 1; /* Allows content panel to take remaining space */
    padding-left: 20px;
}

.book-content-panel .chapter {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.book-content-panel .chapter:last-child {
    border-bottom: none;
}

.book-content-panel h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 20px;
}

.book-content-panel h3 {
    font-family: 'Playfair Display', serif;
    color: #444;
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.book-content-panel p,
.book-content-panel li {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.book-content-panel ul, .book-content-panel ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.book-content-panel strong {
    font-weight: 700;
}

/* Responsive adjustments for book page */
@media (max-width: 768px) {
    .book-page-container {
        flex-direction: column;
    }

    .book-outline-panel {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 20px;
        overflow-y: visible;
    }

    .book-content-panel {
        padding-left: 0;
    }
}
/* Download page styles */
.download-options {
    padding: 60px 0;
    text-align: center;
}

.download-options h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--text-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.option-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.option-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.option-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.option-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.download-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .download-options {
        padding: 40px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .option-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* FAQ Page Styles */
.faq-page {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.faq-page h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.faq-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.faq-sections {
    margin-bottom: 3rem;
}

.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #f1f3f4);
    border-radius: 12px;
    margin-top: 3rem;
}

.faq-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq-page {
        margin-top: 60px;
        padding: 0 15px;
    }
    
    .faq-page h1 {
        font-size: 2rem;
    }
    
    .faq-intro {
        font-size: 1rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
    
    .faq-question::after {
        right: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}
}
