.cpa-event-card {
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  background: #fff;
  overflow: hidden;
  border-left: 5px solid #009193;
  border-bottom: 2px solid #009193;
}
.cpa-event-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.cpa-event-calendar {
  width: 80px;
  background: #f9f9f9;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.cpa-calendar-day,
.cpa-calendar-month,
.cpa-calendar-year {
  font-size: 1.8em;
  font-weight: bold;
  color: #009193;
  line-height: 1.2;
}
.cpa-event-image {
  margin-top: 25px;
  margin-left: 25px;
  max-width: 120px;
  flex: 0 0 auto;
}
.cpa-event-image img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: cover;
  border-right: 1px solid #eee;
}
.cpa-event-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cpa-event-title {
  margin: 0 0 8px;
  font-size: 1.2em;
  color: #004b4b;
}
.cpa-event-dates {
  font-size: 0.95em;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}
.cpa-event-location,
.cpa-event-price,
.cpa-event-status,
.cpa-event-availability {
  margin-bottom: 6px;
  color: #333;
}
.cpa-tax-hint {
  font-size: 0.9em;
  color: #666;
  margin-left: 4px;
}
.cpa-free {
  font-weight: bold;
  color: #009193;
}
.cpa-event-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.cpa-event-buttons .button {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  font-size: 1em;
}

.cpa-details-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}
.cpa-details-overlay.open {
  display: block;
}

.cpa-details-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 700px;
  width: 90%;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border: 3px solid #009193;
  display: none !important;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cpa-details-modal.open {
  display: flex !important;
}

.cpa-modal-header {
  display: flex !important;
  gap: 20px;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: #f9f9f9;
  flex-shrink: 0;
}
.cpa-modal-image img {
  width: 100px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}
.cpa-modal-info {
  flex: 1;
}
.cpa-modal-info h2 {
  margin: 0 0 8px;
  font-size: 1.3em;
  color: #004b4b;
}
.cpa-modal-dates,
.cpa-modal-location,
.cpa-modal-price,
.cpa-modal-status {
  margin-bottom: 6px;
  font-size: 0.95em;
  color: #333;
}

.cpa-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
}

.cpa-modal-footer {
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.cpa-modal-footer .button {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  font-size: 1em;
}
.cpa-modal-footer .cpa-modal-close {
  background: #fff;
  color: #009193;
  border: 2px solid #009193;
}
.cpa-modal-footer .cpa-book-now {
  background: #009193;
  color: #fff;
  border: none;
}

.cpa-details-link {
  background: #fff;
  color: #009193;
  border: 2px solid #009193;
}

.cpa-book-now {
  background: #009193;
  color: #fff;
  border: none;
}