/* =========================================================
   EVENTS PAGE
   ========================================================= */

:root {
  --text: #ffffff;
  --muted: #a5acc2;
  --line: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: var(--vp-font);

  color: var(--text);

  background:
    radial-gradient(
      ellipse 80% 70% at 0% 0%,
      #142e9a 0%,
      #0b1b61 30%,
      #05091f 65%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 70% 60% at 100% 100%,
      #07164e 0%,
      #020510 65%,
      transparent 100%
    ),
    linear-gradient(
      135deg,
      #02030a 0%,
      #030615 45%,
      #000105 100%
    );

  background-attachment: fixed;

  overflow-x: hidden;
}


/* =========================================================
   EVENTS PAGE
   ========================================================= */

.events-page {
  position: relative;

  min-height: 100vh;

  overflow: hidden;

  padding: 140px 40px 100px;
}


/* =========================================================
   EVENT LIST
   ========================================================= */

.event-list {
  position: relative;

  z-index: 2;

  width: min(1120px, 100%);

  margin: 0 auto;

  display: flex;

  flex-direction: column;

  gap: 45px;
}


/* =========================================================
   EVENT CARD
   ========================================================= */

.event-card {
  position: relative;

  min-height: 350px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  padding: 40px 42px;

  border: 1px solid rgba(255,255,255,0.14);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(35,48,115,0.28),
      rgba(5,8,23,0.72)
    );

  backdrop-filter: blur(18px) saturate(140%);

  -webkit-backdrop-filter: blur(18px) saturate(140%);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.1);

  overflow: hidden;

  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.event-card:hover {
  transform: translateY(-7px);

  border-color: rgba(255,255,255,0.28);

  box-shadow:
    0 24px 55px rgba(0,0,0,0.3),
    0 0 30px rgba(80,110,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.12);
}


/* =========================================================
   IMAGE
   ========================================================= */

.event-image {
  width: 100%;

  padding-right: 30px;
}

.event-photo {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 16px;

  border: 1px solid rgba(255,255,255,0.14);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.22);
}


/* =========================================================
   CONTENT
   ========================================================= */

.event-content {
  padding-left: 28px;
}

.event-content h2 {
  margin: 0 0 25px;

  font-size: clamp(34px, 3vw, 44px);

  line-height: 1.1;

  font-weight: 800;

  letter-spacing: -1px;

  color: #ffffff;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.event-description {
  max-width: 500px;

  margin-bottom: 25px;

  font-size: 17px;

  line-height: 1.6;

  color: #dbe2f6;
}


/* =========================================================
   READ MORE
   ========================================================= */

.read-event {
  display: inline-block;

  border: none;

  background: transparent;

  padding: 0;

  text-decoration: none;

  color: #ffffff;

  font-family: inherit;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 1.5px;

  cursor: pointer;

  transition:
    letter-spacing 0.3s ease,
    opacity 0.3s ease;
}

.read-event:hover {
  letter-spacing: 2.5px;

  opacity: 0.7;
}


/* =========================================================
   PHONES
   Shared by the Events and Drones pages. The two-column card
   stacks: photo across the full width on top, then the title,
   text and buttons. Every size here is relative to the card,
   so it holds together at any phone width.
   ========================================================= */

@media (max-width: 700px) {

  .events-page {
    padding: 96px 16px 56px;
  }

  .event-list {
    gap: 24px;
  }

  .event-card {
    min-height: 0;

    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;

    padding: 14px 14px 22px;

    border-radius: 22px;
  }

  /* No lift on tap: hover sticks after a touch on phones */
  .event-card:hover {
    transform: none;
  }

  .event-image {
    padding-right: 0;
  }

  .event-photo {
    border-radius: 14px;
  }

  .event-content {
    padding: 0 6px;
  }

  .event-content h2 {
    margin-bottom: 10px;

    font-size: clamp(24px, 7vw, 30px);  /* 25px on a 360px phone, 30px from 430px */
  }

  .event-description {
    max-width: none;

    margin-bottom: 18px;

    font-size: 15.5px;
  }

  /* Keep "READ MORE →" on one line */
  .read-event {
    white-space: nowrap;
  }

}


/* =========================================================
   PAGE TITLE
   The page's name, centred at the top under the navbar.
   ========================================================= */

.page-title {
  position: relative;
  z-index: 2;

  margin: 0 0 44px;

  color: #ffffff;

  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .page-title {
    margin-bottom: 22px;

    font-size: clamp(30px, 9vw, 38px);
  }
}
