/* High Contrast Mode */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast .header,
body.high-contrast .footer,
body.high-contrast .card,
body.high-contrast .publication-card,
body.high-contrast .research-card,
body.high-contrast .team-member {
    background-color: #000;
    border: 2px solid #fff;
}

body.high-contrast .btn-primary {
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
}

body.high-contrast .btn-outline-primary {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
}

body.high-contrast a {
    color: #fff;
    text-decoration: underline;
}

/* Font Size Adjustments */
body.font-small {
    font-size: 14px;
}

body.font-normal {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
}

.cookie-consent p {
    margin: 0;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}


/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .btn,
    .newsletter-section,
    .cta-section,
    .social-links,
    .cookie-consent {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 0.5rem;
    }
    
    .publication-card,
    .research-card,
    .team-member {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
}

/* Mobile-specific Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-counter {
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .publication-card,
    .research-card,
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Tablet-specific Adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .publication-card,
    .research-card {
        height: 100%;
    }
}

/* Large Desktop Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}