/* sticky footer */
html {
  height: 100%;
}

body {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Navbar item styles */
.navbar-nav .nav-link {
    color: #08044D;  /* Primary color for navbar items */
    font-weight: 400;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link i {
    color: #08044D;  /* Match icon color with text */
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #3c4f76;  /* Lighter blue on hover */
}

.navbar-nav .nav-link:hover i {
    color: #3c4f76;  /* Lighter blue on hover for icons */
}

/* Active state for current page */
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.active {
    color: #3c4f76 !important;
    font-weight: 700;
    position: relative;
}

.navbar-nav .nav-item.active .nav-link::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 4px;
    height: 2px;
    background-color: #3c4f76;
    border-radius: 2px;
}

.navbar-nav .nav-item.active .nav-link i,
.navbar-nav .nav-link.active i {
    color: #3c4f76 !important;
}

/* Custom styles for the footer */
body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
.container.mt-3 {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer styles */
footer {
    flex-shrink: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 1.5rem 0;
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
}

/* Ensure footer content is properly contained */
footer > .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer content layout */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Adjust footer layout for different screen sizes */
@media (max-width: 991.98px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    footer .nav {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    footer .nav-item {
        margin: 0.25rem 0.5rem;
    }
}

/* Footer link styles */
footer {
    --footer-text-color: #6c757d; /* Bootstrap's text-body-secondary color */
    color: var(--footer-text-color);
}

footer a,
footer .nav-link {
    color: var(--footer-text-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

footer a:hover,
footer .nav-link:hover {
    color: #495057; /* Slightly darker on hover */
    text-decoration: none;
}