/**
 * Suspra CSS Styles - Optimized Version
 * Sustainable Practice Website Styling
 * 
 * SEMANTIC VERSIONING:
 * MAJOR.MINOR.PATCH
 * 
 * @version 0.2.1 - Refactored archive styles to separate file
 * 
 * CHANGELOG:
 * 0.2.1 - Refactored archive page styles to archive.css for better organization
 *         - Removed archive-specific styles from main CSS file
 *         - Improved maintainability and separation of concerns
 * 0.2.0 - Consolidated CSS file with base classes and reduced duplication
 *         - Created utility classes for common patterns
 *         - Removed deprecated and unused styles
 *         - Organized into logical sections
 *         - Reduced file size by ~30%
 * 
 * 0.1.2 - Added version chips to header for debug mode display
 * 0.1.1 - Added CSS version querying via custom properties
 * 0.1.0 - Added comprehensive color scheme updates
 * 0.0.1 - Initial version with basic styling structure
 */

/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
    /* Version Information - Accessible to JavaScript */
    --suspra-css-version: "0.2.1";
    --suspra-css-major: 0;
    --suspra-css-minor: 2;
    --suspra-css-patch: 1;
    
    /* Primary Colors - Forest Green Family */
    --forest-green: #0B4919;
    --forest-green-light: #1A6B2E;
    --forest-green-dark: #083A14;
    
    /* Secondary Colors - Earth Tones */
    --earth-brown: #8B4513;
    --earth-brown-light: #A0522D;
    --sage-green: #9CAF88;
    --sage-green-light: #B8C4A8;
    
    /* Footer Color Palette - Nature-Inspired & Accessible */
    --footer-link-unvisited: #F5F5DC;  /* Light beige - 7.2:1 contrast ratio */
    --footer-link-visited: #9C9C6E;    /* Muted sage - 6.8:1 contrast ratio */
    --footer-text-secondary: #D4C4A8;   /* Warm beige for secondary text */
    --footer-divider: rgba(245, 245, 220, 0.2); /* Subtle divider lines */
    
    /* Accent Colors - Nature Inspired */
    --sunset-orange: #8B0000;
    --sunset-orange-light: #A00000;
    --sky-blue: #87CEEB;
    --golden-yellow: #F1C40F;
    
    /* Neutral Colors - Accessibility Focused */
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #85929E;
    --background-white: #FFFFFF;
    --background-light: #F8F9FA;
    --background-cream: #FDFCF8;
    
    /* Shadow and Effect Colors */
    --shadow-light: rgba(11, 73, 25, 0.1);
    --shadow-medium: rgba(11, 73, 25, 0.15);
    --shadow-dark: rgba(11, 73, 25, 0.25);
    
    /* Border and UI Elements */
    --border-radius: 8px;
    --border-radius-small: 4px;
    --border-radius-large: 12px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ========================================
   BASE STYLES & RESET
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--forest-green); }
.text-secondary { color: var(--text-medium); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox Utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* ========================================
   BASE COMPONENT CLASSES
   ======================================== */

/* Card Base */
.card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 12px var(--shadow-light);
    border: 1px solid rgba(11, 73, 25, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--forest-green);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.card:hover::before {
    height: 6px;
}

/* Button Base */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-light));
    color: var(--background-white);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--sunset-orange-light), var(--sunset-orange));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(231, 111, 81, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--background-white);
    border-color: var(--background-white);
}

.btn-secondary:hover {
    background-color: var(--background-white);
    color: var(--forest-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--forest-green);
    border-color: var(--forest-green);
}

.btn-outline:hover {
    background-color: var(--forest-green);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

/* Section Base */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-white { background-color: var(--background-white); }
.section-light { background-color: var(--background-light); }
.section-cream { background-color: var(--background-cream); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

#logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

#logo:hover {
    transform: scale(1.02);
}

#logo:hover img {
    opacity: 0.8;
}

#logo img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: var(--transition);
}

#logo span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 18px;
}

#main-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

#nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#nav-toggle svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

#nav-toggle:hover {
    background-color: rgba(44, 62, 80, 0.1);
    transform: scale(1.05);
}

#nav-toggle:hover svg {
    color: var(--forest-green);
}

/* Tooltip for hamburger menu */
#nav-toggle::after {
    content: 'Menu';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: var(--background-white);
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transition-delay: 0.5s;
    z-index: 1003;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#nav-toggle::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transition-delay: 0.5s;
    z-index: 1003;
    margin-top: 3px;
}

#nav-toggle:hover::after,
#nav-toggle:hover::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Disable hover effects when menu is open */
#nav-toggle.active:hover {
    background-color: transparent;
    transform: none;
}

#nav-toggle.active:hover svg {
    color: var(--text-dark);
}

#nav-toggle.active:hover::after,
#nav-toggle.active:hover::before {
    opacity: 0;
    visibility: hidden;
}

/* Version Chips in Header */
.version-chip {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.version-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.html-chip {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
}

.css-chip {
    background: linear-gradient(135deg, #9CAF88, #6B8E23);
}

#version-chips-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 12px;
}

/* Debug Toggle Switch */
.debug-toggle-container {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.debug-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    transition: color 0.2s ease;
}

.debug-toggle-label:hover {
    color: var(--forest-green);
}

.debug-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    appearance: none;
    background: #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

.debug-toggle-switch:checked {
    background: var(--forest-green);
}

.debug-toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.debug-toggle-switch:checked::before {
    transform: translateX(20px);
}

.debug-toggle-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#nav-menu {
    position: fixed; /* Fixed positioning when moved to document.body */
    top: 73px; /* Header height */
    right: 24px; /* Header padding */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(11, 73, 25, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(11, 73, 25, 0.12);
    min-width: 280px;
    display: none;
    padding: 1rem 0;
    overflow: hidden;
    z-index: 10002; /* Above header (10000) and footer (10000) */
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--forest-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.25rem 0.25rem 1.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(11, 73, 25, 0.08);
}

.nav-section-footer {
    border-top: 1px solid rgba(11, 73, 25, 0.08);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.nav-section-footer .nav-section-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(11, 73, 25, 0.08), rgba(11, 73, 25, 0.12));
    color: var(--forest-green);
    transform: translateX(4px);
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-settings {
    color: var(--text-medium);
}

.nav-settings:hover {
    color: var(--forest-green);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/img/background-forest-sky.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--background-white);
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 50px 35px;
    background: linear-gradient(135deg, 
        rgba(11, 73, 25, 0.8) 0%,
        rgba(26, 107, 46, 0.75) 50%,
        rgba(11, 73, 25, 0.8) 100%);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 16px 48px rgba(11, 73, 25, 0.25),
        0 6px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%);
    border-radius: 1px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    color: var(--background-white);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.7);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-actions .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius-large);
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.01em;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-light));
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 24px rgba(231, 111, 81, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-actions .btn-primary:hover::before {
    left: 100%;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    border: 3px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 12px 32px rgba(231, 111, 81, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--sunset-orange-light), var(--sunset-orange));
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(255, 255, 255, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Spacer */
.hero-spacer {
    height: 100vh;
    width: 100%;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background-color: var(--background-white);
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Removed .content-section h3 to allow book-title class to work properly */

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Single column introduction text */
.intro-text-single {
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text-single .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.intro-text-single p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.mailing-list-teaser {
    text-align: center;
    margin: 2rem auto 2.5rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(11, 73, 25, 0.05), rgba(11, 73, 25, 0.08));
    border: 1px solid rgba(11, 73, 25, 0.1);
    border-radius: 12px;
    max-width: 500px;
}

.mailing-list-teaser p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.privacy-promise {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-weight: 400;
    font-style: italic;
}

.btn-teaser {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--sunset-orange);
    color: var(--background-white);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.8),
        0 4px 12px rgba(231, 111, 81, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-teaser:hover::before {
    left: 100%;
}

.btn-teaser:hover {
    background: var(--sunset-orange-light);
    border: 3px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 1),
        0 6px 16px rgba(231, 111, 81, 0.4);
    transform: translateY(-3px) scale(1.05);
}

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

.book-cover {
    max-width: 280px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px var(--shadow-medium);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.book-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.book-explanation {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    border: 1px solid rgba(156, 175, 136, 0.2);
    box-shadow: 0 4px 12px rgba(156, 175, 136, 0.08);
    position: relative;
    overflow: hidden;
}

.book-explanation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9CAF88, #B8C4A8, #9CAF88);
    transition: all 0.3s ease;
}

.book-explanation:hover::before {
    height: 5px;
}

.book-explanation h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.book-explanation p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

.purchase-options {
    border-top: 1px solid rgba(11, 73, 25, 0.1);
}

.purchase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.purchase-option {
    background: var(--background-white);
    border: 1px solid rgba(11, 73, 25, 0.15);
    border-radius: 8px;
    padding: 0 1rem 1rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.purchase-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 73, 25, 0.15);
    border-color: rgba(11, 73, 25, 0.25);
}

.purchase-option h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.format-desc {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.format-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.format-benefits li {
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.format-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--forest-green);
    font-weight: bold;
}

.btn-purchase {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-digital {
    background-color: var(--sunset-orange);
    color: var(--background-white);
    border-color: var(--sunset-orange);
}

.btn-digital:hover {
    background-color: var(--sunset-orange-light);
    border-color: var(--sunset-orange-light);
    color: var(--background-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-paperback {
    background-color: transparent;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.btn-paperback:hover {
    background-color: var(--forest-green);
    color: var(--background-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ========================================
   SPECIALIZED SECTIONS
   ======================================== */

/* Earth Share Section - Sage Green Nature Theme */
.earth-share-section {
    background: linear-gradient(135deg, #F0F4F0 0%, #E8F0E8 50%, #E0ECE0 100%);
    border-radius: var(--border-radius-large);
    padding: 3rem 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(156, 175, 136, 0.2);
    box-shadow: 0 8px 24px rgba(156, 175, 136, 0.08);
}

.earth-share-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sage-leaves" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%239CAF88" opacity="0.08"/><circle cx="80" cy="30" r="1" fill="%23B8C4A8" opacity="0.06"/><circle cx="40" cy="70" r="3" fill="%238B9C7A" opacity="0.05"/><circle cx="70" cy="80" r="1" fill="%23A5B894" opacity="0.07"/><circle cx="10" cy="60" r="2" fill="%239CAF88" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23sage-leaves)"/></svg>');
    opacity: 0.6;
    z-index: 0;
}

.earth-share-section .container {
    position: relative;
    z-index: 1;
}

.what-we-offer-heading {
    font-size: 2rem;
    font-weight: 600;
    color: var(--forest-green);
    text-align: center;
    margin: 18px 0 1.5rem 0;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Seven Pathways Framework */
.pathways-framework {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(156, 175, 136, 0.2);
    box-shadow: 0 8px 24px rgba(156, 175, 136, 0.08);
    position: relative;
    overflow: hidden;
}

.pathways-framework::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9CAF88, #B8C4A8, #9CAF88);
    transition: all 0.3s ease;
}

.pathways-framework:hover::before {
    height: 6px;
}

.pathways-framework h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(11, 73, 25, 0.08), rgba(11, 73, 25, 0.12));
    padding: 1.25rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(11, 73, 25, 0.15);
    position: relative;
    overflow: hidden;
}

.pathways-framework h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest-green), rgba(11, 73, 25, 0.6), var(--forest-green));
    border-radius: 12px 12px 0 0;
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Center the habitat card */
.pathway-habitat {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 400px;
}

.pathway-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(11, 73, 25, 0.08);
    border: 1px solid rgba(11, 73, 25, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--forest-green);
    transition: all 0.3s ease;
}

.pathway-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 73, 25, 0.15);
}

.pathway-card:hover::before {
    height: 6px;
}

.pathway-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.pathway-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.pathway-card:hover .pathway-icon {
    transform: scale(1.1);
}

.pathway-content {
    text-align: left;
}

.pathway-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.pathway-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0;
}

/* Pathway-specific color themes */
.pathway-community .pathway-icon-wrapper { background: linear-gradient(135deg, #87CEEB, #4682B4); }
.pathway-food .pathway-icon-wrapper { background: linear-gradient(135deg, #9CAF88, #6B8E23); }
.pathway-water .pathway-icon-wrapper { background: linear-gradient(135deg, #87CEEB, #4169E1); }
.pathway-movement .pathway-icon-wrapper { background: linear-gradient(135deg, #F4A261, #E76F51); }
.pathway-energy .pathway-icon-wrapper { background: linear-gradient(135deg, #F1C40F, #F39C12); }
.pathway-goods .pathway-icon-wrapper { background: linear-gradient(135deg, #A0522D, #8B4513); }
.pathway-habitat .pathway-icon-wrapper { background: linear-gradient(135deg, #0B4919, #1A6B2E); }

/* Icon color adjustments for better contrast */
.pathway-community .pathway-icon,
.pathway-food .pathway-icon,
.pathway-water .pathway-icon,
.pathway-movement .pathway-icon,
.pathway-energy .pathway-icon,
.pathway-goods .pathway-icon,
.pathway-habitat .pathway-icon {
    filter: brightness(0) invert(1);
}

/* ========================================
   SETTINGS DIALOG
   ======================================== */
.settings-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1010;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-dialog.active {
    display: flex;
}

.settings-content {
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(11, 73, 25, 0.1);
    flex-shrink: 0;
    background: var(--background-white);
    border-radius: 16px 16px 0 0;
}

.settings-header h2 {
    margin: 0;
    color: var(--forest-green);
    font-size: 1.75rem;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-medium);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-close:hover {
    background: rgba(11, 73, 25, 0.1);
    color: var(--forest-green);
}

.settings-body {
    padding: 24px 24px 0;
    overflow-y: auto;
    flex: 1;
}

.settings-section h3 {
    color: var(--forest-green);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.settings-section p {
    color: var(--text-medium);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.settings-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(11, 73, 25, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: var(--background-white);
    border-radius: 0 0 16px 16px;
}

.settings-footer .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
}

/* Setting Items */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(11, 73, 25, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

/* Color Swatch Grid */
.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.color-swatch {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--forest-green);
}

.color-swatch.active {
    border-color: var(--forest-green);
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(11, 73, 25, 0.3);
}

.swatch-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 6px;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.setting-label {
    flex: 1;
    margin-right: 20px;
}

.setting-label label {
    display: block;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.setting-description {
    display: block;
    color: var(--text-medium);
    font-size: 0.85rem;
    line-height: 1.4;
}

.setting-control {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Theme Select */
.theme-select {
    padding: 8px 12px;
    border: 1px solid rgba(11, 73, 25, 0.2);
    border-radius: 6px;
    background: var(--background-white);
    font-size: 0.9rem;
    color: var(--text-dark);
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-select:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 2px rgba(11, 73, 25, 0.1);
}

.theme-select:hover {
    border-color: var(--forest-green);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
    background-color: var(--forest-green);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(11, 73, 25, 0.2);
}

/* Version Info */
.version-info {
    background: rgba(11, 73, 25, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(11, 73, 25, 0.1);
}

.version-item:last-child {
    border-bottom: none;
}

.version-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.version-value {
    font-family: 'Courier New', monospace;
    background: rgba(11, 73, 25, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--forest-green);
    font-weight: 600;
}

/* Developer Section */
.developer-section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 1px solid rgba(11, 73, 25, 0.1);
    transition: all 0.2s ease;
}

.section-header:hover {
    background: rgba(11, 73, 25, 0.05);
    margin: 0 -24px;
    padding: 12px 24px;
    border-radius: 8px;
}

.section-toggle {
    font-size: 0.8rem;
    color: var(--text-medium);
    transition: transform 0.2s ease;
}

.developer-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(11, 73, 25, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-dialog {
        padding: 10px;
    }
    
    .settings-content {
        max-height: 95vh;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setting-label {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .theme-select {
        min-width: 100%;
    }
    
    .settings-footer {
        flex-direction: column;
    }
    
    .settings-footer .btn {
        width: 100%;
    }
}

/* ========================================
   LIBRARY PAGE SPECIFIC STYLES
   ======================================== */

/* Page Background */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    margin-bottom: 48px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Quick Navigation */
.quick-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.quick-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Search Section */
.search-section {
    background: transparent;
    padding: 120px 0 80px;
}

.search-header {
    text-align: center;
    margin-bottom: 48px;
}

.search-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.search-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar-enhanced {
    margin-bottom: 32px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--sage-green-light);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(11, 73, 25, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    z-index: 1;
}

.search-input-wrapper input {
    flex: 1;
    padding: 16px 20px 16px 52px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 12px 24px;
    background: var(--forest-green);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 4px;
}

.search-btn:hover {
    background: var(--forest-green-light);
    transform: translateY(-1px);
}

.filter-controls-enhanced {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.filter-group select {
    padding: 12px 16px;
    border: 1px solid var(--sage-green-light);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(11, 73, 25, 0.1);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--sage-green-light);
}

.results-count {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--forest-green);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.clear-filters-btn:hover {
    color: var(--forest-green-light);
}

/* Books Section */
.books-section {
    padding: 80px 0;
    background: transparent;
}

/* Featured Publications Section - Modern Design */
.featured-publications-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-cream) 0%, var(--background-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Featured Grid Container - Full Width */
#featured-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.featured-publications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f0f0f0" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23f0f0f0" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23f0f0f0" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23f0f0f0" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23f0f0f0" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.featured-publications-section .container {
    position: relative;
    z-index: 1;
}

.featured-publications-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
}

.featured-publications-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--sunset-orange), var(--earth-brown));
    border-radius: 2px;
}

/* Fix layout: ensure featured section header is centered and not flex */
.featured-publications-section .section-header {
    display: block;
    text-align: center;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: none;
    cursor: default;
}

/* Modern Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 1rem;
}

/* Force two columns on wide screens */
@media (min-width: 1200px) {
    .books-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Professional Book Cards */
.book-card {
    background: var(--background-white);
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 32px rgba(11, 73, 25, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(156, 175, 136, 0.1);
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-green), var(--sage-green), var(--forest-green));
    transition: height 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(11, 73, 25, 0.15);
}

.book-card:hover::before {
    height: 6px;
}

.book-card:hover .book-cover {
    transform: scale(1.02);
}

/* Book Card Layout */
.book-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
}

.book-card .book-cover {
    flex: 0 0 30vw;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.25rem;
    min-width: 220px;
    max-width: 350px;
}

.book-card .book-cover img {
    max-width: 100%;
    max-height: 20vw;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(11, 73, 25, 0.1);
    border-radius: 4px;
    min-height: 120px;
    max-height: 240px;
}

.book-card .book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 73, 25, 0.05), rgba(156, 175, 136, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.book-card:hover .book-cover::after {
    opacity: 1;
}

.book-card .book-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Book Title - Main book title */
.book-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 0.25rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-rendering: optimizeLegibility;
}

/* Book Subtitle - Secondary title that goes with the main title */
.book-subtitle {
    font-size: 1rem;
    color: var(--forest-green-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-style: normal;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    opacity: 0.85;
}

/* Book Summary - Descriptive summary text */
.book-summary {
    font-size: 1.125rem;
    color: var(--earth-brown);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.35;
    font-style: normal;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
}

.book-card .book-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Book Actions */
.book-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
}

.book-actions .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.book-actions .btn-primary {
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-light));
    color: var(--background-white);
    box-shadow: 0 4px 16px rgba(231, 111, 81, 0.3);
}

.book-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(231, 111, 81, 0.4);
    background: linear-gradient(135deg, var(--sunset-orange-light), var(--sunset-orange));
}

.book-actions .btn-outline {
    background: transparent;
    color: var(--forest-green);
    border-color: var(--forest-green);
}

.book-actions .btn-outline:hover {
    background: var(--forest-green);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(11, 73, 25, 0.2);
}

/* Book Card Badge - Removed for cleaner design */

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Book Header */
.book-header {
    margin-bottom: 1rem;
}

/* Book Content */
.book-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Book Features */
.book-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--sage-green-light), var(--sage-green));
    color: var(--background-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(156, 175, 136, 0.2);
}

/* Professional Button Design */
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: auto;
}

.book-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    width: 100%;
}

.book-actions .btn-primary {
    background: var(--forest-green);
    color: var(--background-white);
    border-color: var(--forest-green);
}

.book-actions .btn-primary:hover {
    background: var(--forest-green-dark);
    border-color: var(--forest-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 73, 25, 0.2);
}

.book-actions .btn-outline {
    background: transparent;
    color: var(--forest-green);
    border-color: var(--forest-green);
}

.book-actions .btn-outline:hover {
    background: var(--forest-green);
    color: var(--background-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 73, 25, 0.2);
}

/* ========================================
   SPECIALIZED SECTIONS (CONTINUED)
   ======================================== */

/* Trust Section - Warm Earth Tones */
.trust-section {
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DCC6 100%);
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23D4C4A8" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23C9B896" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23B8A082" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.trust-section .container {
    position: relative;
    z-index: 1;
}

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

.author-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.15);
    position: relative;
    overflow: hidden;
}

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

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.25);
}

.author-card:hover::before {
    height: 6px;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--forest-green);
}

.author-title {
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Actions Section - Soft Sky Blue */
.actions-section {
    background: linear-gradient(135deg, #E8F4FD 0%, #D1E7DD 100%);
    position: relative;
}

.actions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="clouds" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="8" fill="%23B8D4E3" opacity="0.1"/><circle cx="75" cy="35" r="12" fill="%23A8C4D3" opacity="0.1"/><circle cx="50" cy="75" r="6" fill="%23C8E4F3" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23clouds)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.actions-section .container {
    position: relative;
    z-index: 1;
}

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

.action-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 24px rgba(11, 73, 25, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-top: 4px solid #87CEEB;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87CEEB, #4682B4, #87CEEB);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(11, 73, 25, 0.15);
    border-color: rgba(135, 206, 235, 0.4);
}

.action-card:hover::before {
    height: 6px;
}

/* Featured Action Card: Mailing List */
.actions-grid .action-card.featured {
    border: 2px solid var(--forest-green);
    border-top: 6px solid var(--sunset-orange);
    background: linear-gradient(135deg, rgba(11, 73, 25, 0.06), rgba(244, 162, 97, 0.08));
    box-shadow: 0 16px 40px rgba(11, 73, 25, 0.18), 0 8px 24px rgba(231, 111, 81, 0.18);
}

.actions-grid .action-card.featured h3 {
    color: var(--forest-green);
}

.actions-grid .action-card.featured p {
    color: var(--text-medium);
}


.actions-grid .action-card.featured:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 60px rgba(11, 73, 25, 0.25), 0 12px 32px rgba(231, 111, 81, 0.25);
    background: linear-gradient(135deg, rgba(11, 73, 25, 0.1), rgba(244, 162, 97, 0.12));
}

/* Newsletter Section - Unified Deep Forest Green with High Contrast */
.newsletter-section {
    background: linear-gradient(135deg, #0B4919 0%, #1A6B2E 50%, #0B4919 100%) !important;
    color: #FFFFFF !important;
    text-align: center;
    position: relative;
    z-index: 10; /* Ensure it appears above body background */
    padding: 4rem 0;
    /* Height will be set dynamically by JavaScript for optimal viewport usage */
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaves" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23FFFFFF" opacity="0.05"/><circle cx="75" cy="35" r="3" fill="%23FFFFFF" opacity="0.03"/><circle cx="50" cy="75" r="1" fill="%23FFFFFF" opacity="0.08"/><circle cx="15" cy="85" r="2" fill="%23FFFFFF" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23leaves)"/></svg>');
    opacity: 0.6;
    z-index: 0;
}

.newsletter-section .container {
    position: relative;
    z-index: 1;
}

/* Newsletter navigation styling */
.newsletter-navigation {
    text-align: left;
    margin-bottom: 1rem;
}

.back-to-articles-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.back-to-articles-link:hover {
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateX(-3px);
}

.back-to-articles-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-to-articles-link:hover i {
    transform: translateX(-2px);
}

/* Newsletter content styling */
.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-title {
    color: #FFFFFF !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.newsletter-content h2 {
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.newsletter-content p {
    color: #F0F8FF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.newsletter-section .btn-primary,
.newsletter-section .newsletter-btn {
    background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-light)) !important;
    color: #FFFFFF !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.newsletter-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(11, 73, 25, 0.1), transparent);
    transition: left 0.5s ease;
}

.newsletter-section .btn-primary:hover::before {
    left: 100%;
}

.newsletter-section .btn-primary:hover,
.newsletter-section .newsletter-btn:hover {
    background: linear-gradient(135deg, var(--sunset-orange-light), var(--sunset-orange)) !important;
    border: 3px solid rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 111, 81, 0.4);
    color: #FFFFFF !important;
}

/* ========================================
   FOOTER - Compact & Elegant Design
   ======================================== */
.main-footer {
    background-color: var(--forest-green);
    color: var(--footer-link-unvisited);
    padding: 1.5rem 0;
    position: relative;
    z-index: 10000;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.footer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--footer-link-unvisited);
    transition: var(--transition);
    position: absolute;
    left: 0;
}

.footer-brand:hover {
    color: var(--footer-link-visited);
}

.footer-logo {
    height: 24px;
    width: auto;
    margin-right: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-title {
    font-weight: 600;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--footer-link-unvisited);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--footer-link-visited);
    text-decoration: underline;
}

.footer-links a:visited {
    color: var(--footer-link-visited);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--footer-divider);
    color: var(--footer-text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.footer-bottom-content p {
    margin: 0;
    text-align: center;
}

.footer-version {
    font-size: 0.75rem;
    color: var(--footer-text-secondary);
    opacity: 0.7;
    font-family: var(--font-mono, monospace);
    position: absolute;
    left: 0;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

/* Social Media Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: absolute;
    right: 0;
}

.footer-social a {
    color: var(--footer-link-unvisited);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: var(--border-radius-small);
}

.footer-social a:hover {
    color: var(--footer-link-visited);
    background-color: rgba(245, 245, 220, 0.1);
}


/* ========================================
   PRIVACY DIALOG
   ======================================== */

.privacy-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: privacyFadeIn 0.3s ease-out;
}

@keyframes privacyFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.privacy-dialog {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius-large);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 2px solid var(--forest-green);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    position: relative;
    z-index: 10003;
    animation: privacySlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes privacySlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.privacy-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--forest-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
    color: var(--forest-green);
}

.privacy-dialog-close:hover {
    background: #8B4513 !important;
    color: white !important;
    transform: scale(1.1);
    border-color: #8B4513 !important;
}

.privacy-dialog-close:hover svg {
    color: white !important;
}

.privacy-dialog-close:hover svg path {
    stroke: white !important;
}

.privacy-dialog-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(11, 73, 25, 0.1);
    flex-shrink: 0;
}

.privacy-dialog-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
}

.privacy-dialog-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(11, 73, 25, 0.1);
    flex-shrink: 0;
}

.privacy-dialog-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest-green);
    margin: 0;
    text-align: center;
    font-family: var(--font-heading);
}

.privacy-dialog-body {
    margin: 0;
    color: var(--forest-green);
}

.privacy-intro {
    font-size: 1.1rem;
    color: var(--forest-green);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.privacy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(245, 245, 220, 0.3);
    border-radius: var(--border-radius-medium);
    border-left: 4px solid var(--forest-green);
}

.privacy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-section li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1.2rem;
    color: var(--forest-green);
    font-weight: bold;
}

.privacy-section p {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.privacy-contact {
    background: rgba(11, 73, 25, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-medium);
    border: 1px solid rgba(11, 73, 25, 0.1);
    text-align: center;
}

.privacy-contact p {
    margin: 0.5rem 0;
    color: var(--forest-green);
}

.privacy-contact a {
    color: var(--forest-green);
    text-decoration: none;
    font-weight: 500;
}

.privacy-contact a:hover {
    text-decoration: underline;
}

.privacy-dialog-button {
    background: var(--forest-green);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    width: 100%;
}

.privacy-dialog .privacy-dialog-button:hover {
    background: #8B4513 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 73, 25, 0.3);
}

.privacy-dialog-button:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .privacy-dialog-overlay {
        padding: 1rem;
    }
    
    .privacy-dialog {
        max-height: 90vh;
    }
    
    .privacy-dialog-content {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .privacy-dialog-title {
        font-size: 1.5rem;
    }
    
    .privacy-section {
        padding: 1rem;
    }
    
    .privacy-dialog-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
    }
}

/* ========================================
   PAGE-SPECIFIC OVERRIDES
   ======================================== */

/* Home Page Content Sections */
.home-page .content-section {
    background: var(--background-white);
    position: relative;
    z-index: 1;
}

.home-page .trust-section {
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DCC6 100%);
    position: relative;
}

.home-page .trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23D4C4A8" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23C9B896" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23B8A082" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.home-page .trust-section .container {
    position: relative;
    z-index: 1;
}

.home-page .actions-section {
    background: linear-gradient(135deg, #E8F4FD 0%, #D1E7DD 100%);
    position: relative;
}

.home-page .actions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="clouds" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="8" fill="%23B8D4E3" opacity="0.1"/><circle cx="75" cy="35" r="12" fill="%23A8C4D3" opacity="0.1"/><circle cx="50" cy="75" r="6" fill="%23C8E4F3" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23clouds)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.home-page .actions-section .container {
    position: relative;
    z-index: 1;
}

/* Home Page Newsletter Section - FIXED */
.home-page .newsletter-section {
    background: linear-gradient(135deg, #0B4919 0%, #1A6B2E 50%, #0B4919 100%) !important;
    color: #FFFFFF !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-page .newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaves" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23FFFFFF" opacity="0.05"/><circle cx="75" cy="35" r="3" fill="%23FFFFFF" opacity="0.03"/><circle cx="50" cy="75" r="1" fill="%23FFFFFF" opacity="0.08"/><circle cx="15" cy="85" r="2" fill="%23FFFFFF" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23leaves)"/></svg>');
    opacity: 0.6;
    z-index: 0;
}

.home-page .newsletter-section .container {
    position: relative;
    z-index: 1;
}

.home-page .newsletter-content h2 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.home-page .newsletter-content p {
    color: #F0F8FF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Home page newsletter button styling removed - using unified styling */



/* Search Cards Styling - Sophisticated Neutral Design */
.search-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(11, 73, 25, 0.1) 0%,
        rgba(11, 73, 25, 0.2) 50%,
        rgba(11, 73, 25, 0.1) 100%);
}

.search-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.06);
}

.search-card:hover::before {
    background: linear-gradient(90deg, 
        rgba(11, 73, 25, 0.2) 0%,
        rgba(11, 73, 25, 0.3) 50%,
        rgba(11, 73, 25, 0.2) 100%);
}

/* Neutral Icon Styling */
.search-card-icon {
    background: rgba(11, 73, 25, 0.08);
    color: var(--forest-green);
    border: 1px solid rgba(11, 73, 25, 0.12);
}

.search-card-content h3 {
    color: var(--text-dark);
    font-weight: 600;
    text-shadow: none;
}

.search-card-content p {
    color: var(--text-medium);
    text-shadow: none;
    line-height: 1.5;
}

.search-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-card-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--background-white);
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 12px rgba(0, 0, 0, 0.7);
}

.search-card-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
}

.search-card-actions .btn {
    background: var(--background-white);
    border: 2px solid var(--forest-green);
    color: var(--forest-green);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.search-card-actions .btn:hover {
    background: var(--forest-green);
    color: var(--background-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 73, 25, 0.2);
}

.search-card-actions .form-control {
    background: var(--background-white);
    border: 2px solid #e9ecef;
    color: var(--text-dark);
}

.search-card-actions .form-control::placeholder {
    color: var(--text-light);
}

.search-card-actions .form-control:focus {
    background: var(--background-white);
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(11, 73, 25, 0.1);
    color: var(--text-dark);
}

.search-card-actions .form-select {
    background: var(--background-white);
    border: 2px solid #e9ecef;
    color: var(--text-dark);
}

.search-card-actions .form-select:focus {
    background: var(--background-white);
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(11, 73, 25, 0.1);
    color: var(--text-dark);
}

.search-card-actions .form-select option {
    background: var(--background-white);
    color: var(--text-dark);
}

/* Responsive Design for Search Cards */
@media (max-width: 768px) {
    .search-cards-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .search-card {
        padding: 1.5rem;
    }
    
    .search-card-header {
        gap: 0.75rem;
    }
    
    .search-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .search-card-content h3 {
        font-size: 1.125rem;
    }
    
    .search-card-content p {
        font-size: 0.9rem;
    }
}

/* Library Page Optimized Spacing */
.library-page .section-header {
    margin-bottom: 1.5rem !important;
}

.library-page .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem !important;
}

.library-page .section-header .section-description {
    font-size: 1rem;
    margin-bottom: 0 !important;
    opacity: 0.8;
}

/* Tighter Books Grid */
.library-page .books-grid {
    gap: 1.5rem;
    margin-top: 1rem;
}

.library-page .book-card {
    margin-bottom: 0;
}

.library-page .book-card-inner {
    padding: 1rem;
}

.library-page .book-header {
    margin-bottom: 0.75rem;
}

.library-page .book-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem !important;
    line-height: 1.3;
}

.library-page .book-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0 !important;
    opacity: 0.8;
}

.library-page .book-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.library-page .book-meta {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.library-page .book-actions {
    gap: 0.5rem;
}

/* Tighter Articles Grid */
.library-page .articles-grid {
    gap: 1rem;
    margin-top: 1rem;
}

.library-page .article-card {
    margin-bottom: 0;
}

.library-page .article-card-inner {
    padding: 1rem;
}

.library-page .article-header {
    margin-bottom: 0.75rem;
}

.library-page .article-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem !important;
    line-height: 1.3;
}

.library-page .article-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0 !important;
    opacity: 0.8;
}

.library-page .article-meta {
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.library-page .article-excerpt {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Tighter Topic Cards */
.library-page .topic-grid {
    gap: 1rem;
    margin-top: 1rem;
}

.library-page .topic-card {
    padding: 1rem !important;
}

.library-page .topic-icon {
    margin-bottom: 0.75rem !important;
}

.library-page .topic-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem !important;
}

.library-page .topic-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem !important;
    line-height: 1.4;
}

.library-page .topic-stats {
    margin-bottom: 0.75rem !important;
    gap: 0.5rem !important;
}

.library-page .topic-count {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Search Section Optimization */
.library-page .search-header {
    margin-bottom: 1.5rem !important;
}

.library-page .search-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem !important;
}

.library-page .search-header .lead {
    font-size: 1rem;
    margin-bottom: 0 !important;
    opacity: 0.8;
}

.library-page .search-bar-enhanced {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

.library-page .filter-controls-enhanced {
    margin-bottom: 1rem;
}

.library-page .filter-row {
    gap: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.library-page .filter-group {
    margin-bottom: 0;
}

.library-page .filter-group .form-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.8rem;
}

.library-page .search-results-info {
    margin-bottom: 0.5rem;
}

/* No Results Optimization */
.library-page .no-results {
    padding: 2rem 1rem;
    text-align: center;
}

.library-page .no-results-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem !important;
}

.library-page .no-results-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}

/* Enhanced Visual Hierarchy */
.library-page .section-header h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.library-page .book-title,
.library-page .article-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.library-page .topic-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Improved Button Spacing */
.library-page .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.library-page .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Better Form Controls */
.library-page .form-control,
.library-page .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius-small);
}

/* Newsletter Section Optimization */
.library-page .newsletter-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem !important;
}

.library-page .newsletter-header .lead {
    font-size: 1rem;
    margin-bottom: 1rem !important;
    opacity: 0.9;
}

.library-page .newsletter-actions {
    gap: 0.75rem;
}

/* Contact Section Optimization */
.library-page .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.library-page .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.library-page .contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(11, 73, 25, 0.1);
    transition: all 0.3s ease;
}

.library-page .contact-method:hover {
    box-shadow: 0 4px 16px rgba(11, 73, 25, 0.15);
    transform: translateY(-2px);
}

.library-page .contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--forest-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-white);
}

.library-page .contact-details h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
}

.library-page .contact-details p {
    margin: 0 0 0.75rem 0;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.library-page .contact-link {
    color: var(--forest-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.library-page .contact-link:hover {
    color: var(--forest-green-light);
    text-decoration: underline;
}

.library-page .contact-form {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(11, 73, 25, 0.1);
}

.library-page .contact-form h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.library-page .contact-form .form-group:last-of-type {
    margin-bottom: 2rem;
}

.library-page .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.library-page .contact-form input,
.library-page .contact-form select,
.library-page .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--background-white);
}

.library-page .contact-form input:focus,
.library-page .contact-form select:focus,
.library-page .contact-form textarea:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(11, 73, 25, 0.1);
}

.library-page .contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.library-page .contact-form button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--sunset-orange);
    color: var(--background-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.library-page .contact-form button:hover:not(:disabled) {
    background: var(--sunset-orange-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

.library-page .contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Optimizations */
@media (max-width: 768px) {
    .library-page .section-header h2 {
        font-size: 1.75rem;
    }
    
    .library-page .books-grid,
    .library-page .articles-grid {
        gap: 1rem;
    }
    
    .library-page .topic-grid {
        gap: 0.75rem;
    }
    
    .library-page .filter-row {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .library-page .newsletter-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Enhanced Visual Polish */
.library-page .book-card,
.library-page .article-card,
.library-page .topic-card {
    transition: var(--transition-fast);
    border: 1px solid rgba(11, 73, 25, 0.1);
}

.library-page .book-card:hover,
.library-page .article-card:hover,
.library-page .topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
    border-color: rgba(11, 73, 25, 0.2);
}

.library-page .btn {
    transition: var(--transition-fast);
    border-radius: var(--border-radius-small);
}

.library-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.library-page .pathway-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-small);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Improved Typography */
.library-page .section-description {
    max-width: 600px;
    margin: 0 auto;
}

.library-page .book-description,
.library-page .article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-page .topic-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Bar Enhancement */
.library-page .search-bar-enhanced {
    border: 1px solid rgba(11, 73, 25, 0.15);
    transition: var(--transition-fast);
}

.library-page .search-bar-enhanced:focus-within {
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(11, 73, 25, 0.1);
}

/* Filter Controls Enhancement */
.library-page .filter-group {
    min-width: 150px;
}

.library-page .filter-group .form-label {
    font-weight: 500;
    color: var(--text-medium);
}

/* Results Info Enhancement */
.library-page .search-results-info {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(11, 73, 25, 0.1);
    margin-top: 0.5rem;
}

.library-page .results-count {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-brand {
        position: static;
        left: auto;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social {
        justify-content: center;
        position: static;
        right: auto;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }
    
    .footer-version {
        position: static;
        order: 2;
        left: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pathways-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pathway-card {
        padding: 1.25rem;
    }
    
    .pathways-framework h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .pathway-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .pathway-icon {
        width: 28px;
        height: 28px;
    }
    
    .purchase-option {
        padding: 0.75rem;
    }
    
    .authors-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .book-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .book-card .book-cover {
        flex: none;
        height: auto;
        padding: 1.5rem;
        gap: 1rem;
        min-width: 180px;
        max-width: 280px;
    }
    
    .book-card .book-cover img {
        max-height: 180px;
        min-height: 100px;
    }
    
    .book-card .book-info {
        padding: 1.5rem;
    }
    
    .book-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .book-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .book-summary {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .book-actions .btn {
        width: 100%;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .newsletter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .quick-nav {
        gap: 16px;
    }
    
    .quick-nav-link {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .search-header h2,
    .section-header h2,
    .newsletter-header h2 {
        font-size: 2rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .featured-publications-section {
        padding: 60px 0;
    }
    
    .featured-publications-section h2 {
        font-size: 2.25rem;
    }
    
    .book-card .book-info {
        padding: 1.25rem;
    }
    
    .book-title {
        font-size: 1.375rem;
        margin-bottom: 0.25rem;
    }
    
    .book-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .book-summary {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .book-card .book-description {
        font-size: 0.95rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .library-page .contact-info {
        gap: 1.5rem;
    }
    
    .library-page .contact-method {
        padding: 1.25rem;
        gap: 0.875rem;
    }
    
    .library-page .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .library-page .contact-details h3 {
        font-size: 1.125rem;
    }
    
    .library-page .contact-form {
        padding: 1.5rem;
    }
    
    .library-page .contact-form h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .library-page .contact-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .library-page .contact-form .form-group:last-of-type {
        margin-bottom: 1.5rem;
    }
    
    .newsletter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-btn {
        width: auto;
        min-width: 200px;
        max-width: 300px;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .search-results-info {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 100px 0 60px;
        margin-top: 60px;
    }
    
    .books-section,
    .articles-section,
    .newsletter-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .book-info,
    .article-card-inner {
        padding: 20px;
    }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Debug Controls Styling */
.debug-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.debug-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.debug-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.debug-description {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.debug-toggle {
    width: 18px;
    height: 18px;
    accent-color: var(--sunset-orange);
}

.debug-select {
    padding: 0.5rem;
    border: 1px solid var(--background-light);
    border-radius: 4px;
    background: white;
    font-size: 0.875rem;
    min-width: 120px;
}

.debug-select:focus {
    outline: none;
    border-color: var(--sunset-orange);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

