:root {
    --bs-primary: #295f98; /* Blue */
    --bs-secondary: #cdc2a5; /* Gold */
    --bs-body-bg: #eae4dd; /* Off White */
    --bs-light-beige: #e1d7c6;
}

body {
    background-color: var(--bs-body-bg) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background-color: #1e4b7a !important;
}

.card-custom-blue {
    background: linear-gradient(135deg, #295f98 0%, #1e4b7a 100%) !important;
}

/* Stat-card gradients — same treatment as .card-custom-blue (solid gradient, white text,
   large faded icon), one distinct hue per card so they read apart at a glance. */
.card-custom-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
}
.card-custom-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
}
.card-custom-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
}
.card-custom-green {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}
.card-custom-red {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}
.card-custom-amber {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}
.card-custom-slate {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* Navbar Accent */
.navbar-brand-text {
    color: #295f98;
}

/* Let the program breakdown panel participate in its parent's flex-grow chain when
   expanded, so it fills available sidebar space and only scrolls internally when the
   list genuinely doesn't fit (min-height:0 is what allows a flex child to shrink below
   its content size instead of forcing the whole card to grow past its container). */
#programCollapse.show {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-grow: 1;
}

#map {
    /* No fixed height — fills whatever space is left via flex-grow-1 on its parents
       (body -> container -> row -> card -> card-body), so it adapts to the real
       screen height instead of a fixed vh guess leaving a gap on taller screens. */
    min-height: 340px;
    width: 100%;
    border-radius: 8px; /* Softer corners */
    border: 2px solid #CDC2A5; /* Gold Border */
}

.stats-card {
    transition: transform 0.2s;
}
.stats-card:hover {
    transform: translateY(-5px);
}

/* Legend control */
.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 1px solid #cdc2a5;
}
.legend {
    line-height: 18px;
    color: #555;
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }
}

/* Footer & Socials */
.social-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #f1f5f9;
    color: #15304e;
}
.social-btn:hover {
    transform: translateY(-3px);
    color: white;
}
.social-btn.instagram:hover {
    background: #e4405f;
}
.social-btn.linkedin:hover {
    background: #0077b5;
}
.social-btn.github:hover {
    background: #333;
}
.social-btn.email:hover {
    background: #ea4335;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Modal Customization */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
}
