.cali-event-hover-popup {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
}

.cali-event-hover {
  border: 1px solid #e9ecef;
  background: #fff;
  color: #495057;
  padding: 10px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
  width: 300px;
  max-width: 350px;
  z-index: 200000000;
  opacity: 1 !important;
  transition: 0.2s;
  max-height: 400px;
  overflow-y: scroll;
}

.cali-event-hover-popup img {
  height: 197px;
  display: block;
  margin: 0 auto;
}

/* Popup Overlay */
.cali-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
}

/* Popup Content */
.cali-popup-content {
  padding-top: 13px !important;
  background-color: #fff;
  padding: 20px;
  max-height: 90vh;
  border-radius: 5px;
  width: 600px;
  overflow-y: auto; /* Enable scrolling if content overflows */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Close Button */
.cali-close-btn {
  cursor: pointer;
  font-size: 24px;
}

.cali-event-modal .cali-event-img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  margin-top: 0;
  margin-bottom: 0;
}

.cali-popup-body .cali-event-description.eventDetails {
  margin-top: 5px;
}
.viewBlogPostBtn, #eventRegisterBtn{
  margin-top: 20px;
  margin-left: 0px !important;
  margin-bottom: 10px;
}
.cali-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 100%;
}

.cali-popup-header h2 {
  margin: 0px;
  font-size: 23px;
}

.cali-popup-body {
  margin-top: 15px;
}

.cali-modal-title {
  margin: 15px 0 20px !important;
}

.form-row {
  margin-top: 10px;
  display: flex;
}

.eventCount {
  font-size: smaller;
  margin-top: 10px;
  display: none;
  color: #3f3f46;
}
.eventRegisterBtn {
  margin-left: 5px;
}

.cali-popup-body .cali-event-external-link {
  color: #fff;
  background: #3f3f46;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

.cali-tag-selector {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cali-tag-selector select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 200px;
  background-color: white;
}

.cali-tag-selector select:focus {
  outline: none;
  border-color: #666;
}

.cali-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cali-tag-pill:hover {
  background: #e0e0e0;
}

.cali-tag-pill.active {
  background: #3f3f46;
  color: white;
}

.cali-tag-close {
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
}

.cali-tag-pill.active .cali-tag-close {
  color: white;
}

@media only screen and (max-width: 768px) {
  .cali-popup-content {
    max-width: 80%;
  }

  .cali-event-modal .cali-event-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-top: 0;
    margin-bottom: 0;
  }
}
