/* Enhanced UI/UX for BMU Homepage - World-Class Transformation */
:root {
    --primary-color: #800080;
    --secondary-color: #6c757d;
    --accent-color: #6f42c1;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

/* Campus Gallery Carousel & Parallax Lightbox */
.campus-gallery-carousel {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.campus-gallery-img {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(128,0,128,0.08);
}
.campus-gallery-img:hover {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(128,0,128,0.18);
}
.gallery-lightbox-parallax {
    background: linear-gradient(120deg, #800080 0%, #222 100%);
    min-height: 70vh;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: parallaxIn 0.7s cubic-bezier(.4,2,.6,1);
}
@keyframes parallaxIn {
    0% { opacity: 0; transform: scale(0.95) translateY(40px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.gallery-lightbox-caption h4 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: -1px;
}
.modal-content.bg-transparent {
    background: transparent !important;
    box-shadow: none;
}
.btn-close-white {
    filter: invert(1);
}
.gallery-lightbox-caption {
    background: rgba(0,0,0,0.4);
    border-radius: 0 0 1rem 1rem;
    padding: 0.5rem 1rem 1rem 1rem;
}
.gallery-lightbox-parallax img {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border-radius: 1rem;
}

/* Accessibility Controls */
.accessibility-controls {
    background: #800080;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    margin-right: 12px;
    margin-top: 20px;
    gap: 0.5rem;
    z-index: 10000;
}

/* High Contrast Mode */
body.high-contrast {
    background: #111 !important;
    color: #fff !important;
}
body.high-contrast .bg-white,
body.high-contrast .bg-light,
body.high-contrast .card,
body.high-contrast .modal-content {
    background: #222 !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn-outline-dark {
    background: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
}
body.high-contrast .section-title h2,
body.high-contrast .section-title p {
    color: #fff !important;
}
body.high-contrast .highlight-box,
body.high-contrast .faculty-box,
body.high-contrast .award-box {
    background: #333 !important;
    color: #fff !important;
}
body.high-contrast .quick-link {
    background: #333 !important;
    color: #fff !important;
}

/* Animated Counters */
.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #800080;
    transition: color 0.3s;
}

/* Hero Section with Parallax Effect */
.hero-section.hero-parallax {
    position: relative;
    height: 90vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    overflow: hidden;
    z-index: 1;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 1s ease-in-out;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
    transition: opacity 0.5s ease;
}
.hero-section:hover .hero-overlay {
    opacity: 0.8;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    min-height: 400px;
    width: 100%;
    padding: 0 15px;
    text-align: center;
}
.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    animation: fadeInDown 1s ease-out;
    color: #fff !important;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
    color: #fff !important;
    max-width: 800px;
}
.hero-cta-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}
.hero-cta-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}
.hero-quick-action-bar {
    position: relative;
    margin-top: -30px;
    margin-bottom: 30px;
    z-index: 10;
}

.quick-action-box {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px;
    flex-wrap: wrap;
}
.quick-action-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.quick-action-item {
    flex: 1;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, transform 0.2s ease;
    border-radius: 10px;
    margin: 0 5px;
}
.quick-action-item:hover {
    color: #800080;
    transform: scale(1.05);
    background-color: rgba(128, 0, 128, 0.05);
}
.quick-action-icon {
    font-size: 1.8rem;
    color: #800080;
    transition: color 0.3s ease;
}
.quick-action-item:hover .quick-action-icon {
    color: #600060;
}
.quick-action-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Medical Imagery Showcase */
.medical-showcase {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background-color 0.5s ease;
}
.medical-showcase:hover {
    background-color: #f0f0f5;
}
.medical-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.medical-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.medical-img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.medical-card:hover .medical-img {
    transform: scale(1.1);
}
.medical-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(128, 0, 128, 0.8));
    transition: transform 0.3s ease;
    transform: translateY(50px);
    opacity: 0;
}
.medical-card:hover .medical-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Section Titles */
.section-title {
    margin-bottom: 50px;
    text-align: center;
    transition: transform 0.3s ease;
}
.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #800080;
    letter-spacing: -1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #800080;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.section-title:hover h2::after {
    width: 80px;
}
.section-title p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* General Modern Touches */
.highlight-box, .faculty-box, .award-box, .quick-link {
    border-radius: 1rem;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.highlight-box:hover, .faculty-box:hover, .award-box:hover, .quick-link:hover {
    box-shadow: 0 8px 24px rgba(128,0,128,0.15);
    transform: translateY(-6px) scale(1.03);
    background-color: rgba(128,0,128,0.03);
}
.quick-link {
    display: block;
    padding: 2rem 1rem;
    text-decoration: none;
    color: #800080;
    background: #f8f8ff;
}
.quick-link-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.quick-link:hover .quick-link-icon {
    transform: rotate(10deg) scale(1.1);
    color: #600060;
}

/* Responsive Tweaks */
@media (max-width: 767px) {
    .accessibility-controls { right: 0.5rem; top: 0.5rem; }
    .counter { font-size: 2rem; }
    .campus-gallery img { height: 90px; }
}
/* Define custom properties for colors */
:root {
    --primary-color: #800080; /* Purple */
    --secondary-color: #000080; /* Navy Blue */
    --dark-color: #333;
    --body-color: #666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for consistency */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--primary-color); /* Enforce deep purple color for all headings */
}

p {
    margin-bottom: 1rem;
    color: var(--body-color);
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    z-index: 1001;
}

/* Navigation */
.navbar {
    padding: 0.5rem 1rem;
    background: var(--primary-color) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    z-index: 1000;
}

/* Adjust main content */
main {
    margin-top: 0; /* No need for margin since navbar is not fixed */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ddd !important;
}

.dropdown-menu {
    background: var(--primary-color);
    border: none;
    border-radius: 0;
    padding: 0;
}

.dropdown-item {
    color: white;
    padding: 0.5rem 1.5rem;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 2rem;
    text-align: center;
    margin-top: 0; /* No need for margin since navbar is not fixed */
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    justify-content: center;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #ddd;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.sidebar {
    margin-bottom: 2rem;
}

.widget {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.widget ul li::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.widget ul li a {
    color: var(--body-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 0; /* No need for margin since navbar is not fixed */
}

.hero-default-bg, .hero-custom-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    padding: 0;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    min-height: 400px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
    color: #fff !important;
    text-align: center;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
    color: #fff !important;
    text-align: center;
}

.hero-content .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
    text-align: center;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Search Section */
.search-section {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: -60px;
    z-index: 3;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.search-section h3 {
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

/* Center the custom search section title */
.search-section .search-section-title {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 2.2rem;
}

/* Limit subheading to two lines, center, and expand width */
.search-section .search-subheading {
    margin-bottom: 25px;
    color: #666;
    text-align: center;
    font-size: 1.08rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.program-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.program-search-form .form-control,
.program-search-form .btn {
    height: 50px;
    border-radius: 5px;
}

.program-search-form .form-control {
    border: 1px solid #ced4da;
    padding: 0 20px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 128, 0.25);
}

.program-search-form .btn {
    font-weight: 600;
    font-size: 18px;
    min-width: 120px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.program-search-form .btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease;
}

.search-results:hover {
    opacity: 0.95;
}

/* Highlights Section */
.highlights-section {
    padding: 80px 0;
    background: white;
    transition: background-color 0.5s ease;
}

.highlights-section:hover {
    background-color: #f9f9ff;
}

.highlight-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: #e9ecef;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.highlight-box:hover .highlight-icon {
    transform: rotate(10deg) scale(1.1);
    background-color: rgba(128, 0, 128, 0.1);
}

.highlight-box h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color); /* Enforce deep purple color */
}

.highlight-box p {
    color: #666;
    margin-bottom: 0;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background-color 0.5s ease;
}

.news-section:hover {
    background-color: #f0f0f5;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color); /* Enforce deep purple color */
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-title h2:hover {
    transform: scale(1.05);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title h2:hover::after {
    width: 80px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.see-all {
    float: right;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}

.see-all:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    transform: translateX(5px);
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.news-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card h5 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color); /* Enforce deep purple color */
    flex: 0 0 auto;
    transition: color 0.3s ease;
}

.news-card:hover h5 {
    color: var(--secondary-color);
}

.news-card .card-text {
    color: #666;
    margin-bottom: 20px;
    flex: 1 0 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card .text-muted {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.news-card .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    flex: 0 0 auto;
    transition: color 0.3s ease, transform 0.2s ease;
}

.news-card .btn-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    transform: translateX(5px);
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: white;
    transition: background-color 0.5s ease;
}

.events-section:hover {
    background-color: #f9f9ff;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.event-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.event-card:hover .event-date {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.event-date .day {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-date .year {
    font-size: 0.8rem;
}

.event-card h5 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color); /* Enforce deep purple color */
    flex: 0 0 auto;
    transition: color 0.3s ease;
}

.event-card:hover h5 {
    color: var(--secondary-color);
}

.event-card .card-text {
    color: #666;
    margin-bottom: 15px;
    flex: 1 0 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.event-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease, transform 0.2s ease;
}

.event-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Research Highlights Section */
.research-section {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background-color 0.5s ease;
}

.research-section:hover {
    background-color: #f0f0f5;
}

.research-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.research-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.research-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.research-card h5 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color); /* Enforce deep purple color */
    flex: 0 0 auto;
    transition: color 0.3s ease;
}

.research-card:hover h5 {
    color: var(--secondary-color);
}

.research-card .card-text {
    color: #666;
    margin-bottom: 20px;
    flex: 1 0 auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.research-card .text-muted {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.research-card .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    flex: 0 0 auto;
    transition: color 0.3s ease, transform 0.2s ease;
}

.research-card .btn-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease;
}

.cta-default-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.cta-section:hover .cta-overlay {
    opacity: 0.7;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.cta-section:hover .cta-content {
    transform: scale(1.03);
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-content .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.3);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Quick Links Section */
.quick-links-section {
    padding: 80px 0;
    background: white;
    transition: background-color 0.5s ease;
}

.quick-links-section:hover {
    background-color: #f9f9ff;
}

.quick-link {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.quick-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

.quick-link-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.quick-link:hover .quick-link-icon {
    color: var(--secondary-color);
    transform: rotate(10deg) scale(1.1);
}

.quick-link h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.quick-link p {
    color: #666;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 60vh;
        padding-bottom: 40px;
    }
    
    .hero-content {
        position: static;
        height: auto;
        min-height: 300px;
        padding: 40px 0 30px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        margin-top: 10px;
        margin-bottom: 0;
        width: 90%;
        max-width: 320px;
        font-size: 1rem;
        padding: 12px 0;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }
    
    .timeline-item::after {
        left: 15px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
        left: -10px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
        left: -10px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-icon {
        left: 13px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-icon {
        left: 13px;
        right: auto;
    }
}

/* Profile Page Specific Styles */
.profile-section {
    background-color: #f8f9fa;
    padding: 2rem 0;
    min-height: 100vh;
}

.profile-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.profile-card-header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
}

.profile-card-header h2 {
    font-size: 1.75rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.profile-card-body {
    padding: 2rem;
}

.profile-photo-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.03);
}

.profile-info-table {
    margin-bottom: 0;
}

.profile-info-table th {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.75rem 1.5rem 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.profile-info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    color: var(--body-color);
}

.application-status-alert {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.application-status-alert h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.application-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.application-details-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.application-details-card h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-list li:last-child {
    border-bottom: none;
}

.document-badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
    border-radius: 50px;
}

.sidebar-widget {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
}

.sidebar-widget ul {
    padding-left: 0.5rem;
}

.sidebar-widget ul li {
    padding: 0.6rem 0;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sidebar-widget ul li:hover {
    border-left: 3px solid var(--primary-color);
    background-color: rgba(128, 0, 128, 0.05);
}

.sidebar-widget ul li::before {
    content: "\f0da";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Override Bootstrap button colors */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-purple {
    background-color: #800080;
    color: white;
    border: 1px solid #800080;
}
.btn-purple:hover {
    background-color: #6a006a;
    color: white;
}
.program-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.program-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.program-card .card-title a {
    color: var(--primary-dark);
    font-weight: 600;
}
.program-card .card-title a:hover {
    color: var(--primary-color);
}
.program-card .card-text {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #666;
}
.program-card .btn {
    margin-top: auto;
}
.program-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.program-header-wrapper {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}
.program-header-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-right: 20px;
}
.program-header-text h2 {
    color: var(--primary-dark);
    font-weight: 700;
}
.program-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}
.program-meta span {
    display: inline-block;
}
.program-content {
    line-height: 1.8;
}
.program-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}
.nav-tabs .nav-link {
    color: #333;
    background-color: #f1f1f1;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
}
.nav-tabs .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.tab-content {
    padding: 25px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
}
.sidebar .widget {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.sidebar .widget h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.table-hover tbody tr:hover {
    background-color: rgba(0, 105, 217, 0.05);
}

/* Why Choose Icon Styling */
.why-choose-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Why Choose Section Enhancements */
.why-choose-section {
    padding: 80px 0;
    background: white;
    transition: background-color 0.5s ease;
}

.why-choose-section:hover {
    background-color: #f9f9ff;
}

.why-choose-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-choose-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.15);
    background-color: rgba(128, 0, 128, 0.05);
}

.why-choose-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.5s ease;
}

.why-choose-box:hover::before {
    transform: scaleX(1.2);
}

.why-choose-box:hover .why-choose-icon {
    transform: rotate(5deg) scale(1.1);
    color: var(--secondary-color);
}

.why-choose-box h5 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.why-choose-box:hover h5 {
    color: var(--secondary-color);
}

.why-choose-box p {
    color: #666;
    margin-bottom: 0;
}

/* Testimonials Section Enhancements */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background-color 0.5s ease;
}

.testimonials-section:hover {
    background-color: #f0f0f5;
}

.testimonial-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 0, 128, 0.1);
    background-color: rgba(128, 0, 128, 0.03);
}

.testimonial-box::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    color: rgba(128, 0, 128, 0.1);
    transition: color 0.3s ease, transform 0.3s ease;
}

.testimonial-box:hover::before {
    color: rgba(128, 0, 128, 0.2);
    transform: scale(1.1);
}

.testimonial-box img {
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
}

.testimonial-box:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.testimonial-box blockquote {
    font-style: italic;
    color: #555;
    transition: color 0.3s ease;
}

.testimonial-box:hover blockquote {
    color: var(--primary-color);
}

/* Faculty Highlights Section Enhancements */
.faculty-section {
    padding: 80px 0;
    background: white;
    transition: background-color 0.5s ease;
}

.faculty-section:hover {
    background-color: #f9f9ff;
}

.faculty-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faculty-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.15);
    background-color: rgba(128, 0, 128, 0.05);
}

.faculty-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s ease;
}

.faculty-box:hover::after {
    width: 100%;
}

.faculty-box img {
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
}

.faculty-box:hover img {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.faculty-box h5 {
    transition: color 0.3s ease;
}

.faculty-box:hover h5 {
    color: var(--secondary-color);
}

/* Partnerships & Accreditations Section Enhancements */
.partnerships-section {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background-color 0.5s ease;
}

.partnerships-section:hover {
    background-color: #f0f0f5;
}

.partnerships-section .col-md-2 {
    transition: transform 0.3s ease;
}

.partnerships-section .col-md-2:hover {
    transform: scale(1.1);
}

.partnerships-section img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partnerships-section .col-md-2:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Rankings & Awards Section Enhancements */
.rankings-section {
    padding: 80px 0;
    background: white;
    transition: background-color 0.5s ease;
}

.rankings-section:hover {
    background-color: #f9f9ff;
}

.award-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.award-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.15);
    background-color: rgba(128, 0, 128, 0.05);
}

.award-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.5s ease;
}

.award-box:hover::before {
    transform: scaleX(1.2);
}

.award-box i, .award-box img {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    max-height: 80px;
}

.award-box:hover i, .award-box:hover img {
    transform: rotate(5deg) scale(1.1);
    color: var(--secondary-color);
}

.award-box h5 {
    transition: color 0.3s ease;
}

.award-box:hover h5 {
    color: var(--secondary-color);
}

/* Newsletter Subscription Section Enhancements */
.newsletter-section {
    padding: 80px 0;
    background: #f8f9fa;
    transition: background-color 0.5s ease;
}

.newsletter-section:hover {
    background-color: #f0f0f5;
}

.newsletter-form .form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 128, 0.25);
}

.newsletter-form .btn {
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: scale(1.05);
    background-color: var(--secondary-color);
}

/* Enhanced Form Styles */
.footer-newsletter .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer-newsletter .form-control,
.footer-quick-contact .form-control,
.footer-quick-contact textarea {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.footer-newsletter .form-control:focus,
.footer-quick-contact .form-control:focus,
.footer-quick-contact textarea:focus {
    border-color: #800080;
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 128, 0.25);
}

.footer-quick-contact textarea {
    min-height: 100px;
    resize: vertical;
}

.form-message .alert {
    padding: 8px 12px;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.btn-purple {
    background-color: #800080;
    border-color: #800080;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: #5a005a;
    border-color: #5a005a;
}
