/* ========================================
   Event List
======================================== */

.ebm-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	margin: 30px 0;
}

.ebm-event-card {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ebm-event-image img {
	width: 100%;
	height: auto;
	display: block;
}

.ebm-event-title {
	padding: 20px 20px 10px;
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
}

.ebm-event-meta {
	padding: 0 20px;
	font-size: 14px;
}

.ebm-event-meta p {
	margin: 8px 0;
}

.ebm-event-content {
	padding: 20px;
	flex-grow: 1;
}

.ebm-event-actions {
	padding: 20px;
	border-top: 1px solid #eee;
}

/* ========================================
   Event Details
======================================== */

.ebm-event-details {
	max-width: 1000px;
	margin: 0 auto;
}

.ebm-event-featured-image {
	margin-bottom: 25px;
}

.ebm-event-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.ebm-event-description {
	margin: 30px 0;
}

.ebm-booking-section {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #ddd;
}

/* ========================================
   Booking Form
======================================== */

.ebm-booking-wrapper {
	max-width: 800px;
}

#ebm-booking-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ebm-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ebm-field label {
	font-weight: 600;
}

.ebm-field input,
.ebm-field select,
.ebm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

#ebm-booking-form button {
	width: fit-content;
}

/* ========================================
   Attendees
======================================== */

#ebm-attendee-container {
	margin-top: 20px;
}

.ebm-attendee {
	border: 1px solid #ddd;
	padding: 20px;
	margin-bottom: 15px;
	border-radius: 6px;
	background: #fafafa;
}

.ebm-attendee h4 {
	margin-top: 0;
	margin-bottom: 15px;
}

.ebm-attendee input {
	display: block;
	width: 100%;
	margin-bottom: 12px;
}

/* ========================================
   Messages
======================================== */

#ebm-response {
	margin-top: 15px;
}

.ebm-success {
	background: #dff6dd;
	border: 1px solid #46b450;
	color: #155724;
	padding: 12px;
	border-radius: 4px;
}

.ebm-error {
	background: #fbeaea;
	border: 1px solid #dc3232;
	color: #721c24;
	padding: 12px;
	border-radius: 4px;
}

.ebm-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* sep-21 */

.post-type-archive-ebm_event .ebm-event-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
	margin-top: 50px;
}

.post-type-archive-ebm_event .ebm-event-card{
	border: 1px solid #e2e2e2;
    text-align: center;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, .016);
    border-radius: var(--mec-primary-border-radius);
}

.post-type-archive-ebm_event .ebm-event-card .ebm-event-content {
    padding: 0;
}
.post-type-archive-ebm_event .ebm-event-card .ebm-event-actions {
	padding: 20px 20px 0 20px;
}

.post-type-archive-ebm_event .ebm-event-card .ebm-event-title{
	color: #202020;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 24px;
}

.post-type-archive-ebm_event .ebm-event-card .ebm-event-actions a{
	border-color: transparent;
}

.post-type-archive-ebm_event .ebm-event-card .ebm-event-image img{
	    height: 250px;
    object-fit: cover;
    object-position: top;
}

#ebm-booking-form .row > * {
margin-top: 1rem;
}

/* ========================================
   Mobile
======================================== */

@media(max-width: 1199px){
.post-type-archive-ebm_event  .ebm-event-actions .button-primary{
	margin-top: 15px;
}	
.post-type-archive-ebm_event	.ebm-event-actions a{
		width: 100%;
	}
	.post-type-archive-ebm_event .container{
		    margin-bottom: 50px;
	}
}

@media(max-width: 991px){
	.post-type-archive-ebm_event .ebm-event-list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
}
.post-type-archive-ebm_event .ebm-event-list{
		    padding-left: 0;
    padding-right: 0;
	}
}
@media(max-width: 575px){
		.post-type-archive-ebm_event .ebm-event-list{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-top: 50px;
}
	#ebm-booking-form input{
	    display: block;
    width: 100% !important;
}
}

.single-ebm_event .ebm-event-meta{
	padding: 20px !important;
    border-radius: 12px !important;
    border: 1px solid #e6e7e8;
}

.single-ebm_event .ebm-event-featured-image img{
	    height: 450px;
    object-fit: cover;
    object-position: top;
}

.single-ebm_event .ebm-event-meta strong{
	    display: block;
	    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 5px;
	    color: #000;
}
.single-ebm_event .ebm-event-meta p{
	    margin-bottom: 12px;
}
.single-ebm_event .ebm-event-meta p{
	    font-size: 14px;
    color: #8d8d8d;
}
.single-ebm_event .site-content{
	    margin-top: 50px;
}
.single-ebm_event .ebm-event-details{
	    max-width: 100%;
}
.single-ebm_event .ebm-event-title {
    padding: 0;
}
.single-ebm_event .ebm-event-description {
    margin: 12px 0;
}
.single-ebm_event .ebm-booking-section h2{
	    font-size: 30px;
    margin-bottom: 10px;
}

.single-ebm_event #ebm-booking-form h3{
	font-size: 30px;
    margin-bottom: 10px;
    font-family: 'Lance Sans' !important;
}
.single-ebm_event .ebm-attendee h4{
	    font-size: 20px;
    font-weight: 700;
}
#ebm-booking-form input{
	    display: block;
    width: 100%;
}
.ebm-event-closed{
	    position: relative;
    padding: 1rem 1rem;
	margin-top: 1rem;
    margin-bottom: 3rem;
    border: 1px solid transparent;
    border-radius: .25rem;
	    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6d8;
}

.post-type-archive-ebm_event .ebm-event-closed {
    position: relative;
    padding: 1rem 1rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #41464b;
    background-color: transparent;
    border-color: transparent;
}

.ebm-alert.ebm-alert-error{
	color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
	    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 3rem;
    border: 1px solid transparent;
    border-radius: .25rem;
	}

@media(max-width: 991px){
	.single-ebm_event .site-content {
    margin-bottom: 50px;

}
	.single-ebm_event .ebm-booking-section h2 {
    font-size: 22px;
	}
	.single-ebm_event #ebm-booking-form h3 {
    font-size: 22px;
	}
}

@media (max-width: 768px) {

	.ebm-events-grid {
		grid-template-columns: 1fr;
	}

	.ebm-event-title {
		font-size: 20px;
	}
}

/* Event description readability */
.single-ebm_event .ebm-event-description {
	line-height: 1.7;
	white-space: normal;
}

.single-ebm_event .ebm-event-description p {
	margin: 0 0 1em;
	line-height: 1.7;
}

.single-ebm_event .ebm-event-description ul,
.single-ebm_event .ebm-event-description ol {
	margin: 0 0 1em 1.5em;
	padding-left: 1em;
}

.single-ebm_event .ebm-event-description li {
	margin-bottom: 0.45em;
}
