﻿/* ============================================================
   EVENT CARDS  (calendar / upcoming events)
   ============================================================ */
.ce-regular-list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

/* ── Section header ── */
.event-list-wrap {
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

.event-list-heading {
    margin: 0 0 4px;
    font-size: 1.375rem;
    font-weight: 700;
    color: #14506b;
}

.event-list-subheading {
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: #666;
}

/* ── List ── */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Card ── */
.event-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .event-card:hover {
        border-color: #d2d8dc;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

/* ── Thumbnail ── */
.event-card__thumb {
    flex: 0 0 auto;
   /* width: 140px;
    height: 105px;*/
    width: 264px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

/* Zoom inside the frame — .event-card__thumb already has overflow: hidden */
.event-card:hover .event-card__thumb img,
.event-card__thumb:hover img {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .event-card__thumb img {
        transition: none;
    }

    .event-card:hover .event-card__thumb img,
    .event-card__thumb:hover img {
        transform: none;
    }
}

.event-card__thumb-placeholder {
    color: #999;
    font-size: 0.75rem;
}

/* ── Date block ── */
.event-card__date {
    flex: 0 0 auto;
    width: 112px;
    box-sizing: border-box;
    padding-right: 20px;
    text-align: center;
    line-height: 1.1;
    /* Divider spans the card height, so stretch and re-center the text inside */
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #e3e6e8;
}

.event-card__weekday,
.event-card__month {
    font-size: 0.688rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.event-card__day {
    margin: 4px 0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: #14506b;
}

/* ── Body ── */
.event-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.event-card__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #14506b;
}

    .event-card__title a {
        color: inherit;
        text-decoration: none;
    }

        .event-card__title a:hover {
            text-decoration: underline;
        }

.event-card__time {
    margin-bottom: 6px;
    font-size: 0.813rem;
    color: #6b7280;
}

.event-card__summary {
    margin: 0;
    font-size: 0.813rem;
    line-height: 1.5;
    color: #555;
    /* Backstop for long titles/summaries — server already truncates to ~160 chars */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Read More button ── */
.event-card__action {
    flex: 0 0 auto;
    padding-left: 12px;
}

.event-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #c9d1d6;
    border-radius: 22px;
    font-size: 0.813rem;
    font-weight: 600;
    color: #14506b;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .event-card__btn:hover,
    .event-card__btn:focus {
        background-color: #14506b;
        border-color: #14506b;
        color: #fff;
        text-decoration: none;
    }

    .event-card__btn svg {
        width: 8px;
        height: 12px;
        flex-shrink: 0;
    }

/* ── Responsive ── */
@media (max-width: 860px) {
    .event-card {
        flex-wrap: wrap;
        gap: 16px;
    }

    .event-card__thumb {
        width: 110px;
        height: 84px;
        order: 1;
    }

    .event-card__date {
        flex: 0 0 auto;
        width: auto;
        padding-right: 0;
        border-right: none;
        text-align: left;
        align-self: center;
        order: 2;
    }

    .event-card__body {
        flex: 1 1 100%;
        order: 3;
    }

    .event-card__action {
        flex: 1 1 100%;
        order: 4;
        padding-left: 0;
    }

    .event-card__btn {
        width: 100%;
        justify-content: center;
    }

    .event-card__summary {
        -webkit-line-clamp: 3;
    }
}


/* ============================================================
   NEWSROOM  (existing styles — unchanged)
   ============================================================ */

/* ── Toolbar ── */
.newsroom-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 860px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #444;
}

#newsroom-year-select {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ── List ── */
.newsroom-list {
    display: flex;
    flex-direction: column;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Single item ── */
.newsroom-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px dashed #d0d0d0;
}

    .newsroom-item:last-child {
        border-bottom: none;
    }

/* ── Thumbnail ── */
.newsroom-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
    overflow: hidden;
    border-radius: 3px;
    background-color: #e8e8e8;
}

    .newsroom-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.newsroom-thumbnail--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.75rem;
}

/* ── Content ── */

.newsroom-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

    .newsroom-title a {
        color: inherit;
        text-decoration: none;
    }

        .newsroom-title a:hover {
            text-decoration: underline;
        }

.newsroom-date {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.newsroom-summary {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

.newsroom-readmore {
    margin-top: 10px;
    font-size: 0.875rem;
    text-decoration: none;
}

/* ── View More button ── */
.newsroom-more-wrap {
    max-width: 860px;
    text-align: center;
    margin-top: 24px;
}

.newsroom-more-btn {
    display: inline-block;
    padding: 10px 32px;
    background-color: #005a9e;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 20px;
}

    .newsroom-more-btn:hover {
        background-color: #003f72;
    }

    .newsroom-more-btn:disabled {
        background-color: #aaa;
        cursor: default;
    }
