/**
 * CSI Events styling.
 * Card on archive + Single page layout matching original CSI.
 */

/* =========================================================
 * CARD (archive) — extends .blog-item from card-research
 * ========================================================= */
.event-card .blog-img {
    position: relative;
}
.event-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0073b2;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    z-index: 3;
}
.event-date-badge__month {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.event-date-badge__day {
    display: block;
    font-size: 22px;
    font-weight: 800;
}
.event-card .event-meta {
    font-size: 20px;
    color: #0073b2;
    font-weight: 700;
}
.event-card .event-meta b {
    font-weight: 700;
}
.event-card .text {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
}
.event-card .blog-authors {
    margin-top: auto;
}

/* =========================================================
 * NO RESULTS
 * ========================================================= */
.events-no-results {
    text-align: center;
    color: #000;
    font-weight: 700;
    font-style: italic;
    font-size: 22px;
    margin: 24px 0;
}
.events-no-results em {
    border: 1px solid #a0a0a0;
    padding: 1.1em 1.5em;
    max-width: 350px;
    width: 100%;
    display: inline-block;
}

/* =========================================================
 * SINGLE: HERO
 * ========================================================= */
.event-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 80px 0 60px;
    background: #1f4a8e;
}
.event-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.event-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* blue overlay over the photo */
.event-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 65, 130, .82) 0%, rgba(20, 65, 130, .9) 100%);
    z-index: 1;
}
.event-hero__inner {
    position: relative;
    z-index: 2;
}
.event-hero__content {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
.event-hero__badge {
    flex: 0 0 auto;
    background: #fff;
    color: #0073b2;
    text-align: center;
    padding: 14px 18px;
    line-height: 1;
    min-width: 84px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.event-hero__badge-month {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 6px;
}
.event-hero__badge-day {
    display: block;
    font-size: 32px;
    font-weight: 800;
}
.event-hero__title {
    color: #fff;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}
@media (max-width: 768px) {
    .event-hero {
        padding: 50px 0 40px;
        min-height: 280px;
    }
    .event-hero__content {
        gap: 20px;
    }
    .event-hero__title {
        font-size: 28px;
    }
    .event-hero__badge {
        min-width: 64px;
        padding: 10px 14px;
    }
    .event-hero__badge-day {
        font-size: 24px;
    }
}

/* =========================================================
 * SINGLE: BODY
 * ========================================================= */
.event-body {
    padding: 60px 0;
}
.event-meta-line {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
}
.event-meta-line__label {
    color: #0073b2;
    font-weight: 700;
}
.event-meta-line__value {
    font-weight: 700;
    color: #0073b2;
}

/* Share buttons */
.event-share {
    margin: 24px 0 16px;
}
.event-share .social ul {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.event-share .social a:hover {
    background: #2160a8;
}

.event-divider {
    border: 0;
    border-top: 1px solid #e0e3e7;
    margin: 24px 0 32px;
}

.event-description {
    color: #000;
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 32px;
}
.event-description p {
    margin: 0 0 16px;
}
.event-description em {
    font-style: italic;
    color: #000;
}

/* =========================================================
 * BUTTONS
 * ========================================================= */
.event-actions {
    margin-top: 24px;
}
.event-actions--back {
    margin-top: 48px;
}
