/*--------------------------------------------------------------
# Events Section — Card Grid
  Paste this UNDER the existing ".events-section" rule in
  style.css (the one with the crowd2.jpg background).
  It styles the #events-grid cards that your JS renders.
--------------------------------------------------------------*/

.events-section {
  background: linear-gradient(rgba(151, 40, 122, 0.9), rgba(158, 40, 150, 0.9)), url("../img/crowd2.jpg") fixed center center;
  background-size: cover;
  padding: 35px 0;
}

#events .section-title h2 {
  color: #fff;
}

#events .section-title h2 {
  color: #fff;
}
 
#events .section-title h2::before {
  background: rgba(255, 255, 255, 0.35);
}
 
#events .section-title h2::after {
  background: #ffc107; /* gold accent instead of dark purple, so it shows up */
}
 
#events .section-title p {
  color: rgba(255, 255, 255, 0.85);
}
 
.events-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 26px;
  margin-top: 40px;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.events-grid::-webkit-scrollbar {
  display: none;
}

.events-grid .event-card {
  flex: 1 1 260px;
  min-width: 260px;
}
 
.event-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease;
}
 
.event-card:hover {
  transform: translateY(-5px);
}
 
/* Flyer image — every card is the SAME fixed shape (4:3 box),
   but the full flyer always shows, uncropped, no matter what
   size or ratio it actually is. "contain" shrinks the flyer
   to fit inside the box; the grey fill covers any leftover
   space so it reads as an intentional mat, not empty space. */
.event-card .event-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e6e6e6;
  display: block;
}
 
/* Pinned / "Ongoing" featured card */
.event-card-pinned {
  position: relative;
  border: 2px solid #ffc107;
}
 
.ongoing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #ffc107;
  color: #4a1442;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
 
.events-pinned-wrap {
  max-width: 480px;
  margin: 0 auto 34px;
}
 
.events-view-all {
  text-align: center;
  margin-top: 34px;
}
 
.events-view-all a {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50px;
  border: 2px solid #fff;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: 0.3s;
}
 
.events-view-all a:hover {
  background: #fff;
  color: #853764;
}
 
/* Full Events page (events.html) */
.events-page-search {
  max-width: 460px;
  margin: 0 auto 40px;
  position: relative;
}
 
.events-page-search input {
  width: 100%;
  padding: 12px 46px 12px 20px;
  border-radius: 50px;
  border: 2px solid #853764;
  font-size: 14px;
  outline: none;
}
 
.events-page-search i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #853764;
  font-size: 17px;
}
 
.events-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
 
/* ---------- Ongoing Events (small thumbnail cards, Tourism-Regina style) ---------- */
#ongoing-section {
  margin-bottom: 50px;
}
 
#ongoing-section .events-subtitle {
  font-family: "Jost", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a1442;
  margin-bottom: 20px;
}
 
.ongoing-grid {
  display: grid;
  gap: 16px;
  /* grid-template-columns is set dynamically in JS based on
     how many ongoing cards there are, so 1 card fills the row
     (matching a normal month row's width), 2 splits it in
     half, 3 into thirds, and so on. */
}

.ongoing-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid #ffc107;
  min-width: 0;
}

.ongoing-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e6e6e6;
}

.ongoing-title {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4a1442;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
 
/* ---------- Upcoming Events list (chronological rows) ---------- */
/* Widen the events page beyond Bootstrap's default container
   cap, since the row layout needs more horizontal room than
   a typical text section does. */
#events-page.container,
#events-page .container {
  max-width: 1100px;
  width: 100%;
}
 
/* ---------- Month browser ---------- */
.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.month-nav-label {
  font-family: "Jost", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #4a1442;
  min-width: 160px;
  text-align: center;
}

.month-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #853764;
  background: #fff;
  color: #853764;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.month-nav-btn:hover {
  background: #853764;
  color: #fff;
}

.events-page-search {
  max-width: 320px;
  flex: 1 1 260px;
  margin: 0;
}

@media (max-width: 640px) {
  .events-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .events-page-search {
    max-width: none;
  }
}
 
.events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
 
.event-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
 
.event-row:hover {
  transform: translateX(4px);
}
 
.event-row-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  flex-shrink: 0;
  color: #853764;
}
 
.event-row-day {
  font-family: "Jost", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
 
.event-row-month {
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
 
.event-row-thumb {
  width: 140px;
  height: 140px;
  border-radius: 6px;
  object-fit: contain;
  background: #e6e6e6;
  flex-shrink: 0;
}
 
.event-row-body {
  flex: 1;
  min-width: 0;
}
 
.event-row-title {
  font-family: "Jost", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a1442;
  margin: 0 0 4px;
}
 
.event-row-meta {
  font-size: 0.82rem;
  color: #853764;
  font-weight: 600;
  margin: 0 0 4px;
}
 
.event-row-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
 
@media (max-width: 576px) {
  .event-row {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .event-row-thumb {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
 
.event-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
 
/* clamp(min, fluid, max) keeps text and image scaling together
   as the card's own width changes, instead of jumping at
   fixed breakpoints while the image stays a fixed pixel size */
.event-date {
  font-family: "Jost", sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #853764;
  margin-bottom: 6px;
}
 
.event-title {
  font-family: "Jost", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: #4a1442;
  margin: 0 0 8px;
}
 
.event-desc {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  color: #555;
  margin: 0;
  flex: 1;
}
 
.events-empty {
  color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  text-align: center;
  font-style: italic;
}
 
@media (max-width: 576px) {
  .events-grid .event-card {
    min-width: 220px; /* slightly narrower on small screens so more of the next card peeks in, hinting it's scrollable */
  }
}