/* ==========================================================================
   Events — Widget, Archive, Cards, Badges, Documents, Gallery
   ========================================================================== */

.upcoming-events-widget,
.events-archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.events-archive {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.events-archive-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #232323;
    margin: 0 0 20px;
}

.event-empty-state {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

/* ---- Card ---- */
.event-card {
    display: flex;
    gap: 16px;
    background: #f7f8f5;
    border-radius: 14px;
    padding: 18px;
}

.event-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.event-badge-month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2f4024;
}

.event-badge-day {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2f4024;
}

.event-card-body {
    flex: 1;
    min-width: 0;
}

.event-card-title-link {
    text-decoration: none;
}

.event-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #232323;
    margin: 0 0 6px;
}

.event-card-excerpt {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 10px;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

.event-card-meta-item i {
    margin-right: 5px;
    color: #9ca3af;
}

/* ---- CTA button ---- */
.upcoming-events-cta {
    margin-top: 8px;
}

.event-cta-button {
    display: inline-block;
    background: #728355;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 999px;
}

.event-cta-button:hover {
    background: #5b6b43;
}

/* ---- Add to calendar button (archive cards) ---- */
.event-card-actions {
    margin-top: 14px;
}

.event-ics-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6f9a3c;
    text-decoration: none;
}

.event-ics-btn:hover {
    text-decoration: underline;
}

/* ---- Documents ---- */
.event-documents {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-document-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
}

.event-document-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f4e3c8;
    color: #a6742f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.event-document-name {
    flex: 1;
    font-size: 0.88rem;
    color: #232323;
    font-weight: 600;
}

.event-document-download {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ---- Gallery preview ---- */
.event-gallery {
    margin-top: 14px;
}

.event-gallery-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #232323;
    margin: 0 0 8px;
}

.event-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.event-gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.event-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a6742f;
    text-decoration: none;
}

.event-gallery-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .event-card {
        flex-direction: column;
    }
    .event-badge {
        flex-direction: row;
        width: fit-content;
        height: auto;
        gap: 6px;
        padding: 6px 12px;
    }
}
