/* --- modern_enhancements.css --- */

/* 1. TYPOGRAPHY & GENERAL STYLES */
:root {
    --bmu-purple: #800080;
    --bmu-dark-purple: #5a005a;
    --bmu-light-gray: #f8f9fa;
    --bmu-text-dark: #212529;
    --bmu-text-muted: #6c757d;
    --bmu-border-color: #dee2e6;
}

.section-title-modern {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title-modern h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bmu-text-dark);
    margin-bottom: 0.5rem;
}

.section-title-modern p {
    font-size: 1.1rem;
    color: var(--bmu-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. ENHANCED CONTENT CARD */
.content-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
}

.content-card-img-container {
    position: relative;
    overflow: hidden;
}

.content-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-card:hover .content-card-img {
    transform: scale(1.05);
}

.content-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--bmu-purple);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.content-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bmu-text-dark);
    margin-bottom: 0.5rem;
}

.content-card-title a {
    text-decoration: none;
    color: inherit;
}

.content-card-title a:hover {
    color: var(--bmu-purple);
}

.content-card-meta {
    font-size: 0.85rem;
    color: var(--bmu-text-muted);
    margin-bottom: 1rem;
}

.content-card-text {
    color: var(--bmu-text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.content-card-footer {
    padding: 0 1.5rem 1.5rem;
    border-top: none;
    background: none;
}

/* 3. EVENT CARD SPECIFIC STYLES */
.event-card-date {
    display: flex;
    align-items: center;
    background-color: var(--bmu-light-gray);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.event-card-date .day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bmu-purple);
    line-height: 1;
}

.event-card-date .month-year {
    margin-left: 0.75rem;
    line-height: 1.2;
}

.event-card-date .month {
    display: block;
    font-weight: 600;
}

/* 4. CONTACT PAGE STYLES */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: var(--bmu-purple);
    margin-right: 1.5rem;
    margin-top: 0.25rem;
}

/* --- MEGA MENU ENHANCEMENTS --- */
.navbar .dropdown-menu {
    background: white;
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 1rem 0;
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-out;
    min-width: 600px; /* Wider for two columns */
    max-height: 80vh;
    overflow-y: auto;
}

.navbar .dropdown-menu .container {
    padding: 0 1.5rem;
    width: 100%;
}

.navbar .dropdown-menu .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0;
}

.navbar .dropdown-menu .col-md-6 {
    padding: 0;
    width: 100%;
}

.dropdown-header {
    color: var(--bs-purple);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0 0.5rem 0;
    border-bottom: 1px solid rgba(106, 27, 154, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: normal;
}

.dropdown-item:hover {
    background-color: rgba(106, 27, 154, 0.05);
    color: var(--bs-purple);
}

.dropdown-item i {
    margin-right: 0.75rem;
    color: var(--bs-purple);
    width: 1.25rem;
    text-align: center;
}

/* Mobile menu adjustments */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        min-width: auto;
        width: calc(100% - 2rem);
        box-shadow: none;
        border-left: 3px solid var(--bs-purple);
        margin-left: 1rem;
    }
    
    .navbar .dropdown-menu .row {
        grid-template-columns: 1fr;
    }
}

/* Faculty mega menu */
.faculty-mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.faculty-mega-menu .department-preview {
    padding: 1rem;
    border-left: 3px solid var(--bmu-purple);
    transition: all 0.3s ease;
}

.faculty-mega-menu .department-preview:hover {
    background-color: var(--bmu-light-gray);
}

/* --- HEADER IMPROVEMENTS --- */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background-color: rgba(0,0,0,0.9);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Search bar in header */
.header-search {
    margin-left: 1rem;
    position: relative;
}

.header-search input {
    border-radius: 50px;
    padding-left: 2.5rem;
    width: 200px;
    transition: width 0.3s ease;
}

.header-search input:focus {
    width: 300px;
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bmu-text-muted);
}

/* --- FOOTER UPGRADES --- */
footer {
    background-color: #2a0845; /* Darker purple for better contrast */
    color: #f8f9fa;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #9c27b0; /* Accent purple */
}

footer a {
    color: #e9ecef;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-newsletter h6,
.footer-quick-contact h6 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

footer .btn-purple {
    background-color: #9c27b0;
    border-color: #9c27b0;
}

footer .btn-purple:hover {
    background-color: #7b1fa2;
    border-color: #7b1fa2;
}

footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer hr.bg-light {
    opacity: 0.1;
    margin: 2rem 0;
}

footer .text-md-end a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0;
}

footer .text-md-end a:hover {
    padding-left: 0;
    text-decoration: underline;
}

.footer-newsletter {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.footer-newsletter .form-control {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-quick-contact {
    background-color: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Search Results Styling */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    padding: 15px;
}

.search-category {
    margin-bottom: 15px;
}

.search-category h5 {
    color: var(--bs-purple);
    font-size: 1rem;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 5px 0;
}

.search-results a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
}

.search-results a:hover {
    background-color: #f5f5f5;
}

.search-item-type {
    display: inline-block;
    background-color: var(--bs-purple);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 10px;
}

.search-item-title {
    flex: 1;
}

.no-results, .search-error {
    color: #666;
    padding: 10px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}