/* --- Logo Size Controls --- */
.header-logo {
    max-height: 36px !important; /* Strict constraint for header navbar */
    height: auto;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-logo {
    max-height: 45px !important; /* Strict constraint for footer */
    height: auto;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* --- Root Variables & Base Styles --- */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-subtle: #e7f1ff;
    --dark-color: #1e293b;
    --body-bg: #f8fafc;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #0f172a;
    font-size: 0.85rem;
}

.top-bar a {
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--primary-color) !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- Header / Rounded Floating Navbar --- */
.header-wrapper {
    position: sticky;
    top: 10px;
    z-index: 1030;
}

.navbar-rounded {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.5rem 1.25rem;
}

.navbar-nav .nav-link {
    color: #334155;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-subtle);
}

/* --- Page Banner Header --- */
.page-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 24px 24px;
}

/* --- Card & Component Enhancements --- */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1) !important;
}

.quick-access-img {
    height: 180px !important;
    object-fit: cover;
    width: 100%;
}

.card-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.hover-white:hover {
    color: #ffffff !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .header-wrapper {
        top: 0;
    }
    
    .navbar-rounded {
        border-radius: 0 0 16px 16px;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }
}