.eventsContainer { width: 100%; position: relative; padding: 10px; box-sizing: border-box; } .eventsList { display: flex; flex-direction: column; align-items: center; gap: 10px; } .eventCard { width: 100%; max-width: 360px; padding: 12px 10px; border-radius: 12px; box-sizing: border-box; display: flex; flex-direction: column; background-color: #ffffffcc; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .eventCard h3 { margin: 0 0 5px 0; font-size: 1rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .eventCard p { margin: 0; font-size: 0.9rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .eventImage { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; } @media screen and (min-width: 768px) { .eventCard { max-width: 600px; padding: 16px 12px; } .eventCard h3 { font-size: 1.2rem; white-space: normal; overflow: visible; text-overflow: clip; } .eventCard p { font-size: 1rem; white-space: normal; overflow: visible; text-overflow: clip; } } @media screen and (min-width: 1024px) { .eventsContainer { padding: 20px; } .eventsList { gap: 20px; } .eventCard { max-width: 700px; padding: 20px; } .eventCard h3 { font-size: 1.4rem; } .eventCard p { font-size: 1.1rem; } .eventImage { height: 180px; } }