/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2C3E50;  /* Darker, richer text color */
    background-color: #F8F9FA;  /* Subtle off-white background */
    margin: 0;
    padding: 20px;
}

/* Layout */
.layout {
    display: flex;
    gap: 40px;  /* Increased spacing between nav and content */
    max-width: 1200px;
    margin: 0 auto;
}

/* Content area */
.content {
    flex: 1;
    max-width: 800px;
}

.container {
    background: white;
    padding: 48px;  /* Slightly more padding */
    border-radius: 16px;  /* Softer corners */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);  /* Subtle elevation */
}

/* Typography */
h1 {
    color: #722F37;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 1.2em;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(114, 47, 55, 0.2);  /* Softer border */
}

p {
    margin-bottom: 1.8em;
    font-size: 1.1em;
    color: #4A5568;  /* Slightly lighter than headings */
    line-height: 1.8;  /* Better readability */
}

strong, h2 {
    color: #722F37;
    font-size: 1.5em;
    font-weight: 600;
    display: block;
    margin: 2em 0 0.8em 0;
}

/* Navigation */
/* Navigation */
.nav {
    width: 180px;  /* Reduced from 220px */
    position: sticky;
    top: 20px;
    height: fit-content;
    margin-right: 20px;  /* Add explicit margin to prevent overlap */
}

.nav-button {
    display: block;
    width: 100%;
    padding: 10px 16px;  /* Reduced from 14px 24px */
    margin-bottom: 8px;  /* Reduced from 12px */
    background-color: white;
    border: 1px solid rgba(114, 47, 55, 0.2);
    color: #722F37;
    border-radius: 8px;  /* Reduced from 12px */
    font-size: 1rem;  /* Reduced from 1.1em */
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Layout - increase gap */
.layout {
    display: flex;
    gap: 48px;  /* Increased from 40px to ensure enough separation */
    max-width: 1200px;
    margin: 0 auto;
}
.nav-button:hover {
    background-color: rgba(114, 47, 55, 0.03);  /* Very subtle background */
    border-color: #722F37;
    color: #722F37;
    transform: translateY(-1px);  /* Slight lift effect */
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.08);
}

/* Feature cards */
.feature-card {
    margin-bottom: 2.5em;
    padding: 24px;
    border-radius: 12px;
    background-color: white;
    border-left: 3px solid #722F37;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.feature-card h2 {
    color: #722F37;
    margin-top: 0;
    font-size: 1.4em;
}

.feature-card p {
    margin: 0.8em 0 0;
    font-size: 1.1em;
}

/* Responsive design */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .container {
        padding: 24px;
    }

    .nav {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .nav-buttons {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-button {
        width: auto;
        white-space: nowrap;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    h1 {
        font-size: 2.2em;
    }
}
