/* EventHub Events Widget */
.eventhub-widget-container {
    width: 100%;
}

.eventhub-widget-header {
    margin: 0 0 20px 0;
    font-weight: bold;
}

.eventhub-widget-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.eventhub-widget-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.eventhub-widget-grid.eventhub-widget-scroll {
    flex: 1;
    min-width: 0;
}

.eventhub-widget-grid.eventhub-widget-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox - hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.eventhub-widget-grid.eventhub-widget-scroll .eventhub-widget-card {
    flex-shrink: 0;
}

.eventhub-widget-grid.eventhub-widget-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - hide scrollbar */
    width: 0;
    height: 0;
}

.eventhub-widget-arrow {
    background-color: #2271b1 !important;
    background: #2271b1 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 24px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-weight: normal !important;
    text-align: center !important;
    vertical-align: middle !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.eventhub-widget-arrow:hover,
.eventhub-widget-arrow:focus,
.eventhub-widget-arrow:focus-visible {
    background-color: #135e96 !important;
    background: #135e96 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: scale(1.1) !important;
    text-decoration: none !important;
}

.eventhub-widget-arrow:active,
.eventhub-widget-arrow:focus:active {
    background-color: #0f4c75 !important;
    background: #0f4c75 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: scale(0.95) !important;
    text-decoration: none !important;
}

.eventhub-widget-arrow:disabled,
.eventhub-widget-arrow[disabled] {
    background-color: #cccccc !important;
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.eventhub-widget-arrow span {
    display: block !important;
    font-weight: bold !important;
    color: inherit !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.eventhub-widget-arrow-left {
    background-color: #2271b1 !important;
    background: #2271b1 !important;
}

.eventhub-widget-arrow-right {
    background-color: #2271b1 !important;
    background: #2271b1 !important;
}

.eventhub-widget-arrow-left:hover,
.eventhub-widget-arrow-left:focus {
    background-color: #135e96 !important;
    background: #135e96 !important;
}

.eventhub-widget-arrow-right:hover,
.eventhub-widget-arrow-right:focus {
    background-color: #135e96 !important;
    background: #135e96 !important;
}

.eventhub-widget-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eventhub-widget-image {
    width: 100%;
    overflow: hidden;
}

.eventhub-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eventhub-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eventhub-widget-button-wrapper {
    margin-top: auto;
}

.eventhub-widget-title {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.eventhub-widget-description {
    margin: 0 0 15px 0;
    flex: 1;
}

.eventhub-widget-button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-sizing: border-box;
    background-color: #2271b1;
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.eventhub-widget-button:hover {
    text-decoration: none;
    background-color: #135e96;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}