.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust as needed */
    gap: 20px;
    padding: 20px;
}

.event-item {
    border: none !important;
    padding: 10px;
    text-align: center;
}

.event-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.event-item h3 {
    margin: 0 0 10px 0;
}

/* Base Styles for the Filter Form */
#events-filter-form {
    max-width: 900px; /* Set the width of the form */
	width: 100% !important;
    margin: 0 auto; /* Center the form horizontally */
    padding: 15px; /* Add some padding around the form */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent; /* Light background for the form */
    border-radius: 0; /* Rounded corners for the form */
}

#events-filter-form select, #events-filter-form input[type="text"] {
    border: 1px solid #ddd; /* Light border for inputs */
    border-radius: 3px; /* Rounded corners for inputs */
    padding: 10px 15px; /* Comfortable padding inside inputs */
    margin-right: 10px; /* Space between form elements */
    outline: none; /* Remove the default focus outline */
    transition: all 0.3s ease; /* Smooth transition for interactions */
}

#events-filter-form select:hover, #events-filter-form input[type="text"]:hover {
    border-color: #bbb; /* Slightly darker border on hover */
}

#events-filter-form select:focus, #events-filter-form input[type="text"]:focus {
    border-color: #8DC540; /* Highlight color on focus */
    box-shadow: 0 0 0 2px rgba(141,197,64,0.2); /* Soft outer glow for focus */
}

/* Button Styles */
#events-filter-form button {
    background-color: #8DC540; /* Your specified green color */
    color: #ffffff; /* White text for better readability */
    border: none; /* No border for the button */
    padding: 10px 15px; /* Padding inside the button */
    border-radius: 3px; /* Rounded corners for the button */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth background transition */
	  text-transform: uppercase !important;

}

#events-filter-form button:hover {
    background-color: #79b043; /* Slightly darker green on hover */
}

/* Grid Layout for Event Results */
.events-grid {
    display: flex; /* Use flexbox for horizontal layout */
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: space-around; /* Evenly spaces the items with space around them */
    align-items: flex-start; /* Aligns items to the start of the flex container */
    gap: 20px; /* Adds space between grid items */
}

.event-item {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    border-radius: 5px; /* Rounded corners for event items */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Shadow for depth */
}

.event-item img {
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid #ccc; /* Separator between image and text */
}

.event-item h3 {
    margin: 10px 0;
    font-size: 35px;
	color: #fff;
	text-align: left !important;
}

#events-filter-form select, 
#events-filter-form input[type="text"], 
#events-filter-form input[type="date"] {
    background-color: #F97A03; /* Darker orange background color */
    color: #ffffff; /* White text for better readability */
    border: 1px solid #E56A02; /* Slightly darker border for depth */
    padding: 10px; /* Comfortable padding inside inputs */
    margin-right: 10px; /* Spacing between form elements */
    border-radius: 4px; /* Rounded corners for a modern look */
}

#events-filter-form select:hover, 
#events-filter-form input[type="text"]:hover, 
#events-filter-form input[type="date"]:hover {
    background-color: #E56A02; /* Slightly darker shade on hover for interactive effect */
}

#events-filter-form select:focus, 
#events-filter-form input[type="text"]:focus, 
#events-filter-form input[type="date"]:focus {
    border-color: #D25802; /* Slightly darker border on focus */
    box-shadow: 0 0 0 2px rgba(241, 122, 3, 0.5); /* Soft outer glow for focus */
}

@media (max-width: 768px) { /* Adjusts for tablets */
    #events-filter-form {
        flex-direction: column;
    }

    #events-filter-form select, 
    #events-filter-form input[type="text"], 
    #events-filter-form input[type="date"], 
    #events-filter-form button {
        flex-grow: 1;
        width: 100%; /* Makes each input take full width */
    }
}

@media (max-width: 480px) { /* Adjusts for mobile phones */
    #events-filter-form select, 
    #events-filter-form input[type="text"], 
    #events-filter-form input[type="date"] {
        font-size: 14px; /* Adjusts the font size for better readability */
    }

    #events-filter-form button {
        padding: 10px 20px; /* Adjusts padding for a more touch-friendly button */
    }
}
/* Style for the modal overlay */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.7); /* Black with transparency */
}

/* Style for the modal window */
.ui-dialog {
    width: 50% !important; /* Set width to 50% of the screen */
    left: 25% !important; /* Centering the modal */
}

/* Hide the modal header */
@media (max-width: 768px) {
    .ui-dialog {
        width: 90% !important; /* Wider modal on small screens */
        left: 5% !important; /* Adjust for centering */
    }
}

/* Loading Spinner Styles */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Adjust height as needed */
}

.loading-spinner::before {
    content: '';
    width: 40px; /* Size of the spinner */
    height: 40px; /* Size of the spinner */
    border: 4px solid #F97A03; /* Color of the spinner */
    border-top-color: transparent; /* Transparent top to create spinner effect */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background-color: #F97A03; /* Or any color that suits your design */
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.modal-close-btn:hover {
    background-color: #e67603; /* Slightly darker on hover */
}

/* Style for the modal content */
.ui-widget.ui-widget-content {
	border: none;
}

.ui-widget-content {
	background: transparent !important;
}

.ui-dialog-content {
    background-color: rgba(0, 0, 0, 0.7) !important; /* Black with transparency */
    color: white; /* White text */
    padding: 20px; /* Padding inside the modal */
}

/* Style for the modal window */
.ui-dialog {
    border: none; /* Remove default border */
	padding: 0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Optional: Adds shadow for depth */
}

/* Style for the modal overlay */
.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
}

/* Optional: Style adjustments for the close button if used */
.modal-close-btn {
    color: white; /* White text for the close button */
    background-color: #444; /* Dark background for the button */
}

.modal-close-btn:hover {
    background-color: #555; /* Slightly lighter on hover */
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px; /* Spacing between event items */
	background-color: #000 !important;
}

.event-image {
    flex-basis:50%; /* Image takes up 25% of the event-item */
    max-width: 50%; /* Ensures the image container does not exceed 25% width */
    height: auto; /* Adjust height automatically */
    overflow: hidden; /* Ensures the image stays within bounds */
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
}

.event-details {
    flex-basis: 50%; /* Details take up 75% of the event-item */
    max-width: 50%; /* Ensures the details section does not exceed 75% width */
}

/* Styles for title, excerpt, date, time, and link remain the same */

.event-link {
	margin-top: 10px;
    display: inline-block;
    background-color: #F97A03; /* Orange background color */
    color: #fff !important; /* White text for contrast */
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none; /* Removes underline from links */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
	font-size: 13px !important;
  	text-align: left !important;
	text-transform: uppercase !important;
}

.event-link:hover {
    background-color: #e67603; /* Slightly darker shade for hover state */
}

.event-excerpt, .event-date {
	font-size: 13px !important;
	text-align: left;
}

.ui-dialog .ui-dialog-content {
	width: 100% !important;
}

/* Transparent Title Bar for jQuery UI Dialog */
.ui-dialog .ui-dialog-titlebar {
    background: transparent; /* Makes the title bar background transparent */
    border: none; /* Removes the border from the title bar */
    color: #ffffff !important;
}

/* Optional: Style for the close button in the title bar */
.ui-dialog .ui-dialog-titlebar-close {
    background: #8dc540; /* Background color for the close button */
    border-radius: 0; /* Makes the close button circular */
	padding: 3px;
}

/* Adjust close button hover style */
.ui-dialog .ui-dialog-titlebar-close:hover {
    background: #e67603; /* Darker shade on hover */
}

.ui-dialog {
	box-shadow: none !important;
}

/* Login */
#username, #password, #password2, #bemail, #bconfirmemail,
#first_name, #last_name, #display_name, #user_email, #user_login, #user_pass {
-webkit-appearance: none;
  background-color: #eee;
  width: 100%;
  border-width: 0;
  border-radius: 0;
  color: #999;
  font-size: 14px;
  padding: 16px;
}

.pmpro_checkout-h2-name {
	color: #f97a03;
}

#post, 
.pmpro_btn, .pmpro_btn:link, .pmpro_content_message a, .pmpro_content_message a:link {
	color: #FFFFFF !important;
  border-width: 0px !important;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  background-color: #f97a03 !important;
}