/* Features Page Specific Styles */
body {
    background-color: #FAFAFA;
}

/* Main Layout */
main {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 0 20px; /* Added 80px top padding to account for sticky navbar */
    gap: 40px;
    min-height: calc(100vh - 80px); /* Ensure main takes up viewport height */
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    padding-top: 20px;
    flex-shrink: 0;
}

.sidebar-nav {
    position: sticky;
    top: 90px; /* Adjusted for navbar height plus some space */
}

.sidebar-link {
    display: block;
    padding: 12px 20px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #F0F0F0;
    color: #0066FF;
    text-decoration: none;
}

.sidebar-link.active {
    background: #E6F0FF;
    color: #0066FF;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 0 80px; /* Removed top padding as main already has it */
    max-width: 900px; /* Added max-width for better readability */
}

/* Features Header */
.features-header {
    margin-bottom: 60px;
}

.features-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Feature Sections */
.feature-section {
    display: flex;
    gap: 40px;
    margin-bottom: 120px;
    align-items: flex-start;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-icon {
    flex-shrink: 0;
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #0066FF;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.feature-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.feature-content.full-width {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Feature Illustrations */
.feature-illustration {
    margin-top: 2rem;
}

.feature-illustration.centered {
    display: flex;
    justify-content: center;
}

.feature-illustration img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* Features CTA */
.features-cta {
    text-align: center;
    padding: 80px 40px;
    margin-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
}

.features-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.features-cta p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.features-cta .metrics {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0066FF;
    display: block;
}

.features-cta .btn-primary {
    font-size: 1.125rem;
    padding: 15px 40px;
}

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

/* Navigation Active State */
.nav-links a.active {
    color: #0066FF;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
        padding-top: 60px; /* Reduced padding on mobile */
    }
    
    .sidebar {
        width: 100%;
        padding-top: 20px;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        position: static;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 2rem;
    }
    
    .sidebar-link {
        white-space: nowrap;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .features-header h1 {
        font-size: 2.5rem;
    }
    
    .feature-content h2 {
        font-size: 1.75rem;
    }
}