/* Silver Medal - Main Styles */

/* Navbar styling - use transitions to prevent sudden size changes */
nav.navbar {
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 120px;
    padding: 20px;
}

nav.navbar.scrolled {
    max-height: 100px;
    padding: 10px;
}

/* Ensure smooth scrolling doesn't trigger layout shifts */
html {
    scroll-behavior: smooth;
}

/* Prevent content layout shift when scrolling */
body {
    min-height: 100vh;
}

/* Featured Links section centered heading */
.text-center {
    text-align: center;
}

/* Alert banners - ensure they don't shift other content */
.alert {
    margin: 0;
}

/* Improve card styling consistency */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Jumbotron responsive styling */
.jumbotron img {
    max-width: 100%;
    height: auto;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* News and ticker sections */
.news-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav.navbar {
        max-height: none;
        padding: 15px;
    }
    
    nav.navbar.scrolled {
        max-height: none;
        padding: 10px;
    }
}
