/* Community Page Specific Styles */

/* Community Hero Section */
.comm-hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.6)), url('../images/website-background-image.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    padding: 200px 0px 140px 0px;
    position: relative;
    overflow: hidden;
}

.comm-rain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/website-background-image.jpg') repeat;
    opacity: 0.1;
    animation: rain-animation 20s linear infinite;
    pointer-events: none;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    top: -20px;
    animation: falling 1s linear infinite;
}

@keyframes falling {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(60vh + 20px));
    }
}

@keyframes rain-animation {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 1000px;
    }
}

.comm-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.comm-hero-content h2 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.comm-subtitle {
    font-weight: 300;
    font-family: var(--font-body);
}

/* Events Section */
.comm-events-section {
    padding: 6rem 0;
    background-color: var(--accent-color);
}

.comm-events-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comm-event-card {
    display: flex;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.comm-event-card:nth-child(2) {
    animation-delay: 0.2s;
}

.comm-event-card:nth-child(3) {
    animation-delay: 0.4s;
}

.comm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.comm-event-card:hover .comm-event-image img {
    transform: scale(1.05);
}

.comm-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1.5rem;
    min-width: 100px;
    text-align: center;
}

.comm-month {
    font-weight: 600;
    text-transform: uppercase;
}

.comm-day {
    font-weight: 700;
    line-height: 1;
}

.comm-event-details {
    padding: 1.5rem 2rem;
    flex: 1;
}

.comm-event-details h3 {
    margin-bottom: 0.5rem;
}

.comm-event-location {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.comm-event-description {
    margin-bottom: 1rem;
}

.comm-event-image {
    width: 300px;
    min-width: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comm-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Stories Section */
.comm-stories-section {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.comm-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.comm-stories-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.comm-story-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.comm-story-card.comm-featured {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0;
    animation-delay: 0.1s;
}

.comm-story-card:nth-child(2) {
    animation-delay: 0.3s;
}

.comm-story-card:nth-child(3) {
    animation-delay: 0.5s;
}

.comm-story-card:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comm-story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.comm-story-card:hover .comm-story-image img {
    transform: scale(1.05);
}

.comm-story-image {
    overflow: hidden;
    position: relative;
}

.comm-story-card.comm-featured .comm-story-image {
    height: 100%;
}

.comm-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comm-story-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.comm-story-card:hover .comm-story-badge {
    transform: scale(1.1);
}

.comm-story-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    gap: 0px;
    justify-content: center;
    flex-direction: column;
}

.comm-story-content h3 {
    margin-bottom: 0.5rem;
}    

.comm-story-author {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.comm-story-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.comm-story-card .comm-btn-text {
    margin-top: auto;
    align-self: flex-start;
}

.comm-stories-cta {
    text-align: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.9s;
}

/* CTA Section */
.comm-cta-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('../images/website-background-image.jpg') no-repeat center center;
    background-size: cover;
    color: var(--light-color);
    text-align: center;
}

.comm-cta-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.comm-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.comm-btn-text {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.comm-btn-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.comm-btn-text:hover {
    color: var(--secondary-color);
}

.comm-btn-text:hover::after {
    width: 100%;
    background-color: var(--secondary-color);
}

/* Responsive Styles for Community Page */
@media (max-width: 1200px) {
    .comm-story-card.comm-featured {
        grid-column: span 12;
        display: flex;
        flex-direction: column;
    }
    
    .comm-story-card.comm-featured .comm-story-image {
        height: 300px;
    }
}

@media (max-width: 991px) {    
    .comm-stories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .comm-story-card {
        grid-column: span 3;
    }
    
    .comm-story-card.comm-featured {
        grid-column: span 6;
    }
    
    .comm-event-image {
        width: 200px;
    }
}

@media (max-width: 767px) {
    .comm-hero-section {
        padding: 140px 0px 100px 0px;
        margin-top: 70px;
    }
    
    .comm-event-card {
        flex-direction: column;
    }
    
    .comm-event-date {
        flex-direction: row;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .comm-event-image {
        width: 100%;
        height: 300px;
        order: -1;
    }
    
    .comm-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .comm-story-card,
    .comm-story-card.comm-featured {
        grid-column: span 1;
    }
    
    .comm-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 2rem auto 0;
    }
}

@media (max-width: 480px) {
    .comm-event-image {
        height: 200px;
    }

    .comm-event-details{
        padding: 20px;
    }
} 