/* --- Brand & Theme Overrides --- */
:root {
    --bs-primary: #007bff;
    --bs-success: #28a745;
    
    /* 1. Deepen the default "light" background to a cool, icy blue-gray */
    /* This replaces Bootstrap's default light gray (#f8f9fa) with #eef4fa */
    --bs-light-rgb: 238, 244, 250; 
    
    /* 2. Apply this cool background to the whole body by default */
    --bs-body-bg-rgb: var(--bs-light-rgb); 
}

/* --- Contrast Enhancements --- */

/* Navbar: Stronger separation from white header sections below it */
.navbar {
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.05) !important;
}

/* Cards: Add a subtle blue-tinted border and shadow so they pop off the backgrounds */
.card {
    border: 1px solid rgba(0, 123, 255, 0.1) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04), 0 2px 5px rgba(0, 123, 255, 0.04) !important;
}

/* Card Hover Animation: Base Transition */
.custom-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Deepen the blue shadow on hover ONLY for devices with a mouse */
@media (hover: hover) and (pointer: fine) {
    .custom-card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 123, 255, 0.1) !important; 
    }
}

/* --- Tweak the form switch color to match brand --- */
.form-switch .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* --- Modal lightbox image sizing --- */
#lightboxImage {
    max-height: 85vh;
    width: auto;
}

/* --- Responsive Carousel Sizing --- */

/* Default Desktop Heights to prevent carousel jumping */
.carousel-img-lg {
    height: 500px;
    cursor: pointer;
}
.carousel-img-sm {
    height: 350px;
    cursor: pointer;
}

/* On tablets and mobile, remove the fixed height so the grey box hugs the image */
@media (max-width: 991px) {
    .carousel-img-lg, 
    .carousel-img-sm {
        height: auto;
    }
}