/* ==========================================================================
   Run Barra - Custom Event Styles
   ========================================================================== */

/* Landing Page
   ========================================================================== */

.rb-landing {
  padding: 4rem 0 5rem;
  background-color: #fff;
  text-align: center;
}

.rb-landing__header {
  margin-bottom: 3rem;
}

.rb-landing__title {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 3rem;
  color: #8080ab;
  margin-bottom: 0.5rem;
}

.rb-landing__date {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  color: #b8a0c0;
}

/* Divider with text */
.rb-divider {
  display: flex;
  align-items: center;
  margin: 2rem auto 2.5rem;
  max-width: 680px;
}

.rb-divider::before,
.rb-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background-color: #8080ab;
}

.rb-divider__text {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  color: #8080ab;
  padding: 0 1.5rem;
  white-space: nowrap;
}

/* Race Grid */
.rb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px;
}

.rb-tile {
  position: relative;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rb-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(128, 128, 171, 0.25);
}

.rb-tile--pink {
  background-color: #d4a5b9;
}

.rb-tile--purple {
  background-color: #8e8db8;
}

.rb-tile--light-purple {
  background-color: #a9a4c4;
}

.rb-tile--rose {
  background-color: #d4a5b9;
}

.rb-tile__flowers {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 5rem;
  height: auto;
  opacity: 0.4;
  pointer-events: none;
}

.rb-tile__title {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 2rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 70%;
}

.rb-tile__sponsor-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
  display: block;
}

.rb-tile__btn {
  display: inline-block;
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.125rem;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 1.5rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.rb-tile:hover .rb-tile__btn {
  background: #fff;
  color: #8080ab;
}

/* Detail Page
   ========================================================================== */

.rb-detail {
  padding: 3rem 0 5rem;
  background-color: #fff;
}

.rb-detail__container {
  max-width: 780px;
  padding: 0 40px;
  margin: 0 auto;
}

/* Back button */
.rb-back {
  display: inline-flex;
  align-items: center;
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.125rem;
  color: #8080ab;
  border: 1px solid #8080ab;
  padding: 0.5rem 1.25rem;
  border-radius: 1.5rem;
  background: transparent;
  cursor: pointer;
  margin-bottom: 2.5rem;
  transition: background 0.3s, color 0.3s;
}

.rb-back:hover {
  background: #8080ab;
  color: #fff;
}

.rb-back svg {
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  fill: currentColor;
}

/* Detail Header */
.rb-detail__header {
  text-align: center;
  margin-bottom: 2rem;
}

.rb-detail__title {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 2.75rem;
  color: #8080ab;
  margin-bottom: 0.5rem;
}

.rb-detail__date {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.125rem;
  color: #b8a0c0;
}

.rb-detail__sponsor-logo {
  max-width: 200px;
  height: auto;
  margin: 1.25rem auto 0;
  display: block;
}

/* About Section */
.rb-section-title {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  color: #8080ab;
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.rb-detail__about p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #585857;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.rb-detail__about p:last-child {
  margin-bottom: 0;
}

/* Pricing Boxes */
.rb-pricing {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2.5rem 0;
}

.rb-pricing__box {
  display: flex;
  align-items: center;
  background-color: #8080ab;
  color: #fff;
  border-radius: 2rem;
  padding: 1rem 1.75rem;
  min-width: 240px;
}

.rb-pricing__box--alt {
  background-color: #d4a5b9;
}

.rb-pricing__amount {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 0.025em;
  margin-right: 1rem;
  line-height: 1;
}

.rb-pricing__label {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.125rem;
  line-height: 1.3;
}

.rb-pricing__note {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.6875rem;
  line-height: 1.4;
  text-transform: none;
  display: block;
  margin-top: 0.2rem;
  opacity: 0.85;
}

/* Action Buttons */
.rb-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 3rem;
}

.rb-actions__btn {
  display: inline-block;
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
}

.rb-actions__btn--outline {
  border: 1px solid #8080ab;
  color: #8080ab;
  background: transparent;
}

.rb-actions__btn--outline:hover {
  background: #8080ab;
  color: #fff;
}

.rb-actions__btn--filled {
  border: 1px solid #8080ab;
  background: #8080ab;
  color: #fff;
}

.rb-actions__btn--filled:hover {
  background: #6b6b96;
  border-color: #6b6b96;
}

/* Timetable & Event Info Section */
.rb-info {
  border-top: 2px solid #8080ab;
  padding-top: 2rem;
}

.rb-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Timetable */
.rb-timetable {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rb-timetable li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rb-timetable__time {
  display: inline-block;
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1rem;
  background-color: #8080ab;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  min-width: 5.5rem;
  text-align: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.rb-timetable__event {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1rem;
  color: #333c43;
}

/* Course Records */
.rb-records {
  background: linear-gradient(135deg, #8080ab 0%, #d4a5b9 100%);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.rb-records::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 4rem;
  height: 4rem;
  background-image: url(/img/flowers-3.png);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
}

.rb-records__title {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.rb-records__entry {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1.6;
}

.rb-records__entry span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  text-transform: none;
  opacity: 0.75;
  margin-left: 0.5rem;
}

/* Accordions */
.rb-accordions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rb-accordion {
  border-bottom: 1px solid #e8e8e8;
}

.rb-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  user-select: none;
}

.rb-accordion__title {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 1.125rem;
  color: #333c43;
}

.rb-accordion__toggle {
  font-family: 'Steelfish Eb', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  color: #d4a5b9;
  white-space: nowrap;
}

.rb-accordion__body {
  display: none;
  padding: 0 0 1rem;
}

.rb-accordion.is-open .rb-accordion__body {
  display: block;
}

.rb-accordion.is-open .rb-accordion__toggle {
  color: #d4a5b9;
}

.rb-accordion__body p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #585857;
  margin: 0 0 0.75rem;
}

.rb-accordion__body p:last-child {
  margin-bottom: 0;
}

/* Horizontal divider (simple) */
.rb-hr {
  border: none;
  border-top: 2px solid #8080ab;
  margin: 2rem 0;
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .rb-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .rb-tile__title {
    font-size: 1.75rem;
  }

  .rb-landing__title {
    font-size: 2.25rem;
  }

  .rb-pricing {
    flex-direction: column;
    align-items: center;
  }

  .rb-pricing__box {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .rb-info__grid {
    grid-template-columns: 1fr;
  }

  .rb-detail__title {
    font-size: 2rem;
  }

  .rb-actions {
    flex-direction: column;
    align-items: center;
  }

  .rb-actions__btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .rb-landing {
    padding: 2.5rem 0 3rem;
  }

  .rb-detail {
    padding: 2rem 0 3rem;
  }

  .rb-tile {
    padding: 1.75rem 1.5rem 1.5rem;
    min-height: 140px;
  }

  .rb-tile__title {
    font-size: 1.5rem;
  }

  .rb-divider__text {
    font-size: 1rem;
  }
}
