/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 10px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Faculty Section */
.faculty-section {
    padding: 80px 0;
    background-color: #fff;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.faculty-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.faculty-img {
    height: 380px;
    overflow: hidden;
}

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

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

.faculty-info {
    padding: 25px;
}

.faculty-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.faculty-department {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.faculty-bio {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.faculty-social {
    display: flex;
    gap: 15px;
}

.faculty-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f2f6;
    color: #3498db;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faculty-social a:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-3px);
}

/* Activities Section */
.activities-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.activity-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.activity-card:hover .activity-overlay {
    transform: translateY(0);
}

.activity-overlay h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-main {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    transform: translateY(-5px);
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #3498db;
    border-radius: 8px;
}

.thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    text-align: center;
    padding: 15px;
}

.gallery-caption h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .gallery-main img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .faculty-grid, .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-main img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .faculty-grid, .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        grid-template-columns: 1fr;
    }
    
    .thumbnail img {
        height: 150px;
    }
    
    .faculty-section, .activities-section, .gallery-section {
        padding: 50px 0;
    }
}