/* Events Grid Layout with Tabs */

.simple-events-events-wrapper,
.simple-events-events-wrapper * {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.simple-events-events-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Header */
.simple-events-events-header {
  text-align: center;
  margin-bottom: 50px;
}

.simple-events-events-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--tab-active-bg, #111827);
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.simple-events-events-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* Modern button-style tabs with rounded corners and filled active state */
/* Tabs Navigation */
.simple-events-events-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 50px;
  background: #f5f5f5;
  padding: 6px;
  border-radius: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.simple-events-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--tab-bg, transparent);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tab-text, #666);
  cursor: pointer;
  
  position: relative;
  flex: 1;
  white-space: nowrap;
}

.simple-events-tab-btn svg {
  opacity: 0.7;
  
  flex-shrink: 0;
}


.simple-events-tab-btn.active {
  background: var(--tab-active-bg, var(--tab-active-bg, #111827));
  color: var(--tab-active-text, white);
  box-shadow: 0 4px 12px rgba(0, 50, 149, 0.25);
}

.simple-events-tab-btn.active svg {
  opacity: 1;
}

/* Tab Content */
.simple-events-tab-content {
  display: none;
}

.simple-events-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    
  }
  to {
    opacity: 1;
    
  }
}

/* Events Grid */
.simple-events-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Event Card */
.simple-events-event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}


.simple-events-event-card.past-event {
  opacity: 0.85;
}


/* Card Image */
.simple-events-event-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio for 1080x1080 images */
  overflow: hidden;
  background: #f5f5f5;
}

.simple-events-event-card-image a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.simple-events-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}


.simple-events-event-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.simple-events-event-badge.upcoming {
  background: var(--secondary-color, #cca000);
  color: white;
}

.simple-events-event-badge.past {
  background: #666;
  color: white;
}

/* Card Content */
.simple-events-event-card-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.simple-events-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.simple-events-event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tab-active-bg, #111827);
}

.simple-events-event-meta-item svg {
  flex-shrink: 0;
}

.simple-events-event-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.simple-events-event-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  
}


.simple-events-event-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Footer */
.simple-events-event-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  padding-top: 20px;
  border-top: 2px solid #f5f5f5;
}

.simple-events-event-location,
.simple-events-event-credits {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.simple-events-event-location svg,
.simple-events-event-credits svg {
  color: var(--tab-active-bg, #111827);
  flex-shrink: 0;
}

/* Card Actions */
.simple-events-event-card-actions {
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
}

.simple-events-btn-details,
.simple-events-btn-register {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  
  border: none;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
}

.simple-events-btn-details {
  background: #f8f9fc;
  color: var(--tab-active-bg, #111827);
  border: 2px solid #e5e5e5;
}


.simple-events-btn-register {
  background: var(--tab-active-bg, #111827);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 50, 149, 0.25);
}


/* No Events State */
.simple-events-no-events {
  text-align: center;
  padding: 80px 20px;
}

.simple-events-no-events svg {
  color: #ddd;
  margin-bottom: 25px;
}

.simple-events-no-events h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px 0;
}

.simple-events-no-events p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .simple-events-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .simple-events-events-wrapper {
    padding: 50px 15px;
  }
}

@media (max-width: 900px) {
  .simple-events-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }

  .simple-events-events-title {
    font-size: 38px;
  }
  
  .simple-events-events-wrapper {
    padding: 40px 15px;
  }
}
}

@media (max-width: 768px) {
  .simple-events-events-wrapper {
    padding: 40px 15px;
  }

  .simple-events-events-title {
    font-size: 32px;
  }

  .simple-events-events-subtitle {
    font-size: 16px;
  }

  /* Keep tabs horizontal on mobile with smaller styling */
  .simple-events-events-tabs {
    flex-direction: row;
    gap: 8px;
    background: #f5f5f5;
    padding: 6px;
    border-radius: 50px;
    max-width: 100%;
  }

  .simple-events-tab-btn {
    padding: 14px 20px;
    justify-content: center;
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .simple-events-tab-btn svg {
    width: 18px;
    height: 18px;
  }

  .simple-events-tab-btn.active {
    background: var(--tab-active-bg, #111827);
  }

  .simple-events-events-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .simple-events-event-card-content {
    padding: 25px;
  }

  .simple-events-event-card-actions {
    flex-direction: column;
  }

  .simple-events-btn-details,
  .simple-events-btn-register {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .simple-events-events-wrapper {
    padding: 30px 15px;
  }

  .simple-events-events-title {
    font-size: 28px;
  }

  .simple-events-event-card-title {
    font-size: 20px;
  }

  .simple-events-event-card-content {
    padding: 20px;
  }

  .simple-events-tab-btn {
    padding: 14px 15px;
    font-size: 14px;
  }
}

/* ============================================
   RECURRING EVENTS BADGE
   ============================================ */

.simple-events-recurring-badge {
    display: inline-block;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    vertical-align: middle;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.simple-events-event-card-title .simple-events-recurring-badge {
    display: block;
    margin-left: 0;
    margin-top: 8px;
    width: fit-content;
}
