body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    text-align: center;
}

.container {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 4em;
    font-weight: 600;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

p {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 2em;
    opacity: 0.9;
}

.subscribe {
    margin-bottom: 2em;
}

input[type="email"] {
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 25px 0 0 25px;
    width: 250px;
    outline: none;
}

button {
    padding: 12px 20px;
    font-size: 1em;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #ff5252;
}

.social {
    margin-top: 2em;
}

.social a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2em;
}

.social a:hover {
    opacity: 0.7;
}

nav {
    background-color: #333;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b35;
}

/* Slideshow Styles */
.slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 60px; /* Account for fixed nav height */
    border-radius: 8px; /* Optional styling */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the container without distortion */
}

/* Custom Styles for Events Section - Matches your theme (Poppins, orange/teal accents) */
#events-section {
    font-family: 'Poppins', sans-serif;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px auto;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#events-section h2 {
    color: #ff6b35; /* Orange from your slides */
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.event-item {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-item h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 600;
    font-size: 1.4em;
}

.event-item p {
    margin: 8px 0;
    color: #666;
    font-weight: 300;
}

.event-item strong {
    color: #4ecdc4; /* Teal accent from slides */
}

.no-events, .load-error {
    color: #999;
    font-style: italic;
    padding: 20px;
}

.load-error {
    color: #e74c3c;
}

.more-events {
    color: #ff6b35;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #events-section {
        padding: 30px 15px;
        margin: 20px auto;
    }
    #events-section h2 {
        font-size: 1.8em;
    }
}

#calendar-controls select, #calendar-controls input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

#calendar-controls button:hover {
    background: #e55a2b;
}

/* Contact Section Styles (mobile-first, consolidated) */
.contact-section {
    max-width: 100%;
    margin: 40px auto 0;
    padding: 20px;
    box-sizing: border-box;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white; /* Ensure visibility on gradient */
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white; /* Ensure label visibility */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    background: white; /* Explicit white bg for contrast */
    color: #333; /* Dark text for readability */
    resize: vertical;
}

.form-group textarea {
    min-height: 100px;
}

button[type="submit"] {
    background: #ff6b6b; /* Match theme */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background 0.3s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
    background: #ff5252;
}

.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tablet and up (768px+) */
@media (min-width: 768px) {
    .contact-section {
        max-width: 600px;
        padding: 40px 20px;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .form-row {
        flex-direction: row; /* Side-by-side name/email */
    }
    
    .form-row .form-group {
        flex: 1;
    }
    
    button[type="submit"] {
        width: auto;
        min-width: 150px;
        align-self: flex-start;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .contact-section {
        padding: 60px 40px;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
    }
}

/* High-res or landscape adjustments */
@media (min-width: 1200px) {
    .contact-section {
        max-width: 700px;
    }
}
.message { 
            margin-top:1rem; 
            padding:.75rem; 
            border-radius:.4rem; 
            display:none; 
        }
        .success { 
            background:#d4edda; 
            color:#155724; 
            border:1px solid #c3e6cb; 
        }
        .error { 
            background:#f8d7da; 
            color:#721c24; 
            border:1px solid #f5c6cb; 
        }