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

body {
    font-family: Georgia, serif;
    background-color: #F7F2EB;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 5rem; /* Added to prevent content from hiding behind the fixed header */
}

/* Header Styles for Desktop */
.header {
    background: linear-gradient(135deg, #334EAC 0%, #081F5C 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(8, 31, 92, 0.15);
    position: fixed; /* Ensures the header stays at the top of the viewport */
    top: 0;
    width: 100%;
    z-index: 1000; /* High z-index to ensure it's on top of all other content */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.iim-logo, .campusji-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #F7F2EB;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #D0E3FF;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: #7096D1;
    color: white;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.hamburger-menu .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Main content container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #081F5C 0%, #334EAC 100%);
    color: #F7F2EB;
    padding: 3rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(8, 31, 92, 0.15);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: #D0E3FF;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #7096D1;
    border-radius: 2px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: #F7F2EB;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #7096D1;
    text-decoration: underline;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: #F7F2EB;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #BAD6EB;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .social-links a {
        margin: 0;
    }
}


/* --- MOBILE-ONLY STYLES for Header --- */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #081F5C;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        padding: 1rem 0;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child a {
      border-bottom: none;
    }

    .hamburger-menu {
        display: flex;
    }
}
