
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto; /* This will make the main content expand to fill available space */
}

footer {
    flex-shrink: 0; /* Prevents the footer from shrinking */
}

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

:root {
    --light-bg: #f8fafc;
    --lighter-bg: #ffffff;
    --card-bg: #ffffff;
    --primary: #0073bb;
    --primary-dark: #005d99;
    --accent: #009688;
    --text: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --success: #4caf50;
    --gradient-end: #e0e5eb;
    --darker-bg: #f0f4f8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(to bottom, var(--light-bg) 0%, #e5e9f0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}
/* Add specific styling for nav links in content header */
/* Content header - always dark like scrolled state */
.content-header {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Make content header consistent with scrolled state */
.content-header.scrolled {
    /* Keep the same background rather than changing */
    background-color: rgba(0, 0, 0, 0.7) !important;
}
/* Header styles - Updated for consistent transparency */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
}

.transparent-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.transparent-header.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.logo-text h1 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Logo and navigation text colors for transparent header */
.transparent-header .logo-text h1,
.transparent-header .logo-text p,
.transparent-header .nav-link {
    color: white;
}

/* Navigation styles */
nav {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 3px;
}

.nav-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary);
}

.transparent-header .nav-link.active {
    color: white;
}

.transparent-header .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link.active::after {
    width: 70%;
}

.transparent-header .nav-link.active::after {
    background-color: white;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.transparent-header .mobile-menu-btn {
    color: white;
}

/* Make space for the fixed header */
body {
    padding-top: 0px;
}

/* Remove padding for pages with hero sections */
.hero {
    margin-top: 0px;
}

/* Main content styles */
main {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, var(--light-bg) 0%, #e0e5eb 100%);
    background-attachment: fixed;
    margin-bottom: 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
}

section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
}

section:last-child {
    margin-bottom: 0;
}

section:nth-child(even) {
    background: linear-gradient(to bottom, rgba(245, 247, 250, 0.6) 0%, rgba(231, 235, 240, 0.6) 100%);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Feature boxes */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: linear-gradient(to bottom, #ffffff 0%, #f7f9fc 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.feature-img {
    height: 200px;
    background-color: var(--light-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.feature-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.feature-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-content h3 {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1.3rem;
}

/* Parallax section */
.parallax-section {
    position: relative;
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.parallax-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Footer styles */
footer {
    background-color: #0073bb;
    color: white;
    padding: 25px 0 15px;
    position: relative;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: white;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Social media links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Accent color dots */
.accent-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
}

.dot:nth-child(2) {
    opacity: 0.7;
}

.dot:nth-child(3) {
    opacity: 0.4;
}

/* Card hover effect */
.hover-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--card-bg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.hover-card-content {
    padding: 25px;
}

.hover-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* Animation for content */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fix for mobile view */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 4px;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 1001;
        min-width: 200px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        padding: 10px 20px;
        width: 100%;
        text-align: left;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    footer {
        padding: 20px 0 10px;
    }
    
    .footer-col h3 {
        margin-bottom: 8px;
    }
    
    .footer-col ul li {
        margin-bottom: 5px;
    }
}

/* Logo link style */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Department section */
.department-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.department-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.department-link:hover {
    opacity: 0.9;
    color: white;
}

.department-logo {
    height: 40px;
    max-width: 180px;
    margin-bottom: 6px;
    filter: brightness(0) invert(1);
}

.department-info {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments for department section */
@media (max-width: 768px) {
    .department-section {
        padding: 12px 0;
    }
    
    .department-logo {
        height: 35px;
    }
    
    .department-info {
        font-size: 0.8rem;
    }
}