
/* =====================================================
   Jubilee Events UI — light version
   PHP 5.5 / Bootstrap 3.3.6 / jQuery 2.2.3
===================================================== */

.jubilee-events-widget {
    margin: 35px 0;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    border-bottom: 1px solid #e3eaf2;
}

.jubilee-events-header {
    margin-bottom: 18px;
}

.jubilee-events-kicker {
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #b88a2a;
    font-weight: bold;
    margin-bottom: 7px;
}

.jubilee-events-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    color: #0057b8;
    font-weight: bold;
}

.jubilee-events-subtitle {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #5f6f82;
}

.jubilee-events-shell {
    position: relative;
}

.jubilee-events-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px 4px 20px 4px;
    -webkit-overflow-scrolling: touch;
}

.jubilee-events-scroll::-webkit-scrollbar {
    height: 8px;
}

.jubilee-events-scroll::-webkit-scrollbar-track {
    background: #e6eef7;
    border-radius: 10px;
}

.jubilee-events-scroll::-webkit-scrollbar-thumb {
    background: #9db8d8;
    border-radius: 10px;
}

.jubilee-events-track {
    white-space: nowrap;
}

.jubilee-event-card {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 118px;
    height: 300px;
    margin-right: 12px;
    white-space: normal;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%);
    color: #184b7a;
    border: 1px solid #d7e5f3;
    box-shadow: 0 8px 20px rgba(0, 77, 153, 0.08);
    transition: width 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.jubilee-event-card:hover {
    transform: translateY(-3px);
    border-color: #aac6e3;
    box-shadow: 0 12px 24px rgba(0, 77, 153, 0.12);
}

.jubilee-event-card.is-active {
    width: 380px;
    background: linear-gradient(135deg, #fafdff 0%, #eef5fc 55%, #e6f0fa 100%);
    border-color: #b7d0ea;
    box-shadow: 0 14px 28px rgba(0, 77, 153, 0.14);
}

.jubilee-event-card:before {
    content: "";
    position: absolute;
    left: -45px;
    top: -65px;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background: rgba(184, 138, 42, 0.10);
}

.jubilee-event-card:after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -55px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(0, 87, 184, 0.06);
}

.jubilee-event-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 18px 15px;
}

.jubilee-event-date {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #e8f1fb;
    font-size: 13px;
    line-height: 1;
    color: #0057b8;
    font-weight: bold;
}

.jubilee-event-time {
    margin-top: 14px;
    font-size: 22px;
    line-height: 1;
    color: #b88a2a;
    font-weight: bold;
}

.jubilee-event-short {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 18px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: bold;
    color: #184b7a;
}

.jubilee-event-full {
    display: none;
    margin-top: 24px;
}

.jubilee-event-card.is-active .jubilee-event-short {
    display: none;
}

.jubilee-event-card.is-active .jubilee-event-full {
    display: block;
}

.jubilee-event-full-title {
    font-weight: bold;
    color: #0c4f93;
    max-width: 325px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Короткие названия */
.jubilee-event-card.jw-title-normal .jubilee-event-full-title {
    font-size: 23px;
    line-height: 1.18;
}

/* Средние названия */
.jubilee-event-card.jw-title-medium .jubilee-event-full-title {
    font-size: 20px;
    line-height: 1.18;
}

/* Длинные названия */
.jubilee-event-card.jw-title-small .jubilee-event-full-title {
    font-size: 17px;
    line-height: 1.16;
}

/* Очень длинные названия */
.jubilee-event-card.jw-title-xsmall .jubilee-event-full-title {
    font-size: 15px;
    line-height: 1.15;
}
.jubilee-event-meta {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #52708f;
}

.jubilee-event-location {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.4;
    color: #6a7f97;
}

.jubilee-event-access {
    display: inline-block;
    margin-top: 15px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff5df;
    color: #9a6c12;
    border: 1px solid #ecd29a;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
}

.jubilee-event-day-label {
    display: none;
    position: absolute;
    right: 15px;
    top: 18px;
    font-size: 11px;
    line-height: 1;
    color: #8ba2bb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.jubilee-event-card.is-active .jubilee-event-day-label {
    display: block;
}

.jubilee-scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    border: 1px solid #d7e5f3;
    border-radius: 50%;
    background: #ffffff;
    color: #0057b8;
    box-shadow: 0 8px 18px rgba(0, 77, 153, 0.10);
    font-size: 24px;
    line-height: 34px;
    text-align: center;
    outline: none;
}

.jubilee-scroll-btn:hover,
.jubilee-scroll-btn:focus {
    background: #f1f7fd;
    color: #0057b8;
    border-color: #aac6e3;
    outline: none;
}

.jubilee-scroll-left {
    left: -13px;
}

.jubilee-scroll-right {
    right: -13px;
}

.jubilee-events-empty {
    padding: 20px;
    background: #f7fafc;
    border: 1px solid #dfeaf4;
    border-radius: 12px;
    color: #667085;
}

.jubilee-event-card.jw-title-small .jubilee-event-full,
.jubilee-event-card.jw-title-xsmall .jubilee-event-full {
    margin-top: 18px;
}

.jubilee-event-card.jw-title-small .jubilee-event-meta,
.jubilee-event-card.jw-title-xsmall .jubilee-event-meta {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.35;
}

.jubilee-event-card.jw-title-small .jubilee-event-location,
.jubilee-event-card.jw-title-xsmall .jubilee-event-location {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.3;
}

.jubilee-event-card.jw-title-small .jubilee-event-access,
.jubilee-event-card.jw-title-xsmall .jubilee-event-access {
    margin-top: 10px;
    font-size: 11px;
}

@media (max-width: 767px) {
    .jubilee-events-title {
        font-size: 24px;
    }

    .jubilee-events-subtitle {
        font-size: 14px;
    }

    .jubilee-event-card {
        width: 108px;
        height: 285px;
        margin-right: 9px;
    }

    .jubilee-event-card.is-active {
        width: 292px;
    }

    .jubilee-event-full-title {
        font-size: 19px;
        max-width: 245px;
    }

    .jubilee-event-time {
        font-size: 20px;
    }

    .jubilee-scroll-btn {
        display: none;
    }
}
