/* Scoped styles to avoid conflicts in Elementor */
#valhallan-event-container-unique {
  font-family: Arial, sans-serif;
  padding-bottom: 50px;
}

#valhallan-event-container-unique .event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

#valhallan-event-container-unique .event-grid.no-offerings {
  display: flex;
  justify-content: center;
  align-items: center;
}

#event-loader {
  color: white;
}

#valhallan-event-container-unique .event-card {
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

#valhallan-event-container-unique .event-card:hover {
  transform: translateY(-5px);
}

#valhallan-event-container-unique .event-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f0f0f0;
}

#valhallan-event-container-unique .event-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#valhallan-event-container-unique .event-card h3 {
  margin-top: 0;
  font-size: 1.25em;
  font-weight: bold;
  color: #333;
}

#valhallan-event-container-unique .event-card p {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

#valhallan-event-container-unique .event-card .timings {
  font-weight: bold;
  margin-bottom: 15px;
  color: #444;
}

#valhallan-event-container-unique .event-card .enroll-btn {
  display: inline-block;
  background-color: #F72585; /* Valhallan Pink */
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto; /* Pushes button to the bottom */
  transition: background-color 0.2s;
}

#valhallan-event-container-unique .enroll-btn:hover {
  background-color: #d11c6f;
}

/* Iframe Modal Styles */
#valhallan-event-container-unique .iframe-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

#valhallan-event-container-unique .iframe-modal-content {
  position: relative;
  background-color: #fefefe;
  padding: 10px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  height: 90vh;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#valhallan-event-container-unique .iframe-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#valhallan-event-container-unique .close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  color: #fff;
  background-color: #333;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

#valhallan-event-container-unique .close-btn:hover {
  background-color: #F72585;
}

#valhallan-event-container-unique .event-description {
  font-size: 0.9em;
  color: #666;
  line-height: 1.6;
  margin: 10px 0;
  white-space: pre-line;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

/* Optional: Style the scrollbar */
#valhallan-event-container-unique .event-description::-webkit-scrollbar {
  width: 6px;
}

#valhallan-event-container-unique .event-description::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#valhallan-event-container-unique .event-description::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#valhallan-event-container-unique .event-description::-webkit-scrollbar-thumb:hover {
  background: #555;
}
