/* Library Week — modern event schedule */
.events-highlight--modern {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(160deg, #f4f6fc 0%, #eef1f9 45%, #f8f9ff 100%);
    overflow: hidden;
}

.events-highlight--modern::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 30, 206, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.events-highlight--modern .sec-title {
    text-align: center;
    margin-bottom: 48px;
}

.events-highlight--modern .sec-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #12114a;
    margin-bottom: 8px;
}

.events-highlight--modern .sec-title .subtitle {
    color: #5c6378;
    font-size: 1.05rem;
    margin: 0;
}

.lw-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.lw-event-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(18, 17, 74, 0.07);
    border: 1px solid rgba(18, 17, 74, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lw-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(18, 17, 74, 0.12);
}

.lw-event-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px 18px;
    background: linear-gradient(135deg, #12114a 0%, #2a2878 100%);
    color: #fff;
}

.lw-event-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.lw-event-card__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lw-event-card__date-block {
    flex: 1;
    min-width: 0;
}

.lw-event-card__date {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.3;
}

.lw-event-card__time {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}

.lw-event-card--time-focus .lw-event-card__header,
.lw-event-card--has-schedule .lw-event-card__header {
    padding-bottom: 20px;
}

.lw-time-hero {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -12px 16px 0;
    padding: 7px 10px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 45%),
        linear-gradient(125deg, #0c0b2e 0%, #1a1854 45%, #4f3fd9 100%);
    box-shadow:
        0 6px 16px rgba(12, 11, 46, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.lw-time-hero__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.68rem;
    color: #fff;
    background: linear-gradient(145deg, #4f3fd9 0%, #6b5ce7 100%);
    box-shadow: 0 0 0 2px rgba(79, 63, 217, 0.25);
}

.lw-time-hero__content {
    min-width: 0;
    flex: 1;
}

.lw-time-hero__value {
    display: block;
    font-size: clamp(0.78rem, 1.8vw, 0.88rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.01em;
}

.lw-time-hero__sep {
    margin: 0 0.35em;
    opacity: 0.55;
    font-weight: 400;
}

.lw-time-hero--focus {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        linear-gradient(125deg, #c91d72 0%, #f20487 40%, #4f3fd9 100%);
    box-shadow:
        0 6px 18px rgba(242, 4, 135, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.lw-time-hero--focus .lw-time-hero__icon {
    color: #fff;
    background: linear-gradient(145deg, #f20487 0%, #ff4da6 100%);
    box-shadow: 0 0 0 2px rgba(242, 4, 135, 0.28);
}

.lw-time-hero--focus .lw-time-hero__time {
    font-weight: 800;
}

.lw-event-card--has-schedule .lw-event-card__body {
    padding-top: 14px;
}

.lw-event-card__status {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.lw-event-card__status--open {
    background: #22c55e;
    color: #fff;
}

.lw-event-card__status--closed {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.lw-event-card__body {
    padding: 22px 22px 12px;
    flex: 1;
}

.lw-event-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 16px;
}

.lw-event-card__title a {
    color: #12114a;
    text-decoration: none;
    transition: color 0.2s;
}

.lw-event-card__title a:hover {
    color: #4b1ece;
}

.lw-event-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lw-event-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5068;
    line-height: 1.5;
    margin-bottom: 10px;
}

.lw-event-card__meta li:last-child {
    margin-bottom: 0;
}

.lw-event-card__meta img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.85;
}

.lw-event-card__meta strong {
    color: #12114a;
    font-weight: 600;
    margin-right: 4px;
}

.lw-event-card__footer {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eef0f6;
    margin-top: auto;
    background: linear-gradient(180deg, #f8f9fd 0%, #f3f5fb 100%);
}

.lw-event-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.lw-event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.lw-event-btn i {
    font-size: 0.82em;
}

.lw-event-btn:hover {
    transform: translateY(-1px);
}

.lw-event-btn--lead {
    width: 100%;
    min-height: 44px;
    font-size: 0.88rem;
}

.lw-event-btn--primary {
    background: #fff;
    color: #12114a !important;
    border-color: rgba(18, 17, 74, 0.16);
    box-shadow: 0 1px 2px rgba(18, 17, 74, 0.06);
}

.lw-event-btn--primary:hover {
    background: #f4f5fa;
    border-color: rgba(18, 17, 74, 0.28);
    color: #12114a !important;
}

.lw-event-btn--accent {
    background: linear-gradient(135deg, #f20487 0%, #e91e8c 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(242, 4, 135, 0.22);
}

.lw-event-btn--accent:hover {
    background: linear-gradient(135deg, #d10375 0%, #c9187d 100%);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(242, 4, 135, 0.28);
}

.lw-event-btn--outline {
    background: #fff;
    color: #12114a !important;
    border-color: rgba(18, 17, 74, 0.12);
}

.lw-event-btn--outline:hover {
    border-color: rgba(18, 17, 74, 0.22);
    background: #fff;
}

.lw-event-btn--blue {
    background: #fff;
    color: #1d4ed8 !important;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.lw-event-btn--blue:hover {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

.lw-event-btn--warm {
    background: #fff;
    color: #c2410c !important;
    border-color: rgba(234, 88, 12, 0.28);
    box-shadow: 0 1px 2px rgba(234, 88, 12, 0.08);
}

.lw-event-btn--warm:hover {
    background: #fff7ed;
    border-color: rgba(234, 88, 12, 0.45);
    color: #c2410c !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.14);
}

.lw-event-btn--staff {
    background: #fff;
    color: #0369a1 !important;
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 1px 2px rgba(14, 165, 233, 0.08);
}

.lw-event-btn--staff:hover {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, 0.45);
    color: #0369a1 !important;
}

@media (max-width: 767px) {
    .events-highlight--modern {
        padding: 70px 0 50px;
    }

    .lw-event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lw-event-card__header {
        flex-wrap: wrap;
    }

    .lw-event-card__status {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }

    .lw-event-card__footer {
        flex-direction: column;
    }

    .lw-event-btn {
        width: 100%;
        text-align: center;
    }
}
