:root {
  --brand: #c8102e;
  --brand-dark: #8f0a20;
}

body {
  padding-top: 4.5rem;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

h4 {
  color: var(--brand-dark);
}

.navbar.bg-dark {
  background-color: #14181b !important;
  border-bottom: 3px solid var(--brand);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #ff8a94 !important;
}

.theme-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.375rem 0.5rem;
}

.theme-toggle:hover {
  color: #ff8a94;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
}

footer.bg-dark {
  border-top: 3px solid var(--brand);
}

#mainCarousel .carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  color: #fff;
}

#mainCarousel .carousel-item img {
  height: auto;
}

.accent-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 0.5rem;
}

.accent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

.hero-banner {
  position: relative;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
}

.hero-banner .hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
}

.hero-banner .hero-content h1,
.hero-banner .hero-content h2 {
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-banner .hero-content p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Timeline, used on the Patrol Life page */
.timeline {
  position: relative;
  padding-left: 3.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 2px;
  background: var(--brand);
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 0 4px #fff;
}

[data-bs-theme="dark"] .timeline-icon {
  box-shadow: 0 0 0 4px #212529;
}

.timeline-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-top: 0.25rem;
}

/* Icon card grid, used for parallel short-item lists */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.icon-card {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.icon-card .icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.75rem;
}

.icon-card h6 {
  margin-bottom: 0.35rem;
}

.icon-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Step row, used for the sequential "How to Join" process */
.step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.step-item .step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
}

.step-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Highlighted stat callout */
.stat-callout {
  border-left: 4px solid var(--brand);
  background: var(--bs-tertiary-bg, #f8f9fa);
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  margin: 1rem 0;
}

.stat-callout .stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* Icon-prefixed list, lighter touch than full cards */
.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.icon-list li i {
  color: var(--brand);
  margin-top: 0.2rem;
}

/* Responsive video embeds, used on the Toboggan Training page */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 0.5rem;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
