/* The Safeguard Hub - Custom Styles */

/* Animation for cookie popup */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #1e3a5f;
    outline-offset: 2px;
}

/* Skip link styling */
.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;
}

.focus\:not-sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Navigation dropdown */
.group:hover .group-hover\:block {
    display: block;
}

/* Print styles */
@media print {
    .quick-exit-btn,
    nav,
    footer,
    #cookie-banner {
        display: none !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Resource search highlight */
.resource-item.hidden {
    display: none;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}
