/* Community Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.community-hero {
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, #228B22 0%, #20B2AA 100%);
    margin-top: 80px; /* Account for header */
    color: white;
    text-align: center;
}

.community-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
.newsletters-section,
.spotlight-section,
.instagram-section {
    padding: 80px 0;
}

.newsletters-section {
    background: white;
}

.spotlight-section {
    background: #f8f9fa;
}

.instagram-section {
    background: white;
}

.newsletters-section h2,
.spotlight-section h2,
.instagram-section h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.section-description {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletters Grid */
.newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.newsletter-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.newsletter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.newsletter-content {
    padding: 25px;
    flex-grow: 1;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.newsletter-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.newsletter-link {
    display: inline-block;
    background: #228B22;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 25px 25px 25px;
    align-self: flex-start;
}

.newsletter-link:hover {
    background: #1a6b1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

/* Older Newsletters Dropdown */
.older-newsletters {
    text-align: center;
    margin-top: 40px;
}

.dropdown-toggle {
    background: transparent;
    border: 2px solid #228B22;
    color: #228B22;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dropdown-toggle:hover {
    background: #228B22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.dropdown-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Spotlight Grid */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.spotlight-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.spotlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spotlight-content {
    padding: 25px;
    flex-grow: 1;
}

.spotlight-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.spotlight-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.spotlight-link {
    display: inline-block;
    background: #228B22;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 25px 25px 25px;
    align-self: flex-start;
}

.spotlight-link:hover {
    background: #1a6b1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

/* Instagram Widget */
.instagram-widget {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lightwidget-widget {
    border-radius: 12px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .newsletters-grid,
    .spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .dropdown-content.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .community-hero {
        padding: 100px 0 60px 0;
        margin-top: 60px;
    }
    
    .community-hero h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .newsletters-section,
    .spotlight-section,
    .instagram-section {
        padding: 60px 0;
    }
    
    .newsletters-section h2,
    .spotlight-section h2,
    .instagram-section h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .newsletters-grid,
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dropdown-content.active {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .newsletter-item,
    .spotlight-item {
        margin-bottom: 0;
    }
    
    .newsletter-content,
    .spotlight-content {
        padding: 20px;
    }
    
    .newsletter-title,
    .spotlight-title {
        font-size: 18px;
    }
    
    .newsletter-link,
    .spotlight-link {
        margin: 0 20px 20px 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dropdown-toggle {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .community-hero {
        padding: 80px 0 40px 0;
        margin-top: 40px;
    }
    
    .community-hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .newsletters-section,
    .spotlight-section,
    .instagram-section {
        padding: 40px 0;
    }
    
    .newsletters-section h2,
    .spotlight-section h2,
    .instagram-section h2 {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .newsletter-content,
    .spotlight-content {
        padding: 15px;
    }
    
    .newsletter-title,
    .spotlight-title {
        font-size: 16px;
    }
    
    .newsletter-date {
        font-size: 13px;
    }
    
    .spotlight-description {
        font-size: 14px;
    }
    
    .newsletter-link,
    .spotlight-link {
        margin: 0 15px 15px 15px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .dropdown-toggle {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .dropdown-content {
        padding: 15px;
    }
}

/* Special styles for compact grid layout on larger screens */
@media (min-width: 1200px) {
    .newsletters-grid,
    .spotlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dropdown-content.active {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .newsletters-grid,
    .spotlight-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dropdown-content.active {
        grid-template-columns: repeat(4, 1fr);
    }
}
