.block {
    width: 550px;
    /*height: 350px;
    background-color: blue;*/
    float: left;
    margin: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

#programs .ism-slider {
    min-width: 500px;
}

.progs {
    max-width: 260px;
    text-align: center;
}

.home-banner {
    background: linear-gradient(180deg, rgba(12, 28, 72, 0.72) 0%, rgba(8, 16, 40, 0.45) 100%);
    border-bottom: 1px solid rgba(140, 170, 255, 0.18);
}

.event-container {
    background:
        linear-gradient(180deg, rgba(18, 32, 72, 0.82) 0%, rgba(8, 14, 36, 0.72) 100%);
    border: 1px solid rgba(180, 200, 255, 0.28);
    border-radius: 14px;
    padding: 16px 16px 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.28);
    height: 328px;
    max-height: 328px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

#upcoming_event_title {
    flex-shrink: 0;
    color: #f7f4ea;
    font: 700 22px/1.2 Georgia, "Times New Roman", Times, serif;
    text-align: center;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(180, 200, 255, 0.22);
    text-shadow: 0 0 16px rgba(140, 180, 255, 0.35);
}

.ue-heading-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #efc56a;
    flex-shrink: 0;
}

.ue-heading-icon svg {
    width: 22px;
    height: 22px;
}

.ue-feed {
    list-style: none;
    margin: 0;
    padding: 6px 6px 6px 0;
    flex: 1 1 0%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 197, 106, 0.4) rgba(255, 255, 255, 0.05);
}

.ue-feed::-webkit-scrollbar {
    width: 6px;
}

.ue-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ue-feed::-webkit-scrollbar-thumb {
    background: rgba(239, 197, 106, 0.35);
    border-radius: 4px;
}

.ue-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 197, 106, 0.7);
}

.ue-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 1;
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
    padding: 20px 10px;
}

.ue-empty-state p {
    margin-bottom: 12px;
}

.ue-cal-link {
    color: #efc56a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(239, 197, 106, 0.5);
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.ue-cal-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.ue-feed li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ue-feed li+li {
    margin-top: 6px;
}

.ue-feed .ue-feed-spacer {
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: none;
    pointer-events: none;
}

.ue-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(180, 200, 255, 0.12);
    box-sizing: border-box;
    max-width: 100%;
}

.ue-list {
    flex: 1 1 0%;
    min-width: 0;
    word-break: break-word;
}

.ue-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(210, 190, 120, 0.35);
}

.ue-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: #f0e6c8;
    padding-left: 14px;
    position: relative;
}

.ue-title+.ue-title {
    margin-top: 4px;
}

.ue-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #efc56a;
    box-shadow: 0 0 8px rgba(239, 197, 106, 0.7);
}

.ue-title a {
    color: #f3e7c0;
    text-decoration: none;
    border-bottom: 1px solid rgba(239, 197, 106, 0.35);
}

.ue-title a:hover {
    color: #fff6d8;
    border-bottom-color: #efc56a;
}

.ue-date {
    font-family: Georgia, "Times New Roman", Times, serif;
    flex: 0 0 auto;
    min-width: 92px;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1a1408;
    background: linear-gradient(180deg, #f6e7b2 0%, #e0c36a 100%);
    box-shadow: 0 0 12px rgba(239, 197, 106, 0.25);
}

.ue-list {
    min-width: 0;
    flex: 1;
}

.ue-feed::-webkit-scrollbar {
    width: 8px;
}

.ue-feed::-webkit-scrollbar-thumb {
    background: rgba(180, 200, 255, 0.35);
    border-radius: 8px;
}

.ue-separator {
    display: none;
}

.center-name-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 12px auto 16px;
    padding: 0 12px;
}

.center-name-link {
    border: 1px solid rgba(140, 170, 255, 0.28);
    border-radius: 999px;
    background: rgba(10, 22, 52, 0.72);
    color: #d8eaff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
}

.center-name-link:hover {
    border-color: rgba(230, 240, 255, 0.7);
    color: #fff;
}

.center-name-link.is-active {
    background: rgba(48, 90, 180, 0.85);
    border-color: rgba(180, 210, 255, 0.75);
    color: #fff;
    box-shadow: 0 0 12px rgba(120, 170, 255, 0.45);
}

.location {
    min-width: 300px;
    width: 80%;
    max-width: CALC(100% - 200px);
    height: 250px;
    border: solid rgba(180, 200, 255, 0.35);
    border-radius: 10px;
    margin: 10px;
    padding: 5px;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
    background-color: rgba(18, 28, 58, 0.88);
    color: #e4ecfb;
}

.location h2 {
    font-weight: bold;
    font-size: 22px;
    width: 100%;
    text-align: center;
}

.location a {
    color: revert;
    text-decoration: revert;
}

.center-coordinator-info {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e4ecfb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.center-coordinator-info .coordinator-label {
    font-weight: 700;
    color: #ffffff;
}

.center-coordinator-info .coordinator-name {
    font-weight: 600;
    color: #ffffff;
}

.coordinator-mobile-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    color: #58a6ff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 2px 10px;
    background: rgba(88, 166, 255, 0.12);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 20px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
}

.coordinator-mobile-link:hover {
    background: rgba(88, 166, 255, 0.25);
    color: #90c6ff !important;
    border-color: rgba(88, 166, 255, 0.7);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
    text-decoration: none !important;
}

.coordinator-mobile-icon {
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.coordinator-mobile-text {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

.coordinator-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    margin-left: 6px;
    text-decoration: none !important;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.coordinator-whatsapp-link:hover {
    transform: scale(1.15);
    background: #20ba5a;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.7);
    color: #ffffff !important;
    text-decoration: none !important;
}

.coordinator-whatsapp-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.center-map-link {
    margin-top: 6px;
    clear: both;
}


@media (max-width: 768px) {
    .block {
        width: 100%;
        max-width: 100%;
        float: none;
        margin: 8px 0;
    }

    #programs .ism-slider {
        min-width: 0;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .carousel-wrapper {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .location {
        min-width: 0;
        width: calc(100% - 48px);
        max-width: 100%;
        box-sizing: border-box;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }

    .event-container {
        height: auto;
        max-height: 328px;
    }

    .ue-item {
        flex-direction: column;
        gap: 8px;
    }

    .ue-date {
        min-width: 0;
        align-self: flex-start;
    }
}