body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
}

.content {
    flex: 1 0 auto;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    /* original formatting restored, no gradients or color changes */
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    margin-left: 10px;
}

section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
}

#home {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8), rgba(69, 183, 209, 0.8), rgba(150, 206, 180, 0.8), rgba(255, 234, 167, 0.8), rgba(221, 160, 221, 0.8), rgba(152, 216, 200, 0.8));
    border-color: #ff6b6b;
}

#about {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 255, 0.95));
    border-color: #4ecdc4;
}

#board {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 220, 0.9));
    border-color: #45b7d1;
}

#events {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 255, 220, 0.9));
    border-color: #96ceb4;
}

#photos {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(255, 220, 255, 0.9));
    border-color: #ffeaa7;
}

#contact {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(220, 240, 255, 0.9));
    border-color: #dda0dd;
}

.hero {
    text-align: center;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #98d8c8);
    color: black;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5em;
}

.hero-image {
    max-width: 300px;
    margin-top: 20px;
}

.event {
    text-align: center;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.member {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    /* enforce a consistent visual frame for all slides */
    aspect-ratio: 16 / 9;
    background: #111; /* fallback while images load */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    /* scale to fit without cropping, maintain aspect ratio */
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    display: block;
    background-color: #111; /* letterbox background when aspect ratios differ */
    padding: 8px; /* small padding so the image doesn't touch rounded corners */
}

/* backward-compat: if markup accidentally applies class to the <img> itself */
.carousel img.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    display: block;
    background-color: #111;
}

@media (max-width: 768px) {
    .carousel {
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }
    .carousel-slide img {
        border-radius: 8px;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.pause {
    bottom: 10px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
}

.contact-links {
    text-align: center;
    margin-bottom: 20px;
}

.contact-links a {
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.donate, .newsletter {
    text-align: center;
    margin-top: 20px;
}

.donate img {
    max-width: 200px;
}

.newsletter form {
    display: inline-block;
    margin-top: 10px;
}

.newsletter input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.newsletter button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #666;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    nav {
        display: none;
    }
    nav.active {
        display: block;
    }
    nav.active ul {
        flex-direction: column;
    }
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    .board-grid, .photo-gallery {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 50px 10px;
    }
    .hero h2 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.2em;
    }
    section {
        margin: 10px;
        padding: 15px;
    }
    .contact-links a {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    header h1 {
        font-size: 1.5em;
    }
    nav ul li {
        margin: 5px 0;
    }
}