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

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

/* Header */
header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

header .logo {
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Left-justify the nav items */
    gap: 1rem; /* Reduced gap for a more compact look */
    padding: 0.5rem 1rem; /* Add padding for better spacing */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: normal; /* Remove bold for elegance */
    font-size: 0.9rem; /* Smaller font size (around 14px) */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

/* Navigation Active State */
nav a.active {
    color: #ecf0f1;
    text-decoration: none; /* Remove underline for active state */
    background-color: #34495e; /* Subtle background for active state */
    border-radius: 4px; /* Rounded corners for elegance */
}

/* Navigation Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: normal; /* Remove bold for elegance */
    font-size: 0.9rem; /* Smaller font size */
    padding: 0.5rem 1rem; /* Same padding as other links */
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 200px; /* Wider for better readability */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px; /* Rounded corners for elegance */
}

.dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    font-size: 0.85rem; /* Slightly smaller font for dropdown items (around 13px) */
    transition: background-color 0.3s ease; /* Smooth transition */
}

.dropdown-content a:hover {
    background-color: #2c3e50;
    border-radius: 4px; /* Rounded corners on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #ecf0f1; /* Lighter color on hover for elegance */
    background-color: #34495e; /* Subtle background on hover */
    border-radius: 4px; /* Rounded corners */
}

/* Main Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

section p {
    margin-bottom: 1rem;
}

/* Video Section */
#video {
    margin-bottom: 2rem;
    padding: 1rem;
    text-align: left;
}

#video h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Campaign Sections */
.campaign {
    text-align: left;
    margin-bottom: 2rem;
}

.campaign h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.campaign p, .campaign b {
    margin-bottom: 1rem;
}

/* Style for Givebutter Widgets */
givebutter-widget {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Optional: Style any buttons or forms within the widget */
givebutter-widget button,
givebutter-widget input[type="submit"] {
    background-color: #2c3e50 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: background-color 0.3s !important;
}

givebutter-widget button:hover,
givebutter-widget input[type="submit"]:hover {
    background-color: #34495e !important;
}

/* Campaign Detail Pages */
.campaign-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

label {
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    nav a, .dropbtn {
        padding: 0.5rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        min-width: 100%;
        border-radius: 0;
    }

    .dropdown-content a {
        padding: 8px 10px;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 0.5rem;
    }
}
/* Slideshow Styles */
.slideshow {
    width: 60vw; /* 60% of viewport width */
    aspect-ratio: 3 / 2;
    margin: 2rem auto;
    position: relative;
    overflow: hidden; /* Ensures images are cropped to fit the frame */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops images to fill the frame, preserving aspect ratio */
    display: none;
}

.slideshow img.active {
    display: block;
}

.slideshow-buttons {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.slideshow-buttons button {
    background-color: rgba(44, 62, 80, 0.7); /* Semi-transparent background */
    color: white;
    border: none;
    border-radius: 50%; /* Circular buttons */
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Ensure ::before is positioned correctly */
    text-align: center; /* Center content */
}

.slideshow-buttons button:hover {
    background-color: rgba(52, 73, 94, 0.9); /* Darker on hover */
}

/* Unicode arrows for all slideshow prev/next buttons */
.slideshow-buttons button[id$="-prev"]::before {
    content: "\25C0"; /* Left arrow Unicode */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the arrow */
}

.slideshow-buttons button[id$="-next"]::before {
    content: "\25B6"; /* Right arrow Unicode */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the arrow */
}
#events ul {
    list-style: disc;
    margin: 1rem 0;
    padding-left: 2rem;
}

#events ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #333;
}

#events ul li a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

#events ul li a:hover {
    color: #34495e;
    text-decoration: underline;
}