/* Additional styles for optimizations */

/* Image optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Performance optimizations */
.lazy-load {
    transition: opacity 0.3s;
    opacity: 0;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .tab-flex {
        flex-direction: column;
    }
    
    .tab-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Research Digest Service specific styles */
.research-digest-icon {
    max-height: 60px;
    margin-bottom: 15px;
}

.research-digest-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.research-feature {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.research-feature h4 {
    color: #1a3b5d;
    margin-bottom: 10px;
}

/* GDPR compliance styles */
.gdpr-link {
    color: #4CAF50;
    text-decoration: underline;
}

.privacy-notice {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 14px;
}

/* Form submission styles */
.form-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.form-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

/* Accessibility improvements */
:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print styles */
@media print {
    header, footer, .hero-buttons, .contact-form-container, .cookie-notice {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}
