/* Base styles with subtle green theme */
:root {
    --primary-green: #4a8c4a;
    --secondary-green: #88b388;
    --light-bg: #f5f9f5;
    --dark-green: #2d5a2d;
    --accent-color: #ffb74d;
    --text-dark: #333;
    --text-light: #f5f5f5;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background-color: var(--primary-green);
    color: var(--text-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--dark-green);
}

nav ul li.active a {
    background-color: var(--secondary-green);
    color: var(--text-dark);
    font-weight: bold;
}

main {
    padding: 2rem;
    min-height: 80vh;
}

footer {
    background-color: var(--dark-green);
    color: var(--text-light);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Mission statement section */
.mission-section {
    background-color: var(--card-bg);
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.mission-section h2 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.mission-highlight {
    color: var(--primary-green);
    font-weight: 600;
}

/* Home page specific styles */
.hero {
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.features {
    margin: 3rem 0;
    text-align: center;
}

.features h2 {
    margin-bottom: 2rem;
    color: var(--dark-green);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3 {
    padding: 1rem;
    color: var(--primary-green);
}

.feature-card p {
    padding: 0 1rem 1.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.testimonials h2 {
    color: var(--dark-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--secondary-green);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 3rem 0;
}

.newsletter-content h2 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    flex: 1;
    min-width: 250px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid var(--primary-green);
}

/* Button styles */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #ffa726;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    .mission-section,
    .testimonials,
    .newsletter {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .hero {
        height: 50vh;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-green);
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-light);
}

.dropdown-menu li a:hover {
  background-color: var(--dark-green);
}

/* Additional styles for Firebase integration */

.user-info {
    display: none;
    background-color: var(--secondary-green);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.user-info.show {
    display: inline-block;
}

/* User stats section */
.user-stats {
    background: var(--light-bg);
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Auth section styles */
#authSection {
    margin-left: auto;
}

#authSection a {
    white-space: nowrap;
}

/* Responsive adjustments for auth section */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-stats {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    #authSection {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .user-info {
        margin-left: 0;
        margin-bottom: 0.5rem;
        display: block;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-menu {
        flex-direction: column;
    }
    
    #authSection {
        order: -1;
        margin-bottom: 1rem;
    }
}