.event{
    width: 100%;
}

.event-body {
    width: 100%;
}

.event-container{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 20px;
}

.event-item {
    position: relative; /* Ensure items are positioned relative */
    overflow: hidden; /* Ensures the date doesn't overflow outside */
    margin-top: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.event-item-thumb {
    position: relative; /* Make sure relative positioning is set */
    width: 100%;
    overflow: hidden; /* Hide overflowing content */
    height: 250px;
}

.event-item-thumb > img {
    width: 100%;
    min-height: 250px;
    height: auto; /* Allow image to maintain aspect ratio */
    display: block; /* Ensure the image behaves correctly */
}

.event-item-date {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20%;
    background-color: #1A0D76;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: poppins;
    color: #FFF;
}

.event-item-day{
    font-size: 24px;
    font-weight: bold;
}

.event-item-month{
    font-size: 12px;
    font-weight: 500;
}

.event-item-title{
    width: 100%;
    padding: 10px;
    font-family: poppins;
    font-size: 13px;
    font-weight: 500;
    text-align: justify;
}

.event-item-content{
    width: 100%;
    padding: 10px;
    font-family: poppins;
    font-size: 12px;
    text-align: justify;
    color: #868685;
}

.event-item-view{
    width: 100%;
    padding: 10px;
}

.event-item-button{
    font-family: poppins;
    font-size: 12px;
    background-color: #1A0D76;
    color: #fff;
    padding: 5px 10px 5px 10px;
}

.event-item-button:hover{
    color: #FDEA52;
}

.event-footer{
    width: 100%;
    padding: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.event-view{
    font-family: poppins;
    font-size: 13px;
    background-color: #d70f00;
    border: 1px solid #d70f00;
    border-radius: 5px;
    color: #fff;
    padding: 5px 10px 5px 10px;
}

.event-view:hover{
    border: 1px solid #d70f00;
    background-color: #fff;
    color: #d70f00;
}

@media (min-width: 600px) {
    .event-container {
        grid-template-columns: repeat(3, 1fr); /* 2 columns for tablets */
    }
}

@media (min-width: 900px) {
    .event-container {
        grid-template-columns: repeat(4, 1fr); /* 3 columns for desktops */
    }
}