/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    text-align: left; /* Left-align the content */
}

/* Styling for the logo in the header */
.logo {
    height: 60px; /* Adjust height as needed */
    margin-top: 40px; /* Increase space above the logo */
    margin-left: 20px; /* Left space remains the same */
}

/* Adjust the header layout */
header .container {
    display: flex;
    flex-direction: column; /* Stack elements vertically: logo first, then the links */
    align-items: flex-start; /* Align everything to the left */
}

/* Navigation styles */
header nav {
    width: 100%;
    background: #1f1f1f; /* Dark background for footer */
    border-top: 1px solid #bb86fc; /* Horizontal line above the links */
    border-bottom: 1px solid #bb86fc; /* Horizontal line below the links */
    margin-top: 20px; /* Reduce the space below the lines and page content */
    margin-bottom: 20px; /* Reduce the space below the lines and page content */
    padding: 5px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 20px; /* Left padding to match the logo */
}

header nav ul li {
    display: inline; /* Display the links horizontally */
    margin-right: 20px; /* Add space between links */
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s ease, background 0.3s ease; /* Smooth transition */
}

/* Hover effect */
header nav ul li a:hover {
    color: #bb86fc; /* Hover color */
    background-color: rgba(255, 255, 255, 0.1); /* Background change on hover */
}
  /* Adding some custom styles to handle page visibility */
        .section {
            display: none; /* Hide all sections by default */
        }

        .section.active {
            display: block; /* Show the active section */
        }

        /* Slideshow container */
        .slideshow-container {
            position: relative;
            max-width: 100%;
            margin: auto;
        }

        /* Hide the images by default */
        .mySlides {
            display: none;
        }

        /* Images */
        .mySlides img {
            width: 100%; /* Full width */
            height: auto;
			    border: 2px solid #bb86fc; /* Accent color */
    border-radius: 5px; /* Optional: Rounded corners */
    padding: 4px; /* Optional: Space between image and border */
        }

        /* Fade animation */
        .fade {
            animation-name: fade;
            animation-duration: 2s;
        }

        @keyframes fade {
            from {opacity: .4}
            to {opacity: 1}
        }
		
.project-content img {
    border: 2px solid #bb86fc; /* Accent color */
    border-radius: 5px; /* Optional: Rounded corners */
    padding: 4px; /* Optional: Space between image and border */
}
.news-content img {
    border: 2px solid #bb86fc; /* Accent color */
    border-radius: 5px; /* Optional: Rounded corners */
    padding: 4px; /* Optional: Space between image and border */
}

/* Home section */
#home .container {
    color: #fff;
    padding: 50px 0;
    margin-top: 10px; /* Ensure the home section aligns with the bottom border of the nav */
    margin-bottom: 5px; /* Reduce the space below the lines and page content */
    padding-left: 20px; /* Add left space */
    padding-right: 20px; /* Add right space */
    background: #333;
}

#home h2 {
    text-align: left;
}

#home p {
    text-align: left;
    font-size: 18px;
}

#home .btn {
    display: inline-block;
    color: #121212;
    background: #bb86fc; /* Accent color */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Sections */
section {
    padding: 5px 0;
}

h2 {
    text-align: left;
}

p {
    text-align: left;
    font-size: 18px;
    margin-bottom: 20px;
}

.read-more-btn {
    color: #bb86fc;
    text-decoration: underline;
    cursor: pointer;
}

.read-more-btn:hover {
    color: #9a67ea;
}

/* Vision section */
#vision .container {
    color: #fff;
    padding: 50px 0;
    margin-top: 10px; /* Ensure the home section aligns with the bottom border of the nav */
    margin-bottom: 5px; /* Reduce the space below the lines and page content */
    padding-left: 40px; /* Add left space */
    padding-right: 40px; /* Add right space */
    background: #333;
}

/* Imprint section */
#imprint .container {
    color: #fff;
    padding: 50px 0;
    margin-top: 10px; /* Ensure the home section aligns with the bottom border of the nav */
    margin-bottom: 5px; /* Reduce the space below the lines and page content */
    padding-left: 40px; /* Add left space */
    padding-right: 40px; /* Add right space */
    background: #333;
}

/* Services Section */
#services .container {
    background-color: #1f1f1f; /* Darker background for the services section */
    padding: 50px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

#services h2 {
    font-size: 24px; /* Increase the heading size */
    margin-bottom: 20px;
}

#services ul {
    list-style-type: none; /* Remove the default bullets */
    padding-left: 0;
}

#services ul li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #2a2a2a; /* Background for each service */
    border-radius: 6px;
    font-size: 18px;
    color: #fff;
    display: flex; /* Flexbox for icon alignment */
    align-items: center;
}

#services ul li::before {
    content: '✔'; /* Add an icon */
    color: #bb86fc;
    margin-right: 10px;
    font-size: 20px;
}

#services ul li:hover {
    background-color: #333; /* Darken background on hover */
    transition: background-color 0.3s ease;
}

/* Contact Section */
#contact .container {
    color: #fff;
    padding: 50px 0;
    margin-top: 10px; /* Ensure the home section aligns with the bottom border of the nav */
    margin-bottom: 5px; /* Reduce the space below the lines and page content */
    padding-left: 40px; /* Add left space */
    padding-right: 40px; /* Add right space */
    background: #333;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensure left alignment */
    width: 100%; /* Full width of the container */
    max-width: 600px; /* Set a max-width to control form size */
    padding-left: 20px; /* Add some padding for better readability */
}

form label {
    font-size: 16px;
    margin-bottom: 5px;
}

form input, form textarea {
    width: 100%; /* Make inputs full width */
    padding: 10px;
    margin-bottom: 20px;
    background-color: #1f1f1f; /* Input background */
    color: #e0e0e0; /* Text color */
    border: 1px solid #333;
    border-radius: 5px;
}

form textarea {
    height: 150px; /* Larger height for the message body */
    resize: vertical; /* Allow users to resize the textarea vertically */
}

form button {
    padding: 10px 20px;
    background-color: #bb86fc; /* Button color */
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #9a67ea; /* Change button color on hover */
}

/* Align the status message */
#status {
    margin-top: 20px;
    color: #bb86fc;
}

/* Footer styles */
footer .container {
    background: #1f1f1f; /* Dark background for footer */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    padding: 10px; /* Unified padding */
    margin: auto;
    width: 80%; /* Same width as the rest of the content */
    font-size: 14px; /* Slightly smaller font size */
    border-top: 1px solid #bb86fc; /* Top border similar to menu */
    border-bottom: 1px solid #bb86fc; /* Bottom border similar to menu */
    margin-top: 20px; /* Space above the footer */
    margin-bottom: 20px; /* Space above the footer */
}

footer p {
    margin: 1px 0; /* Space between each line */
}

/* Custom styles for lists */
ul {
    list-style-position: outside; /* Ensure the bullet stays outside */
    padding-left: 20px; /* Add some padding to indent the bullets */
}

ul li {
    margin-bottom: 10px; /* Adds space between list items */
    padding-left: 5px; /* Adds space between bullet and text */
}

/* Read-more and image expand logic */
.read-more-content {
    display: none; /* Initially hide the extra content */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* Smooth transition */
}

.read-more-content.expanded {
    display: block;
    max-height: none; /* Allow the content to expand fully */
}

/* Ensure this rule has high specificity */
.full-story {
    display: none !important;
    margin-top: 10px;
    color: #e0e0e0;
    background-color: #1f1f1f;
    padding: 10px;
}

.full-story.expanded {
    display: block !important;
}

.full-story.expanded {
    display: block;
}

.full-story p {
    color: inherit;
}

/* Link styles */
a {
    color: #bb86fc; /* Change to a light purple or any bright color that contrasts with the dark background */
    text-decoration: none; /* Remove underline if you don't want it */
    cursor: pointer; /* Ensure pointer appears on hover */
}

a:hover {
    color: #9a67ea; /* Darker shade of purple or another effect on hover */
    text-decoration: underline; /* Add underline on hover if desired */
}
/* General layout for news and project sections */
.news-content, .project-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* General styles for images in news and projects */
.news-image, .project-image {
    width: 150px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Enlarged image size for both news and projects */
.news-image.expanded, .project-image.expanded {
    width: 300px; /* Adjust as needed */
    height: auto;
    align-self: center; /* Center the image when expanded */
}

/* Text sections for both news and projects */
.news-text, .project-text {
    flex-grow: 1;
    color: #fff;
}

.news-text h3, .project-text h3 {
    color: #bb86fc; /* Accent color for titles */
    margin-bottom: 10px;
}

.news-text p, .project-text p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Individual entry styling */
.news-entry, .project-entry {
    padding: 20px;
    background-color: #1f1f1f; /* Dark background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    margin-bottom: 20px; /* Space between entries */
}

/* Responsive layout for smaller screens (news and projects) */
@media (max-width: 768px) {
    .news-content, .project-content {
        flex-direction: column;
        align-items: center; /* Center the content on smaller screens */
    }

    .news-image, .project-image {
        width: 100%; /* Make the image take full width */
        margin-right: 0;
        margin-bottom: 10px; /* Add space between the image and text */
    }
}

/* Enlarged image size for news and projects (optional larger size) */
.news-image.expanded, .project-image.expanded {
    width: 400px; /* Enlarged width on click */
    height: auto;
}

/* Specific overrides for news and project titles */
.news-text h3, .project-text h3 {
    color: #bb86fc; /* Accent color for titles */
}

/* Individual entry styling for news and projects */
.news-entry, .project-entry {
    background-color: #1f1f1f; /* Dark background for entries */
}

.news-date {
    color: #7aa0ff; /* Lighter blue for the date */
    font-size: 14px;
    margin-bottom: 5px;
}


/* Supporters Section Styling */
#supporters {
    background-color: #666; /* Neutral mid-gray background */
    padding: 40px 0;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Logo Slider Container */
.logo-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    height: 180px; /* Adjust the height as needed */
}

/* Logo Track: Flex container to hold logos */
.logo-track {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    animation: scroll-left 30s linear infinite;
    height: 100%;
    width: calc(200%); /* Make the width large enough for two sets of logos */
}

/* Duplicate content to achieve continuous scrolling */
.logo-track::after {
    content: '';
    display: flex;
    width: 100%;
    height: 100%;
}

/* Logo Styling */
.logo {
    margin: 0 30px;
}

.logo img {
    max-height: 90%;
    height: 90%;
    width: auto;
    object-fit: contain;
}

/* Pause animation on hover */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

/* Keyframes for smooth, endless scrolling */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Scroll by half to achieve continuous loop */
    }
}

/* General styles for both news and project sources */
.sources-title {
    font-weight: bold;
    margin-top: 24px;
    font-size: 0.9em;
    color: #7aa0ff; /* Lighter blue */
}

.sources-list {
    font-size: 0.9em;
    list-style-type: disc;
    margin-left: 20px;
}

.sources-list li {
    font-style: italic;
    color: #dddddd;
    margin-bottom: 5px;
}

.sources-list li a {
    color: #7aa0ff; /* Lighter blue for links */
    text-decoration: underline;
}


/* Team Section Styling */
#team .container {
    color: #fff;
    padding: 50px 0;
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 40px;
    padding-right: 40px;
    background: #333;
}

.team-gallery {
    display: flex;
    flex-direction: column; /* Stack rows on top of each other */
    justify-content: left;
    align-items: left;
}

.team-row {
    display: flex;
    justify-content: left;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 20px 0;
}

.team-member {
    text-align: left;
    max-width: 180px;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-name {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #bb86fc; /* Highlighted color */
}

.team-position{
    font-size: 15px;
    color: #e0e0e0; /* Text color for roles */
    margin-bottom: 10px;
}

.team-mature {
    font-size: 12px;
    color: #e0e0e0; /* Text color for roles */
    margin-bottom: 10px;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .team-gallery {
        flex-direction: column;
    }

    .team-row {
        display: block; /* Stack team members vertically */
        text-align: left;
    }

    .team-member {
        margin-bottom: 30px;
    }
}
