/* ========================================================
   VERSO — Race Detail (Event Detail) Page CSS
   ======================================================== */

/* ========== HERO BANNER ========== */
.hero-banner {
  position: relative;
  overflow: hidden;
}
.hero-banner-bg { position: relative; width: 100%; height: auto; overflow: hidden; }
.hero-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-banner-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}
.hero-banner-content {
  position: absolute; inset: 0; z-index: 10;
  max-width: 1400px; width: 100%; margin: 0 auto;
  padding: 40px; display: flex;
  justify-content: space-between; align-items: flex-end;
}
.hero-info { color: white; }
.hero-title { font-weight: 800; font-size: 42px; line-height: 1.15; color: white; margin-bottom: 8px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero-meta { display: flex; flex-direction: column; gap: 14px; }
.meta-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.9); }
.meta-item i { font-size: 16px; width: 20px; text-align: center; }
.meta-icon { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); flex-shrink: 0; }
.meta-label { font-weight: 600; color: white; }
.btn-join-now {
  background: #ff4444; color: white;
  font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600;
  padding: 14px 36px; border-radius: 10px; border: none;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-end; margin-bottom: 10px; cursor: pointer;
  display: inline-block;
}
.btn-join-now:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,68,68,0.35); color: white;
}

/* ========== MAIN CONTENT — 2 Column Grid ========== */
.content-section { max-width: 1400px; margin: 0 auto; padding: 50px 40px; }
.content-grid {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 50px; align-items: start;
}

/* Left Column */
.content-left { font-size: 15px; line-height: 1.75; }
.content-left p { margin-bottom: 20px; }

/* Right Column — STICKY */
.content-right {
  display: flex; flex-direction: column; gap: 10px;
  position: sticky;
  top: calc(var(--header-height) + 5px);
  align-self: start;
}

/* Organizer Card */
.organizer-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 18px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.organizer-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.organizer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-orange);
  letter-spacing: -0.3px;
  text-align: right;
}

/* Category Card */
.category-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.category-card-header {
  background: var(--bg-light);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.category-list { padding: 0; }
.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
}
.category-item + .category-item { border-top: 1px solid var(--border-light); }
.cat-name { color: var(--text-dark); }
.cat-price { font-weight: 700; color: var(--primary-orange); }

/* Unified Register Card: orange top + badges + share */
.register-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,132,0,0.18);
}
.register-card-top {
  background: #FF8400;
  padding: 20px 18px 18px;
  text-align: center;
}
.register-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.register-card-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.store-badge-sm { height: 40px; border-radius: 8px; cursor: pointer; transition: transform 0.2s; }
.store-badge-sm:hover { transform: translateY(-2px); }
.register-card-bottom {
  background: #f7f7f7;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.btn-share-clean {
  width: 100%;
  padding: 13px;
  border: none;
  background: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.register-participants-row {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #f7f7f7;
}

.social-row { display: flex; justify-content: center; gap: 20px; }
.social-row a { font-size: 24px; color: var(--text-dark); transition: color 0.2s; cursor: pointer; }
.social-row a:hover { color: var(--primary-orange); }

/* Rules & Reward Boxes */
.rules-box, .reward-box {
  border: 1px solid var(--border-light); border-radius: 12px;
  padding: 24px; background: white;
}
.rules-box h3, .reward-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.rules-box ol { padding-left: 18px; margin: 0; }
.rules-box li { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.reward-box p { font-size: 14px; line-height: 1.6; margin: 0; }

/* Terms */
.terms-section { margin-top: 40px; }
.terms-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.terms-list { list-style: none; padding: 0; margin: 0; }
.terms-list li {
  font-size: 14px; line-height: 1.7; margin-bottom: 12px;
  padding-left: 24px; position: relative;
}
.terms-list li::before { content: attr(data-num) "."; position: absolute; left: 0; font-weight: 600; }

/* ========== OTHER EVENTS ========== */
.other-events-section { max-width: 1400px; margin: 0 auto; padding: 40px 40px 60px; }
.other-events-title { font-size: 24px; font-weight: 700; margin-bottom: 28px; }
.event-image-sm { width: 100%; height: 180px; object-fit: cover; object-position: center top; display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-right { position: static; } /* disable sticky on mobile */
  .content-section { padding: 40px 30px; }
  .other-events-section { padding: 40px 30px 60px; }
  .hero-banner-bg { height: 260px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
}
@media (max-width: 767px) {
  .hero-banner-bg { height: 200px; }
  .hero-banner-content { flex-direction: column; align-items: flex-start; padding: 20px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .btn-join-now { align-self: flex-start; margin-top: 20px; padding: 12px 28px; font-size: 14px; }
  .content-section { padding: 30px 20px; }
  .terms-section { margin-top: 30px; }
  .terms-section h2 { font-size: 18px; }
  .other-events-section { padding: 30px 20px 50px; }
  .other-events-title { font-size: 20px; }
  .rules-box { padding: 20px; }
  .hero-banner-bg {  max-height: 220px }

}
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
}
