/* Tree and Clothesline Theme Styles */
:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --dark-green: #1B5E20;
    --wood-brown: #8D6E63;
    --light-wood: #BCAAA4;
    --accent-yellow: #FFD54F;
    --light-beige: #F5F5DC;
    --dark-beige: #D7CCC8;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--light-beige) 0%, #E8EAF6 100%);
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(to bottom, var(--dark-green), var(--primary-green));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Tree decoration in header */
.tree-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0px, transparent 20px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0px, transparent 30px);
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Ensure header links maintain their white color and no underline */
header a {
    color: white;
    text-decoration: none;
}

/* Navigation with leaf theme */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

nav li {
    margin: 0 12px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: block;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Section styling with leaf theme */
section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--light-green), var(--wood-brown), var(--accent-yellow));
}

h2 {
    color: var(--dark-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-yellow);
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

/* Newsletter styling */
.newsletter {
    background: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0.9));
    border: 2px dashed var(--light-green);
}

.newsletter h2 {
    color: var(--dark-green);
    text-align: center;
}

/* Event container with tree theme */
.event-container {
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.9));
}

.event-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.hero {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 1rem;
}

.flyer-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: 4px solid var(--light-wood);
}

.flyer-image:hover {
    transform: scale(1.02);
}

.event-info {
    flex: 1;
    min-width: 300px;
}

/* Info boxes with leaf theme */
.info-box {
    background-color: rgba(245, 245, 245, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--light-green);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-box h3 {
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    position: relative;
}

.info-box p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* Map styling */
#map {
    height: 300px;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 3px solid var(--light-wood);
}

/* About section with leaf theme */
.about {
    background: linear-gradient(to right, rgba(255,255,255,0.8), rgba(255,255,255,0.9));
}

/* Footer styling - improved readability */
footer {
    background: linear-gradient(to right, var(--dark-green), var(--wood-brown));
    color: #f0f0f0; /* Changed from white to light gray for better readability */
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 4px solid var(--light-green);
}

/* Newsletter form styling */
.newsletter-subscription {
    margin-top: 1.5rem;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-input-group input {
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-green);
    border-radius: 50px;
    font-family: inherit;
    flex: 1;
    min-width: 200px;
}

.newsletter-input-group button {
    padding: 0.8rem 2rem;
    background: linear-gradient(to right, var(--light-green), var(--dark-green));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.newsletter-notice {
    margin-top: 1rem;
    font-size: 0.95em;
    color: #666;
    text-align: center;
}

/* Ensure newsletter section content is centered */
.newsletter {
    text-align: center;
}

/* Ensure newsletter form elements are properly centered */
.newsletter-input-group {
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        margin-bottom: 0.5rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    nav li {
        margin: 0 5px;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .event-content {
        flex-direction: column;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    main {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Lightbox/Modal Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

@media (max-width: 768px) {
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .close-button {
        top: -30px;
        font-size: 24px;
    }
}

/* Team Members Styling */
.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-members h3 {
    color: var(--dark-green);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
    padding-left: 0;
}

.team-members h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-yellow);
}

.member {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.member img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: 4px solid var(--light-wood);
}

.member img:hover {
    transform: scale(1.02);
}

/* Gallery Styles */
.gallery-events {
    margin-top: 2rem;
}

.event-gallery {
    margin-bottom: 2rem;
}

.event-gallery h3 {
    color: var(--dark-green);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--light-wood);
    aspect-ratio: 1/1;
    object-fit: cover;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Event title styling for gallery */
.event-title {
    color: var(--dark-green);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-yellow);
}