.ecd-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    max-width: 900px;
}

.ecd-left {
    width: 40%;
}
#ecd-event-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%; /* or a specific height like 300px */
}

.ecd-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /*border: 1px solid #ecfff9;*/
    border-radius: 8px;
    /*background-color: #ecfff9;*/
    padding: 18px 15px;
}
.fc .fc-button-primary {
    background-color: #180337;
    border-color: #180337;
    color: var(--fc-button-text-color);
}
/* Calendar styling */
#ecd-calendar {
    /*background: #ecfff9;*/
    /*border: 1px solid #ecfff9;*/
    border-radius: 8px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    box-sizing: border-box;
}
body:not(.woocommerce-cart) .main-content #ecd-calendar table, body:not(.woocommerce-cart) .main-content #ecd-calendar  table tr:nth-child(2n+1),
body:not(.woocommerce-cart) .main-content #ecd-calendar  tr td:first-child, body:not(.woocommerce-cart) .main-content #ecd-calendar tr th:first-child, body:not(.woocommerce-cart) .main-content #ecd-calendar td {
    background-color: transparent !important;
    margin: 0 !important;
    border: none !important;
}
body:not(.woocommerce-cart) .main-content #ecd-calendar table {
    border-bottom: 1px solid rgb(0, 0, 0);
}
body:not(.woocommerce-cart) .main-content #ecd-calendar th {
    padding: 0 !important;
    border: none !important;
    text-align: center !important;
}



/* FullCalendar overrides */
.fc {
    --fc-bg-highlight: #f5f5ff;
    --fc-border-color: #e0e0e0;
    --fc-button-bg: #4c4cff;
    --fc-button-border: #4c4cff;
    --fc-button-text-color: #ffffff;
    --fc-today-bg-color: #f5f5ff;
}

.fc .fc-button {
    border-radius: 4px;
    font-weight: 600;
}

.fc .fc-toolbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 120%;
    margin-bottom: 0 !important;
}

.fc .fc-col-header-cell-cushion {
    font-size: 12px;
    padding: 4px 2px;
    color: #fff;
}

.fc .fc-daygrid-day-number {
    color: #fff;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: red  ;
    font-weight: bold;
}

body:not(.woocommerce-cart) .main-content #ecd-calendar td {
    padding: 0 !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(87, 55, 214);
}

.fc .fc-daygrid-day-frame {
    padding: 4px;
}

.fc-daygrid-day-frame:hover {
    /*background-color: #f0f0ff;*/
    cursor: pointer;
}

/* Hide default inline event display */
.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    display: none;
}

/* Dot indicator for event days */
.fc-daygrid-day .ecd-dot {
    background-color: transparent !important;
}

.fc-daygrid-day .ecd-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    margin-top: 31px;
}

/* Event category dots */
.fc-daygrid-day .ecd-dot.ecd-events::after {
    background-color: red;
}

.fc-daygrid-day .ecd-dot.ecd-webinar::after {
    background-color: blue;
}

.fc-daygrid-day .ecd-dot.ecd-training::after {
    background-color: #27ae60;
}

/* Highlight background events */
.fc-event.ecd-highlight {
    background-color: rgba(255, 215, 0, 0.3) !important;
    border: none !important;
}

.fc-event.ecd-highlight.ecd-timus-events {
    /*background-color: rgba(39, 174, 96, 0.3) !important;*/
    background-color: transparent !important;
}

.fc-event.ecd-highlight.ecd-timus-webinar {
    /*background-color: rgba(231, 76, 60, 0.3) !important;*/
    background-color: transparent !important;
}

/* Dot-only events */
.fc-event.ecd-dot {
    background-color: transparent !important;
    border: none !important;
    position: relative;
}
.fc .fc-bg-event {
    opacity: 1 !important;
}

.fc-event.ecd-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fc-event.ecd-dot.ecd-timus-events::after {
    background-color: orange;
}

.fc-event.ecd-dot.ecd-timus-webinar::after {
    background-color: #93f4d5;
}
.fc .fc-button-primary:hover, .fc .fc-button-primary:not(:disabled).fc-button-active:focus, .fc .fc-button-primary:not(:disabled):active:focus {
    background-color: #fff;
    border-color: #fff;
    color: #180337;
}
/* Event list styling */
.ecd-event-item {
    display: flex;
    align-items: center;
    /*background: #ecfff9;*/
    /*border: 1px solid #e0e0e0;*/
    /*border-radius: 8px;*/
    padding: 12px 0;
    transition: box-shadow .2s;
    position: relative;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.5);
}
.ecd-event-item:first-child {
    /*border-bottom: 1px solid rgba(255,255,255,0.5);*/
    border-top: none;
}
/*.ecd-event-item:first-child {*/
/*    padding-top: 0;*/
/*}*/
.date_month .date_day {
    font-size: 35px;
    font-weight: bold;
    line-height: 28px;
    /*padding-top: 4px;*/
}
.ecd-event-item strong {
    margin-bottom: 5px;
    line-height: 120%;
    display: inline-block;
}
.date_month {
    /*background-color: #180337;*/
    width: 40px;
    text-align: center;
    color: #fff;
    margin-right: 10px;
    height: 40px;
    /* line-height: 260%; */
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecd-event-item:hover {
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
}

.ecd-event-item img {
    width: 100px !important;
    height: 60px !important;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 12px;
    margin-bottom: 0 !important;
}

.ecd-event-item strong {
    color: #fff;
}

.ecd-event-item a {
    color: #4c4cff;
    text-decoration: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0 !important;
}

.ecd-event-item a:hover {
    color: #fff;
}

/* Pagination */
.ecd-pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.ecd-pagination button {
    background: #93f4d5;
    border: none;
    color: #0e0023;
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.ecd-pagination button:hover {
    background: rgba(147, 244, 213, 0.9);
}
.fc .fc-daygrid-day-top {
    display: inherit !important;
}
.fc-liquid-hack td {
    padding: 0 !important;
}
.fc .fc-daygrid-day-frame {
    padding: 9px !important;
    text-align: center !important;
}
/* Responsive */
@media (max-width: 767.98px) {
    .ecd-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}
