/* =========================================
   upcoming-events-iPURSE-2025.css  (put in css/upcoming-events-iPURSE-2025.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; }
}