/* Events Listing Widget — Mobile First */

.evt-widget {
  padding: 0 0 40px;
}

.evt-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.evt-empty {
  color: #4a5565;
  font-style: italic;
  padding: 60px 0;
  text-align: center;
}

/* Card Grid */
.evt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 769px) {
  .evt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .evt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.evt-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.evt-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Card Image */
.evt-card-img-link {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.evt-card-img {
  width: 100%;
  height: 248px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.evt-card:hover .evt-card-img {
  transform: scale(1.03);
}

/* Card Body */
.evt-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

/* Date */
.evt-card-date {
  display: block;
  font-size: 0.875rem;
  color: #6a7282;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 20px;
}

/* Title */
.evt-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: #101828;
  margin: 0;
  text-transform: uppercase;
}

.evt-card-title a {
  color: inherit;
  text-decoration: none;
}

.evt-card-title a:hover {
  color: var(--accent, #155dfc);
}

/* Time & Location with icons */
.evt-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evt-card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 20px;
  color: #4a5565;
}

.evt-card-meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #6a7282;
}

.evt-card-meta-text {
  display: flex;
  flex-direction: column;
}

/* Excerpt */
.evt-card-excerpt {
  font-size: 0.875rem;
  line-height: 20px;
  color: #4a5565;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Buttons */
.evt-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.evt-btn-rsvp {
  display: block;
  background: var(--accent, #155dfc);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 20px;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}

.evt-btn-rsvp:hover {
  opacity: 0.9;
}

.evt-btn-cal {
  display: block;
  background: #fff;
  color: #101828;
  border: 2px solid #101828;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 20px;
  transition: background 0.2s ease;
  text-transform: uppercase;
}

.evt-btn-cal:hover {
  background: #f3f4f6;
}

/* Load More */
.evt-load-more {
  text-align: center;
  margin-top: 40px;
}

.evt-load-more button {
  background: var(--accent, #155dfc);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.evt-load-more button:hover {
  opacity: 0.9;
}

/* ─── RSVP Modal ─── */
.evt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30;
  align-items: center;
  justify-content: center;
}

.evt-modal-overlay.active {
  display: flex;
}

.evt-modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.evt-modal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 4px;
}

.evt-modal-subtitle {
  font-size: 0.875rem;
  color: #6a7282;
  margin: 0 0 24px;
}

.evt-modal-field {
  margin-bottom: 16px;
}

.evt-modal-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #364153;
  margin-bottom: 6px;
}

.evt-required {
  color: #dc2626;
  font-weight: 600;
}

.evt-modal-field input,
.evt-modal-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5dc;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #101828;
  box-sizing: border-box;
}

.evt-modal-field input:focus,
.evt-modal-field textarea:focus {
  outline: none;
  border-color: var(--accent, #155dfc);
  box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.15);
}

.evt-modal-field textarea {
  min-height: 80px;
  resize: vertical;
}

.evt-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.evt-modal-actions button {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

.evt-modal-submit {
  background: var(--accent, #155dfc);
  color: #fff;
}

.evt-modal-submit:hover {
  opacity: 0.9;
}

.evt-modal-cancel {
  background: #f3f4f6;
  color: #364153;
}

.evt-modal-cancel:hover {
  background: #e5e7eb;
}
