
/* ========================================Featured Event======================================== */

.featured-event {
    width: 100%;
    padding: var(--space-24) var(--space-10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-event__container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
}

/* Title */

.featured-event__title {
    margin: 0;
    color: var(--pink-950);
    font-family: var(--font-family-primary);
    font-size: var(--text-h1);
    font-weight: var(--font-bold);
    line-height: var(--leading-h1);
}

/* Content */

.featured-event__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
}

/* Event Image */

.featured-event__image {
    width: 100%;
    height: 480px;
    padding: var(--space-6);
    overflow: hidden;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Badge */

.featured-event__badge {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-md);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--text-h6);
    font-weight: var(--font-semibold);
    line-height: var(--leading-h6);
    text-align: center;
}

/* Description */

.featured-event__description {
    width: 100%;
    margin: 0;
    color: var(--grey-950);
    font-family: var(--font-family-primary);
    font-size: var(--text-body);
    font-weight: var(--font-regular);
    line-height: var(--leading-body);
}

/* =======================================Community Photo Grid Section======================================== */

.community-grid {
    width: 100%;
    padding: var(--space-20) var(--space-10);
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.community-grid__container {
    width: 100%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 242px 242px 300px 400px 600px;
    gap: var(--space-4);
}

/*Card Base*/
.community-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: var(--space-4);
    box-sizing: border-box;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}


/*Gradient Overlay*/
.community-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0) 65%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
    pointer-events: none;
}


/*Image*/
.community-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 0.4s ease;
}

.community-card:hover .community-card__image {
    transform: scale(1.03);
}


/*Title*/
.community-card__title {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--text-h5);
    font-weight: var(--font-semibold);
    line-height: var(--leading-h5);
}

/*Caption*/
.community-card__caption {
    position: relative;
    z-index: 2;
    max-width: 571px;
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--text-body-sm);
    font-weight: var(--font-regular);
    line-height: var(--leading-body-sm);
}

/*DESKTOP GRID*/

/* Row 1 */
.card-small-left-1 {
    grid-column: 1 / 7;
    grid-row: 1;
}

/* Row 2 */
.card-small-left-2 {
    grid-column: 1 / 7;
    grid-row: 2;
}

/* Row 1 + Row 2 */
.card-tall-right {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
}

/* Row 3 */
.card-wide-left {
    grid-column: 1 / 9;
    grid-row: 3;
}

.card-small-right {
    grid-column: 9 / 13;
    grid-row: 3;
}

/* Row 4 */
.card-small-left-3 {
    grid-column: 1 / 4;
    grid-row: 4;
}

.card-wide-right {
    grid-column: 4 / 13;
    grid-row: 4;
}

/* Row 5 */
.card-full-hero {
    grid-column: 1 / 13;
    grid-row: 5;
    justify-content: space-between;
}


/*Full Width Hero Overlay*/

.card-full-hero::before {
    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0) 30%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0) 30%
        );
}

.card-full-hero .community-card__caption {
    align-self: flex-end;
}


.next-step-section {
    width: 100%;
    padding: 160px 40px;
    overflow: hidden;
}

.next-step-section__container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.next-step-section__header {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.next-step-section__title {
    width: 100%;
    margin: 0;

    color: var(--Grey-950, #151515);
    font-family: "Open Sans", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
}

.next-step-section__description {
    width: 100%;
    margin: 0;

    color: var(--Grey-950, #151515);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.next-step-section__cards {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.next-step-card {
    width: 100%;
    height: 140px;
    padding: 24px;
    box-sizing: border-box;
    flex: 1 1 0;
    background: var(--Pink-500, #E6007E);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.next-step-card__title {
    margin: 0;
    color: var(--Foundation-White, #FFFFFF);
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
}

.next-step-card__description {
    width: 100%;
    margin: 0;
    color: var(--Foundation-White, #FFFFFF);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}






/*MOBILE*/

@media (max-width: 768px) {

    .community-grid {
        padding: var(--space-10) var(--space-4);
    }

    .community-grid__container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    /* All regular cards */
    .community-card,
    .card-small-left-1,
    .card-small-left-2,
    .card-tall-right,
    .card-wide-left,
    .card-small-right,
    .card-small-left-3,
    .card-wide-right {
        width: 100%;
        height: 220px;
        min-height: 220px;
        flex: none;
    }


    /* Final large card */
    .card-full-hero {
        width: 100%;
        height: 340px;
        min-height: 340px;
        flex: none;
    }


    /* Card spacing */
    .community-card {
        padding: var(--space-4);
        border-radius: 20px;
    }


    /* Mobile title */
    .community-card__title {
        font-size: var(--text-body);
        line-height: var(--leading-body);
    }

    /* Mobile caption */
    .community-card__caption {
        max-width: 100%;
        font-size: var(--text-body-sm);
        line-height: var(--leading-body-sm);
    }
}


@media (max-width: 1100px) {

    .next-step-section {
        padding: 120px 32px;
    }
}


@media (max-width: 900px) {

    .next-step-section {
        padding: 112px 24px;
    }

    .next-step-section__cards {
        gap: 16px;
    }

    .next-step-card {
        height: 150px;
        padding: 20px;
    }
}



@media (max-width: 768px) {


    .next-step-section {
        padding: 96px 20px;
    }

    .next-step-section__container {
        gap: 32px;
    }

    .next-step-section__header {
        gap: 16px;
    }

    .next-step-section__title {
        font-size: 32px;
        line-height: 40px;
    }

    .next-step-section__description {
        font-size: 16px;
        line-height: 24px;
    }

    .next-step-section__cards {
        flex-direction: column;
        gap: 16px;
    }

    .next-step-card {
        width: 100%;
        max-width: none;
        min-width: 0;

        height: auto;
        min-height: 140px;

        flex: none;

        align-items: flex-start;
    }

    .next-step-card__description {
        text-align: left;
    }
}


@media (max-width: 480px) {

    .next-step-section {
        padding: 80px 20px;
    }

    .next-step-section__title {
        font-size: 28px;
        line-height: 36px;
    }

    .next-step-section__description {
        font-size: 15px;
        line-height: 23px;
    }

    .next-step-card {
        min-height: 140px;
        padding: 20px;
        border-radius: 14px;
    }

    .next-step-card__title {
        font-size: 18px;
        line-height: 24px;
    }

    .next-step-card__description {
        font-size: 15px;
        line-height: 23px;
    }
}
