/* Additional custom styles */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
}

/* Slide transitions */
.slide {
    transition: opacity 0.5s ease-in-out;
}

/* Document item hover effect */
.doc-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* News article hover effect */
article:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Smooth transitions for buttons */
button {
    transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animation for slider */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide {
    animation: fadeIn 0.5s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Active navigation link */
.active-nav {
    color: #93c5fd !important; /* blue-200 */
    font-weight: 600;
}

/* Focus styles for accessibility */
button:focus, a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, .bg-gray-100, .bg-blue-50 {
        background-color: white !important;
        color: black !important;
    }
    
    .shadow-md, .shadow-lg {
        box-shadow: none !important;
    }
    
    button, .doc-item, .slide-indicator {
        display: none !important;
    }
}