/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
}

/* Header styles */
header {
    background: linear-gradient(to bottom, #000066, #000033);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-left {
    display: flex;
    align-items: center;
}

.logo-left img {
    height: 80px;
    margin-right: 1rem;
}

.dept-text h2 {
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.dept-text p {
    font-size: 0.9rem;
    color: #f0f0f0;
}

.logo-right img {
    height: 80px;
}

.college-name {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Navigation styles */
.main-nav {
    background-color: #000033;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.main-nav li {
    margin: 0 1rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffd700;
}

/* Main content styles */
main {
    display: flex;
    padding: 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.photo-placeholder {
    border: 2px solid #ccc;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.main-content {
    flex-grow: 1;
}

.featured-image {
    width: 100%;
    height: 400px;
    background-image: url('../images/campus.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Social links */
.social-links {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 51, 0.9);
    padding: 1rem;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
}

.social-links a {
    display: block;
    color: white;
    margin: 0.5rem 0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd700;
}

/* News gallery */
.news-gallery {
    padding: 2rem;
    background-color: white;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Footer styles */
footer {
    background-color: #000033;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffd700;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.certifications img {
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.certifications img:hover {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
        margin: 1rem;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .social-links {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-left {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    .college-name {
        font-size: 2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-nav li {
        margin: 0.5rem 0;
    }
    
    .certifications {
        gap: 1rem;
    }
    
    main {
        padding: 1rem;
    }
}
