/* ===== Events Page ===== */

.eventsHero{
  background: #fff;
  padding: 64px 0 28px;
}

.eventsHero__inner{
  text-align: center;
}

.eventsHero__title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #183c86;
  font-size: 3.2rem;
  line-height: 1.05;
}

.eventsHero__subtitle{
  margin: 14px auto 0;
  max-width: 880px;
  color: #6a7e9f;
  font-size: 1.05rem;
  line-height: 1.7;
}

.eventsSection{
  padding: 42px 0 90px;
}

/* =========================
   Event Card (base + theme)
   ========================= */

.eventCard{
  /* theme variables (default = blue) */
  --accent: #1a3f8f;
  --accentSoft: rgba(26, 63, 143, .08);
  --accentBorder: rgba(26, 63, 143, .18);
  --accentShadow: rgba(26, 63, 143, .20);

  max-width: 900px;
  margin: 0 auto 34px;
  background: rgba(255,255,255,.92);
  border-radius: 22px;
  padding: 44px;
  border: 1px solid rgba(20, 40, 80, .06);
  backdrop-filter: blur(6px);

  box-shadow: 0 24px 60px rgba(14, 28, 55, .10);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.eventCard:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(14, 28, 55, .14);
  border-color: rgba(20, 40, 80, .10);
}

@media (hover: none){
  .eventCard:hover{ transform: none; }
}

/* Alternate (teal/green) theme for 2nd/4th items */
.eventCard--alt{
  --accent: #2fb8c0;
  --accentSoft: rgba(47, 184, 192, .14);
  --accentBorder: rgba(47, 184, 192, .24);
  --accentShadow: rgba(47, 184, 192, .22);
}

/* =========================
   Header: icon above title
   ========================= */

.eventCard__top{
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;     /* left aligned by default */
  row-gap: 10px;
}

.eventCard__icon{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px var(--accentShadow);
}

.eventCard__icon img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(100) saturate(0); /* makes most icons white */
  opacity: .95;
}

.eventCard__title{
  margin: 2px 0 6px;
  font-weight: 900;
  color: #0b1a33;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.eventCard__desc{
  color: #6b7e9b;
  line-height: 1.85;
  font-size: 1.12rem;
  max-width: 680px;
}

/* If your description renders <p> inside, normalize spacing */
.eventCard__desc p{
  margin: 0;
}

/* =========================
   Stats
   ========================= */

.eventCard__stats{
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.eventCard__stats li{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0b1a33;
  font-weight: 600;
}

.eventCard__stats strong{
  font-weight: 900;
}

.eventCard__stats .dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 7px;
}

/* =========================
   Focus Areas pills
   ========================= */

.eventCard__focus{
  margin-top: 22px;
}

.eventCard__focusLabel{
  color: #6b7e9b;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 10px;
}

.eventCard__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 8px;
}

.tag{
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;

  background: var(--accentSoft);
  border: 1px solid var(--accentBorder);
  color: var(--accent);

  font-weight: 800;
  font-size: .92rem;
  line-height: 1;
  text-decoration: none;
}

.tag:hover{
  background: color-mix(in srgb, var(--accentSoft) 75%, white 25%);
  border-color: color-mix(in srgb, var(--accentBorder) 75%, black 10%);
}

/* =========================
   Button
   ========================= */

.eventCard__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 14px 18px;
  min-width: 300px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 75%, #3a5495 25%);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;

  box-shadow: 0 14px 30px var(--accentShadow);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.eventCard__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 36px var(--accentShadow);
  cursor: pointer;
}

.eventCard__btn:active{
  transform: translateY(0);
}

.eventCard--alt .eventCard__btn{
    width: 300px;
}

/* ==========================================
   Alternate alignment (2nd item opposite side)
   ========================================== */

/* Push the whole content block to the right, keep text left */
.eventCard--alt{
  display: grid;
  justify-content: end; /* moves inner content to the right */
}


/* Icon stays above title but in the "right-side column" */
.eventCard--alt .eventCard__top{
  justify-items: start;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 767px){

  .eventCard{
    padding: 28px 18px;
  }

  /* Center header content on small screens */
  .eventCard__top{
    justify-items: center;
    text-align: center;
  }

  .eventCard__desc{
    max-width: 36ch;
  }

  /* Stats: left aligned but centered as a block */
  .eventCard__stats{
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .eventCard__stats li{
    justify-content: flex-start;
    text-align: left;
  }

  /* Tags centered */
  .eventCard__tags{
    justify-content: center;
  }

  .eventCard__focusLabel{
    text-align: center;
  }

  /* Button full width */
  .eventCard__btn{
    width: 320px;      /* pick your standard */
    max-width: 100%;
    min-width: 0;
  }

  /* Disable opposite alignment on mobile (everything centered) */
  .eventCard--alt{
    justify-content: center;
  }
}
