/* Events — matches existing Invent Penn State styles
   (Roboto Slab headings, Open Sans body, #008ed6 / #00338d blues, #e98300 buttons, #efefef panels) */

/* Cards */
.ips-event-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid #e6e6e6;
}
.ips-event-card:first-child { padding-top: 0; }

.ips-event-date {
    flex: 0 0 76px;
    text-align: center;
    background: #1e407c;
    color: #fff;
    border-radius: 4px;
    padding: 10px 0 8px;
    line-height: 1;
    text-decoration: none;
}
.ips-event-date:hover, .ips-event-date:focus { color: #fff; opacity: .92; }
.ips-event-month {
    display: block;
    font-family: "Open Sans", sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e98300;
}
.ips-event-day {
    display: block;
    font-family: 'Roboto Slab', serif;
    font-size: 34px;
    margin-top: 4px;
}

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

.ips-event-title,
section.featured-story .ips-event-title {
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    line-height: 1.2;
    color: #00338d;
    margin: 0 0 8px 0;
    font-size: 22px;
}
.ips-event-title a { color: #00338d; }
.ips-event-title a:hover { color: #008ed6; }

.ips-event-meta {
    font-family: "Open Sans", sans-serif;
    color: #666666;
    font-size: 15px;
    margin: 0 0 10px 0;
}
.ips-event-meta span { display: block; margin-bottom: 2px; }
.ips-event-meta .fa { color: #008ed6; width: 16px; text-align: center; margin-right: 4px; }

.ips-event-excerpt {
    font-family: "Open Sans", sans-serif;
    color: #333;
    margin: 0 0 14px 0;
}

.ips-event-secondary-btn {
    display: inline-block;
    margin-left: 10px;
    font-family: "Open Sans", sans-serif;
    font-weight: bold;
    font-size: 15px;
    line-height: 32px;
    padding: 0 10px;
    border: 2px solid #008ed6;
    border-radius: 4px;
    color: #008ed6;
}
.ips-event-secondary-btn:hover { background: #008ed6; color: #fff; }

/* Listing page */
.ips-events-tabs {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #efefef;
}
.ips-events-tabs a {
    display: block;
    padding: 8px 18px;
    font-family: "Open Sans", sans-serif;
    font-weight: bold;
    color: #666666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.ips-events-tabs a.is-active { color: #008ed6; border-bottom-color: #e98300; }
.ips-events-empty {
    background: #efefef;
    padding: 30px 20px;
    font-family: "Open Sans", sans-serif;
    color: #666666;
}

/* Homepage (compact) */
.ips-events-home .ips-event-card { padding: 18px 0; }
.ips-events-home .ips-event-card:first-of-type { padding-top: 0; }
.ips-events-home .ips-event-date { flex-basis: 62px; padding: 8px 0 6px; }
.ips-events-home .ips-event-day { font-size: 28px; }
.ips-events-home .ips-event-title { font-size: 18px; margin-bottom: 4px; }
.ips-events-home .ips-event-meta { font-size: 14px; margin: 0; }
.ips-events-home .ips-events-empty { margin-bottom: 20px; }
.ips-events-home .ips-events-home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #efefef;
    margin: 20px 0 30px 0;
}
.ips-events-home .ips-events-home-footer h3 { margin: 0 !important; padding: 0 !important; line-height: 1.2; }
.ips-events-home .ips-events-home-footer a.orange-btn { margin: 0 !important; display: inline-block; white-space: nowrap; flex: 0 0 auto; }

/* Single event */
.ips-event-single .news-heading { margin-bottom: 20px; }
.ips-event-back { font-family: "Open Sans", sans-serif; margin-bottom: 6px; }
.ips-event-past-note {
    background: #efefef;
    padding: 10px 14px;
    font-family: "Open Sans", sans-serif;
    color: #666666;
}
.ips-event-details {
    font-family: "Open Sans", sans-serif;
    background: #efefef;
    padding: 20px 22px;
    margin-bottom: 30px;
}
.ips-event-details h4,
.ips-event-description h4 {
    font-family: 'Roboto Slab', serif;
    color: #00338d;
    font-size: 20px;
    margin: 0 0 6px 0;
}
.ips-event-details h4:not(:first-child) { margin-top: 20px; }
.ips-event-details p { margin: 0 0 8px 0; }
.ips-event-description { font-family: "Open Sans", sans-serif; }
.ips-event-description img { max-width: 100%; height: auto; margin-bottom: 20px; }

@media screen and (max-width: 39.9375em) {
    .ips-event-card { gap: 14px; }
    .ips-event-date { flex-basis: 60px; }
    .ips-event-day { font-size: 28px; }
    .ips-event-title, section.featured-story .ips-event-title { font-size: 19px; }
    .ips-event-secondary-btn { margin: 10px 0 0 0; }
    .ips-events-home .ips-events-home-footer { flex-wrap: wrap; }
}
