#osterlen-company-event-card:empty {
  display: none;
}

.oec-section-title {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 700;
  margin: 40px 0 20px 0;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.oec-container {
  margin: 30px 0;
  max-width: 420px; /* Samma som premium-hours */
}

.oec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.oec-grid .oec-container {
  margin: 0;
  max-width: 100%;
}

.oec-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.oec-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9e9e9;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  font-family: 'Montserrat', sans-serif;
}

.oec-card:hover {
  transform: translateY(-4px);
}

.oec-card-image {
  position: absolute;
  inset: 0;
}

.oec-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.oec-card:hover .oec-card-image img {
  transform: scale(1.05);
}

.oec-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.oec-event-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.oec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.oec-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

.oec-badge--date {
  background: rgba(47, 110, 245, 0.85); /* Blå badge för datum */
}

.oec-badge--date::before {
  content: "📅";
  margin-right: 6px;
}

.oec-badge--price {
  background: rgba(80, 80, 80, 0.85); /* Grå badge för pris */
}

.oec-badge--price::before {
  content: "🎟";
  margin-right: 6px;
}
