.singleEventHero {
  position: relative;
  overflow: hidden;
  padding-top: 85px;
  padding-bottom: 32px;
  background: var(--colorPrimary);
  color: var(--colorBackground);
}

.singleEventHero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(216, 200, 162, 0.65) 50%,
    transparent 100%
  );
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.singleEventHero.isEntranceVisible::after {
  transform: scaleX(1);
}

.singleEventHeroDecor {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.singleEventHeroOrb {
  --orbMoveX: 0px;
  --orbMoveY: 0px;
  position: absolute;
  border-radius: 50%;
  background: var(--colorBackground);
  transform: translate(-50%, -50%)
    translate3d(var(--orbMoveX), var(--orbMoveY), 0);
  will-change: transform;
  transition:
    opacity 0.8s ease,
    background 0.8s ease;
}

.singleEventHeroOrb.isAvoiding {
  background: var(--colorBeigeLight);
}

.singleEventHeroOrb:nth-child(1) {
  left: 8%;
  top: 22%;
  width: 145px;
  height: 145px;
  opacity: 0.12;
}

.singleEventHeroOrb:nth-child(2) {
  left: 21%;
  top: 72%;
  width: 68px;
  height: 68px;
  opacity: 0.2;
}

.singleEventHeroOrb:nth-child(3) {
  left: 34%;
  top: 23%;
  width: 225px;
  height: 225px;
  opacity: 0.07;
}

.singleEventHeroOrb:nth-child(4) {
  left: 46%;
  top: 69%;
  width: 46px;
  height: 46px;
  opacity: 0.25;
}

.singleEventHeroOrb:nth-child(5) {
  left: 58%;
  top: 30%;
  width: 108px;
  height: 108px;
  opacity: 0.14;
}

.singleEventHeroOrb:nth-child(6) {
  left: 69%;
  top: 72%;
  width: 270px;
  height: 270px;
  opacity: 0.055;
}

.singleEventHeroOrb:nth-child(7) {
  left: 79%;
  top: 24%;
  width: 58px;
  height: 58px;
  opacity: 0.22;
}

.singleEventHeroOrb:nth-child(8) {
  left: 89%;
  top: 68%;
  width: 170px;
  height: 170px;
  opacity: 0.09;
}

.singleEventHeroOrb:nth-child(9) {
  left: 97%;
  top: 26%;
  width: 92px;
  height: 92px;
  opacity: 0.16;
}

.singleEventHeroInner {
  min-height: 300px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.singleEventHeroBottom {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.singleEventHeroInfo {
  max-width: 950px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.singleEventHeroTitle {
  margin: 0;
  font-family: var(--fontTitle);
  font-size: 52px;
  font-weight: 700;
  line-height: 0.95em;
  color: var(--colorBackground);
}

.singleEventHeroDescription {
  max-width: 600px;
  margin-top: 12px;
  font-family: var(--fontText);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35em;
  color: rgba(248, 246, 240, 0.78);
}

.singleEventHeroMeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}

.singleEventHeroMetaItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fontText);
  font-size: 14px;
  font-weight: 400;
  line-height: 1em;
  color: rgba(248, 246, 240, 0.72);
}

.singleEventHeroMetaItem svg {
  flex-shrink: 0;
  color: var(--colorBeige);
}

.singleEventHeroBack {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(248, 246, 240, 0.18);
  border-radius: 6px;
  background: rgba(248, 246, 240, 0.08);
  font-family: var(--fontText);
  font-size: 12px;
  font-weight: 500;
  line-height: 1em;
  color: var(--colorBackground);
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.singleEventHeroBack svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.singleEventContent {
  position: relative;
  overflow: hidden;
  padding-top: 45px;
  padding-bottom: 25px;
  background: var(--colorBackground);
}

.singleEventContentInner {
  display: flex;
  flex-direction: column;
}

.singleEventIntro {
  margin-bottom: 30px;
  font-family: var(--fontText);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45em;
  color: var(--colorText);
}

.singleEventIntro p {
  margin: 0;
}

.singleEventContentImage {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--colorGrayLight);
}

.singleEventContentImageFile {
  width: 100%;
  height: auto;
  max-height: 650px;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.singleEventContentTitle {
  margin: 0 0 12px;
  font-family: var(--fontTitle);
  font-size: 30px;
  font-weight: 700;
  line-height: 1em;
  color: var(--colorText);
}

.singleEventText {
  font-family: var(--fontText);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45em;
  color: rgba(59, 46, 34, 0.82);
}

.singleEventText > *:first-child {
  margin-top: 0;
}

.singleEventText > *:last-child {
  margin-bottom: 0;
}

.singleEventText p {
  margin: 0 0 20px;
}

.singleEventText h2 {
  margin: 35px 0 10px;
  font-family: var(--fontTitle);
  font-size: 30px;
  font-weight: 700;
  line-height: 1em;
  color: var(--colorText);
}

.singleEventText h3 {
  margin: 28px 0 10px;
  font-family: var(--fontTitle);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05em;
  color: var(--colorText);
}

.singleEventText ul,
.singleEventText ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  padding-left: 22px;
}

.singleEventText li {
  margin: 0;
}

.singleEventText a {
  color: var(--colorPrimary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.singleEventText blockquote {
  margin: 30px 0;
  padding: 22px 25px;
  border-left: 2px solid var(--colorPrimary);
  background: var(--colorBeigeLight);
  font-family: var(--fontTitle);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2em;
  color: var(--colorText);
}

.singleEventText blockquote p {
  margin: 0;
}

.singleEventEndLine {
  width: 100%;
  height: 190px;
  margin-top: 25px;
  overflow: hidden;
  pointer-events: none;
}

.singleEventEndLineSvg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.singleEventEndLinePath {
  --singleEventEndLineLength: 3000;
  fill: none;
  stroke: var(--colorPrimary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--singleEventEndLineLength)
    var(--singleEventEndLineLength);
  stroke-dashoffset: var(--singleEventEndLineLength);
  opacity: 0.9;
  transition:
    stroke-dashoffset 4.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s ease;
}

.singleEventEndLinePathSoft {
  stroke: var(--colorGold);
  stroke-width: 7;
  opacity: 0;
  filter: blur(6px);
  transition:
    stroke-dashoffset 5.1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 2s ease;
}

.singleEventEndLine.isVisible .singleEventEndLinePath {
  stroke-dashoffset: 0;
}

.singleEventEndLine.isVisible .singleEventEndLinePathSoft {
  stroke-dashoffset: 0;
  opacity: 0.12;
}

.singleEventRelatedHeader {
  margin-bottom: 36px;
}

.singleEventRelatedLabel {
  margin-bottom: 14px;
  font-family: var(--fontText);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25em;
  color: var(--colorBrown);
}

.singleEventRelatedTitle {
  margin: 0;
  font-family: var(--fontTitle);
  font-size: 52px;
  font-weight: 700;
  line-height: 0.95em;
  color: var(--colorText);
}

.singleEventRelatedDescription {
  max-width: 620px;
  margin-top: 14px;
  font-family: var(--fontText);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
  color: var(--colorBrown);
}

.singleEventRevealPending {
  opacity: 0;
}

.singleEventRevealDone {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .singleEventHeroBack:hover {
    border-color: var(--colorBackground);
    background: var(--colorBackground);
    color: var(--colorPrimary);
  }

  .singleEventHeroBack:hover svg {
    transform: translateX(-3px);
  }

  .singleEventContentImage:hover .singleEventContentImageFile {
    transform: scale(1.025);
  }
}

@media (max-width: 1440px) {
  .singleEventHero {
    padding-top: 75px;
  }

  .singleEventHeroTitle {
    font-size: 48px;
  }

  .singleEventRelatedTitle {
    font-size: 48px;
  }

  .singleEventEndLine {
    height: 175px;
  }
}

@media (max-width: 1200px) {
  .singleEventHero {
    padding-top: 65px;
    padding-bottom: 28px;
  }

  .singleEventHeroInner {
    min-height: 280px;
  }

  .singleEventHeroBottom {
    gap: 30px;
  }

  .singleEventHeroInfo {
    max-width: 720px;
  }

  .singleEventHeroTitle {
    font-size: 44px;
  }

  .singleEventHeroDescription {
    max-width: 520px;
    font-size: 14px;
  }

  .singleEventHeroMeta {
    gap: 18px;
    margin-top: 22px;
  }

  .singleEventHeroOrb:nth-child(1) {
    width: 120px;
    height: 120px;
  }

  .singleEventHeroOrb:nth-child(2) {
    width: 60px;
    height: 60px;
  }

  .singleEventHeroOrb:nth-child(3) {
    width: 180px;
    height: 180px;
  }

  .singleEventHeroOrb:nth-child(4) {
    width: 42px;
    height: 42px;
  }

  .singleEventHeroOrb:nth-child(5) {
    width: 95px;
    height: 95px;
  }

  .singleEventHeroOrb:nth-child(6) {
    width: 220px;
    height: 220px;
  }

  .singleEventHeroOrb:nth-child(7) {
    width: 52px;
    height: 52px;
  }

  .singleEventHeroOrb:nth-child(8) {
    width: 145px;
    height: 145px;
  }

  .singleEventHeroOrb:nth-child(9) {
    width: 80px;
    height: 80px;
  }

  .singleEventContent {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .singleEventContentImageFile {
    max-height: 560px;
  }

  .singleEventEndLine {
    height: 155px;
  }

  .singleEventRelatedHeader {
    margin-bottom: 30px;
  }

  .singleEventRelatedTitle {
    font-size: 42px;
  }
}

@media (max-width: 700px) {
  .singleEventHero {
    padding-top: 45px;
    padding-bottom: 25px;
  }

  .singleEventHeroInner {
    min-height: 340px;
  }

  .singleEventHeroBottom {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 25px;
  }

  .singleEventHeroInfo {
    width: 100%;
    max-width: 100%;
  }

  .singleEventHeroTitle {
    font-size: 38px;
  }

  .singleEventHeroDescription {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    font-size: 14px;
  }

  .singleEventHeroMeta {
    gap: 14px 18px;
    margin-top: 20px;
  }

  .singleEventHeroMetaItem {
    font-size: 12px;
  }

  .singleEventHeroBack {
    width: 100%;
  }

  .singleEventHeroOrb:nth-child(1) {
    width: 85px;
    height: 85px;
  }

  .singleEventHeroOrb:nth-child(2) {
    width: 45px;
    height: 45px;
  }

  .singleEventHeroOrb:nth-child(3) {
    width: 125px;
    height: 125px;
  }

  .singleEventHeroOrb:nth-child(4) {
    width: 32px;
    height: 32px;
  }

  .singleEventHeroOrb:nth-child(5) {
    width: 68px;
    height: 68px;
  }

  .singleEventHeroOrb:nth-child(6) {
    width: 150px;
    height: 150px;
  }

  .singleEventHeroOrb:nth-child(7) {
    width: 40px;
    height: 40px;
  }

  .singleEventHeroOrb:nth-child(8) {
    width: 100px;
    height: 100px;
  }

  .singleEventHeroOrb:nth-child(9) {
    width: 60px;
    height: 60px;
  }

  .singleEventContent {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .singleEventIntro {
    margin-bottom: 25px;
    font-size: 14px;
  }

  .singleEventContentImage {
    margin-bottom: 25px;
    border-radius: 6px;
  }

  .singleEventContentImageFile {
    max-height: none;
  }

  .singleEventContentTitle {
    font-size: 26px;
  }

  .singleEventText {
    font-size: 14px;
  }

  .singleEventText h2 {
    margin-top: 30px;
    font-size: 26px;
  }

  .singleEventText h3 {
    margin-top: 25px;
    font-size: 22px;
  }

  .singleEventText blockquote {
    padding: 18px 15px;
    font-size: 20px;
  }

  .singleEventEndLine {
    height: 120px;
    margin-top: 15px;
  }

  .singleEventEndLinePath {
    stroke-width: 1.5;
  }

  .singleEventEndLinePathSoft {
    stroke-width: 5;
  }

  .singleEventRelatedHeader {
    margin-bottom: 25px;
  }

  .singleEventRelatedLabel {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .singleEventRelatedTitle {
    font-size: 36px;
  }

  .singleEventRelatedDescription {
    max-width: none;
    margin-top: 12px;
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  .singleEventHeroTitle {
    font-size: 34px;
  }

  .singleEventEndLine {
    height: 95px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .singleEventHero::after,
  .singleEventHeroOrb,
  .singleEventHeroBack,
  .singleEventHeroBack svg,
  .singleEventContentImageFile,
  .singleEventEndLinePath,
  .singleEventEndLinePathSoft {
    transition: none;
  }

  .singleEventEndLinePath {
    stroke-dashoffset: 0;
  }

  .singleEventEndLinePathSoft {
    stroke-dashoffset: 0;
    opacity: 0.12;
  }

  .singleEventRevealPending {
    opacity: 1;
  }
}

.singleEventHeroDecor::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(45, 56, 35, 0.58) 0%,
    rgba(45, 56, 35, 0.38) 28%,
    rgba(45, 56, 35, 0.18) 52%,
    rgba(45, 56, 35, 0.05) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.latestEventsGrid {
  margin-bottom: 50px;
}
