/* =========================================
   upcoming-events-Workshop.css  (put in css/upcoming-events-Workshop.css)
   Uses your variables: --navy, --gold (fallbacks included)
   The base banner CSS (.page-banner ...) stays in your global
   stylesheet, same as the other pages.
   ========================================= */

:root{
  --q-navy: var(--navy, #0b2352);
  --q-gold: var(--gold, #e1a80b);
  --q-text: #3f4859;
  --q-line: #eceef3;
  --q-blue: #1565c0;
}

/* ---------- Layout (content left, sidebar RIGHT) ---------- */
.events-section{
  padding: 34px 0 60px;
  background: #f7f8fb;
}

.events-layout{
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 28px;
  align-items: start;
}

.events-content{ min-width: 0; }

/* ---------- Sidebar wrapper ---------- */
.events-sidebar{
  position: sticky;
  top: 20px;
}

/* ================= SIDEBAR MENU ================= */
.sidebar-menu {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.sidebar-menu h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--navy);
}
.sidebar-menu h3.gold-edge { border-left: 4px solid var(--gold); }
.sidebar-menu ul { list-style: none; margin: 0; padding: 0; }
.sidebar-menu ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-menu ul li a i:first-child {
  color: var(--navy);
  width: 18px;
  text-align: center;
  transition: color var(--transition);
}
.sidebar-menu ul li a:hover { background: #f5f7fb; color: var(--navy); }
.sidebar-menu ul li.active a {
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}
.sidebar-menu ul li.active a i:first-child { color: var(--gold); }
.sidebar-menu ul li a .arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--gold);
}

/* ---------- Event card ---------- */
.event-card{
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  padding: 24px 28px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  overflow: hidden;
}

.event-top{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.event-date{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--q-navy);
}

.event-date i{
  font-size: 22px;
  color: var(--q-gold);
}

.event-date sup{ font-size: 9px; }

.event-name{
  margin: 0;
  font-size: 54px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--q-navy);
}

.event-subtitle{
  margin: 6px 0 18px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--q-navy);
}

/* details block (Date / Venue / Theme) */
.event-details h2{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--q-navy);
  display: none; /* title already shown above; remove this line to show it here */
}

.custom-dots{
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-dots li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--q-blue);
}

.custom-dots li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--q-gold);
}

.custom-dots li strong{
  margin-right: 6px;
  color: var(--q-navy);
}

/* poster */
.event-poster img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(11,35,82,.25);
}

.event-divider{
  width: 62px;
  height: 3px;
  margin: 22px 0 16px;
  background: var(--q-gold);
}

.event-desc{
  margin: 0 0 18px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--q-text);
}

/* more details bar */
.details-link{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 14px 20px;
  background: #e8f1fb;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--q-navy);
}

.details-link .link-icon{
  font-size: 22px;
  margin-right: 4px;
}

.details-link a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--q-navy);
  color: #fff;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.details-link a i{ font-size: 12px; }

.details-link a:hover{
  background: var(--q-gold);
  color: var(--q-navy);
}

/* focus strip */
.focus-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px -28px 0;
  border-top: 1px solid var(--q-gold);
}

.focus-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 8px;
  font-size: 13.5px;
  color: var(--q-navy);
  border-right: 1px solid #d5dae6;
}

.focus-item:last-child{ border-right: 0; }

.focus-item i{
  font-size: 22px;
  color: var(--q-navy);
}

/* ================= PAGE BANNER ================= */
.page-banner {
  position: relative;
  width: 100%;
  height: 315px;
  overflow: hidden;
  background: #0b2352;
}
.banner-flex {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* full hero image */
.banner-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.banner-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* left dark / blurred area */
.banner-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 40px 70px;
  background: rgba(11, 35, 82, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
/* slanted transition */
.banner-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100px;
  width: 150px;
  height: 100%;
  background: rgba(11, 35, 82, 0.88);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}
.banner-text h1 {
  margin: 0 0 22px 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 1px;
}
.banner-text .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  background: none;
  padding: 0;
  margin: 0;
}
.banner-text .breadcrumb a { color: #fff; text-decoration: none; }
.banner-text .breadcrumb a:hover { color: var(--gold); }
.banner-text .breadcrumb .sep { color: #fff; }
.banner-text .breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .events-layout{ grid-template-columns: 1fr; }
  .events-sidebar{ position: static; }
  .event-top{ grid-template-columns: 1fr; }
  .focus-strip{ grid-template-columns: repeat(2, 1fr); }
  .focus-item:nth-child(2){ border-right: 0; }
}

@media (max-width: 767px){
  .event-card{ padding: 18px 18px 0; }
  .event-name{ font-size: 40px; }
  .focus-strip{ margin: 18px -18px 0; }
}

/* =========================================
   Canada Day page extras
   ========================================= */
.event-card .event-name{
  font-size: 40px;
  letter-spacing: 0;
  margin-bottom: 4px;
}

/* show the details heading as the sub title on this page */
.event-card .event-details h2{
  display: block;
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--q-navy);
}

.event-card .custom-dots{ margin-bottom: 16px; }

.event-banner-img{
  margin: 0 0 18px;
}

.event-banner-img img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 767px){
  .event-card .event-name{ font-size: 30px; }
}

/* =========================================
   Workshop page extras
   ========================================= */
.event-card .event-name{
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 14px;
}

/* ---------- Gallery: feature image + row, gold offset frame ---------- */
.event-gallery{
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0 12px 28px 0;
}

.g-row{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.g-item{
  position: relative;
  margin: 0;
}

/* gold frame sitting behind each image, offset to the bottom-right */
.g-item::before{
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 2px solid var(--q-gold);
  border-radius: 10px;
  z-index: 0;
}

.g-img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--q-navy);
  box-shadow: 0 10px 24px rgba(11,35,82,.22);
}

.g-img img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

/* feature image gets a fixed cinematic ratio */
.g-main .g-img img{
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.g-row .g-img img{
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.g-img:hover img{ transform: scale(1.05); }

/* expand badge */
.g-zoom{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11,35,82,.85);
  color: var(--q-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}

.g-img:hover .g-zoom,
.g-img:focus-visible .g-zoom{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(7,20,48,.92);
}

.lightbox.open{ display: flex; }

.lightbox img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lb-close{
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.lb-close:hover{ color: var(--q-gold); }

/* Date / Time / Venue row */
.info-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.info-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px;
  border-right: 1px solid #d5dae6;
}

.info-item:first-child{ padding-left: 0; }
.info-item:last-child{ border-right: 0; }

.info-item > i{
  font-size: 30px;
  color: var(--q-navy);
}

.info-item strong{
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--q-navy);
}

.info-item span{
  font-size: 14px;
  color: var(--q-text);
}

.event-card > .custom-dots{ padding-bottom: 22px; }

.event-card .custom-dots li{
  color: var(--q-text);
  margin-bottom: 8px;
}

@media (max-width: 767px){
  .g-row{ grid-template-columns: 1fr; }
  .g-main .g-img img{ aspect-ratio: 16 / 9; }
  .event-card .event-name{ font-size: 24px; }
  .info-row{ grid-template-columns: 1fr; gap: 10px; }
  .info-item{ border-right: 0; padding: 4px 0; }
}