/* Events List Block Frontend Styles */

.sct-events-list-block {
    margin: 20px 0;
}

.sct-events-grid-container {
    display: flex;
    align-items: center;
}

.sct-events-grid-container .sct-events-grid {
    width: 100%;
}

.sct-events-slider-container {
    margin: 0;
}

.sct-events-grid {
    display: flex;
    justify-content: space-around;
}

/* Grid column rules no longer needed - using flex layout with 33.333% width on items */

.sct-event-item {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(183, 28, 28, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sct-event-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* UIKit child-width classes handle the responsive layout:
   uk-child-width-1-3@m: 33.333% width on medium screens and up (3 columns)
   uk-child-width-1-2@s: 50% width on small screens (2 columns)
   Default (no breakpoint): 100% width on extra small screens (1 column)
*/

/* Thumbnail */
.sct-event-item .uk-card-media-top {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}

.sct-event-item .uk-card-media-top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.sct-event-item:hover .uk-card-media-top img {
    transform: scale(1.05);
}

/* Content area with padding */
.sct-event-item .uk-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sct-event-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.sct-event-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sct-event-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sct-event-date strong {
    color: #333;
    font-weight: 600;
}

.sct-event-time {
    color: #999;
    font-size: 13px;
}

.sct-event-location {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    padding: 8px 0;
}

.sct-event-location strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.sct-event-location a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-left: 8px;
}

.sct-event-location a:hover {
    color: #005a87;
    text-decoration: underline;
}

.sct-event-capacity {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
    padding: 8px 0;
}

.sct-event-capacity strong {
    color: #333;
    font-weight: 600;
}

/* Capacity Notice Styles */
.sct-event-notice {
    display: block;
    margin: 0;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    border-left: 4px solid;
    border-top: 1px solid #eee;
}

.sct-event-fully-booked {
    background-color: #fee;
    color: #c00;
    border-left-color: #c00;
}

.sct-event-low-capacity {
    background-color: #ffd699;
    color: #663300;
    border-left-color: #ff9900;
}

.sct-event-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Event footer with button */
.sct-event-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
    display: flex;
}

/* Register button */
.sct-register-button {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sct-register-internal {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.sct-register-internal:hover {
    background-color: #005a87;
    border-color: #005a87;
    text-decoration: none;
    color: white;
}

.sct-register-external {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sct-register-external:hover {
    background-color: #218838;
    border-color: #218838;
    text-decoration: none;
    color: white;
}

.sct-external-icon {
    font-size: 12px;
    display: inline-block;
}

/* No events message */
.sct-events-list-block > p {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* Slider Styles */
.sct-events-slider-container {
    position: relative;
}

.slider-navigation {
    display: flex;
    gap: 10px;
}

.slider-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(183, 28, 28, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.slider-navigation a:hover {
    background-color: rgba(183, 28, 28, 0.2);
}

.uk-dotnav > li > a {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.uk-dotnav > li.uk-active > a {
    background-color: #b71c1c;
}
