/*
YRITUSED ESILEHT
*/
.uritused {
    margin-left: auto;
    margin-right: auto;
}
/* .yritused-sise {
    background-color: rgb(31 31 31 / 49%);
    border-radius: 10px 10px 0 0;
    padding: 22px 5px 5px 5px;
    border: 1px solid rgb(128 128 128 / 19%);
    border-bottom: 0;
} */
.size-1-2rem {
    font-size: 1.2rem;
}
.size-1-3rem {
    font-size: 1.3rem;
}
.size-1-4rem {
    font-size: 1.4rem;
}
.size-1-5rem {
    font-size: 1.5rem;
}
.size-1-6rem {
    font-size: 1.6rem;
}
.size-1-7rem {
    font-size: 1.7rem;
}



.event-list-item {
    display: flex;
    margin-bottom: var(--tec-spacer-3);
    position: relative;
}

.event-list-item-row {
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    padding-bottom: var(--tec-spacer-4);
}
.event-date {
    display: flex;
    flex-direction: column;
    min-width: var(--tec-spacer-11);
    margin-right: var(--tec-spacer-4);
    position: relative;
}
.event-date-time {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    padding-left: 15px;
}
.event-date-time::after {
    background-color: var(--wesset-main-blue-color);
    border-radius: 1.5px;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    width: 3px;
    top: 0;
}


/* Using your defined font sizes */
.event-day {
    display: block;
    font-size: var(--tec-font-size-8); /* 28px base */
    font-weight: var(--tec-font-weight-bold);
    color: var(--tec-color-text-primary);
    line-height: 1;
}

.event-month {
    display: block;
    font-size: var(--tec-font-size-1); /* 14px base */

    text-transform: uppercase;
    margin-top: var(--tec-spacer-0);
}

.event-info {
    flex: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    font-size: var(--tec-font-size-2); /* 17px base */
    margin-bottom: var(--tec-spacer-0);
}

.event-featured-icon {
    width: 8px;
    height: 10px;
    margin-right: var(--tec-spacer-1);
    fill: var(--wesset-main-blue-color);
}

.event-time {
    white-space: nowrap;
}

.event-title {
    font-size: var(--tec-font-size-3); /* 16px base */
    font-weight: var(--tec-font-weight-regular);
    color: var(--tec-color-text-primary);
    margin: 0;
    line-height: var(--tec-line-height-2);
}

.event-title a {
    color: var(--wesset-text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    font-weight: bold;
}

.event-title a:hover {
    color: var(--wesset-text-color);
    border-bottom: 1px solid var(--salbos-font-color);
}

/* Responsive styles using your breakpoints */
@media screen and (min-width: 768px) and (max-width: 1439px) {
    .event-day {
        font-size: calc(var(--tec-font-size-8) + 2 * ((100vw - 768px) / 671));
    }
    
    .event-title {
        font-size: calc(var(--tec-font-size-3) + 1 * ((100vw - 768px) / 671));
    }
}

@media screen and (min-width: 1440px) {
    .event-day {
        font-size: var(--tec-font-size-9); /* 32px for larger screens */
    }
    
    .event-title {
        font-size: var(--tec-font-size-4); /* 21px for larger screens */
    }
}

/* Event List Styles */
.em-event-flex {
    display: flex;
    position: relative;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.em-event-flex:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Long-running event styles */
.em-event-flex.long-running {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.em-event-flex.long-running .em-event-date-block {
    min-width: auto;
    border-right: none;
    padding-right: 0;
}

.em-event-flex.long-running .em-event-day,
.em-event-flex.long-running .em-event-month {
    display: none;
}

.em-event-flex.long-running .em-event-date-range {
    display: block;
    font-size: 14px;
    color: var(--salbos-font-color);
    margin-bottom: 10px;
}

.em-event-flex.long-running .em-event-content-wrapper {
    border-left: none;
    padding-left: 0;
}

.em-event-flex.long-running .em-event-image {
    width: 400px;
    height: 250px;
}

/* Regular event styles */
.em-event-date-block {
    display: flex;
    flex-direction: column;
    min-width: 80px;
    text-align: center;
    padding-right: 20px;
    border-right: 3px solid var(--salbos-font-color);
}

.em-event-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    margin-bottom: 5px;
}

.em-event-month {
    font-size: 14px;
    color: var(--salbos-font-color);
    text-transform: uppercase;
}

.em-event-content-flex {
    flex: 1;
    display: flex;
    gap: 30px;
}

.em-event-content-wrapper {
    flex: 1;
}

.em-event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.em-event-datetime {
    color: var(--salbos-font-color);
    font-size: 90%;
}

.em-event-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.3;
}

.em-event-title a {
    color: var(--wesset-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.em-event-title a:hover {
    color: var(--salbos-font-color);
}

.em-event-excerpt {
    color: var(--wesset-text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    /* font-size: 16px; */
}

.em-event-image {
    width: 300px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.em-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.em-event-image:hover img {
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .em-event-flex {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
        margin-bottom: 20px;
    }

    .em-event-flex.long-running {
        padding: 20px;
    }

    .em-event-flex.long-running .em-event-image {
        width: 100%;
        height: 200px;
    }

    .em-event-flex.long-running .em-event-date-range {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .em-event-date-block {
        flex-direction: row;
        align-items: center;
        min-width: auto;
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid var(--salbos-font-color);
        padding-bottom: 15px;
        gap: 10px;
    }

    .em-event-content-flex {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .em-event-image {
        width: 100%;
        height: 200px;
    }

    .em-event-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .em-event-excerpt {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .em-event-datetime {
        font-size: 13px;
    }
}

.em.em-list .em-item {
    display: flex;
    gap: 0px !important;
}
.em-common-g-row {
    flex-wrap: nowrap;
    margin-bottom: 40px;
}

/* Event Single Hero Section */
.em-event-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.em-event-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.em-event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.em-event-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.em-event-hero-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: #fff;
}

.em-event-hero-meta {
    font-size: 18px;
}

.em-event-hero-meta span {
    margin-right: 20px;
}

.em-event-back-button {
    padding: 20px 0;
}

.em-event-back-button a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--salbos-font-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.em-event-back-button a:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .em-event-hero {
        height: 40vh;
        min-height: 300px;
    }

    .em-event-hero-content {
        padding: 20px;
    }

    .em-event-hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .em-event-hero-meta {
        font-size: 14px;
    }
}

/* Event Details Layout */
.em-event-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.em-event-details-left,
.em-event-details-right {
    padding: 0!important;
    border-radius: 8px;
}
.em-event-details-right {
    background: white;
}
.em-event-location {
    margin-top: 5px;
}

/* .em button.input.em-tooltip-ddm {
    background-image: var(--icon-chevron-down)!important;
    background-position: calc(100% - 15px) 50%!important;
    background-repeat: no-repeat!important;
    background-size: 15px!important;
    padding-right: 40px!important;
} */

.em .em-icon {
    line-height: 22px;
    width: 15px;
    height: 15px;
    background-size: 15px;
}

.em .iti button.iti__selected-country, .em button.em-clickable {

    padding: 12px 20px!important;
    border: 1px solid rgba(0, 8, 16, .15)!important;
}
/* Calendar Button Styles */
button.em-event-add-to-calendar {
    margin-top: 20px;
    background-color: transparent;
    text-decoration: none;
    border: 1px solid var(--salbos-font-color);
    transition: all 0.3s ease;
    cursor: pointer;
    justify-content: space-between;
}
.em-event-when-title, .em-event-where-title {
    border-bottom: 1px solid #eee;
}
button.em-event-add-to-calendar:hover {
    /* background-color: var(--salbos-font-color); */
    color: var(--wesset-text-color);
}

/* Calendar Icon Container */
button.em-event-add-to-calendar .em-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

button.em-event-add-to-calendar .em-icon {
    width: 16px;
    height: 16px;
}

/* Arrow for dropdown */
/* button.em-event-add-to-calendar::after {
    content: '';
    border: solid var(--salbos-font-color);
    border-width: 0 1.5px 1.5px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    position: relative;
    top: -2px;
} */

/* Dropdown styles */
.em-tooltip-ddm-content {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
    min-width: 200px;
}

.em-tooltip-ddm-content a {
    display: block;
    padding: 10px 16px;
    color: var(--wesset-text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.em-tooltip-ddm-content a:hover {
    background-color: #f5f5f5;
}

.em-tooltip-ddm-content a:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

/* Hide Download ICS option if needed */
.em-tooltip-ddm-content .em-a2c-download {
    display: none;
}

/* Booking Form Styles */
.em-event-booking-wrapper {
    position: relative;
}

.em-event-booking-wrapper h3 {
    margin-bottom: 20px;
    color: var(--salbos-font-color);
}

.em-booking-form-container {
    margin-top: 20px;
}

.em-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.em-booking-form input[type="text"],
.em-booking-form input[type="email"],
.em-booking-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.em-booking-form input[type="submit"] {
    background-color: var(--salbos-font-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.em-booking-form input[type="submit"]:hover {
    opacity: 0.9;
}

.em-event-prices {
    font-size: 18px;
    font-weight: 600;
    color: var(--salbos-font-color);
    margin-bottom: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .em-event-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px 0;
    }
    
    .em-event-details-left {
        order: 2;
    }
    
    .em-event-details-right {
        order: 1;
    }

    .em-event-details-left,
    .em-event-details-right {
        padding: 20px;
        /* width: 90vw; */
    }

    .em-event-location {
        margin-top: 20px;
    }

    /* Adjust map height on mobile */
    .em-event-location .em-location-map-container {
        height: 250px !important;
    }

    /* Booking form adjustments */
    .em-booking-form-container {
        margin-top: 15px;
    }
    td.em-bookings-ticket-table-type {
        padding: 3px !important;
    }
    .em-booking-form input[type="text"],
    .em-booking-form input[type="email"],
    .em-booking-form textarea {
        padding: 8px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Calendar button adjustments */
    .em-event-add-to-calendar .em-event-add-to-calendar-button {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    /* Back button adjustments */
    .em-event-back-button {
        padding: 15px 0;
    }

    .em-event-back-button a {
        width: 100%;
        justify-content: center;
    }
}

/* Additional tablet optimizations */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .em-event-details-grid {
        gap: 30px;
    }

    .em-event-details-left,
    .em-event-details-right {
        padding: 25px;
    }

    .em-event-hero-title {
        font-size: 36px;
    }
}

.em.em-event-booking-form .em-booking-section.em-booking-form-buttons {
    z-index: 10;
}

/* Event meta sections spacing */
.em-event-when,
.em-event-where {
    margin-bottom: 40px;
}

.em-event-when h3,
.em-event-where h3 {
    margin-bottom: 10px;
}

/* Date and time lines */
.em-item-meta-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Location alignment */
.em-event-location .em-item-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.em-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

.em-tooltip-ddm-content a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Related Events Section */
.em-event-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.em-event-related h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: var(--wesset-text-color);
}

.em-event-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-event-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.related-event-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 15px;
}

.related-event-card .related-event-date {
    font-size: 14px;
    color: var(--salbos-font-color);
    margin-bottom: 8px;
}

.related-event-card h3 {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.related-event-card h3 a {
    color: var(--wesset-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-event-card h3 a:hover {
    color: var(--salbos-font-color);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .em-event-related-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .em-event-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.em-months-nav {
    margin-bottom: 20px;
}

.em-months-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.em-months-nav li {
    cursor: pointer;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.em-months-nav li:hover {
    background-color: #f5f5f5;
}

.em-months-nav li.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.em-months-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    margin: 0 -1rem 2rem -1rem;
    position: relative;
    width: calc(100% + 2rem);
}

.em-month-item {
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    background: var(--sh-color-accent);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    margin: 0.25rem;
}

.em-month-item:hover,
.em-month-item.active {
    background: #000027;
    color: white;
}

/* Special styling for "All Events" button */
.em-month-item[data-month="all"] {
    order: -1;
    background: transparent;
    border: 2px solid var(--sh-color-accent);
    color: var(--white-color);
    font-weight: bold;
}

.em-month-item[data-month="all"]:hover,
.em-month-item[data-month="all"].active {
    background: var(--sh-color-accent);
    color: white;
}

@media (max-width: 768px) {
    .em-months-list {
        padding: 0.75rem;
        margin: 0 -0.5rem 1.5rem -0.5rem;
        justify-content: center;
    }

    .em-month-item {
        padding: 0.8rem 1.2rem;  /* Increased tap target size */
        font-size: 14px;         /* Slightly larger font */
        margin: 0.4rem;          /* More space between items */
        min-width: 110px;        /* Minimum width for better tapping */
        text-align: center;
    }

    /* Mobile styling for "All Events" button */
    .em-month-item[data-month="all"] {
        width: calc(100% - 0.8rem);  /* Full width minus margins */
        padding: 1rem;               /* Larger padding */
        margin-bottom: 1rem;         /* Space after the button */
        font-size: 15px;             /* Slightly larger font */
    }
}

/* Remove scrollbar styles since we don't want horizontal scrolling */
.em-months-list::-webkit-scrollbar,
.em-months-list::-webkit-scrollbar-track,
.em-months-list::-webkit-scrollbar-thumb {
    display: none;
}

.events-hero-content {
    margin-top: 70px;
}
.em.em-list.em-grid .em-item,.em.em-list.size-small .em-item {
    
    padding: 10px;
    box-shadow:none;
    grid-template-columns: 100%;
    grid-template-rows: min-content max-content
}
.em.em-list.size-small .em-item {
    border:none;
}
/* On-demand event styles */
.em-ondemand-event {
    opacity: 0.9;
}

.em-ondemand-event .em-event-date-block {
    background: #f5f5f5;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.em-event-ondemand-label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    color: #666;
    text-transform: uppercase;
}

.em-event-ondemand-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    /* ... existing mobile styles ... */

    .em-ondemand-event .em-event-date-block {
        position: absolute;
        left: -15px;
        top: 0;
        text-align: right;
        width: 50px;
        padding-right: 15px;
        background: none;
    }

    .em-ondemand-event .em-event-ondemand-label {
        font-size: 12px;
        color: #666;
    }

    .em-ondemand-event .em-event-ondemand-badge {
        color: #A52A2A;
        background: none;
        padding: 0;
    }
}

/* Event Single Back Navigation */
.em-event-back-nav {
    padding: 15px 0;
    margin: 0;
    width: 100%;
}

.em-event-back-nav .container {
    padding: 0 15px;
}

.em-event-back-nav .em-back-button {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.em-event-back-nav .em-back-button:hover {
    opacity: 0.9;
    color: #fff;
}

.em-event-back-nav + .container {
    margin-top: 30px;
}

.em.em-list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Pageable Container Animations */
.vc_tta-panel {
    transition: all 0.8s ease-in-out !important; /* Slower transition */
}

.vc_tta-panel:not(.vc_active) {
    transform: translateY(-50px) !important;
    opacity: 0;
}

.vc_tta-panel.vc_active {
    transform: translateY(0) !important;
    opacity: 1;
}

/* Ensure container has proper overflow handling */
.vc_tta-container {
    overflow: hidden;
}

/* Optional: Add smooth transition for pagination dots */
.vc_pagination-item {
    transition: all 1.4s ease;
}

.events-month-title {
    margin: 40px 0;
    text-align: center;
    display: block;
    font-weight: bold;
    color: var(--wesset-text-color);
    /* text-transform: capitalize; */
}


.em-events-list {
    margin-top: 40px;
}

.em-events-list .em-event-flex:first-child {
    margin-top: 0;
}
/* First event after month title needs more space */
.events-month-title + .em-event-flex,
.events-month-title + .sticky_event {
    margin-top: 30px;
}

/* Month navigation styles */
/* .em-months-list {
    margin-bottom: 40px;
} */

/* Ensure consistent spacing for sticky events */
.sticky_event:first-of-type {
    margin-top: 30px;
}

/* Ensure proper spacing between sections */
.em-sticky-events-header {
    margin: 40px 0 30px;
}

.em-regular-events-header {
    margin: 40px 0 30px;
}

@media (max-width: 768px) {
    .events-month-title {
        margin: 30px 0;
        font-size: 24px;
    }

    .events-month-title + .em-event-flex,
    .events-month-title + .sticky_event {
        margin-top: 20px;
    }

    .em-sticky-events-header,
    .em-regular-events-header {
        margin: 30px 0 20px;
    }
}

.em-month-item[data-month="all"] {
    font-weight: bold;
}
a.em-month-item {
    text-transform: uppercase;
    font-size: 1.5rem;
}


/**
* Sticky Events
*/
.sticky_event {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky_event:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sticky_event .em-event-date-block {
    border-right-color: transparent;
}

@media (max-width: 768px) {
    .sticky_event .em-event-date-block {
        border-bottom-color: #ffc107;
    }
}

.em-sticky-events-header,
.em-regular-events-header {
    margin: 2rem 0 1rem;
}

.em-sticky-events-header h2,
.em-regular-events-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sticky-events {
    margin-bottom: 2rem;
}

.sticky-event-badge {
    background-color: #ffeb3b;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.sticky-icon {
    font-size: 16px;
}

.sticky-text {
    font-size: 14px;
    font-weight: 500;
}

/* Event Time Display */
.event-time {
    display: inline-block;
    padding: 4px 8px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
    color: var(--salbos-font-color);
}

/* Custom Events List Styling */
.custom-events-list {
    margin: 20px 0;
}

.event-list-item {
    display: flex;
    background: #fff;
    margin: 15px 0;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid #eee;
}

.event-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Event date styling */
.event-date {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 110px;
    position: relative;
}

.event-date:after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #eee;
}

.event-day {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.event-month {
    text-transform: uppercase;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Event info styling */
.event-info {
    /* padding-left: 40px; */
    flex-grow: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.event-featured-icon {
    width: 8px;
    height: 10px;
    fill: var(--salbos-font-color);
}

/* .event-time {
    font-size: 14px;
    color: #666;
    font-weight: 500;
} */

.event-title {
    margin: 0;
    font-weight: 600;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--salbos-font-color);
}

/* Special styling for events without date */
.event-list-item:not(:has(.event-day:not(:empty))) {
    background-color: #fff3cd;
    position: relative;
}

.event-list-item:not(:has(.event-day:not(:empty))):before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ffc107;
    border-radius: 8px 0 0 8px;
}

.event-list-item:not(:has(.event-day:not(:empty))) .event-date {
    opacity: 0;
    min-width: 0;
    padding: 0;
}

.event-list-item:not(:has(.event-day:not(:empty))) .event-date:after {
    display: none;
}

.event-list-item:not(:has(.event-day:not(:empty))) .event-info {
    padding-left: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .event-list-item {
        padding: 15px;
    }

    .event-date {
        min-width: 90px;
    }

    .event-date:after {
        right: 15px;
        height: 25px;
    }

    /* .event-day {
        font-size: 24px;
    }

    .event-month {
        font-size: 13px;
    }

    .event-info {
        padding-left: 30px;
    }

    .event-title {
        font-size: 16px;
    }

    .event-time {
        font-size: 13px;
    } */
}

/* Remove any existing event time background styles */
.event-time {
    background: none;
    padding: 0;
}
