/* NAHSE Events Grid Layout with Tabs */

.nahse-events-wrapper {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.nahse-events-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color, #003295);
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.nahse-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 */
.nahse-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;
}

.nahse-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: transparent;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
}

.nahse-tab-btn svg {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nahse-tab-btn:hover {
  color: var(--primary-color, #003295);
}

.nahse-tab-btn.active {
  background: var(--primary-color, #003295);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 50, 149, 0.25);
}

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

.nahse-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: var(--secondary-color, #cca000);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nahse-tab-btn.active .nahse-tab-count {
  background: white;
  color: var(--primary-color, #003295);
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.nahse-event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.nahse-event-card.past-event {
  opacity: 0.85;
}

.nahse-event-card.past-event:hover {
  opacity: 1;
}

/* Card Image */
.nahse-event-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 60%; /* 5:3 aspect ratio */
  overflow: hidden;
  background: #f5f5f5;
}

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

.nahse-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nahse-event-card:hover .nahse-card-img {
  transform: scale(1.05);
}

.nahse-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);
}

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

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

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

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

.nahse-event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color, #003295);
}

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

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

.nahse-event-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nahse-event-card-title a:hover {
  color: var(--primary-color, #003295);
}

.nahse-event-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
  flex: 1;
}

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

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

.nahse-event-location svg,
.nahse-event-credits svg {
  color: var(--primary-color, #003295);
  flex-shrink: 0;
}

/* Card Actions */
.nahse-event-card-actions {
  display: flex;
  gap: 12px;
}

.nahse-btn-details,
.nahse-btn-register {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.nahse-btn-details {
  background: #f8f9fc;
  color: var(--primary-color, #003295);
  border: 2px solid #e5e5e5;
}

.nahse-btn-details:hover {
  background: var(--primary-color, #003295);
  color: white;
  border-color: var(--primary-color, #003295);
}

.nahse-btn-register {
  background: var(--primary-color, #003295);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 50, 149, 0.25);
}

.nahse-btn-register:hover {
  background: #002270;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 50, 149, 0.35);
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
  .nahse-events-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
  }
}

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

  .nahse-events-title {
    font-size: 38px;
  }
}

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

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

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

  /* Stack tabs vertically on mobile while keeping button style */
  .nahse-events-tabs {
    flex-direction: column;
    gap: 10px;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  .nahse-tab-btn {
    padding: 16px 20px;
    justify-content: center;
    width: 100%;
    background: #f5f5f5;
  }

  .nahse-tab-btn.active {
    background: var(--primary-color, #003295);
  }

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

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

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

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

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

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

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

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

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