/* ==========================================================
   CALENDAR
   Community Astra V1.0
========================================================== */

/* ==========================================================
   CALENDAR PAGE
========================================================== */

.c-calendar-page {
    padding: 72px 0 96px;
    background: var(--color-surface);
}

.c-calendar-page .section-heading {
    margin-bottom: 56px;
}

.c-calendar-page__eyebrow {
    margin: 0 0 8px;
    color: #0b6fa4;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.c-calendar-page .section-heading h1 {
    margin: 0 0 12px;
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.05;
}

.c-calendar-page .section-heading > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: #607080;
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================================
   SECTION HEADING
========================================================== */

.c-calendar-section {
    margin-bottom: 80px;
}

.c-calendar-section__heading {
    margin-bottom: 28px;
}

.c-calendar-section__heading h2 {
    margin: 0 0 10px;
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.15;
}

.c-calendar-section__heading p {
    max-width: 680px;
    margin: 0;
    color: #607080;
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================
   UPCOMING EVENTS GRID
========================================================== */

.c-calendar__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* ==========================================================
   EVENT CARD
========================================================== */

.c-calendar-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-width: 0;
    min-height: 220px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe4e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.c-calendar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   DATE BLOCK
========================================================== */

.c-calendar-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background: #173b5c;
    color: #ffffff;
    text-align: center;
}

.c-calendar-card__day {
    display: block;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.c-calendar-card__month {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ==========================================================
   EVENT CONTENT
========================================================== */

.c-calendar-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px 28px;
}

.c-calendar-card__title {
    min-width: 0;
    margin: 0 0 12px;
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.c-calendar-card__title a {
    color: inherit;
    text-decoration: none;
}

.c-calendar-card__title a:hover {
    color: #0b6fa4;
}

/* ==========================================================
   EVENT META
========================================================== */

.c-calendar-card__time,
.c-calendar-card__location {
    position: relative;
    margin: 0 0 7px;
    color: #607080;
    font-size: 13px;
    line-height: 1.5;
}

.c-calendar-card__time {
    font-weight: 600;
}

.c-calendar-card__location {
    margin-bottom: 14px;
}

/* ==========================================================
   EVENT EXCERPT
========================================================== */

.c-calendar-card__excerpt {
    margin-bottom: 18px;
    color: #405261;
    font-size: 14px;
    line-height: 1.65;
}

/* ==========================================================
   EVENT LINK
========================================================== */

.c-calendar-card__link {
    display: inline-block;
    margin-top: auto;
    color: #0b6fa4;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.c-calendar-card__link:hover {
    color: #173b5c;
}

/* ==========================================================
   EMPTY STATE
========================================================== */

.c-calendar-empty {
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 60px 30px;
    text-align: center;
    background: #f7f7f4;
    border: 1px solid #e1e1dc;
}

.c-calendar-empty h2 {
    margin: 0 0 12px;
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: 28px;
}

.c-calendar-empty p {
    margin: 0;
    color: #607080;
    font-size: 15px;
}

/* ==========================================================
   PAST EVENTS
========================================================== */

.c-calendar-section--past {
    padding-top: 20px;
    border-top: 1px solid #dfe4e8;
}

.c-calendar__past-list {
    display: grid;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dfe4e8;
}

.c-calendar-past-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    border-bottom: 1px solid #e7eaec;
}

.c-calendar-past-item:last-child {
    border-bottom: 0;
}

.c-calendar-past-item__date {
    color: #71808c;
    font-size: 13px;
}

.c-calendar-past-item__title {
    min-width: 0;
    margin: 0;
    font-family: var(--font-display);
    font-size: 19px;
    overflow-wrap: break-word;
}

.c-calendar-past-item__title a {
    color: var(--color-heading);
    text-decoration: none;
}

.c-calendar-past-item__title a:hover {
    color: #0b6fa4;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .c-calendar-page {
        padding: 56px 0 72px;
    }

    .c-calendar-page .section-heading {
        margin-bottom: 44px;
    }

    .c-calendar__grid {
        grid-template-columns: 1fr;
    }

    .c-calendar-section {
        margin-bottom: 64px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .c-calendar-page {
        padding: 44px 0 60px;
    }

    .c-calendar-page .section-heading {
        margin-bottom: 34px;
    }

    .c-calendar-page .section-heading h1 {
        font-size: 40px;
    }

    .c-calendar-section__heading h2 {
        font-size: 28px;
    }

    .c-calendar-card {
        grid-template-columns: 78px minmax(0, 1fr);
        min-height: 0;
    }

    .c-calendar-card__date {
        padding: 16px 8px;
    }

    .c-calendar-card__day {
        font-size: 34px;
    }

    .c-calendar-card__month {
        font-size: 11px;
    }

    .c-calendar-card__content {
        padding: 22px 20px;
    }

    .c-calendar-card__title {
        font-size: 22px;
    }

    .c-calendar-past-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 16px 20px;
    }

    .c-calendar-section--past {
        padding-top: 12px;
    }
}