/* ================= UPCOMING EVENTS PAGE ================= */
.ue-section {
  background: #fff;
  padding: 40px 0 50px;
}
.ue-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: start;
}

/* banner extras (banner / sidebar base styles come from your main CSS) */
.banner-text .banner-sub {
  margin: 0 0 18px;
  color: #e6ecf8;
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
}

/* ---------- left boxes ---------- */
.ue-box {
  background: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  overflow: hidden;
}
.ue-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f7;
}
.ue-box-head i { color: var(--navy, #0b2352); font-size: 20px; }
.ue-box-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #0b2352);
}

/* calendar */
.ue-cal { padding: 12px 14px 16px; }
.ue-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e3e8f2;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--navy, #0b2352);
}
.ue-cal-nav button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--navy, #0b2352);
  padding: 4px 8px;
}
.ue-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
  text-align: center;
}
.ue-cal-week span {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  padding: 6px 0;
}
.ue-cal-grid button,
.ue-cal-grid .blank {
  height: 30px;
  font-size: 12px;
  background: none;
  border: 0;
  color: #333;
  position: relative;
}
.ue-cal-grid button { cursor: default; border-radius: 50%; }
.ue-cal-grid button.has-event {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy, #0b2352);
}
.ue-cal-grid button.has-event::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold, #f2b705);
}
.ue-cal-grid button.has-event:hover { background: #eef2fb; }
.ue-cal-grid button.today {
  background: var(--navy, #0b2352);
  color: #fff;
  width: 30px;
  margin: 0 auto;
}

/* mini list */
.ue-mini { list-style: none; margin: 0; padding: 4px 0; }
.ue-mini li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f7;
}
.ue-mini li:last-child { border-bottom: 0; }
.ue-badge {
  flex: 0 0 38px;
  height: 42px;
  background: var(--navy, #0b2352);
  color: #fff;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.ue-badge b { font-size: 15px; }
.ue-badge small { font-size: 10px; }
.ue-mini a {
  font-size: 12px;
  line-height: 1.45;
  color: var(--navy, #0b2352);
  text-decoration: none;
}
.ue-mini a:hover { text-decoration: underline; }
.ue-viewall {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--navy, #0b2352);
  border-top: 1px solid #eef1f7;
  text-decoration: none;
}

/* promo */
.ue-promo {
  display: block;
  text-align: center;
  padding: 26px 16px;
  border-radius: 8px;
  background: linear-gradient(160deg, #0b2352, #14377c);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.ue-promo-globe { font-size: 54px; color: #4f78c9; margin-bottom: 14px; }
.ue-promo h4 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}
.ue-promo h4 span { display: block; color: var(--gold, #f2b705); }
.ue-promo-btn {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 20px;
  background: var(--gold, #f2b705);
  color: var(--navy, #0b2352);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- main column ---------- */
.ue-main-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.ue-title { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ue-title i { color: var(--navy, #0b2352); font-size: 22px; }
.ue-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #0b2352);
}
.ue-line { flex: 1; height: 1px; background: var(--gold, #f2b705); }
#ueFilter {
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid #d9e0ee;
  border-radius: 6px;
  background: #fff;
  color: var(--navy, #0b2352);
  font-size: 13px;
}

.ue-cards { display: flex; flex-direction: column; gap: 14px; }
.ue-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  transition: box-shadow .25s, transform .25s;
}
.ue-card[hidden] { display: none; }
.ue-card:hover { box-shadow: 0 8px 22px rgba(11, 35, 82, .14); transform: translateY(-2px); }
.ue-card.highlight { outline: 2px solid var(--gold, #f2b705); }

.ue-thumb {
  height: 135px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef1f7;
}
.ue-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ue-info h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy, #0b2352);
}
.ue-info ul { list-style: none; margin: 0; padding: 0; }
.ue-info li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: #2c4a86;
  margin-bottom: 4px;
}
.ue-info li i {
  flex: 0 0 16px;
  margin-top: 3px;
  text-align: center;
  color: var(--navy, #0b2352);
  font-size: 12px;
}
.ue-info li.ue-org { color: #3a5da8; }

.ue-btn {
  align-self: end;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 5px;
  background: var(--navy, #0b2352);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.ue-btn:hover { background: var(--gold, #f2b705); color: var(--navy, #0b2352); }
.ue-btn i { margin-left: 6px; font-size: 10px; }

.ue-empty { text-align: center; padding: 30px; color: #666; }

/* pagination */
.ue-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.ue-pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--gold, #f2b705);
  border-radius: 4px;
  background: #fff;
  color: var(--navy, #0b2352);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ue-pager button:hover { background: #fff6d6; }
.ue-pager button.active {
  background: var(--navy, #0b2352);
  border-color: var(--navy, #0b2352);
  color: #fff;
}
.ue-pager button:disabled { opacity: .4; cursor: default; }

/* ================= 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);
}

/* ================= 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: 1199px) {
  .ue-wrap { grid-template-columns: 240px minmax(0, 1fr); }
  .ue-right { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
  .page-banner { height: auto; min-height: 260px; }
  .banner-text { width: 100%; position: relative; padding: 40px 24px; }
  .banner-text::after { display: none; }
  .banner-media { width: 100%; }
  .ue-wrap { grid-template-columns: 1fr; }
  .ue-main { order: 1; }
  .ue-right { order: 2; }
  .ue-left { order: 3; }
  .ue-card { grid-template-columns: 170px minmax(0, 1fr); }
  .ue-btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 575px) {
  .ue-card { grid-template-columns: 1fr; }
  .ue-thumb { height: 180px; }
  .ue-btn { grid-column: 1; }
  .ue-main-head { flex-wrap: wrap; }
  .ue-line { display: none; }
}