:root {
    --busl-blue: #007bff;
    --busl-maroon: #800000;
    --busl-orange: #A04000;
    --busl-golden: #ffcc00;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body { 
    font-family: 'Poppins', sans-serif; 
    background: #f4f7f6; 
    color: #333; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    margin: 0; /* Added to prevent default body overflow */
}

/* HERO SECTION */
.hero-header {
    background: var(--busl-orange);
    color: white;
    padding: 80px 0 120px;
    text-align: center;
}

/* FLOATING SEARCH BOX */
.search-container {
    max-width: 1000px;
    margin: -50px auto 50px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 10;
    /* Added box-sizing to prevent overflow when padding is applied */
    box-sizing: border-box; 
}

/* STAFF CARDS */
.staff-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.img-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #f8f9fa;
}

.img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.dept-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--busl-maroon);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.staff-name { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.staff-role { font-size: 12px; color: #666; margin-bottom: 20px; }

.view-btn {
    border: 1.5px solid var(--busl-maroon);
    color: var(--busl-maroon);
    border-radius: 30px;
    padding: 6px 25px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.view-btn:hover { background: var(--busl-maroon); color: white; }

/* MODAL CUSTOMIZATION */
.modal-content { border-radius: 25px; border: none; overflow: visible; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #f8f9fa; text-decoration: none; color: inherit; margin-bottom: 10px; transition: 0.2s; }
.contact-link:hover { background: #e9ecef; }
.contact-icon { background: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.main-profile-btn {
    background-color: var(--busl-maroon);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    transition: 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.main-profile-btn:hover { background-color: #a00000; color: white; transform: translateY(-2px); }

/* ==================== FOOTER STYLES ==================== */
.main-content-wrapper { flex: 1; } /* Pushes footer to the bottom */

.site-footer {
    background-color: #800000;
    color: #d1d5db;
    padding: 70px 0 0 0;
    font-size: 14px;
    margin-top: auto;
}

.site-footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--busl-maroon);
}

.site-footer p {
    color: #FFF;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: justify;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ffffff; text-decoration: none; transition: 0.3s ease; display: inline-block; }
.footer-links a:hover { color: #ffffff; transform: translateX(5px); }

.footer-contact i { color: var(--busl-maroon); font-size: 18px; width: 25px; }
.footer-contact li { margin-bottom: 15px; display: flex; align-items: flex-start; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}
.social-icons a:hover { background-color: var(--busl-maroon); transform: translateY(-3px); }

.footer-bottom {
    background-color: #800000;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
}

.filter-wrapper {
        background: #ffffff;
        border: 1px solid rgba(212, 175, 55, 0.4); /* Subtle gold border */
    }
    .btn-filter {
        border-radius: 50px;
        padding: 8px 24px;
        font-weight: 500;
        font-size: 0.95rem;
        color: #555;
        background: transparent;
        border: 1px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .btn-filter:hover {
        color: #800000;
        background: #fffcf5; /* Very subtle warm tint on hover */
    }
    .btn-filter.active {
        background-color: #800000; /* University Maroon */
        color: #ffffff;
        border-color: #800000;
        box-shadow: 0 4px 12px rgba(128, 0, 0, 0.25);
    }

/* ==================== MOBILE VIEW FIXES ==================== */
@media screen and (max-width: 768px) {
    /* Adjust Hero Section padding for smaller screens */
    .hero-header {
        padding: 60px 15px 90px;
    }

    /* Stack the search inputs vertically */
    .search-container {
        flex-direction: column;
        margin: -40px 15px 40px; /* Add side margins so it doesn't touch screen edges */
        padding: 15px;
    }

    /* Adjust staff card sizing */
    .staff-card {
        padding: 20px 15px;
    }

    /* Scale down images slightly to save space */
    .img-wrapper {
        width: 140px;
        height: 140px;
    }

    /* Adjust Footer spacing and alignment */
    .site-footer {
        padding: 50px 15px 0 15px;
    }
    
    .site-footer h5 {
        margin-top: 20px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding: 15px;
    }
}