/* Resources Page Styles */

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

/* Offset for anchor links to account for fixed header */
:target {
    scroll-margin-top: 120px; /* Adjust this value based on your header height */
}

/* Additional offset for admin bar */
.admin-bar :target {
    scroll-margin-top: 160px; /* Increased offset when admin bar is visible */
}

/* Specific offset for resources page headings */
#resources-content h2:target {
    scroll-margin-top: 140px;
}

.admin-bar #resources-content h2:target {
    scroll-margin-top: 180px;
}

/* Ensure proper spacing for sticky navigation */
/* .sticky {
    position: sticky;
    top: 0;
    z-index: 10;
} */

/* Responsive adjustments */
@media (max-width: 768px) {
    :target {
        scroll-margin-top: 100px;
    }
    
    .admin-bar :target {
        scroll-margin-top: 140px;
    }
    
    #resources-content h2:target {
        scroll-margin-top: 120px;
    }
    
    .admin-bar #resources-content h2:target {
        scroll-margin-top: 160px;
    }
}

/* Smooth transition for navigation links */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Active state for navigation links */
.nav-link.active {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
} 