/* =========================
   DWCA Popup (Fancybox inline)
   File: framework/assets/css/popup.css
   ========================= */

.dwca-popup {
    font-family: inherit;
}

.dwca-popup__wrap {
    display: flex;
    width: min(980px, 95vw);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
}

/* Left image */
.dwca-popup__left {
    flex: 1.05;
    min-width: 340px;
    position: relative;
    overflow: hidden;
    background: #eee;
}

.dwca-popup__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Right side */
.dwca-popup__right {
    overflow: visible;
    min-width: 0;
    flex: 0.95;
    padding: 34px 34px 30px;
    position: relative;
}

/* Icon circle */
.dwca-popup__icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EAF1FF;
    color: #1f4ed8;
    margin-bottom: 18px;
    margin-left: 10px;
}

/* Title */
.dwca-popup__title {
    margin: 0 0 14px;
    font-size: 29px;
    line-height: 1.05;
    font-weight: 800;
    color: #0b1220b8;
    margin-left: 10px;
}

/* Events */
/* .dwca-popup__events {
    margin: 0 0 22px;
} */

.dwca-popup__event {
    font-weight: 700;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #0b1220;
    
}

/* Button */
/* .dwca-popup__btn {
    display: inline-flex;
    align-items: center;
    background: #1f4ed8;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
} */

/* Fancybox content padding fix */
.fancybox-content {
    padding: 0 !important;
    background: transparent !important;
}

.dwca-popup__icon i {
    font-size: 28px;
    color: #242ec4;
}
/* Remove default bullets and add spacing */
.dwca-popup__events {
    list-style: none; 
    padding-left: 0; 
    margin-left: 0;
    margin-bottom: 25px;
}

/* Each event: align icon and text */
.dwca-popup__event {
    display: flex;
    align-items: flex-start;
    gap: 8px; 
    font-weight: 700;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #0b1220;
    margin-left: 10px;
}

/*style the Font Awesome icon */
.dwca-popup__event i {
    color: #000000;
    font-size: 16px;
    min-width: 16px; 
    text-align: center;
}


/* Remove default SVG background */
.fancybox-close-small svg {
  display: none;
}

/* Custom X using :before and :after */
.fancybox-close-small::before,
.fancybox-close-small::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #000000;          
  transform-origin: center;
}
.dwca-popup__event a {
    position: relative;
    z-index: 1;
    color: inherit;
    text-decoration: none;
}

.dwca-popup__event a:hover {
    color: #242ec4;
}
.fancybox-close-small::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fancybox-close-small::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dwca-popup__event a {
  color: #222; /* normal dark */
  user-select: none;
}

.dwca-popup__date,
.dwca-popup__time {
  color: #000000; /* gray / off black */
  font-weight: 400;
}

.dwca-popup__time {
  color: #c47171; /* slightly lighter if you want */
}

/* Mobile */
@media (max-width: 820px) {
    .dwca-popup__wrap {
        flex-direction: column;
    }
    .dwca-popup__left {
        min-width: auto;
        height: 260px;
        min-height: 260px;
        width: 100%;
    }
    .dwca-popup__right {
        padding: 24px 13px 22px;
        width: 100%;
    }

    /* Float icon left so title sits beside it */
    .dwca-popup__icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        flex-shrink: 0;
        margin-bottom: 12px;
        float: left;
        margin-right: 12px;
        margin-top: 3px;
    }
    .dwca-popup__icon i {
        font-size: 20px;
    }

    /* Title flows beside the floated icon */
    .dwca-popup__title {
        font-size: 22px;
        line-height: 1.2;
        margin: 14px 0 14px 0;
        overflow: hidden;
    }
     .dwca-popup__events {
        clear: both;
        margin-bottom: 14px;
        overflow: hidden; /* add this */
    }
    /* Clear float so events and button stack normally below */
    .dwca-popup__events {
        clear: both;
        margin-bottom: 18px;
    }
    .dwca-popup__event {
    margin-left: 11px;
}
}
