/* Frontend Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

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

/* Top Bar */
.top-bar {
    font-size: 14px;
}

.top-bar a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Header */
header h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-item {
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px;
}

.slider-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Section Headings */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Faculty Cards */
.faculty-card {
    text-align: center;
}

.faculty-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 20px auto;
    border: 5px solid #f8f9fa;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Announcement Cards */
.announcement-card {
    border-left: 4px solid var(--primary-color);
}

.announcement-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Event Cards */
.event-card {
    display: flex;
    align-items: start;
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 20px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

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

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white !important;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-banner h1 {
    font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Stats Counter */
.stats-counter {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-item img {
        height: 300px;
    }

    .slider-caption h2 {
        font-size: 1.5rem;
    }

    .page-banner {
        padding: 40px 0;
    }

    .event-date {
        width: 60px;
        height: 60px;
    }

    .event-date .day {
        font-size: 1.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-primary-color {
    color: var(--primary-color);
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1);
}
