/**
 * Planning Center Events Styles
 */

.pc-events-container {
  max-width: 100%;
  margin: 0 auto 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pc-event-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
}

.pc-event-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pc-event-image-wrapper {
  width: 30%;
  margin-right: 20px;
}

.pc-event-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.pc-event-content {
  flex: 1;
}

.pc-event-meta {
  margin: 10px 0;
}

.pc-event-date {
  display: inline-block;
  padding: 3px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  font-weight: 500;
  font-size: 16px;
  color: #777;
}

.pc-event-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #333;
}

.pc-event-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #555;
}

.pc-event-description p {
  margin: 0 0 10px;
}

.pc-event-description p:last-child {
  margin-bottom: 0;
}

.pc-event-button-wrapper {
  margin-top: 15px;
}

.pc-event-register-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #024;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.pc-event-register-button:hover {
  background-color: #013;
  color: #fff !important;
}

.pc-events-error {
  padding: 15px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .pc-event-item {
    flex-direction: column;
  }
  
  .pc-event-image-wrapper {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .pc-event-title {
    font-size: 20px;
  }
  
  .pc-event-date {
    font-size: 14px;
  }
  
  .pc-event-description {
    font-size: 14px;
  }
}