#tribe-events-pg-template{
    max-width : 100%;
    padding: 0;
}
.sf_events {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wim_home .sf_events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sf_events .event-table {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 75px;
    line-height: 1;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, .11);
    border-radius: 10px;
    position:relative;
}

.c-event-date-stub__wrapper {
background: #465660 !important;border-top-left-radius: 10px;border-bottom-left-radius: 10px;width: 80px;font-size: 1.1em;font-weight: 400;text-align: center;text-transform: uppercase;color: #fff;display: flex;align-items: center;justify-content: center;
}

.c-event-date-stub__wrapper.c-event_end {
    border-radius: 0 !important;
    background: #b3bc35 !important;
}

.to-separator.c-event-date-stub__separator {
    position: absolute;
    top: 50%;
    left: 56px;
    width: 20px;
    border-radius: 100%;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    transform: translate(0, -50%);
}

.c-event-date-stub__wrapper strong {
    font-size: 1.2em;
    font-weight: 900;
    display: block;
}

.sf_events .event-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    vertical-align: middle;
    text-transform: uppercase;
    word-break: break-word;
    border: 1px solid #b3bc35;
    border-left: none;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    color: #465660;
    width: 100%;
}

.sf_events .event-title strong{
    display: block;
    margin-bottom: 5px;
    font-size: 1.3em;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===============================
   Salesforce Events Pagination
   =============================== */

.sf-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 40px 0 20px;
	flex-wrap: wrap;
	font-family: inherit;
}

/* Links & buttons */
.sf-pagination a,
.sf-pagination span {
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border: 1px solid #e5e5e5;
	background: #ffffff;
	color: #333;
	transition: all 0.2s ease;
}

/* Hover */
.sf-pagination a:hover {
	background-color: #b3bc35;
	border-color: #b3bc35;
	color: #ffffff;
}

/* Active page */
.sf-pagination .current {
	background-color: #b3bc35;
	border-color: #b3bc35;
	color: #ffffff;
	cursor: default;
}

/* Prev / Next */
.sf-pagination a:first-child,
.sf-pagination a:last-child {
	font-weight: 700;
	padding: 0 14px;
}

/* Dots */
.sf-pagination .dots {
	border: none;
	background: transparent;
	color: #999;
	padding: 0 6px;
	cursor: default;
}

/* Disabled state (optional) */
.sf-pagination .disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* ===============================
   Events Filter Form
   =============================== */

.sf-events-filter {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
	padding: 5px;
	align-items: center;
}

/* Label */
.sf-events-filter label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}


/* Text input & select */
.sf-events-filter input[type="text"],
.sf-events-filter select {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	font-size: 14px;
	border-radius: 6px;
	border: 1px solid #d8dcc5;
	background-color: #ffffff;
	color: #333;
	transition: all 0.2s ease;
    margin-bottom:0 !important;
}

/* Focus state */
.sf-events-filter input[type="text"]:focus,
.sf-events-filter select:focus {
	outline: none;
	border-color: #b3bc35;
	box-shadow: 0 0 0 3px rgba(179, 188, 53, 0.25);
}

/* Placeholder */
.sf-events-filter input::placeholder {
	color: #999;
}

/* Button */
.sf-events-filter button {
	height: 42px;
	padding: 0 26px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 6px;
	border: 1px solid #b3bc35;
	background-color: #b3bc35;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

/* Button hover */
.sf-events-filter button:hover {
	background-color: #9ea62f;
	border-color: #9ea62f;
}

/* Button active */
.sf-events-filter button:active {
	transform: translateY(1px);
}

/* Remove default select arrow inconsistencies */
.sf-events-filter select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 10px 6px;
	padding-right: 36px;
}

.sf_listing.btn{
    margin: 0 auto;
    display: flex !important;
    margin-top: 25px;
}

.sf_listing.btn:hover{
    background: #b3bc35;
    border: 3px solid #b3bc35;
}


.sf_members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

h4.company {
    --f: .6em;
    --r: .9em;
    position: absolute;
    left: -44px !important;
    top: -45px;
    padding-inline: 2em;
    line-height: 2em !important;
    background: #465660;
    border-bottom: var(--f) solid #0005;
    border-right: var(--r) solid #0000;
    clip-path: polygon(0 0, 0 calc(100% - var(--f)), var(--f) 100%, var(--f) calc(100% - var(--f)), 500% calc(100% - var(--f)), calc(100% - var(--r)) calc(0% - var(--f) / 1));
    color: #FFF;
}

.sf_member {
    min-height: 360px;
}

.sf_member_company {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-family: 'Open Sans';
    font-weight: 600;
    margin-top : 45px;
    padding-top: 25px;
}

.sf_inner_member:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.member-badge-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e5e5e5;
    overflow: hidden;
    margin: 40px auto -85px;
    border: 2px solid #b3bc35;
    position: relative;
    z-index: 11;
}

img.nimble-profile-image {
    border-radius: 50% !important;
    margin-left: 10%;
    object-fit: cover;
    object-position: top;
    max-height: 300px;
}

.sf_inner_member{
	min-height: 360px;
    background: #d2d2d2;
    color: #fff;
    border-radius: 10px;
    box-shadow: 1px 5px 0 0 rgba(0, 0, 0, .11);
    text-align: center;
    padding: 0 10px 60px;
    width: 100%;
    height: 350px;
    display: inline-block;
    position: relative;
    transition: background .5s;
    padding-top: 100px;
}

.member-badge-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.sf_member .name {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
	min-height: 60px;
}

.sf_member .name span {
    font-size: 12px;
    font-style: italic;
    color: #465660;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 18px;
    width: 150px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: inline-block;
    margin: 0 5px 0 5px;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf_member_type, .sf_member_directory{
    color: #b3bc35;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Open Sans';
    font-weight: 600;
    letter-spacing: 2px;
}

.sf_member .extra-info {
    text-align: center;
    font-size: 12px;
    color: #555;
	position:relative;
}
.sf_member .bottom {
	bottom: -130px;
    position: absolute;
    width: 112%;
    left: -6%;
}

.on-hover a.btn.btn-secondary, .sf_member_details .btn, .sf_listing.btn {
    border-color: #2498bd;
    border: 3px solid #2498bd;
    color: #fff;
    background: #2498bd;
    display: inline-block;
    margin-bottom: 5px;
    padding: 6px 17px;
    width: max-content;
}

.sf_member .address {
    display: block;
    margin-bottom: 6px;
}

.sf_member .phone {
    display: block;
    font-weight: 500;
}


.sf_member .ribbon  {
   position: relative;
    background: #b3bc35;
    padding: 10px;
    box-shadow: 0 3px 0 0 rgba(0, 0, 0, .11);
    line-height: 1;
    width: auto;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    color: #FFF;
    font-weight: 600;
    font-size: 16px;
}

.sf_member .ribbon:before {
	display: block;
	content: "";
	border-left: 5px solid transparent;
	border-top: 5px solid #000;
	top: 100%;
	left: 0;
	position: absolute;
}

.sf_member .ribbon:after {
	display: block;
	content: "";
	border-right: 5px solid transparent;
	border-top: 5px solid #000;
	top: 100%;
	right: 0;
	position: absolute;
}


.sf_inner_member .on-hover {
    position: absolute;
    inset: 0;
    background: #b3bc35;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 2;
	 border-radius: 10px;
}


.sf_inner_member:hover .on-hover {
    opacity: 1;
    visibility: visible;
}

.sf_inner_member:hover .bottom{
	opacity: 0;
}

.sf_inner_member .social-icons {
    display: flex;
    gap: 14px;
	margin-top : 15px;
}

.sf_inner_member .social-icons .icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.sf_inner_member .social-icons .icon:hover {
    background: #000;
    color: #fff;
}

.sf_inner_member .background {
    background-image: url(../img/wim-logo.png);
    width: 90px;
    height: 60px;
    display: flex;
    background-size: contain;
    background-repeat: no-repeat;
    left: 30%;
    position: relative;
	z-index: 0;
}

.sf_member * {
    box-sizing: border-box;
}


.sf_member_details {
    display: flex;
    flex-direction: column;
    color: #FFF;
    row-gap: 30px;
    font-family: 'Open Sans';
}
.sf_member_details i:before{
    color: #2498bd;
    background: #FFF;
    padding: 10px;
    border-radius: 50%;
}

.sf_member_details span{
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
}
.sf_member_details span a {
     color: #FFF;
}

.sf_member_details span a:hover {
    color: #2498bd;
}

.sf_member_details .btn:hover {
    border: 3px solid #FFF;
    color: #2498bd;
    background: #FFF;
}


.sf_icons i:before {
    font-size: 20px;
    color: #2498bd;
}

/* =====================================
   Event Meta Container
===================================== */

.sf-event-meta {
    font-family: 'Open Sans';
    color: #FFF;
}

/* =====================================
   Rows
===================================== */

.sf-event-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #FFF;
}

.sf-event-row:last-child {
    margin-bottom: 0;
}

/* =====================================
   Date & Time Section
===================================== */

.sf-event-datetime {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    color: #FFF;
}

/* =====================================
   Venue Section
===================================== */

.sf-event-venue strong {
    font-size: 16px;
    font-weight: 600;
    color: #FFF;
}

.sf-event-address {
    margin-left: 28px;
    font-size: 14px;
    color: #fff;
}

/* =====================================
   Icons
===================================== */

.sf-icon-calendar,
.sf-icon-clock,
.sf-icon-map {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =====================================
   Map Link
===================================== */

.sf-event-venue a {
    display: inline-block;
    margin-left: 28px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sf-event-venue a:hover {
    text-decoration: underline;
    color: #1e40af;
}

.tribe-tickets__commerce-checkout{
    margin-top:20px !important;
}

form#tribe-tickets__tickets-form h2,form#tribe-tickets__tickets-form div,
.tribe-modal__wrapper--ar h2,.tribe-modal__wrapper--ar div,
.tribe-tickets__commerce-checkout h3, .tribe-tickets__commerce-checkout div {
    font-family: 'Open Sans' !important;
}

.tribe-tickets__tickets-buy, 
.tribe-tickets__attendee-tickets-footer-checkout-button,
.tribe-tickets__commerce-checkout-form-submit-button {
    background-color: #b3bc35 !important;
    color: #FFF !important;
}

.tribe-tickets__tickets-buy:hover,
.tribe-tickets__attendee-tickets-footer-checkout-button:hover,
.tribe-tickets__commerce-checkout-form-submit-button:hover {
    background-color: #2498bd !important;
}

.wim_restrict a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-family: 'Open Sans';
    font-weight: 600;
    color: #FFF;
    fill: #FFF;
    background-color: var(--e-global-color-primary);
    width: 120px;
    height: 40px;
    margin: 0 auto;
}

.wim_restrict a:hover {
    color: #465660;
    fill: #465660;
}

.nimble_header ul li:nth-child(2) span.elementor-icon-list-text a {
    display: flex;
    padding-top: 3px;
}

.sf-registration a {
    margin-left: 0px;
}

.sf-registration {
    margin: 20px 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .sf_members {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile layout */
@media (max-width: 600px) {
	.sf-events-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.sf-events-filter button {
		width: 100%;
	}
	 .sf_members {
        grid-template-columns: 1fr;
    }
     .sf-event-meta {
        padding: 18px;
    }

    .sf-event-row {
        font-size: 14px;
    }

    .sf-event-venue strong {
        font-size: 15px;
    }
}


/* Mobile tweaks */
@media (max-width: 480px) {
	.sf-pagination {
		gap: 4px;
	}

	.sf-pagination a,
	.sf-pagination span {
		min-width: 32px;
		height: 32px;
		font-size: 13px;
		padding: 0 10px;
	}

    .to-separator.c-event-date-stub__separator {
        left: 43px;
        top: 35%;
    }
}
