/* Community Page Styles */
@import url('globals.css');

:root {
    --community-bg-dark: #072A30;
    --community-bg-light: #EDF2F2;
    --community-accent: #17C64F;
    --community-text-dark: #072A30;
    --community-text-light: #FFFFFF;
    --community-text-muted: #8A9A9A;
}

/* Hero / Banner Section */
/* Hero / Banner Section (v2) */
/* Hero / Banner Section (Doodle) */
.community-hero-doodle {
    background-color: var(--community-bg-dark);
    padding: 180px 20px 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.doodle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

.doodle-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doodle-svg path {
    animation: dash 60s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

.community-hero-content-narrow {
    max-width: 800px;
    /* Reduced width as requested */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.community-hero-doodle h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #B8C1C1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.community-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--community-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding: 12px 24px;
    background: rgba(23, 198, 79, 0.08);
    /* Light green tint */
    border-radius: 100px;
    border: 1px solid rgba(23, 198, 79, 0.2);
}

/* Centered Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--community-text-dark);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: none;
    font-family: var(--font-primary);
}

.btn-explore-spaces-community {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--community-accent);
    color: var(--community-text-dark);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-primary);
}

.btn-explore-spaces-community:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23, 198, 79, 0.3);
    background-color: #15b345;
}

.btn-explore-spaces-community svg {
    transition: transform 0.3s ease;
}

.btn-explore-spaces-community:hover svg {
    transform: translateX(5px);
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Visual Story Section */
.community-visual-story {
    padding: 100px 20px;
    background-color: #FFFFFF;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
}

.story-item {
    position: relative;
    margin-bottom: 80px;
    border-radius: 32px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.story-item:hover .story-image img {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    z-index: 2;
    transition: transform 0.3s ease;
}

.story-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.story-overlay p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .story-item {
        height: 450px;
        margin-bottom: 40px;
    }

    .story-overlay {
        padding: 30px;
    }

    .story-overlay h3 {
        font-size: 1.8rem;
    }
}

/* Events Timeline (Vertical) */
.events-section-v2 {
    padding: 120px 20px;
    background-color: #FAFAFA;
}

.timeline-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 20px;
    /* Aligned left for easier responsiveness */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E6EAEA;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--community-accent);
    position: absolute;
    left: 13px;
    /* Center on the 2px line at left:20px */
    top: 24px;
    z-index: 2;
    box-shadow: 0 0 0 5px white;
}

.timeline-marker.past {
    border-color: #C0C8C8;
    background: #C0C8C8;
}

.timeline-date {
    width: 120px;
    padding-top: 20px;
    padding-left: 50px;
    font-weight: 700;
    color: var(--community-text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.timeline-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(23, 198, 79, 0.2);
}

.timeline-card.past-event {
    opacity: 0.7;
    background: #F4F6F6;
    box-shadow: none;
}

.card-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

.card-status.upcoming {
    color: var(--community-accent);
    background: rgba(23, 198, 79, 0.1);
}

.card-status.completed {
    color: #8A9A9A;
    background: #E6EAEA;
}

.timeline-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--community-text-dark);
}

.timeline-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-link {
    font-weight: 600;
    color: var(--community-accent);
    text-decoration: none;
    transition: margin-left 0.3s ease;
}

.event-link:hover {
    margin-left: 5px;
}

@media (max-width: 600px) {
    .timeline-item {
        flex-direction: column;
        gap: 10px;
        padding-left: 40px;
    }

    .timeline-date {
        padding-left: 0;
        padding-top: 0;
        width: auto;
    }

    .timeline-marker {
        left: 13px;
        top: 4px;
    }
}

/* From the Community - Testimonials Slider */
.community-thoughts {
    padding: 120px 0;
    background-color: var(--community-bg-dark);
    color: white;
    overflow: hidden;
    /* Important for marquee */
}

.community-thoughts .section-header h2,
.community-thoughts .section-header span {
    color: white;
}

/* Testimonials - Wall of Love Grid */
.testimonials-grid-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Dark mode feel */
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(23, 198, 79, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.testimonial-card:hover .card-glow {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(23, 198, 79, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    margin-bottom: 24px;
}

.testimonial-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #E6EEEE;
    /* Light text */
    margin-bottom: 32px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle divider */
    padding-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-details h4 {
    color: white;
    font-size: 1.05rem;
    margin: 0;
}

.author-details span {
    color: var(--community-accent);
    font-size: 0.85rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .community-hero h1 {
        font-size: 2.5rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .events-table td,
    .events-table th {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

/* ===================================================
   Work, Alive, In The Moment Section
=================================================== */
.community-moments {
    padding: 100px 20px;
    background-color: #FAFAFA;
}

.moments-grid-section .section-header {
    margin-bottom: 60px;
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.moment-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 300px;
    cursor: pointer;
}

.moment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.moment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.moment-item:hover img {
    transform: scale(1.05);
}

/* Irregular Grid Layout */
.moment-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    height: 624px;
    /* 300*2 + 24 gap */
}

.moment-item:nth-child(2) {
    grid-column: span 1;
    height: 300px;
}

.moment-item:nth-child(3) {
    grid-column: span 1;
    height: 300px;
}

.moment-item:nth-child(4) {
    grid-column: span 2;
    height: 300px;
}

.moment-item:nth-child(5) {
    grid-column: span 1;
    /* Was 4 columns total */
    /* Wait, 1(2col) + 2(1col) + 3(1col) = 4 cols. Row 1 done.
       Row 2: 1 spans into row 2. 
       Item 4 needs to be row 2, col 3-4?
       Let's stick to simple logic or grid-auto-flow: dense
    */
}

/* Simplified Grid for better control */
.moments-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
}

.moment-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.moment-item.wide {
    grid-column: span 2;
}

.moment-item.tall {
    grid-row: span 2;
}

@media (max-width: 900px) {
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .moment-item.large {
        grid-column: span 2;
        grid-row: span 1;
        height: 300px;
    }

    .moment-item.tall {
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .moments-grid {
        grid-template-columns: 1fr;
        grid-gap: 16px;
    }

    .moment-item,
    .moment-item.large,
    .moment-item.wide,
    .moment-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}