/* Community Page Styles */

/* Hero Section */
.community-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c23 50%, #6b9b2f 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 80, 22, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Community Story Section */
.community-story {
    padding: 80px 0;
    background: #f8f9fa;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2d5016;
    margin-bottom: 30px;
    font-weight: 700;
}

.story-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0;
}

/* Gallery Section */
.community-gallery {
    padding: 100px 0;
    background: white;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2d5016;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 250px);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
}

.gallery-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Community Values Section */
.community-values {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.community-values h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2d5016;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d5016, #4a7c23);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2d5016, #4a7c23);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

.value-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Events Section */
.community-events {
    padding: 100px 0;
    background: white;
}

.events-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.events-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2d5016;
    margin-bottom: 25px;
    font-weight: 700;
}

.events-content > p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 50px;
}

.events-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.event-highlight {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.event-highlight:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.event-highlight i {
    font-size: 2.5rem;
    color: #2d5016;
    min-width: 50px;
}

.event-highlight h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2d5016;
    margin: 0 0 8px;
    font-weight: 600;
}

.event-highlight p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.events-cta {
    margin-top: 40px;
}

.events-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2d5016, #4a7c23);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.events-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.4);
    text-decoration: none;
    color: white;
}

.events-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.events-btn:hover i {
    transform: translateX(3px);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 200px);
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .community-story,
    .community-gallery,
    .community-values,
    .community-events {
        padding: 60px 0;
    }
    
    .story-content h2,
    .gallery-title,
    .community-values h2,
    .events-content h2 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 180px);
        gap: 15px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .events-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-highlight {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .community-hero {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
    }
    
    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .value-item {
        padding: 30px 20px;
    }
    
    .events-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}