.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.event-start,
.event-end,
.event-venue {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.event-info .fa {
    margin-right: 5px;
    color: #ff5722;
}

.event-banner img {
    width: 100%;
    border-bottom: 3px solid #4CAF50;
}

.event-title {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.event-datetime, .event-venue {
    font-weight: bold;
}

.event-ticket {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 10px;
}
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.event-item {
    background-color: #fafafa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    position: relative;
    

}

.event-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-banner img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.event-ticket {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    margin-top: 10px;
}
/* Optional: Button sizing options */
.event-button.small {
    padding: 8px 16px;
    font-size: 14px;
}

.event-button.large {
    padding: 14px 24px;
    font-size: 18px;
}



.event-info {
    margin-top: 10px;
}

.event-info span {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.event-info .fa {
    margin-right: 5px;
    color: #ff5722;
}

.event-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff5722;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.event-button:hover {
    background-color: #e64a19;
}
.event-card {
    position: relative; /* Ensures category position works */
    overflow: hidden;
}
.event-host {
    display: block;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    font-weight: 500;
    
}

.event-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f04e30;
    color: #ffffff;
    font-size: 14px;
    border-radius: 12px;
    position: absolute;
    width: auto; /* Allow width to adjust to text size */
    max-width: 90%; /* Prevent overflow */
    white-space: nowrap; /* Keep text in one line */
    overflow: hidden;
    text-overflow: ellipsis;
}


.top-left {
    top: 10px;
    left: 10px;
}

.top-right {
    top: 10px;
    right: 10px;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
}
.event-card:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Ensure background color is separate */
}

.event-category {
    pointer-events: auto; /* Ensure it is clickable and responsive */
}



