* {
  box-sizing: border-box;
}

/* todo automatic night mode */
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
color: #06142b;
background: #fff;
}

/* space for main content under fixed header */
.main-content{
    padding-top: 40px; 
}

.primary-btn {
  background: #00a4ffff;
  color: white !important;
  padding: 15px 22px;
  border-radius: 8px;
  text-decoration: none;
}

.primary-btn {
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  padding: 72px 76px;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 84px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -4px;
}

.hero p {
  font-size: 23px;
  line-height: 1.5;
  color: #41516c;
  max-width: 520px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 70px;
}

.timeline .timeline-line {
  position: absolute;
  top: 84px;
  left: 7%;
  right: 7%;
  height: 7px;
  background: linear-gradient(90deg, #06142b, #0877ff, #ff2a2a);
  border-radius: 999px;
}

.timeline .timeline-item {
  text-align: center;
  position: relative;
}

.timeline .dot {
  width: 36px;
  height: 36px;
  background: #06142b;
  border-radius: 50%;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(6, 20, 43, 0.25);
}

.timeline .timeline-item.bvc .dot {
  background: #9a9c9d;
  border: 5px solid #06142b;
}

.timeline .timeline-item.active .dot {
  background: #0877ff;
  border: 10px solid #d7ebff;
}

.timeline .timeline-item strong {
  font-size: 17px;
}

.timeline .timeline-item p {
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* RED GLOW AROUND PIN */
.timeline .timeline-item.pin-item::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 140px;
  left: 50%;
  top: -110px;
  transform: translateX(-50%);
  background: rgba(255, 45, 45, 0.18);
  filter: blur(40px);
  border-radius: 999px;
  z-index: 0;
}

.timeline .timeline-item.pin-item .map-pin::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  top: 30px;
  left: 30px;
}

.timeline .timeline-item.pin-item .map-pin {
  position: absolute;
  width: 86px;
  height: 86px;
  background: #ff2d2d;
  border-radius: 50% 50% 50% 0;

  left: 50%;
  top: -95px;

  transform: translateX(-50%) rotate(-45deg);

  box-shadow:
    0 0 25px rgba(255, 45, 45, 0.55),
    0 0 80px rgba(255, 45, 45, 0.35);

  z-index: 10;
}


.map-pin {
  width: 56px;
  height: 56px;
  background: #ff2a2a;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
  top: -68px;
  left: -10px;
  box-shadow: 0 0 40px rgba(255, 42, 42, 0.7);
}

.map-pin::after {
  content: "";
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 19px;
  left: 19px;
}

.section-carousel {
  padding: 44px 76px;
  border-top: 1px solid #edf1f6;
}

.section-carousel-header  {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-carousel h2 {
  font-size: 30px;
  margin-bottom: 4px;
}

.section-carousel p {
  color: #526079;
}

.section-carousel-header  a {
  border: 1px solid #d9e0eb;
  padding: 14px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: #06142b;
}

.section-carousel-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.card {
  display: flex;
  gap: 16px;
  background: white;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 25px rgba(6, 20, 43, 0.08);
}

.card img {
  width: 120px;
  height: 105px;
  object-fit: cover;
  border-radius: 8px;
  background: #ddd;
}

.card span {
  font-size: 12px;
  color: #0877ff;
  font-weight: 800;
}

.card h3 {
  margin: 8px 0;
  font-size: 17px;
}

.card p {
  margin: 0;
}

.month-section select {
  width: 260px;
  padding: 16px;
  border: 1px solid #d9e0eb;
  border-radius: 10px;
  font-size: 18px;
}

.main-content .event-list {
  display: grid;
  gap: 14px;
}

.main-content .event-list .event-row.event-layout {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  margin: 0;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(6, 20, 43, 0.08);
  align-items: start;
  max-width: 900px
}

.main-content .event-list .event-row-marker {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.main-content .event-list .event-row-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #06142b;
  box-shadow: 0 8px 25px rgba(6, 20, 43, 0.25);
  flex: 0 0 auto;
}

.main-content .event-list .event-row-body {
  min-width: 0;
}

.main-content .event-list .event-row-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.main-content .event-list .event-row-date {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #445571;
}

.main-content .event-list .event-row-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0877ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-content .event-list .event-row-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.main-content .event-list .event-row-title a {
  color: #06142b;
}

.main-content .event-list .event-row-media {
  margin: 0 0 12px;
  width: 100%;
  max-width: 800px;
}

.main-content .event-list .event-row-media img,
.main-content .event-list .event-row-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  max-width: 800px;
  object-fit: contain;
  border-radius: 14px;
  background: #ddd;
}

.main-content .event-list .event-row-media audio {
  width: 100%;
  max-width: 800px;
}

.main-content .event-list .event-row-media-empty {
  padding: 18px;
  border: 1px dashed #d9e0eb;
  border-radius: 14px;
  background: #f8fbff;
  color: #445571;
  font-size: 14px;
}

.main-content .event-list .event-row-summary {
  margin: 0 0 14px;
  color: #33435f;
  font-size: 15px;
  line-height: 1.45;
}

.main-content .event-list .event-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  color: #445571;
  font-weight: 700;
}

.main-content .event-list .event-row-views {
  color: #06142b;
}

.main-content .event-list .event-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border-radius: 999px;
  background: #f4f8fd;
  color: #445571;
}

.main-content .explore-event-list {
  padding: 40px 76px 64px;
}

.main-content .explore-event-list .event-row-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.main-content .explore-event-list .event-row-admin-actions form {
  margin: 0;
}

.main-content .explore-event-list .event-row-admin-actions a,
.main-content .explore-event-list .event-row-admin-actions button {
  border: 0;
  background: transparent;
  color: #0877ff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #0877ff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule {
  width: 12rem;
  height: 0.35rem;
  margin: 1.1rem 0 1.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #0877ff 0 8%, #d7e5ff 8% 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 14px 38px rgba(10, 25, 55, 0.08);
}

.stats div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.tats strong {
  color: #0b1b38;
  font-size: 2rem;
  line-height: 1;
}

.stats span {
  color: #32405a;
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  body {
    width: 100%;
    height: 100dvh;
    overflow: hidden; /* Intentionally disables browser scrolling for a native app feel */
  }

  .hero {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    padding: 24px 24px 32px;
    gap: 36px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 12vw, 56px);
    overflow-wrap: anywhere;
  }

  .hero p {
    max-width: 100%;
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .timeline {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .timeline .timeline-item {
    min-width: 0;
  }

  .timeline .timeline-item strong,
  .timeline .timeline-item p {
    display: block;
    max-width: 100%;
    font-size: 12px;
  }

  .section-carousel {
    padding: 24px 24px 32px;
  }

  .section-carousel-cards {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 18px;
  }

  .card {
    min-width: 220px;
    flex-direction: column;
  }

  .card img {
    width: 100%;
    height: 130px;
  }

  main {
    position: fixed;
    top: 92px;
    right: 0;
    bottom: 78px;
    left: 0;
    overflow-x: hidden;
    /* so that only the main content scrolls */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .about-page {
    width: 100%;
    min-width: 0;
    gap: 2rem;
    padding: 24px 20px 32px;
    overflow-x: hidden;
  }

  .main-content {
    padding-top: 0;
  }

  .main-content .explore-event-list {
    padding: 28px 20px 48px;
  }

  .main-content .explore-event-list .event-row.event-layout {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
}
