/* Top Bar Styling */
.top-bar a {
    transition: opacity 0.2s ease-in-out;
    text-decoration: none;
}

.top-bar a:hover {
    opacity: 0.7;
    color: #e7f1ff !important; /* Light blue accent on hover */
}

/* Ensure the main navbar stays below the top bar when sticky */
.sticky-top {
    top: 0;
}

/* Adjust main content padding because of the taller header */
body {
    padding-top: 0; /* Removing default Yii2 padding to handle custom header */	
	display: flex;
    flex-direction: column;
}

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }

/* Link colors */
a { color: #1a4d8c; text-decoration: none; transition: 0.3s; }
a:hover { color: #0d3566; }

/* Background for sections */
.bg-light-blue { background-color: #e7f1ff; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
}
/* Push the footer to the bottom */
main {
    flex-shrink: 0;
}

.footer {
    margin-top: auto; /* This is the key 'sticky' logic */
    border-top: 4px solid #1a4d8c;
}

/* Hover effects for footer links */
.footer a:hover {
    color: #e7f1ff !important;
    text-decoration: underline !important;
}

.footer-social i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.footer-social i:hover {
    transform: scale(1.2);
}