/* Container for the events */
.gb-events-container {
	background: #ffffff;
	border: 1px solid #d6d9dd;
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 1px;
	padding: 20px;
	border-radius: 10px;
}

.gb-event-actions {
	display: flex;
	gap: 20px;
}

.gb-group-actions-wrap .gb-title {
	margin-bottom: 0 !important;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

/* Tabs styling */
.gb-event-tabs {
	display: flex;
	gap: 10px;
	border-bottom: 0;
	font-size: 0;
	line-height: 1;
	margin: 0 0 15px;
	padding: 0;
	justify-content: flex-end;
}

.gb-tab {
	cursor: pointer;
	color: #767676;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	padding-bottom: 5px;
	line-height: 34px;
}

.gb-tab.active {
	color: #000;
	border-bottom: 1px solid #ddd;
}

/* Event wrapper layout */
.gb-event-wrap {
}

.gb-event-list {
	display: flex;
	width: 100%;
}

/* Left side (event type switch) */
.gb-event-left {
	width: 20%;
	margin-right: 20px;
}

.gb-event-types {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gb-event-type-btn {
	padding: 8px;
	cursor: pointer;
	border-radius: 5px;
	font-weight: bold;
	color: #555;
	text-align: left;
}

.gb-event-type-btn.active {
	color: #000;
	border-bottom: 1px solid #ddd;
}

/* Right side (events list) */
.gb-event-right {
	flex-grow: 1;
	width: 70%;
}

.gb-events-list {
}

/* Event item styling */
.gb-event-item {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	margin-bottom: 10px;
	background-color: #f9f9f9;
	transition: all 0.3s ease;
	position: relative;
}

.gb-action-dots {
	position: absolute; /* Position the dots absolutely within the event item */
	top: 10px; /* Adjust as needed */
	right: 10px; /* Adjust as needed */
	display: flex;
	flex-direction: column;
	gap: 4px; /* Space between dots */
	cursor: pointer; /* Indicate clickable area */
}

.gb-dropdown-menu {
	position: absolute;
	top: 30px; /* Adjust based on your layout */
	right: 0; /* Align with the right side */
	background-color: #fff; /* Background color for the dropdown */
	border: 1px solid #ddd; /* Border for the dropdown */
	border-radius: 4px; /* Rounded corners */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Shadow for a floating effect */
	z-index: 1000; /* Ensure it appears above other content */
}

.gb-dropdown-menu ul {
	list-style: none; /* Remove bullet points */
	margin: 0; /* Remove margin */
	padding: 0; /* Remove padding */
}

/* Style for the three dots button */
.gb-action-dots {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 20px;
	color: #000;
	cursor: pointer;
}

/* Style for dropdown menu */
.gb-dropdown-menu {
	position: absolute;
	top: 35px;
	right: 10px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	padding: 8px 0;
	z-index: 10;
	min-width: 120px;
	display: none;
}

/* Style for dropdown menu items */

.gb-dropdown-menu ul li {
	margin: 0;
	padding: 10px 10px 0;
}

.gb-dropdown-menu ul li a {
	display: block;
	padding: 5px 10px;
	color: #000;
	text-decoration: none;
	font-size: 14px;
	/* margin: 10px; */
}

.gb-dropdown-menu ul li a:hover {
	background-color: #f0f0f0;
	border-radius: 4px;
}


.gb-dropdown-menu li:first-child {
	padding-top: 0;
}

.gb-dropdown-menu li a {
	text-decoration: none; /* Remove underline from links */
	color: #333; /* Text color */
	display: block; /* Make the link fill the list item */
}

.gb-dropdown-menu li a:hover {
	background-color: #f0f0f0; /* Background on hover */
}


.gb-event-item:hover {
	background-color: #f1f1f1;
}

.gb-event-date {
	font-weight: bold;
	font-size: 12px;
	color: #333;
}

.gb-event-title {
	font-size: 16px;
	margin-top: 5px;
	color: #0056b3;
}

.gb-event-description {
	font-size: 14px;
	color: #666;
	margin-top: 5px;
}

/* Attendees styling */
.gb-event-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.gb-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #fff;
}

.gb-attendees > .gb-avatar:not(:only-child) {
	margin-right: -10px;
}

.gb-more-attendees {
	font-size: 12px;
	color: #777;
	margin-left: 10px; /* Space between avatars and the "+10 Attendees" text */
}

.gb-attend-btn span {
	font-weight: bold;
	font-size: 12px;
	color: #7d7d7d;
}

.gb-attend-btn {
	display: flex;
	flex-direction: column;
}

.group-events .gb-attend-btn button.gb-edit-rsvp-event {
	cursor: pointer;
	-webkit-appearance: button;
	background-color: transparent;
	background-image: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: 0 solid;
	color: #385dff;
}

.group-events .gb-attend-btn button.gb-edit-rsvp-event:hover,
.group-events .gb-attend-btn button.gb-edit-rsvp-event:focus{
	background-color: transparent;
	background-image: none;
	color: #000000;
}

.group-events .gb-attend-btn button.gb-attend-event {
	opacity: 1;
	pointer-events: initial;
	min-width: auto;
	margin-left: 20px;
	font-size: 14px;
	font-weight: 500;
	min-height: 34px;
	line-height: 34px;
	padding: 0 20px;
	border-radius: var(--bb-button-radius);
}

.gb-gefbb-modal header.bb-model-header {
	background: #fbfbfc;
	box-shadow: 0 1px 0 0 #eef0f3;
	border-radius: 4px 4px 0 0;
	margin: -20px -30px 30px;
	display: flex;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #eef0f3;
}

.gb-gefbb-modal footer.bb-model-footer {
	border-top: 1px solid var(--bb-content-border-color);
	display: block;
	margin: 35px -30px -30px;
	min-width: 100%;
	width: auto;
	padding: 16px 20px;
	background: #fbfbfc;
	border-top: 1px solid #eef0f3;
}

.gb-gefbb-modal .modal-container {
	max-height: 80vh; /* Adjusts to 80% of viewport height */
	overflow-y: auto; /* Enables scrolling for overflowing content */
	width: 100%; /* Full width of modal mask */
	max-width: 600px; /* Optional max-width to keep it centered */
	background-color: #ffffff;
	border-radius: 8px;
}

.group-events .gb-gefbb-open-popup .wp-editor-tools button {
	color: #000;
	background: #f2f4f5;
	border: 1px solid #d7d9dd;
	opacity: 1;
	pointer-events: initial;
	min-width: auto;
	font-size: 14px;
	font-weight: 500;
	min-height: 34px;
	line-height: 20px;
	padding: 0 20px;
}

.group-events .gb-gefbb-open-popup .tmce-active button.switch-tmce,
.group-events .gb-gefbb-open-popup .html-active button.switch-html{
	border-bottom-color: transparent;
}

.group-events #buddypress .gb-gefbb-open-popup .wp-editor-container input[type="button"] {
	color: #000;
	background: #f2f4f5;
	border: 1px solid #d7d9dd;
	opacity: 1;
	pointer-events: initial;
	min-width: auto;
	font-size: 14px;
	font-weight: 500;
	min-height: 34px;
	line-height: 20px;
	padding: 0 10px;
}

.group-events .gb-gefbb-open-popup .wp-editor-tools button:hover,
.group-events .gb-gefbb-open-popup .wp-editor-tools button:focus,
.group-events #buddypress .gb-gefbb-open-popup .wp-editor-container input[type="button"]:hover{
	background: #e7e7e7;
	border: 1px solid #d7d9dd;
	color: #000;
}

.group-events .gb-gefbb-open-popup .tmce-active button.switch-tmce:hover,
.group-events .gb-gefbb-open-popup .html-active button.switch-html:hover,
.group-events .gb-gefbb-open-popup .tmce-active button.switch-tmce:focus,
.group-events .gb-gefbb-open-popup .html-active button.switch-html:focus {
	border-bottom-color: transparent;
}

.gb-gefbb-modal .modal-mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5); /* Optional: dark overlay */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 99999;
}

span.gb-attendees-count {
	font-size: 12px;
	margin: 0 15px;
	color: #1e2132;
}

/* General Container Styles */
.single-group-events .gb-gefbb-header,
.single-group-events .gb-gefbb-left,
.single-group-events .gb-gefbb-right,
.single-group-events .gb-gefbb-footer
{
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin: 15px auto;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	font-family: Arial, sans-serif;
}

.single-group-events .gb-gefbb-left {flex: 70%;}

.single-group-events .gb-gefbb-header h1{
	margin: 0;
}

/* Banner Section */
.single-group-events .banner-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.gb-gefbb-body {
	display: flex;
	gap: 30px;
}
/* Group Info Section */
.single-group-events .group-info {
	display: flex;
	gap: 20px;
	margin: 20px 0;
	flex-direction: column;
	flex: 30%;
}

.single-group-events .group-details,
.single-group-events .event-details {
	background: #f9f9f9;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-align: center;
}

.single-group-events .group-details p,
.single-group-events .event-details p {
	font-size: 14px; /* Regular text size */
	margin: 5px 0; /* Vertical spacing between lines */
	color: #495057; /* Subtle text color */
}

.single-group-events .event-details strong {
	color: #000; /* Highlight important information */
}

.single-group-events .event-details .event-date,
.single-group-events .event-details .event-time,
.single-group-events .event-details .end-date,
.single-group-events .event-details .end-time,
.single-group-events .event-details .event-location,
.single-group-events .event-details .event-type {
	line-height: 1.6; /* Improve readability */
}


.single-group-events .group-image img {
	width: 100px;
	height: 100px;
	border-radius: 10%;
	margin-bottom: 10px;
	border: 1px solid #dddddd;
}

/* Details Section */
.single-group-events .details {
	display: flex;
	gap: 20px;
	margin: 20px 0;
}

.single-group-events .author-info {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 15px 0;
}

.single-group-events .author-image img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #ccc;
}

.single-group-events .event-description h2 {
	font-size: 20px;
	margin-bottom: 10px;
}

/* Attendees Section */
.single-group-events .attendees {
	margin-top: 20px;
}

.single-group-events .attendees h2 {
	font-size: 20px;
	margin-bottom: 10px;
}

.single-group-events .attendee-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15%, 15%));
	gap: 20px;
}

.single-group-events .attendee-card {
	text-align: center;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-sizing: border-box;
}

.single-group-events .attendee-image img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-bottom: 10px;
}

/* Attend Button */
.single-group-events .attend-button {
	text-align: right;
	margin: 20px 0;
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
	align-items: flex-end;
}

.single-group-events .attend-button button {
	padding: 10px 20px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
}

.single-group-events .attend-button button:hover {
	background-color: #005f8d;
}

.single-group-events .bb-event-author-meta {
	display: flex;
	flex-direction: column;
}

.single-group-events .bb-event-author-meta p {
	margin-bottom: 0;
	font-size: 14px;
}