/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-image: url('images/background.jpg'); /* Background image */
    background-size: cover; /* Cover the entire page */
    background-attachment: fixed; /* Fixed background */
    background-position: center; /* Center the background */
}
.example {
    -webkit-transition: all 0.3s ease; /* Chrome/Safari */
    -moz-transition: all 0.3s ease; /* Firefox */
    -o-transition: all 0.3s ease; /* Opera */
    transition: all 0.3s ease; /* Standard */
}

/* Top Navigation Menu */
.top-nav {
    background-color: #505C45; /* Green background for the menu */
    padding: 0.5rem 0;
    position: sticky; /* Make the menu stick to the top */
    top: 0;
    z-index: 1000; /* Ensure it stays above other content */
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav ul li {
    margin: 0.5rem; /* Add spacing between menu items */
}

.top-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s ease;
}

.top-nav ul li a:hover {
    background-color: #555; /* Hover effect */
}

/* Header Styles */
header {
    background-color: #e5d5ba; /* Light sand color */
    color: #000; /* Black text for contrast */
    text-align: center;
    padding: 1rem 0;
}

.header-image img {
    width: 100%;
    max-height: 300px; /* Adjust height as needed */
    object-fit: cover; /* Ensure the image covers the area */
}

header h1 {
    margin: 0;
    padding: 1rem 0;
}

@font-face {
    font-family: 'CustomFont';
    src: url('fonts/custom-font.woff2') format('woff2'),
         url('fonts/custom-font.woff') format('woff');
}
/* Main Content Styles */
main {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Image Gallery Styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-gallery img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 0.5rem;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    z-index: 1000; /* Ensure it's on top */
    text-align: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #ccc;
}

/* Institutions Section */
.institution {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.institution img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

/* Publications List Styles */
.publication-list {
    list-style-type: none;
    padding: 0;
}

.publication-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    border-left: 4px solid #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.publication-list li strong {
    color: #333;
}

.publication-list li a {
    color: #0066cc;
    text-decoration: none;
}

.publication-list li a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: #736A62; /* Dark gray */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    /* Adjust navigation menu for smaller screens */
    .top-nav ul {
        flex-direction: column; /* Stack menu items vertically */
        align-items: center; /* Center-align items */
    }

    .top-nav ul li {
        margin: 0.25rem 0; /* Reduce spacing between items */
    }

    /* Adjust header image height */
    .header-image img {
        max-height: 200px; /* Reduce height for smaller screens */
    }

    /* Adjust main content padding */
    main {
        padding: 1rem;
        margin: 1rem;
    }

    /* Adjust footer padding */
    footer {
        padding: 0.5rem 0;
    }

    /* Adjust image gallery for smaller screens */
    .image-gallery img {
        width: 100%; /* Full width for mobile */
    }
	    .content-wrapper {
        flex-direction: column; /* Stack text and slideshow vertically */
    }

    .text-content, .slideshow-container {
        max-width: 100%; /* Full width for mobile */
    }
}

/* Content Wrapper for Flexbox Layout */
.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem; /* Space between text and slideshow */
    align-items: flex-start; /* Align items to the top */
}

/* Text Content (Left Side) */
.text-content {
    flex: 1; /* Take up remaining space */
    min-width: 300px; /* Ensure text doesn't get too narrow */
}

/* Slideshow Container (Right Side) */
.slideshow-container {
    flex: 1; /* Take up remaining space */
    max-width: 400px; /* Limit slideshow width */
    overflow: hidden; /* Hide overflow */
    position: relative;
}

/* Slideshow */
#slideshow {
    width: 100%;
    height: auto;
    text-align: center; /* Center the slides */
}

/* Slideshow Images */
.slide {
    width: 100%;
    height: auto;
    display: none; /* Hide all slides by default */
    transition: opacity 1s ease; /* Smooth transition */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column; /* Stack text and slideshow vertically */
    }

    .text-content, .slideshow-container {
        max-width: 100%; /* Full width for mobile */
		 }

    .header-image img {
        max-height: 200px; /* Reduce height for smaller screens */
    }
}