@layer overrides {
  .events-page {
    padding-top: 1px;
  }

  .events-hero {
    min-height: 1010px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 100px;
    padding-block: 95px 130px;
  }

  .events-hero h1 {
    margin-bottom: 42px;
    font-size: clamp(66px, 4.65vw, 89px);
    line-height: 1.05;
  }

  .events-hero-copy > p {
    max-width: 710px;
    margin-bottom: 42px;
    font-size: 20px;
    line-height: 1.25;
  }

  .events-hero .rp-button {
    min-height: 56px;
    padding-inline: 23px;
    font-size: 21px;
  }

  .event-card {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 28px;
    background: #fff;
    border: 2px solid var(--rp-navy);
    border-radius: 15px;
    box-shadow: 5px 6px 0 var(--rp-navy);
  }

  .event-card img {
    display: block;
    width: 100%;
    aspect-ratio: 712 / 309;
    object-fit: cover;
    border-radius: 11px;
  }

  .event-card h2,
  .event-card h3 {
    margin: 24px 0 22px;
    font-size: 30px;
  }

  .event-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
    font-size: 16px;
    font-weight: 700;
  }

  .event-meta span {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .event-meta i {
    display: inline-flex;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    color: #ffb51b;
    background: #8a62ed;
    border: 4px solid #ffb51b;
    border-radius: 50%;
    font-style: normal;
    font-size: 23px;
    line-height: 1;
  }

  .event-card > p {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.25;
  }

  .event-book {
    display: flex;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: var(--rp-navy);
    background: var(--rp-green);
    border-radius: 7px;
    font-size: 17px;
    font-weight: 800;
  }

  .event-book::after {
    content: none;
  }

  .event-card-featured {
    max-width: 730px;
    justify-self: end;
  }

  .event-card-featured img {
    aspect-ratio: 678 / 309;
  }

  .events-section-head {
    margin-bottom: 58px;
    text-align: center;
  }

  .events-section-head h2 {
    margin-bottom: 28px;
    font-size: 68px;
  }

  .events-section-head p {
    font-size: 18px;
    font-weight: 700;
  }

  .events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .events-upcoming {
    padding-bottom: 190px;
  }

  .events-upcoming .event-card {
    min-height: 690px;
  }

  .events-past {
    padding-bottom: 260px;
  }

  .events-past .event-card {
    min-height: 610px;
  }

  .events-past .event-card:last-child {
    grid-column: 1;
  }

  .events-contact {
    padding-bottom: 240px;
  }

  .events-subscribe {
    padding-bottom: 180px;
  }

  @media (max-width: 1400px) {
    .events-hero {
      min-height: 850px;
      gap: 55px;
    }

    .event-card {
      padding: 18px;
    }

    .event-card h2,
    .event-card h3 {
      font-size: 27px;
    }

    .event-meta {
      font-size: 14px;
    }

    .event-card > p {
      font-size: 14px;
    }
  }

  @media (max-width: 900px) {
    .events-hero {
      min-height: 0;
      grid-template-columns: 1fr;
      padding-block: 90px 130px;
    }

    .event-card-featured {
      max-width: none;
      justify-self: stretch;
    }

    .events-grid {
      grid-template-columns: 1fr;
    }

    .events-past .event-card:last-child {
      grid-column: auto;
    }

    .events-upcoming .event-card,
    .events-past .event-card {
      min-height: 0;
    }

    .events-contact {
      padding-bottom: 150px;
    }
  }

  @media (max-width: 560px) {
    .events-hero h1 {
      font-size: clamp(48px, 13vw, 68px);
    }

    .events-hero-copy > p {
      font-size: 16px;
    }

    .events-section-head h2 {
      font-size: clamp(46px, 12vw, 64px);
    }

    .event-meta {
      grid-template-columns: 1fr;
    }

    .events-upcoming,
    .events-past {
      padding-bottom: 130px;
    }
  }
}
