/* ========================================================
   OUR COMMUNITY SECTION - REPLACES JOIN COMMUNITY
   ======================================================== */

.community-section {
    background-color: #ffffff;
    padding: 6rem 3.5rem;
    color: #000000;
}

.community-container {
    max-width: 1290px;
    /* Matching your other sections */
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER ROW === */
.community-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
    margin-bottom: 5rem;
}

.community-section-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    flex: 0 0 45%;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.community-section-description {
    font-size: 1rem;
    line-height: 1.7;
    flex: 0 0 45%;
    margin: 0;
    color: #4a4a4a;
}

/* === COMMUNITY GRID === */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Community Card */
.community-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(248, 186, 0, 0.12);
}

/* Image Wrapper with Overlay */
.community-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

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

.community-card:hover .community-image {
    transform: scale(1.08);
}

/* Overlay with Join Button */
.community-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.community-image-wrapper:hover .community-overlay {
    opacity: 1;
}

.community-join-btn {
    background: #FDB913;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.community-image-wrapper:hover .community-join-btn {
    transform: translateY(0);
}

.community-join-btn:hover {
    background: #e5a712;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(253, 185, 19, 0.4);
}

.community-join-btn svg {
    transition: transform 0.3s ease;
}

.community-join-btn:hover svg {
    transform: translateX(5px);
}

/* Community Info */
.community-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    padding: 0 0.5rem;
}

.community-location {
    font-size: 1rem;
    color: #FDB913;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    padding: 0 0.5rem 1rem 0.5rem;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */

/* Extra Large Desktops */
@media (min-width: 1580px) {
    .community-section {
        padding: 7rem 3.5rem;
    }

    .community-section-title {
        font-size: 3.5rem;
    }

    .community-section-description {
        font-size: 1.125rem;
    }

    .community-name {
        font-size: 1.6rem;
    }
}

/* Large Desktops */
@media (max-width: 1400px) {
    .community-section {
        padding: 6rem 3rem;
    }

    .community-section-title {
        font-size: 3rem;
    }
}

/* Medium Desktops */
@media (max-width: 1200px) {
    .community-section {
        padding: 5.5rem 2.5rem;
    }

    .community-section-title {
        font-size: 2.8rem;
    }

    .community-grid {
        gap: 2rem;
    }

    .community-name {
        font-size: 1.4rem;
    }
}

/* Tablets - 3 cards become 2 + 1 */
@media (max-width: 992px) {
    .community-section {
        padding: 5rem 2rem;
    }

    .community-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 4rem;
    }

    .community-section-title {
        flex: 1 1 100%;
        font-size: 2.5rem;
    }

    .community-section-description {
        flex: 1 1 100%;
        max-width: 600px;
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .community-section {
        padding: 4rem 1.5rem;
    }

    .community-section-title {
        font-size: 2.2rem;
    }

    .community-section-description {
        font-size: 0.95rem;
    }

    .community-grid {
        gap: 1.75rem;
    }

    .community-name {
        font-size: 1.3rem;
    }

    .community-location {
        font-size: 0.95rem;
    }

    .community-join-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Mobile - Stack vertically */
@media (max-width: 640px) {
    .community-section {
        padding: 3.5rem 1rem;
    }

    .community-header-row {
        margin-bottom: 3rem;
    }

    .community-section-title {
        font-size: 2rem;
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }

    .community-image-wrapper {
        aspect-ratio: 3/2;
    }

    .community-name {
        font-size: 1.4rem;
    }

    .community-location {
        font-size: 1rem;
    }

    .community-join-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .community-section {
        padding: 3rem 0.875rem;
    }

    .community-section-title {
        font-size: 1.8rem;
    }

    .community-section-description {
        font-size: 0.9rem;
    }

    .community-name {
        font-size: 1.3rem;
    }

    .community-location {
        font-size: 0.95rem;
    }
}