.event-popup-dialog .event-popup-card::-webkit-scrollbar {
   width:8px;
}


.event-popup-dialog .event-popup-card::-webkit-scrollbar-track {
  background: #d1d3d5;
border-radius: 10px;
}


.event-popup-dialog .event-popup-card::-webkit-scrollbar-thumb {
  background: #ff9800;
  border-radius: 10px;
}


.event-popup-rich-content.event-popup-element a {
    text-decoration: none;
}


.events-listing-module .cta-btn
{
  margin-top:auto;
    display: flex;
    align-items: center;
    justify-content: end;
}

.event-popup.is-open .event-card
{
  border-radius:0;
}

.event-popup-rich-content.event-popup-element * strong {
    font-family: 'Riona Sans Regular';
}

div#eventPopupContent {
    height: 100%;
}

/* =========================================================
   POPUP CONTAINER
========================================================= */
button.event-card-link.event-popup-trigger {
    border: none;
    background: none;
    padding: 0;
}


.event-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

 
}

.event-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Overlay */

.event-popup-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(4px);
}


/* Popup box */
  .event-popup.is-open  .event-popup-dialog {
    height:auto;
}
  


.event-popup-dialog {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 850px;
/*   max-height: 85vh; */
/*     height:90%; */
/*   overflow-y: auto; */

  background: #fff;

  border-radius: 16px;

  padding:40px 30px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.30);
}


/* Close button */

.event-popup-close {
    align-items: center;
    background: #ff9800;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    height: 50px;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 50px;
    z-index: 5;
    padding: 0;
}

/* Popup card itself */

.event-popup-dialog .event-popup-card {
  width: 100%;
  margin: 0;
   height: 100%;
    overflow-y: auto;
  transform: none !important;

  transition: none !important;

  box-shadow: none !important;

  background: transparent;
}


/* No card hover */

.event-popup-dialog .event-popup-card:hover {
  transform: none !important;
  box-shadow: none !important;
}


/* Popup image */

.event-popup-dialog .event-card-image {
  transform: none !important;
  transition: none !important;

  overflow: hidden;

  border-radius: 12px;
}


/* Image stays static */

.event-popup-dialog .event-card-image img {
  transform: none !important;
  transition: none !important;
}


/* No zoom */

.event-popup-dialog .event-popup-card:hover
.event-card-image img {
  transform: none !important;
}


/* Popup rich content */

.event-popup-rich-content {
  margin-top: 25px;

  line-height: 1.7;
}


/* Prevent body scrolling */

body.event-popup-open {
  overflow: hidden;
}



/* =========================================================
   POPUP CARD - REMOVE CARD HOVER / ZOOM EFFECT
========================================================= */

.event-popup-card {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Remove hover effect from popup card */
.event-popup-card:hover {
  transform: none !important;
  scale: none !important;
  box-shadow: inherit;
}

/* Prevent image zoom inside popup */
.event-popup-card .event-card-image,
.event-popup-card .event-card-image img {
  transform: none !important;
  transition: none !important;
}

/* Prevent image zoom on hover */
.event-popup-card:hover .event-card-image,
.event-popup-card:hover .event-card-image img {
  transform: none !important;
  scale: none !important;
}

/* Disable card hover pseudo-effects inside popup */
.event-popup-card::before,
.event-popup-card::after,
.event-popup-card:hover::before,
.event-popup-card:hover::after {
  transform: none !important;
  animation: none !important;
}

/* Popup content should behave like a popup, not an interactive card */
.event-popup-card .event-popup-element {
  transform: none !important;
}

/* Remove any hover transforms from children */
.event-popup-card:hover * {
  transform: none !important;
}




/* --------------- */

.event-card-link span i {
  color: white !important;
}


.events-filter-field label {
  text-align: center;
}


.events-filter-field {
  position: relative;
}

/* Select */
.events-filter-field select {

  appearance: none;

}



.events-filter-field:not(:last-child)::after {
  content: "";
  position: absolute;

  right: 18px;
  top: 65%;

  width: 8px;
  height: 8px;

  border-bottom: 2px solid #555;
  border-right: 2px solid #555;

  transform: translateY(-65%) rotate(45deg);

  pointer-events: none;

  transition: transform 0.25s ease;
}

/* Arrow rotated when select is open */
.events-filter-field.select-open::after {
  transform: translateY(-35%) rotate(225deg);
}

/* Options */
.events-filter-field select option {
  padding: 12px 16px;

  background: #fff;
  color: #333;

  font-size: 14px;
  font-weight: 500;
}

/* Selected option */
.events-filter-field select option:checked {
  background: #ff9800;
  color: #fff;
  font-weight: 600;
}




/* event card hover effect css start from here */
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  transform: translateY(0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  will-change: transform;
}


.event-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(0, 0, 0, 0.50);
  box-shadow: 0 20px 45px ##00000099, 0 5px 15px rgba(0, 0, 0, .03);
}

/* .event-card:hover::before {
opacity: 1;
}

.event-card:hover::after {
left: 140%;
} */


.event-card > * {
  position: relative;
  z-index: 1;
}

.event-card img {
  display: block;
  width: 100%;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.event-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}



.event-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.35s ease;
}

/* .event-card-link::after {
content: "";
font-family: "Font Awesome 6 Free";
font-style: normal;
font-weight: 400;
display: inline-block;
margin-left: 8px;
transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
*/

.event-card:hover .event-card-link {
  gap: 14px;
}

.event-card:hover .event-card-link span i {
  transform: translateX(4px);
  transition:all 0.3s ease;
}

/* end here */





.events-listing-module {
  width: 100%;
}
.events-listing-module {
  padding: 40px 30px 90px;
}

/* =========================
Filters
========================= */

.events-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  max-width: 1165px;
  margin: 0 auto;
  padding: 20px 50px;
  background: #fff;
  border-radius:15px;
 box-shadow: 0 3px 20px rgba(0, 0, 0, .2);
}

.events-filter-field label {
  display: block;
  margin-bottom: 10px;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.2;
  /*   text-transform: uppercase; */
}

.events-filter-field select,
.events-filter-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  background-color: #fff;
  color: #30353b;
  font: inherit;
  font-size: 15px;
  outline-offset: 0;
  box-shadow: 0 3px 20px rgba(0, 0, 0, .2);
  text-align: center;
}

.events-filter-field select:focus-visible,
.events-filter-field input:focus-visible
{
  outline:none;
  border:1px solid #00000096;
}

.events-filter-field select {
  cursor: pointer;
  appearance: none;
}

/* =========================
Results
========================= */

.events-results {
  padding-top: 85px;
}

.events-title {
  margin: 0 0 65px;
  color: #242a31;
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

/* =========================
Grid
========================= */

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* =========================
Card
========================= */

.event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 0 10px #0000005c;
  background: #fff;
}

.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  box-shadow: 0 3px 20px rgba(0, 0, 0, .2);
}

.event-card-image {
  overflow: hidden;
}

.event-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.event-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 30px 34px;
}

.event-card-category {
  display: block;
  margin-bottom: 14px;
  color: #ff9800;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.event-card-title {
  margin: 0 0 22px;
  color: #292e34;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  font-family: 'Riona Sans Medium';
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
}

.event-card-date,
.event-card-location {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #555e68;
  font-size: 14px;
  line-height: 1.5;
}


.event-card-booth {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #555e68;
  font-size: 14px;
  line-height: 1.5;
}

.event-card-booth .event-card-icon {
    flex: 0 0 auto;
    font-size: 12px;
}

.event-card-icon {
  flex: 0 0 auto;
  font-size: 15px;
}

.event-card-description {
  color: #444c55;
  font-size: 15px;
  line-height: 1.55;
}

.event-card-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 35px;
  margin-top:15px;
  color: #ff9800;
  font-size: 15px;
  text-decoration: none;
  justify-content: end;
}

.event-card-link span{
  background-color: #ff9800;
  border-radius: 30px;
  font-size: inherit;
  height: 35px;
  top: 50%;
  width: 35px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}



.event-card-image {
  width: 100%;
  overflow: hidden;
  display: none;
}

.event-card-image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.event-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* =========================
Load More
========================= */

.events-load-more-wrap {
  display: flex;
  justify-content: center;
}

.events-load-more {
  background-color: #ff9800;
  border-radius: 30px;
  color: #fff;
  display: inline-block;
  line-height: normal;
  padding: 7px 21px;
  text-decoration: none;
  border: 1px solid #ff9800;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
  transition: 0.3s all ease-in-out;
  cursor: pointer;
  margin-top: 45px;
}

.events-load-more:hover {
  background: #fff;
  color: #ff9800;
  border:1px solid #ff9800;
  transition: 0.3s all ease-in-out;
}

/* =========================
No Results
========================= */

.events-no-results {
  padding: 50px 20px;
  text-align: center;
}

.events-no-results p {
  margin: 0;
}

/* =========================
Responsive
========================= */

@media (max-width: 991px) {
  .events-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 25px;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {



 .event-popup-close {
  
    font-size: 14px;
    height: 25px;
 right: 7px;
    top: 7px;
    
    width: 25px;
 
}


  .event-popup.is-open  .event-popup-dialog {
    height:80%;
}
  


.event-popup.is-open .event-popup-rich-content {
    margin-top: 10px;
    line-height: 1.7;
}

.event-popup.is-open .event-card-meta {
    margin-bottom: 15px;
}

.events-listing-module .events-filter-bar {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.event-popup.is-open .event-card-content {
    padding: 10px;
}

  

  
  .events-filter-bar,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .events-filter-bar {
    gap: 18px;
    padding: 20px;
  }

  .events-results {
    padding-top: 55px;
  }

  .events-title {
    margin-bottom: 40px;
  }

 
  .events-listing-module {
    padding: 64px 30px;
  }
}


@media (width<=375px) {

.events-listing-module .events-filter-bar {
   padding: 20px;
}