:root {
    --school-blue: #003366;
    --school-gold: #D4AF37;
    --school-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Header & Navigation */
.navbar {
    background-color: var(--school-blue) !important;
    border-bottom: 3px solid var(--school-gold);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--school-gold) !important;
}

.dropdown-menu {
    border-top: 3px solid var(--school-gold);
}

/* Titles */
h1, h2, h3 {
    color: var(--school-blue);
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background-color: var(--school-blue);
    border-color: var(--school-blue);
}

.btn-primary:hover {
    background-color: #002244;
    border-color: var(--school-gold);
}

/* Gallery Hover effect */
.card-img-top {
    transition: transform 0.5s;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}
.profile-card {
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}
.profile-card:hover {
    transform: translateY(-10px);
}
.message-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}
.faculty-section {
    background-color: #f4f7f6;
    padding: 60px 0;
}

.modern-card {
    background: #fff;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: none;
    overflow: hidden;
    position: relative;
}

/* Image Container */
.faculty-image-box {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.faculty-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Stylish Gradient Overlay */
.faculty-image-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* Hover Effects */
.modern-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12) !important;
}

.modern-card:hover img {
    transform: scale(1.1);
}

/* Content Area */
.faculty-details {
    padding: 20px;
    text-align: center;
    background: #fff;
    position: relative;
}

.faculty-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.faculty-designation {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.faculty-info-footer {
    background: #f8f9fa;
    padding: 12px;
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px solid #eee;
}

.carousel-caption h2
{
    color : white;
}