/* Main Styles */
:root {
    /* @tweakable primary color scheme - changed to green and golden */
    --primary-color: #228B22;
    --secondary-color: #DAA520;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    /* @tweakable golden accent color */
    --golden-color: #FFD700;
    /* @tweakable dark green color */
    --dark-green: #006400;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="60" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Stats Cards */
.stat-card {
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card h3 {
    /* @tweakable animation duration for counter */
    animation: countUp 2s ease-out;
    font-size: 2.5rem;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Faculty Cards */
.faculty-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

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

.faculty-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-avatar {
    transform: scale(1.1);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

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

.news-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-top: 5px;
    width: 20px;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-green));
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--dark-green), var(--primary-color));
}

/* @tweakable slide banner styling */
.slide-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* @tweakable banner height */
    height: 80px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* @tweakable slide transition duration */
    transition: opacity 0.8s ease-in-out;
    transform: translateX(100%);
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.banner-content {
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.banner-content h2 {
    /* @tweakable banner title font size */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    /* @tweakable banner subtitle font size */
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.banner-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    /* @tweakable banner dot size */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active,
.banner-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* @tweakable faculty view all button styling */
#view-all-faculty-btn {
    /* @tweakable button transformation on hover */
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#view-all-faculty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

/* @tweakable faculty grid expanded state */
.faculty-grid-expanded .faculty-card {
    /* @tweakable animation delay for staggered effect */
    animation: slideInUp 0.6s ease-out;
}

.faculty-grid-expanded .faculty-card:nth-child(1) { animation-delay: 0.1s; }
.faculty-grid-expanded .faculty-card:nth-child(2) { animation-delay: 0.2s; }
.faculty-grid-expanded .faculty-card:nth-child(3) { animation-delay: 0.3s; }
.faculty-grid-expanded .faculty-card:nth-child(4) { animation-delay: 0.4s; }
.faculty-grid-expanded .faculty-card:nth-child(5) { animation-delay: 0.5s; }
.faculty-grid-expanded .faculty-card:nth-child(6) { animation-delay: 0.6s; }

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

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
        /* @tweakable mobile hero padding */
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .faculty-avatar {
        width: 100px;
        height: 100px;
    }
    
    .slide-banner {
        /* @tweakable mobile banner height */
        height: 60px;
    }
    
    .banner-content h2 {
        /* @tweakable mobile banner title size */
        font-size: 1.2rem;
    }
    
    .banner-content p {
        /* @tweakable mobile banner subtitle size */
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin/Faculty Login Buttons */
.navbar-nav .nav-link:last-child {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

/* @tweakable admin dropdown menu styling */
.admin-dropdown {
    color: var(--golden-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-dropdown:hover {
    color: white !important;
    background: linear-gradient(45deg, var(--primary-color), var(--dark-green));
    border-radius: 5px;
}

.admin-menu {
    /* @tweakable admin menu width and styling */
    min-width: 280px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.2);
    background: white;
}

.admin-menu .dropdown-header {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-green));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    margin: 0.5rem;
    padding: 0.75rem 1rem;
}

.admin-menu .dropdown-item {
    /* @tweakable admin menu item styling */
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-weight: 500;
}

.admin-menu .dropdown-item:hover:not(.disabled) {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateX(5px);
}

.admin-menu .dropdown-item.disabled {
    color: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

.admin-menu .dropdown-item.disabled:hover {
    background: transparent;
    transform: none;
}

/* @tweakable faculty dropdown menu styling */
.faculty-dropdown {
    color: var(--secondary-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faculty-dropdown:hover {
    color: white !important;
    background: linear-gradient(45deg, var(--secondary-color), var(--golden-color));
    border-radius: 5px;
}

.faculty-menu {
    /* @tweakable faculty menu width and styling */
    min-width: 280px;
    border: 2px solid var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.2);
    background: white;
}

.faculty-menu .dropdown-header {
    background: linear-gradient(45deg, var(--secondary-color), var(--golden-color));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    margin: 0.5rem;
    padding: 0.75rem 1rem;
}

.faculty-menu .dropdown-item {
    /* @tweakable faculty menu item styling */
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-weight: 500;
}

.faculty-menu .dropdown-item:hover:not(.disabled) {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateX(5px);
}

.faculty-menu .dropdown-item.disabled {
    color: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

.faculty-menu .dropdown-item.disabled:hover {
    background: transparent;
    transform: none;
}

/* @tweakable dropdown divider styling */
.admin-menu .dropdown-divider,
.faculty-menu .dropdown-divider {
    border-top: 2px solid #e9ecef;
    margin: 0.5rem;
}

/* @tweakable dropdown animation */
.dropdown-menu {
    /* @tweakable dropdown entrance animation */
    animation: dropdownSlide 0.3s ease-out;
    transform-origin: top;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer */
footer {
    margin-top: 4rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* @tweakable language switcher styles */
.language-switcher {
    background: var(--golden-color);
    border-radius: 20px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.language-switcher .lang-btn {
    background: transparent;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    color: var(--dark-green);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-switcher .lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.language-switcher .lang-btn:hover {
    background: var(--primary-color);
    color: white;
}