/* Mobile Content Fixes */

@media (max-width: 768px) {
    /* Body padding for fixed header */
    body {
        padding-top: 70px;
    }
    
    /* Hero section improvements */
    .hero-section {
        padding: 40px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .highlight-text {
        display: block;
        margin-top: 5px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        padding: 14px 20px;
        font-size: 16px;
        text-align: center;
    }
    
    .btn-primary {
        background-color: #4f46e5;
    }
    
    .btn-secondary {
        background-color: #10b981;
    }
    
    .btn-outline {
        border: 1px solid #4f46e5;
        color: #4f46e5;
    }
    
    /* Section spacing */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }
    
    /* Comparison table improvements */
    .erp-comparison-section {
        padding: 40px 0;
    }
    
    .comparison-table-wrapper {
        margin: 20px -15px 0;
        border-radius: 0;
    }
    
    .comparison-table {
        min-width: 650px; /* Ensure it's scrollable but not too wide */
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background-color: white;
        z-index: 2;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }
    
    .comparison-table th.fatoorix-col {
        background-color: #4f46e5;
    }
    
    .comparison-table td.fatoorix-col {
        background-color: rgba(79, 70, 229, 0.03);
    }
    
    .comparison-table th:first-child.feature-category,
    .comparison-table td:first-child.feature-category {
        background-color: #f8fafc;
    }
    
    .comparison-cta {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .comparison-cta-text {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .comparison-cta-btn {
        padding: 12px 25px;
        font-size: 15px;
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }
    
    /* AI Features section */
    .ai-features-section {
        padding: 40px 0;
    }
    
    .ai-features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .ai-feature {
        padding: 20px;
    }
    
    .ai-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .ai-feature-content h3 {
        font-size: 18px;
    }
    
    .ai-feature-content p {
        font-size: 14px;
    }
    
    /* Video modal */
    .video-modal .video-container {
        width: 90%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .close-video {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* Add horizontal scroll indicator for tables */
    .comparison-table-wrapper::after {
        content: '← Scroll →';
        display: block;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        color: #6b7280;
        background-color: rgba(255, 255, 255, 0.8);
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .comparison-table {
        min-width: 550px; /* Slightly narrower for very small screens */
    }
}
