/* ================================
   GRID LAYOUT (FINAL, iPAD SAFE)
================================ */

#jeviso_module {
    width: 100%;
}

#jeviso_module .jeviso_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* ================================
   CARD
================================ */

.jeviso_item_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

#jeviso_module .jeviso_item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jeviso_item_link:hover .jeviso_item {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* ================================
   DATE BOX
================================ */

#jeviso_module .startdate {
    text-align: center;
    color: #fff;
    font-weight: bold;
    padding: 8px 0;
    font-size: 1rem;
}

/* ================================
   IMAGE
================================ */

#jeviso_module .jeviso_item_image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* ================================
   TITLE
================================ */

#jeviso_module .eventtitle {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2em;
    margin: 10px;
    color: #158eb3;
}

/* ================================
   META
================================ */

#jeviso_module .eventauthor,
#jeviso_module .eventregion {
    font-size: 0.9rem;
    margin: 0 10px 8px;
    color: #03395e;
}

#jeviso_module .eventauthor strong,
#jeviso_module .eventregion strong {
    font-weight: 600;
}

/* ================================
   RESPONSIVE (CRITICAL FIX)
================================ */

/* iPad landscape & tablets */
@media (max-width: 1024px) {
    #jeviso_module .jeviso_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iPad portrait & phones */
@media (max-width: 768px) {
    #jeviso_module .jeviso_container {
        grid-template-columns: 1fr;
    }
}

/* ================================
   CATEGORY BUTTONS
================================ */
.jeviso_category_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-btn {
    padding: 6px 6px;
    font-size:small;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border:solid 1px #fff;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}




