:root {
    --bs-primary: #d4e4f1;
    --bs-1: #FFFFFF;
    --bs-2: #FCFCFC;
    --bs-3: #F8F8F8;
    --bs-4: #E1E6EE;
    --bs-5: #d4e4f1;
    --bs-6: #97bedd;
    --bs-7: #2c82a9;
    --bs-8: #244656;
    --bs-9: #12232b;
    --bs-10: #060c0e;
    --bs-primary-rgb: 0, 64, 133;
    --bs-secondary: #909399;
    --bs-accent-orange: #E6A23C;
    --bs-accent-red: #F56C6C;
    --bs-green: #41e25c;
}

/* Global Styles */
body {
    padding-top: 100px; /* Space for fixed header (Top Bar + Navbar) */
}

@media (max-width: 991px) {
    body {
        padding-top: 100px; /* Top Bar is hidden on mobile */
    }
}

/* Custom Primary Color Override */
.btn-primary {
    --bs-btn-bg: var(--bs-3);
    --bs-btn-border-color: var(--bs-3);
    --bs-btn-color: var(--bs-secondary);
    --bs-btn-hover-bg: var(--bs-7);
    --bs-btn-hover-border-color: var(--bs-7);
    --bs-btn-hover-color: #fff;
}

.text-primary {
    color: var(--bs-8) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-bs-7 {
    background-color: var(--bs-7) !important;
}

.bg-white-80 {
    background-color: rgba(255, 255, 255, 0.8) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active, .nav-link:hover {
    color: var(--bs-10);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.flex-end {
    justify-content: flex-end;
}

.margin-right-20 {
    margin-right: 20px;
}

.dropdown-width {
    width: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    margin: 20px;
    border-radius: 30px;
    padding: 60px 0;
    overflow: hidden; /* Ensure rounded corners clip background */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Page Header (Sub-pages) */
.page-header {
    margin: 20px;
    border-radius: 30px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section, .page-header {
        margin: 10px;
        border-radius: 15px;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Cards & Images */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Utility Classes */
.w-20 {
    width: 30px; /* Slightly wider for alignment */
    text-align: center;
    display: inline-block;
}

.text-justify {
    text-align: justify;
}

.hover-white:hover {
    color: white !important;
}

.text-grid-gap {
    display: grid;
    grid-gap: 10px;
}

/* Grayscale Hover Effect for Logos */
.grayscale-hover > div {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.6;
}

.grayscale-hover > div:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] .bg-primary {
    background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: #2b3035 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #212529;
    border-color: #373b3e;
}

[data-bs-theme="dark"] .text-black {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Darken hero bg in dark mode */
    z-index: 0;
}

[data-bs-theme="dark"] .bg-white-80 {
    background-color: rgba(43, 48, 50, 0.8) !important;
}

/* Custom Container Max Width for Larger Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* For 1920px+ screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1700px;
    }
}

@media (min-width: 2000px) {
    .container {
        max-width: 1900px;
    }
}
