/* Event Container */
.trucky-events-container {
    display: flex !important;
    justify-content: center !important;
    padding: 20px 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

/* Event Grid Styles - Diperbarui */
.trucky-events-grid {
    display: grid !important;
    justify-content: center !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    max-width: 1720px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.trucky-event-card { /* card sedikit lebih terang dari container */
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,86,179,0.18); /* lebih terang */
    border: 1px solid #343a40; /* border lebih jelas */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trucky-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 86, 179, 0.15);
}

.event-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.trucky-event-card:hover .event-cover img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #0056b3;
    color: #fff;
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    min-width: 55px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.15);
}

.event-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    background: #ffffff; /* pastikan bagian dalam card tidak terlalu gelap */
    color: #fff;
}

.event-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); /* agar judul lebih menonjol */
    line-height: 1.3;
    text-align: center;
}

.event-meta {
    margin-bottom: 20px;
    background: #e3e7ed;
    padding: 15px;
    border-radius: 12px;
}

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

.event-meta-item:last-child {
    margin-bottom: 0;
}

.event-meta-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #ffd700;
}

.event-meta-text {
    font-size: 15px;
    color: #23272a; /* lebih terang dari #fff, lebih soft */
    font-weight: 500;
}

.event-locations {
    margin-bottom: 20px;
}

.event-location {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    background: #e3e7ed;
    padding: 15px;
    border-radius: 12px;
}

.location-icon {
    margin-right: 12px;
    font-size: 16px;
    margin-top: 2px;
    color: #ffd700;
}

.location-text {
    font-size: 15px;
    color: #000000; /* lebih terang dari #fff, lebih soft */
    line-height: 1.4;
    font-weight: 500;
}

.event-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0056b3 0%, #23272a 100%);
    padding: 18px;
    border-radius: 12px;
    margin-top: 20px;
    color: #fff;
}

.route-from, .route-to {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.route-arrow {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
    margin: 0 15px;
}

.event-footer {
    padding: 20px 25px;
    background: #e3e7ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2c3136;
}

.event-status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status.upcoming {
    background: linear-gradient(135deg, #0056b3 0%, #ffd700 100%);
    color: #23272a;
}

.event-status.past {
    background: linear-gradient(135deg, #6c757d 0%, #23272a 100%);
    color: #fff;
}

.event-join-btn {
    background: linear-gradient(135deg, #ffd700 0%, #0056b3 100%);
    color: #23272a;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255,215,0,0.15);
}

.event-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.2);
    color: #0056b3;
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    text-decoration: none;
}

/* No events style */
.trucky-no-events {
    text-align: center;
    padding: 80px 30px;
    background: #ffffff;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
    border: 1px solid #2c3136;
    box-shadow: 0 8px 32px rgba(0, 86, 179, 0.08);
}

.no-events-icon {
    font-size: 80px;
    margin-bottom: 25px;
    opacity: 0.7;
    color: #ffd700;
}

.trucky-no-events h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.trucky-no-events p {
    color: #e3e7ed; /* lebih terang dari #fff, lebih soft */
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .trucky-events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .event-cover {
        height: 160px;
    }
    
    .event-cover img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .event-join-btn {
        width: 100%;
        text-align: center;
    }
    
    .trucky-no-events {
        padding: 60px 20px;
        margin: 30px 15px;
    }
    
    .trucky-no-events h3 {
        font-size: 24px;
    }
    
    .trucky-no-events p {
        font-size: 16px;
    }
}