/* Current Events Block - Frontend Styles */

.synpact-current-events {
  width: calc(100% + 15vw);
  margin: 3vh 0 8vh 0;
  padding: 0 0 0 0;
}

.synpact-current-events .events-container {
  display: flex;
  flex-direction: column;
  gap: 3vh;
  background-image: url("../../assets/images/block-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3vh;
  border-radius: 20px;
}

.synpact-current-events .event-item {
  background-color: #f1f2eb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  width: 100%;
  max-width: 600px;
  display: flex;
}

/* Left alignment for events 1 and 3 */
.synpact-current-events .event-left {
  align-self: flex-start;
}

/* Right alignment for event 2 */
.synpact-current-events .event-right {
  align-self: flex-end;
  margin-right: 15vw;
}

/* Hover effect on the entire event block */
.synpact-current-events .event-item {
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.synpact-current-events .event-item:hover {
  opacity: 0.85;
}

/* Event link wrapper - transparent to layout */
.synpact-current-events .event-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

/* Content container with maroon overlay - takes up full width */
.synpact-current-events .event-content {
  width: 100%;
  padding: 3vh 3vw;
  background-color: rgba(174, 39, 97, 0.8); /* Transparent maroon overlay */
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.synpact-current-events .event-title {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 1.8vw, 24px);
  color: #f1f2eb;
  margin: 0 0 1vh 0;
  line-height: 1.3;
  font-weight: bold;
}

.synpact-current-events .event-text {
  font-family: "Arial", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  color: #f1f2eb;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

@media (max-width: 768px) {
  .synpact-current-events {
    margin: 2vh 0 3vh 0;
  }
}
