/* Card Styling */
.sdt-event-card {
    display: block; text-decoration: none; background: #fff;
    border: 1px solid var(--sdt-card-border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    color: inherit;
}
.sdt-event-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.sdt-card-img { width: 100%; height: 250px; object-fit: cover; display: block; }
.sdt-card-body { padding: 15px; border-top: 3px solid transparent; }

/* Border top on hover/active for carousel cards */
/* .swiper-slide .sdt-event-card .sdt-card-body { border-color: #9c27b0; } */

/* Title Truncation */
.sdt-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    /* CSS Line Clamp */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-date {
    position: absolute;
    margin-top: -10px;
    margin-left: -10px;
    font-size: 18px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    color: #fdb813;
    font-weight: 500;
    background-color: #1a1a1a;
    padding-left: 0px;
    height: 60px;
    line-height: 2.3;
    padding-right: 20px;
    z-index: 10;
    display: grid;
    grid-template-areas: "evd evm" "evd evy";
    grid-template-columns: 2fr minmax(auto, auto);
    grid-template-rows: auto auto;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.35);
}
.event-date:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 50px;
    background: 0 0;
    display: flex;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
}
@media screen and (min-width: 767px) {
    .event-date:before {
        left: 1px;
    }
}
.event-date:after {
    content: "";
    position: absolute;
    display: inline-block;
    z-index: -1;
    bottom: -7px;
    left: 4px;
    width: 0;
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent #414141 transparent;
    transform: rotate(45deg);
}
.event-date .start-date,
.event-date .end-date {
    font-size: 16px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    color: #fff;
    font-weight: 400;
    background-color: #1a1a1a;
    padding-left: 14px;
    height: 55px;
    line-height: 2.3;
    z-index: 10;
    display: grid;
    grid-template-areas: "evd evm" "evd evy";
    grid-template-columns: 2fr minmax(auto, auto);
    grid-template-rows: auto auto;
    margin: 0 5px;
    text-shadow: 0 -2px 0 black;
}
.event-date .event-day {
    grid-area: evd;
    font-size: 2rem; /*2.6*/
    font-weight: 300; /*400*/
    place-self: center;
    padding: 0 5px; /*0 10px*/
    line-height: 1;
}
.event-date .event-month {
    grid-area: evm;
    place-self: end left;
    line-height: 1.2;
    text-transform: uppercase;
    font-size: 0.7rem; /*new*/
}
.event-date .event-weekday {
    grid-area: evy;
    place-self: start left;
    line-height: 1.2;
    font-size: 0.7rem; /*new*/
}
.event-date .ui.vertical.divider {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 0;
    width: auto;
    height: 50%;
    line-height: 0;
    text-align: center;
    transform: translateX(-50%);
    padding-left: 2px;
    color: #888;
}
.event-date .ui.vertical.divider:after,
.event-date .ui.vertical.divider:before {
    position: absolute;
    left: 50%;
    content: "";
    z-index: 2;
    border-left: 1px solid #000000;
    border-right: 1px solid #444;
    width: 0%;
    height: calc(100% - 1rem);
}
.event-date .ui.vertical.divider:before {
    top: -100%;
}
.event-date .ui.vertical.divider:after {
    top: auto;
    bottom: 0;
}

/* Layouts */
.sdt-grid-view { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sdt-gap, 20px); }
@media screen and (min-width: 1025px) {
    .sdt-event-item { height: 100%; flex: 0 0 calc(33% - var(--sdt-gap, 20px)); }
}
@media screen and (min-width: 1280px) {
    .sdt-event-item { height: 100%; flex: 0 0 calc(25% - var(--sdt-gap, 20px)); }
}
@media screen and (max-width: 1024px) {
    .sdt-event-item { height: 100%; flex: 0 0 calc(50% - var(--sdt-gap, 20px)); }
}
@media screen and (max-width: 767px) {
    .sdt-event-item { height: 100%; flex: 0 0 calc(100% - var(--sdt-gap, 50px)); }
}
@media screen and (max-width: 520px) {
    .sdt-event-item { height: 100%; flex: 0 0 calc(100% - var(--sdt-gap, 20px)); }
}

.sdt-load-more-event-btn, .sdt-event-loader {
    display: inline-block;
    font-weight: 700;
    color: #000;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #f8b617;
    border: 0rem solid transparent;
    margin-right: 10px;
    padding: 0.5625rem 1.125rem;
    font-size: 1rem;
    line-height: 1.8;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    line-break: normal;
}
.swiper-wrapper {
    display: flex;
    padding: 10px
}
.sdt-event-loader {
    background-color: lightgray;
}
/* Carousel Layout Fixes */
.swiper-wrapper { display: flex; }
.sdt-events-container { overflow: hidden; }
.swiper {  overflow: visible; padding: 0 17px; }
.swiper-slide { height: auto; }
/* Hide Tabs that have no Events */
.tab-pane:has(.sdt-no-events) { text-align: center; }
/* Swiper CSS */
.sdt-events-container span.swiper-pagination-bullet {
    background-color: #2a2a2a !important;
}