/* --- Main Wrapper --- */
.upcoming-events-wrapper .main-title {
    color: var(--e-global-color-primary);
    font-size: var( --e-global-typography-08dbd2e-font-size );
    line-height: var(--e-global-typography-08dbd2e-line-height);
    font-weight: 300;
	padding-bottom:79px;
	text-align:center;
}
.upcoming-events-wrapper .main-title b {
	font-weight: bold;
}

.events-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
/*     gap: 0 60px; */
    align-items: flex-start;
}

/* --- Left Column (Image Pane) --- */
.events-image-pane {
    grid-column: 1 / 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 50px;
    height: 667px;
	border-radius: 20px;
    overflow: hidden;
    z-index: 3;
/*     max-width: 490px; */
	margin-top: 43px;
	margin-bottom: 43px;
	
	margin-left: -330px;
    margin-right: 160px;
}

.event-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-image-item.is-active {
    opacity: 1;
    visibility: visible;
}

.event-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Right Column Items (List Items) --- */
.event-list-item {
    grid-column: 2 / 3;
    position: relative; /* IMPORTANT for the ::before positioning */
    display: flex;
	gap: 38px;
    padding: 51px 41px 51px 25px;
    cursor: pointer;
    z-index: 2;
}
.events-list-pane{
	margin-left:-100px;
	margin-right: 85px;
}

/* --- The black active bar (Full Width using Full-Bleed Hack) --- */
.event-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    z-index: -1;

    /* The Full-Bleed Hack */
/*     left: 50%; */
/*     transform: translateX(-50%); */
	left: 100%;
    transform: translateX(-100%);
    width: 100vw;

    background-color: #FAFAFA;
    opacity: 0;
    transition: opacity 0.8s ease;
	border-radius: 40px;
}

.event-list-item.is-active::before {
    opacity: 1;
}


.event-date {
    flex-shrink: 1;
    text-align: center;
}

.event-date .day {
    font-size: 90px;
    font-weight: 300;
    color: #8DC8E8;
    line-height: 1;
}

.event-date .month {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #67787F;
}

.event-details .event-title {
    font-size: 23px;
	line-height: 31px;
    font-weight: 600;
    color: #003665;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.event-description,
.event-button {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* .event-list-item.is-active .event-date .month, */
/* Styles for when the item is active */
.event-list-item.is-active .event-title {
    color: #003865;
}

.event-list-item.is-active .event-description {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
    color: #67787F;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 9px;
}

.event-list-item.is-active .event-button {
/*     display: inline-block; */
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
	background-color: rgba(141, 200, 232, 0.2);
    color: #8DC8E8;
    padding: 16px 33px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
}
/* 767 */
/* Responsive Adjustments */
@media (max-width: 767px) {
    .events-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .events-image-pane {
        grid-row: 1;
        height: 431px;
        position: relative;
        top: auto;
		
		margin-right:36px;
    }
	
	.events-list-pane {
		margin-left: 0px;
		margin-right: 36px;
	}
	
    .event-list-item {
        grid-column: 1;
		flex-flow: column;
		padding: 51px 36px 51px 36px;
    }
    .event-list-item::before {
        /* On mobile, revert the hack */
        left: 0;
        width: 100%;
        transform: translateX(0);
    }
	.upcoming-events-wrapper .main-title {padding-bottom: 30px;}
	.event-date {
		text-align: left;
		display: grid;
	}
	.event-details .event-title {font-size: 20px;}
	.event-date .day {font-size: 54px;}
}


/*Button expore more*/
.events-list-pane .event-button span.arrow-icon {
    content: url("https://aihm1.wpenginepowered.com/wp-content/uploads/2025/09/icon-in-button-hover.svg");  
}

/* ----------- arrow-show-button -------- */
 .events-list-pane .event-button  span.arrow-icon{
    height: 37px;
    width: 0px; /*0*/
    transform: translateY(0px) translateX(0px) ;
}

/*:hover*/
 .events-list-pane .event-button:hover span.arrow-icon {
     height: 37px;
    width: 37px;   
    transform: translateY(0px) translateX(0px) ;
}

 .events-list-pane .event-button span.arrow-icon {
    opacity:1; /*0*/
    transition: 0.4s;
}

 .events-list-pane .event-button span {
	transition: 0.3s;
	color: #8DC8E8;
    margin-right: auto;
}

.event-button:hover .arrow-icon {
	margin-left:-20px;
}

 .events-list-pane .event-button:hover span.arrow-icon  {
    opacity:1;
}
 .events-list-pane .event-button span.explore-more-filter-card {
    padding-left: 0px;
}
 .events-list-pane .event-button:hover span.explore-more-filter-card {
    padding-left: 0px;
}

 .events-list-pane .event-button {
    display: flex;
    background: #8DC8E8;
    transition: 0.3s;
    height: 55px;
    border-radius: 35px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 28px;
}
/*:hover*/
 .events-list-pane .event-button  {
   width: 215px;

}
 .events-list-pane .event-button:hover  {
    background: #8DC8E8;
   justify-content: center;
    width: 230px; 
}
.events-list-pane .event-button:hover span{
	color:#ffffff;
}