/**
 * Events New listing (V2) — filter bar + 2-tile card grid.
 * Scoped under .events-new-listing-v2 to avoid leaking into other pd-* usages.
 */

/* ---------------------------------------------------------------------
 * Top banner — all hero_product rules from partners/partner-directory,
 * consolidated from partner_directory_v2.css + wso2_layout_v2.css and
 * scoped to this page so no other hero_product instances are affected.
 * ------------------------------------------------------------------- */

/*
 * The events-new route renders via the default page.html.twig which has
 * a hardcoded inline margin-top: 80px on <main>. Remove it so the hero
 * sits flush against the header, matching the Partner Directory layout.
 */
body.path-events main {
  margin-top: 0 !important;
}

/* Base hero — matches wso2_layout_v2.css + partner_directory_v2.css */
body.path-events .hero_product {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  height: 90vh;
  background: url('https://wso2.cachefly.net/wso2/sites/all/image_resources/wso2-brand-hero-banner.webp') center top / cover no-repeat;
  background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
}

body.path-events .hero_product h1 {
  font-size: 5rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  padding-top: 4rem;
}

body.path-events .hero_product p {
  color: #f2f2f2 !important;
  font-weight: 300 !important;
}

@media (max-width: 767px) {
  body.path-events .hero_product.h-50 {
    height: 40vh !important;
  }

  body.path-events .hero_product h1 {
    font-size: 2.5rem !important;
  }
}

.events-new-listing-v2 {
  padding: 40px 0 60px;
  background-color: #ffffff;
}

/* ---------------------------------------------------------------------
 * Filter bar
 * ------------------------------------------------------------------- */
.events-new-listing-v2 .en-filter-placeholder {
  height: 0;
  transition: height 0.15s ease;
}

.events-new-listing-v2 .events-new-filterbar-wrap {
  position: relative;
  margin-top: -36px;
  z-index: 50;
  transition: all 0.3s ease;
}

.events-new-listing-v2 .events-new-filterbar-wrap.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
}

.events-new-listing-v2 .events-new-filterbar-wrap.is-sticky .pd-filterbar {
  max-width: 1200px;
  width: 100%;
}

.events-new-listing-v2 .events-new-filterbar-wrap.is-sticky .pd-active-bar {
  display: none !important;
}

/* Pill container — identical shadow / shape to Partner Directory V2 */
.events-new-listing-v2 .pd-filterbar {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 14px 40px -14px rgba(7, 20, 46, 0.35),
              0 1px 0 rgba(7, 20, 46, 0.06);
  padding: 10px 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
}

.events-new-listing-v2 .pd-dropdown {
  position: relative;
  height: 48px;
  flex: 1;
  min-width: 0;
}

.events-new-listing-v2 .pd-dropdown-btn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  background: transparent;
  border: none;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #0e1a33;
  cursor: pointer;
  transition: background 0.15s;
}

.events-new-listing-v2 .pd-dropdown-btn:hover,
.events-new-listing-v2 .pd-dropdown.open .pd-dropdown-btn {
  background: #eceef3;
}

.events-new-listing-v2 .pd-dropdown-btn .pd-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.events-new-listing-v2 .pd-dropdown-btn .pd-lbl .pd-placeholder {
  color: #17223ab3;
  font-weight: 400;
  font-size: 1rem;
}

.events-new-listing-v2 .pd-dropdown-btn .pd-lbl .pd-val {
  color: #0e1a33;
  font-weight: 600;
}

.events-new-listing-v2 .pd-dropdown.has-selection .pd-dropdown-btn {
  color: #ff7300;
}

.events-new-listing-v2 .pd-dropdown-btn .pd-chev {
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.events-new-listing-v2 .pd-dropdown.open .pd-dropdown-btn .pd-chev {
  transform: rotate(180deg);
}

.events-new-listing-v2 .pd-count {
  background: #ff7300;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.events-new-listing-v2 .pd-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  box-shadow: 0 20px 50px -12px rgba(7, 20, 46, 0.2),
              0 4px 8px rgba(7, 20, 46, 0.04);
  padding: 8px;
  z-index: 60;
}

.events-new-listing-v2 .pd-dropdown.open .pd-dropdown-menu {
  display: block;
}

.events-new-listing-v2 .pd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #212934;
  white-space: nowrap;
  user-select: none;
}

.events-new-listing-v2 .pd-opt:hover {
  background: #eceef3;
}

.events-new-listing-v2 .pd-opt-group-label {
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7591;
  cursor: default;
  user-select: none;
}

.events-new-listing-v2 .pd-opt--child {
  padding-left: 22px;
}

.events-new-listing-v2 .pd-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d5d9e2;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  background: #fff;
}

.events-new-listing-v2 .pd-opt.selected .pd-check {
  background: #ff7300;
  border-color: #ff7300;
  color: #fff;
}

/* Active filter chips */
.events-new-listing-v2 .pd-active-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 4px;
}

.events-new-listing-v2 .pd-active-bar .pd-lbl {
  font-size: 12px;
  font-weight: 500;
  color: #6b7591;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.events-new-listing-v2 .pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e5ec;
  color: #0e1a33;
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  font-size: 13px;
}

.events-new-listing-v2 .pd-chip .pd-cat {
  color: #6b7591;
}

.events-new-listing-v2 .pd-chip-remove {
  border: none;
  background: none;
  color: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.events-new-listing-v2 .pd-chip-clear {
  border: none;
  background: none;
  color: #5b6470;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---------------------------------------------------------------------
 * Card grid — 2 tiles per row
 * ------------------------------------------------------------------- */
.events-new-listing-v2 .events-new-grid-wrapper {
  margin-top: 28px;
}

.events-new-listing-v2 .events-new-card-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.events-new-listing-v2 .events_card_div {
  padding: 12px 12px;
  margin-bottom: 0;
}

.events-new-listing-v2 .pd-root .pd-card {
  margin-bottom: 0;
}

.events-new-listing-v2 .pd-card {
  background: #fff;
  overflow: hidden;
  min-height: 290px;
  box-shadow: 0 18px 40px -16px rgba(7, 20, 46, 0.18);
	border: 1px solid #e2e5ec;
	border-radius: 14px;
	padding: 30px 40px 40px 40px;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
	cursor: pointer;
	position: relative;
}

.events-new-listing-v2 .en-card-wrapper a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.events-new-listing-v2 .en-card-wrapper > .pd-card {
  display: block;
}

.events-new-listing-v2 .en-card-wrapper--linked:hover .pd-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.events-new-listing-v2 .pd-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-new-listing-v2 .en-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e7e9ec;
}

.events-new-listing-v2 .en-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid #d8dce1;
  border-radius: 6px;
  flex-shrink: 0;
}

.events-new-listing-v2 .en-date-box--empty {
  border-color: transparent;
}

.events-new-listing-v2 .en-date-day {
  font-size: 20px;
  font-weight: 700;
  color: #212934;
  line-height: 1.1;
}

.events-new-listing-v2 .en-date-month {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b6470;
}

.events-new-listing-v2 .en-badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.events-new-listing-v2 .en-link-badge,
.events-new-listing-v2 .en-format-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.events-new-listing-v2 .en-format-badge--in-person {
  background: #ffe0cc;
  color: #e55a00;
}

.events-new-listing-v2 .en-format-badge--virtual {
  background: #DCEFFD;
  color: #0F4C75;
}

.events-new-listing-v2 .en-link-badge--internal {
  background: #efe5f4;
  color: #03212d;
}

.events-new-listing-v2 .en-link-badge--external {
  background: #f4f4d3;
  color: #797968;
}

.events-new-listing-v2 .pd-root .pd-card .pd-name {
  font-size: 18px;
  font-weight: 400;
  color: #212934;
  margin: 1rem 0 1.5rem;
  min-height: 58px;
}

.events-new-listing-v2 .en-time-row,
.events-new-listing-v2 .en-location-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5b6470;
  margin-bottom: 6px;
}

.events-new-listing-v2 .en-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: #9aa1ab;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.events-new-listing-v2 .en-icon--clock {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zM8.75 4h-1.5v4.5l3.75 2.25.75-1.23-3-1.77z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zM8.75 4h-1.5v4.5l3.75 2.25.75-1.23-3-1.77z'/%3E%3C/svg%3E");
}

.events-new-listing-v2 .en-icon--pin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C5.24 0 3 2.24 3 5c0 3.75 5 11 5 11s5-7.25 5-11c0-2.76-2.24-5-5-5zm0 7.25A2.25 2.25 0 1 1 8 2.75a2.25 2.25 0 0 1 0 4.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C5.24 0 3 2.24 3 5c0 3.75 5 11 5 11s5-7.25 5-11c0-2.76-2.24-5-5-5zm0 7.25A2.25 2.25 0 1 1 8 2.75a2.25 2.25 0 0 1 0 4.5z'/%3E%3C/svg%3E");
}

.events-new-listing-v2 .pd-card-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  padding-top: 12px;
  text-align: right;
}

.events-new-listing-v2 .pd-card-foot .cLinkCTA {
  color: #17223a !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-family: "Inter", sans-serif !important;
  display: inline-flex;
  align-items: center;
}

.events-new-listing-v2 .pd-card-foot .cLinkCTA span {
  margin-left: 10px;
}

.events-new-listing-v2 .pd-card-foot .cSVGarrow {
  fill: #ff6700 !important;
  height: 14px;
  width: 14px;
}

.events-new-listing-v2 .pd-card-foot .pd-view-more--disabled {
  color: #9aa1ab;
  cursor: default;
  font-weight: 600;
  font-family: "Inter", sans-serif !important;
  opacity: 0.45;
}

.events-new-listing-v2 .en-card-wrapper:has(.pd-view-more--disabled) {
  cursor: default;
}

.events-new-listing-v2 .en-card-wrapper:has(.pd-view-more--disabled) .pd-card {
  cursor: default;
}

.events-new-listing-v2 .en-no-results,
.events-new-listing-v2 .view-empty,
.events-new-listing-v2 .view-empty p {
  width: 100%;
  text-align: center !important;
  padding: 60px 0;
  color: #5b6470;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

@media (max-width: 767px) {
  .events-new-listing-v2 .pd-dropdown {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* ── Typography — match Partner Directory V2 ─────────────────────────────── */
.events-new-listing-v2 li,
.events-new-listing-v2 p,
.events-new-listing-v2 label,
.events-new-listing-v2 select,
.events-new-listing-v2 h5.pd-name,
.events-new-listing-v2 span.en-date-day,
.events-new-listing-v2 span.en-date-month,
.events-new-listing-v2 .en-time-row,
.events-new-listing-v2 .en-location-row,
.events-new-listing-v2 span.pd-view-more {
  font-family: "Inter", sans-serif !important;
  color: #262626 !important;
}

.hero_product::after {
    z-index: 1;
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}