/* General Reset */
/* Import Open Sans font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

body {
	margin: 0;
	font-family: "Open Sans", sans-serif;
	color: #333;
	padding: 0;
}

/* Container */
.container {
	max-width: 1140px;
	margin: 100px auto 0;
	padding: 5px;
	background-color: #fff;
}

/* Title container and main title styling */
.title-container {
	/* text-align: center; */
	/* margin: 20px 0px; */ /* Add some space below the title */
}

.main-title {
	font-weight: 600;
	color: #95a83b;
	font-size: 24px;
}

/* Main Search Bar */
.main-search-bar {
	position: relative; /* Changed from sticky to relative */
	top: 0; /* Reset any top value */
	z-index: auto; /* Adjust if necessary */
	width: 100%;
	margin-bottom: 10px;
}

.main-search-bar .post-count {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
	text-align: left; /* or center */
}

.main-search-bar input {
	width: 100%;
	padding: 8px;
	font-size: 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	outline: none;
}

.main-search-bar input:focus {
	border-color: #3498db;
	box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Wrapper for sidebar and content */
.content-wrapper {
	display: flex;
	gap: 20px;
}

/* Sidebar */
.sidebar {
	width: 250px; /* Fixed width */
	color: #000;
	overflow-y: auto;
	flex-shrink: 0; /* Prevent shrinking */
}

/* Filter Boxes */
.sidebar div {
	background-color: #ffffff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s;
}

.sidebar div:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar h3 {
	font-size: 18px;
	margin-bottom: 10px;
	color: #000;
	margin-top: 0px;
}

.sidebar ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

/* Fancy Checkbox Styling */
.sidebar ul li label {
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	position: relative;
	padding-left: 30px; /* Space for custom checkbox */
}

.sidebar ul li input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Custom Checkbox */
.sidebar ul li label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 55%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid #95a83b;
	border-radius: 4px;
	background-color: #fff;
	transition:
		background-color 0.3s,
		border-color 0.3s;
}

.sidebar ul li input[type="checkbox"]:checked + label::before {
	background-color: #95a83b;
	border-color: #95a83b;
}

.sidebar ul li input[type="checkbox"]:checked + label::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	width: 6px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
}

/* Style for the "Select All" checkbox */
#select-all {
	margin-bottom: 15px;
}

/* Country Box */
.country-box,
.category-box {
	border: 1px solid #ddd;
	border-radius: 5px;
	background-color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative; /* Required for sticky header */
}

/* Sticky Header */
.country-header,
.category-header {
	position: sticky;
	top: 0; /* Sticks to the top of the container */
	background-color: #ffffff !important; /* Match the background */
	z-index: 10 !important; /* Ensure it stays above the list */
	padding: 10px 0 !important;
	border: none !important;
	border-bottom: 2px solid #95a83b !important;
	box-shadow: none !important;
	border-radius: 0px !important;
}

/* Search Field */
.country-header .search-field,
.category-header .search-field {
	width: 100%; /* Adjust width to fit nicely */
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 5px;
	font-size: 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
}

/* Scrollable Country List */
#country-list-items {
	max-height: 210px; /* Limit height for scrolling */
	overflow-y: auto; /* Enable vertical scrolling */
	padding: 0; /* Remove default padding */
	margin: 0; /* Remove default margin */
	list-style: none; /* Remove bullets */
}

#category-list-items {
	max-height: 520px; /* Limit height for scrolling */
	overflow-y: auto; /* Enable vertical scrolling */
	padding: 0; /* Remove default padding */
	margin: 0; /* Remove default margin */
	list-style: none; /* Remove bullets */
}

/* Country List Scrollbar Styling */
#country-list-items::-webkit-scrollbar,
#category-list-items::-webkit-scrollbar {
	width: 8px;
}

#country-list-items::-webkit-scrollbar-thumb,
#category-list-items::-webkit-scrollbar-thumb {
	background-color: #95a83b; /* Thumb color */
	border-radius: 4px; /* Rounded edges */
}

#country-list-items::-webkit-scrollbar-track,
#category-list-items::-webkit-scrollbar-track {
	background-color: #f0f0f0; /* Track background */
	border-radius: 4px; /* Rounded edges */
}

#country-list-items::-webkit-scrollbar-thumb:hover,
#category-list-items::-webkit-scrollbar-thumb:hover {
	background-color: #95a83b; /* Darker on hover */
}

/* Country Items */
.country-item label,
.category-item label {
	font-size: 12px;
	cursor: pointer;
	display: flex;
	justify-content: space-between; /* Align country name and count */
	align-items: center; /* Vertically center content */
	padding: 5px;
}

.country-item input[type="checkbox"],
.category-item input[type="checkbox"] {
	accent-color: #95a83b; /* Checkbox color */
}

.country-item .country-number,
.category-item .category-number {
	font-size: 12px;
	color: #95a83b;
	border-radius: 4px;
	padding: 2px 6px;
}

/* General Styles */
.content {
	flex-grow: 1; /* Fills remaining space */
	min-width: 0; /* Prevents overflow */
}

/* Card Styling */
.card {
	background-color: #ffffff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s;
	position: relative;
}

.card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card Header */
.card-header {
	margin-bottom: 10px;
	border-bottom: 1px solid #eee;
	padding: 5px 0;
}

.org-info h3 {
	margin: 0;
	font-size: 18px;
}

.org-info .role {
	font-size: 14px;
	color: #777;
}

/* Organization Image */
.card-image {
	display: flex;
	/* margin: 15px 0; */
	max-width: 400px;
	min-width: 100px;
	border: 1px solid #eee;
	border-radius: 3px;
	padding: 10px;
}

.org-image {
	max-height: 100px;
	object-fit: cover;
}

/* Card Body */
.card-body {
	justify-content: space-between;
	gap: 20px;
	max-height: 100px; /* Limit the card body height initially */
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.card-body a {
	color: #95a83b;
}

.card-body a:hover {
	color: #b5d356;
}

/* Expanded state of the card body */
.card-body.expanded {
	max-height: 500px; /* Set the expanded height */
}

/* Button Styling */
.toggle-button {
	display: inline-block; /* Inline-block to center the button */
	width: auto; /* Let the width adjust based on content */
	text-align: center;
	/* Adjust padding for a rounded look */
	padding: 6px 15px;
	color: #95a83b;
	border: 1px solid #95a83b; /* Slightly thicker border for better appearance */
	/* Text color */
	cursor: pointer;
	border-radius: 3px; /* Fully rounded button */
	font-size: 14px;
	margin: 0 auto; /* Center the button horizontally */
	transition:
		background-color 0.3s ease,
		color 0.3s ease; /* Smooth color transition */
	background: #fff; /* White background for contrast */
}

.hidden {
	display: none;
}

.transparent {
	opacity: 0.3;
}

#members-list-items {
	position: relative;
}

#members-list-items.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    z-index: 10; /* Ensure it appears above the content */
    display: flex;
    justify-content: center;
    align-items: center;
}

#members-list-items.loading::before {
    content: "";
    display: inline-block; /* Ensure width and height work */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1d1d21;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11; /* Ensure it appears above the content */
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Center the button */
.card-footer {
	display: flex; /* Use flexbox for centering */
	justify-content: center;
	margin-top: 15px;
}

/* Button Hover effect */
.toggle-button:hover {
	background-color: #95a83b; /* Invert the background and text color on hover */
	color: #fff; /* White text on hover */
}

/* Icon styling */
.toggle-button i {
	font-size: 12px; /* Make the icon a bit smaller */
	transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.location-info {
	flex: 1;
	font-size: 14px;
	padding: 5px 15px;
	border: 1px solid #eee;
	border-radius: 3px;
}

.head-office-info h4 {
	margin: 0 0 10px;
	font-size: 14px;
	color: #333;
}

.head-office-info p {
	margin: 0;
	font-size: 14px;
	color: #555;
}

.head-office-info a {
	color: #95a83b;
	text-decoration: none;
}

/* Card Footer (Accordion) */
.card-footer {
	margin-top: 15px;
	padding: 5px 0;
	text-align: right;
	border-top: 1px solid #eee;
}

/* .toggle-button {
	background-color: #95A83B;
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
} */

/* Media Query for Responsive Layout */
@media (max-width: 768px) {
	.content-wrapper {
		flex-direction: column;
	}

	.sidebar,
	.content {
		min-width: 100%;
	}
}

.head-office-info h4 {
	display: flex;
	align-items: center;
	margin: 0;
}

.head-office-info .title {
	margin-left: 10px; /* Adjust spacing between name and title */
	font-weight: normal; /* Optional: make the title less bold */
	font-size: 12px;
	padding: 0 5px;
	border-left: 2px solid hsla(11, 100%, 62.2%, 1);
}

.category-info ul {
	list-style-type: none;
	padding: 0;
}

.category-info li {
	margin-bottom: 5px;
}

.category-info .category-value {
	color: gray;
	font-size: 12px;
	padding: 2px 5px;
	margin-left: 5px;
	border-left: 1px solid #ddd;
}

.category-info .category-name {
	/* font-weight: 600; */
	font-size: 13px;
	border-radius: 3px;
	border-left: 2px solid #95a83b;
	background-color: #95a83b3a;
	padding: 2px 5px;
}

.primary-tag {
	color: green;
	font-style: italic;
}

.pagination-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin: 10px 0;
	padding: 10px;
	flex-wrap: wrap; /* Ensures it wraps neatly on smaller screens */
	background-color: #ffffff;
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden; /* Clear floats */
}

/* Summary Container Styling */
#data-summary {
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    align-items: center;
    font-size: 12px; /* Smaller font size */
    color: #555; /* Optional muted text color */
    padding: 5px 10px;
    border: 1px solid #ddd; /* Optional border */
    border-radius: 4px;
    background-color: #f9f9f9; /* Optional light background */
}

/* Ensure the items have proper spacing */
.summary-item {
    margin-right: 15px; /* Add spacing between items */
    white-space: nowrap; /* Prevent wrapping */
}

/* Highlight the values */
.summary-value {
    font-weight: bold;
    color: #333;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap; /* Allow pagination items to wrap to the next line */
  gap: 10px;
  justify-content: center; /* Center items horizontally */
}

.pagination-btn {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #95a83b;
  background-color: #95a83b;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-btn:hover {
  background-color: #b5d356;
}

.pagination-btn.disabled {
  background-color: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
  .pagination-controls {
    gap: 5px; /* Reduce the gap between buttons on mobile */
  }

  .pagination-btn {
    padding: 5px 10px; /* Smaller padding for mobile */
    font-size: 12px; /* Smaller font size for better fit */
  }

  /* Ensure ellipsis is shown properly on smaller screens */
  .ellipsis {
    display: inline-block;
    font-size: 12px;
    padding: 5px 10px;
  }
}


.location-info i {
	margin-right: 8px;
	color: hsla(252, 13%, 46%, 1); /* Change color as needed */
}

.location-info p,
.membership-info p {
	margin: 0px;
	font-size: 14px;
}

.location-info {
	align-items: center; /* Vertically centers the icon and text */
	justify-content: center; /* Horizontally centers the content, if needed */
	margin: 15px 0;
}

.empty-categories {
	/* font-size: 14px; */
	/* color: #888; */ /* Lighter color to distinguish the message */
	/* Aligns it to the left */
	/* padding-left: 10px; */
	/* border-left: 3px solid #d32828; */
	font-style: italic;
	/* text-transform: lowercase; */
}

.category-info {
	font-size: 14px;
	padding: 5px 15px;
	border: 1px solid #eee;
	border-radius: 3px;
}

.company-description {
	font-size: 14px;
	padding: 5px 15px;
	border: 1px solid #eee;
	border-radius: 3px;
	margin: 15px 0;
}

.video-link {
	font-size: 14px;
	padding: 5px 15px;
	border: 1px solid #eee;
	border-radius: 3px;
	margin: 15px 0;
}

.membership-info {
	font-size: 14px;
	padding: 5px 15px;
	border: 1px solid #eee;
	border-radius: 3px;
	margin: 15px 0;
}

.no-data-wrap {
	text-align: center;
	padding: 20px;
	background-color: #ffcbcb;
	border: 1px solid #eee;
	border-radius: 8px;
	margin: 20px auto;
	max-width: 600px;
	/* box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); */
}

.no-data-message {
	font-size: 14px;
	color: #000;
	font-weight: 500;
	margin: 0;
}

.no-data-wrap p {
	line-height: 1.6;
}

.category-item {
	margin-bottom: 15px;
}

.child-category-list {
	margin-left: 20px; /* Indent child categories */
	list-style-type: none; /* Remove bullets */
	padding-left: 0;
}

.child-category-item {
	display: flex;
	align-items: center;
}

.child-category-checkbox {
	margin-right: 8px; /* Space between checkbox and label */
}

.category-item > strong {
	font-size: 14px;
	display: block;
}

.sticky-filters-bar {
	position: relative; /* Changed from sticky to relative */
	top: 0; /* Reset any top value */
	z-index: auto; /* Adjust if necessary */
	width: 100%;

	background-color: #fff;
	border: 1px solid #ddd;
	padding: 10px;
	border-radius: 5px;
	margin: 10px 0; /* Space between search bar and sticky bar */
	font-size: 12px;
}

.main-search {
	margin-bottom: 20px; /* Adjust for spacing between the search and filters */
}

.filter-panel {
	margin-top: 20px; /* Adjust for spacing below the sticky filters bar */
}

.uicore-top-bar {
	display: none;
}


/* Responsive Styles */
@media (max-width: 1200px) {
	.content-wrapper {
		gap: 15px; /* Reduce gap between sidebar and content */
	}

	.sidebar {
		width: 200px; /* Reduce sidebar width */
	}

	.main-title {
		font-size: 22px; /* Adjust title size for better visibility */
	}
}

@media (max-width: 992px) {
	.content-wrapper {
		flex-direction: column; /* Stack sidebar and content vertically */
	}

	.sidebar {
		width: 100%; /* Sidebar takes full width */
		margin-bottom: 20px; /* Add space below sidebar */
	}

	.card {
		margin-bottom: 10px; /* Reduce space between cards */
	}

	.main-search-bar input {
		font-size: 14px; /* Increase font size for easier readability */
		padding: 10px; /* Add padding for touch devices */
	}
}

@media (max-width: 768px) {
	.main-title {
		font-size: 20px; /* Further reduce title size */
	}

	.card {
		padding: 10px; /* Reduce padding inside cards */
	}

	.card-header {
		font-size: 16px; /* Adjust header font size */
	}
}

@media (max-width: 576px) {
	.container {
		padding: 10px; /* Add padding around the container */
	}

	.main-title {
		font-size: 18px; /* Smaller title for small screens */
		text-align: center; /* Center-align title */
	}

	.main-search-bar input {
		padding: 8px; /* Adjust padding for smaller devices */
		font-size: 12px; /* Smaller font for input */
	}

	.card-body {
		max-height: 300px; /* Reduce expanded height on smaller screens */
	}

	.sidebar h3 {
		font-size: 16px; /* Adjust sidebar header size */
	}

	.sidebar ul li label {
		font-size: 12px; /* Smaller font size for list items */
	}

	.country-item .country-number,
	.category-item .category-number {
		padding: 1px 4px; /* Reduce padding for smaller badges */
	}
}

@media (max-width: 400px) {
	.toggle-button {
		font-size: 12px; /* Smaller button font size */
		padding: 5px 10px; /* Reduce padding */
	}

	.location-info {
		font-size: 12px; /* Adjust location info font size */
	}

	.head-office-info h4 {
		font-size: 12px; /* Reduce heading size */
	}

	.head-office-info p {
		font-size: 12px; /* Reduce paragraph font size */
	}

	#country-list-items,
	#category-list-items {
		max-height: 150px; /* Reduce maximum height for lists */
	}
}
