.ta-events-section,
.ta-results-section,
.ta-competitor-section {
  margin: 40px 0;
}

.ta-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ta-event-card,
.ta-competitor-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ta-event-card-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ta-event-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.ta-event-topline {
  margin-bottom: 12px;
}

.ta-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.ta-status-upcoming {
  background: #e9f7ef;
  color: #1f7a3f;
}

.ta-status-active {
  background: #fff4e5;
  color: #a15c00;
}

.ta-status-finished {
  background: #f1f1f1;
  color: #333;
}

.ta-event-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.ta-event-title a {
  color: #111;
  text-decoration: none;
}

.ta-event-title a:hover {
  text-decoration: underline;
}

.ta-event-meta {
  margin: 0 0 12px;
  color: #111;
}

.ta-event-excerpt {
  color: #333;
  margin-bottom: 18px;
}

.ta-event-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.ta-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: #111;
  color: #fff;
}

.ta-btn.ta-btn-secondary {
  background: #555;
  color: #fff;
}

.ta-results-page,
.ta-competitor-page,
.ta-event-single-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.ta-results-header,
.ta-competitor-header {
  margin-bottom: 30px;
}

.ta-results-header h1,
.ta-competitor-header h1 {
  margin-bottom: 10px;
}

.ta-results-table,
.ta-stages-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
}

.ta-results-table th,
.ta-results-table td,
.ta-stages-table th,
.ta-stages-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.ta-results-table th,
.ta-stages-table th {
  background: #f2f2f2;
  color: #111;
}

.ta-results-table td,
.ta-stages-table td {
  color: #111;
}

.ta-results-table a {
  font-weight: 600;
  text-decoration: none;
  color: #111;
}

.ta-results-table a:hover {
  text-decoration: underline;
}

.ta-back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #111;
}

.ta-results-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 15px 0 25px;
}

.ta-results-meta p {
  margin: 0;
}

.ta-event-single-content {
  margin-bottom: 25px;
}

.ta-event-single-actions {
  margin-top: 20px;
}

/* cleaner single event layout */
.single-ta_event #av-primary-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.single-ta_event #av-secondary-content {
  display: none !important;
}

.single-ta_event .post-meta.down,
.single-ta_event .comments-area {
  display: none !important;
}

/* hide theme breadcrumb/header only for event archive and event views */
.post-type-archive-ta_event #breadcrumb-section,
.single-ta_event #breadcrumb-section {
  display: none !important;
}

/* homepage event slide */
.ta-event-slide .theme-content h3,
.ta-event-slide .theme-content h1,
.ta-event-slide .theme-content p {
  color: #fff;
}

.ta-event-slide .theme-content h1 .primary-color {
  color: #fff;
}

.ta-event-slide .ta-slide-meta {
  margin: 10px 0 18px;
  color: #fff;
  font-weight: 600;
}

.ta-event-slide .ta-slide-badge {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
