/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Description: Child theme for Hello Elementor. Custom styles and modifications for English Horizons.
Author: English Horizons
Author URI: https://englishhorizons.co.uk
Template: hello-elementor
Version: 1.5.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
*/

/* Custom Directory Search Bar
----------------------------------------------- */
 #content {
	width: 100% !important;
	max-width: 100% !important;
} 
@media (min-width: 1200px) {
  .page-header .entry-title {
    max-width: 90% !important;
	margin-top: 10px;
  }
}

#wpbdp-submit-listing .wp-editor-tabs button {
	padding-bottom: 30px !important;
}

.business-directory.wpbdp-view-show_category .single-blog__hero,
body.user-registration-page .single-blog__hero,
body.user-registration-membership_page_user-registration-login-forms .single-blog__hero {
    display: none;
}

#wpbdp-page-all_listings, #wpbdp-page-category, #wpbdp-listings-list{
	width: 100% !important;
	margin: 30px auto !important;
	margin-top: 20px;
}

.wpbdp-category-page {
	width: 90% !important;
}

/* Category Header Styles */
.wpbdp-category-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.wpbdp-category-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.wpbdp-category-description {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* My Listings Styles */
.my-listings-view .listing-details {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
}

.my-listings-view .listing-thumbnail-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
}

.my-listings-view .listing-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-listings-view .listing-content {
    flex: 1;
}

.my-listings-view .listing-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-listings-view .listing-title a {
    color: #1f2937;
    text-decoration: none;
}

.my-listings-view .listing-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e5e7eb;
    color: #6b7280;
}

.my-listings-view .listing-status.status-publish {
    background: #dcfce7;
    color: #166534;
}

.my-listings-view .listing-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.my-listings-view .listing-status.status-draft {
    background: #e5e7eb;
    color: #6b7280;
}

.my-listings-view .listing-summary {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.my-listings-view .listing-actions {
    display: flex;
    gap: 10px;
}

.my-listings-view .listing-actions .button {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.my-listings-view .listing-actions .view-listing {
    background: #3b82f6;
    color: white;
}

.my-listings-view .listing-actions .edit-listing {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.my-listings-view .listing-actions .delete-listing {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.eh-my-listings-pagination {
	margin-top: 30px;
	text-align: center;
}

.eh-my-listings-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.eh-my-listings-pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.eh-my-listings-pagination .page-numbers.current {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.eh-my-listings-pagination .prev,
.eh-my-listings-pagination .next {
    font-weight: 500;
}

body.user-registration-membership_page_user-registration-login-forms #user-registration.user-registration-MyAccount, body.user-registration-membership_page_user-registration-login-forms .user-registration.user-registration-MyAccount, body.user-registration-page #user-registration.user-registration-MyAccount, body.user-registration-page .user-registration.user-registration-MyAccount {
	max-width: 100% !important;
}

.eh-search-bar-wrapper {
	max-width: 800px;
	margin: 0 auto;
	width: 100%;
}

.eh-search-bar-form {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.eh-search-bar-inner {
	display: flex;
	align-items: center;
	flex: 1;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border: 1px solid #e5e7eb;
	overflow: hidden;
	min-height: 54px;
}

.eh-search-input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 0 16px;
	min-width: 0;
}

.eh-search-icon-input {
	width: 20px;
	height: 20px;
	color: #9ca3af;
	flex-shrink: 0;
	margin-right: 12px;
}

.eh-search-input {
	border: none !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	font-size: 15px;
	color: #374151;
	width: 100%;
	padding: 14px 0;
	line-height: 1.4;
	margin: 0;
}

.eh-search-input:focus {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.eh-search-input::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.eh-search-divider {
	width: 1px;
	height: 28px;
	background: #e5e7eb;
	flex-shrink: 0;
}

.eh-search-category-wrap {
	flex-shrink: 0;
	padding: 0 4px;
}

.eh-search-category {
	border: none;
	outline: none;
	background: transparent;
	font-size: 15px;
	color: #6b7280;
	padding: 14px 36px 14px 16px;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	min-width: 140px;
	margin: 0;
}

.eh-search-category:focus {
	outline: none;
	box-shadow: none;
}

.eh-search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #0F4CDE !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 10px;
	padding: 14px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35) !important;
	flex-shrink: 0;
	min-height: 54px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.eh-search-submit:hover {
	background: #1e40af;
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.45);
}

.eh-search-icon-btn {
	width: 18px;
	height: 18px;
	color: #ffffff;
	flex-shrink: 0;
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
	.eh-search-bar-form {
		flex-direction: column;
	}

	.eh-search-bar-inner {
		width: 100%;
	}

	.eh-search-submit {
		width: 100%;
	}
}

/* =========================================================
   Search Results Page Layout
   ========================================================= */

.eh-search-results-page {
	padding: 0 !important;
}

/* Page Header */
.eh-page-header {
	background: linear-gradient(135deg, #1e3a8a 0%, #0F4CDE 100%);
	padding: 40px 0;
	margin-bottom: 30px;
	position: relative;
}

.eh-page-header-inner {
	width: 90%;
	max-width: 1400px;
	margin: 0 auto;
}

.eh-page-title {
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 12px 0;
}

.eh-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.eh-breadcrumb a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s ease;
}

.eh-breadcrumb a:hover {
	color: #ffffff;
}

.eh-breadcrumb-sep {
	color: rgba(255, 255, 255, 0.6);
}

.eh-breadcrumb-current {
	color: rgba(255, 255, 255, 0.6);
}

.eh-search-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	width: 90%;
	margin: 0 auto;
	padding: 0 0 40px;
}

/* Hide default BD search page elements */
.eh-search-results-page .wpbdp-bar,
.eh-search-results-page > .title,
.eh-search-results-page > h2,
.eh-search-results-page > h3,
.wpbdp-category-page .wpbdp-bar,
.wpbdp-category-page > .title,
.wpbdp-category-page > h2,
.wpbdp-main-page .wpbdp-bar,
.wpbdp-main-page > .title,
.wpbdp-main-page > h2,
.businessdirectory-category .wpbdp-bar,
.businessdirectory-category > .title,
.businessdirectory-category > h2,
.businessdirectory-main .wpbdp-bar,
.businessdirectory-main > .title,
.businessdirectory-main > h2 {
	display: none !important;
}

/* =========================================================
   BD Listing Pages Layout
   ========================================================= */

/* Category and Main listing pages layout */
.wpbdp-category-page,
.wpbdp-main-page,
.businessdirectory-category,
.businessdirectory-main {
	padding: 0 !important;
	width: 90%;
	/* max-width: 1400px; */
	margin: 0 auto;
}

/* Ensure the listing containers are visible */
.wpbdp-category-page .wpbdp-listings-list,
.wpbdp-main-page .wpbdp-listings-list,
.businessdirectory-category .wpbdp-listings-list,
.businessdirectory-main .wpbdp-listings-list {
	width: 100% !important;
	max-width: 100% !important;
}

/* Hide default pagination styling that might conflict */
.wpbdp-category-page .wpbdp-pagination,
.wpbdp-main-page .wpbdp-pagination,
.businessdirectory-category .wpbdp-pagination,
.businessdirectory-main .wpbdp-pagination {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

/* =========================================================
   Left Sidebar Filters
   ========================================================= */

.eh-search-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 20px;
	position: sticky;
	top: 20px;
	align-self: flex-start;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.eh-search-sidebar::-webkit-scrollbar {
	width: 6px;
}

.eh-search-sidebar::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.eh-search-sidebar::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.eh-search-sidebar::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.eh-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f3f4f6;
}

.eh-sidebar-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.eh-sidebar-icon {
	width: 18px;
	height: 18px;
	color: #0F4CDE;
}

.eh-sidebar-header h3 {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	letter-spacing: -0.2px;
}

.eh-sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.2s ease;
	position: relative;
	z-index: 10;
}

.eh-sidebar-toggle:hover {
	background: #e5e7eb;
}

.eh-sidebar-toggle .eh-toggle-arrow {
	transition: transform 0.3s ease;
	color: #6b7280;
	transform: rotate(180deg);
}

.eh-sidebar-toggle[aria-expanded="true"] .eh-toggle-arrow {
	transform: rotate(0deg);
}

/* Collapsible Sidebar Content */
.eh-sidebar-content {
	overflow: hidden;
	transition: all 0.3s ease;
	display: none;
}

/* Mobile: show when open class is present */
.eh-sidebar-content.eh-sidebar-open {
	display: block;
}

/* Desktop: always show */
@media (min-width: 992px) {
	.eh-sidebar-content {
		display: block;
	}
}

/* Filter Groups */

.eh-filter-group {
	margin-bottom: 22px;
}

.eh-filter-group:last-of-type {
	margin-bottom: 0;
}

.eh-filter-title {
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 10px 0;
	text-transform: none;
	letter-spacing: 0;
}

/* Collapsible Filter Groups */
.eh-filter-collapsible {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 16px;
}

.eh-filter-collapsible:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.eh-filter-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	margin-bottom: 10px;
}

.eh-filter-toggle:hover .eh-filter-title {
	color: #0F4CDE;
}

.eh-filter-toggle .eh-toggle-icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
	color: #6b7280;
}

.eh-filter-toggle[aria-expanded="false"] .eh-toggle-icon {
	transform: rotate(-90deg);
}

.eh-filter-content {
	overflow: hidden;
	transition: all 0.3s ease;
}

.eh-filter-content:not(.eh-filter-open) {
	display: none;
}

/* Search input in sidebar */

.eh-filter-search-wrap {
	position: relative;
}

.eh-filter-search-input {
	width: 100%;
	padding: 10px 36px 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	color: #374151;
	background: #ffffff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.eh-filter-search-input:focus {
	border-color: #0F4CDE;
	box-shadow: 0 0 0 3px rgba(15, 76, 222, 0.08);
}

.eh-filter-search-input::placeholder {
	color: #9ca3af;
}

.eh-filter-search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

/* Category dropdown in sidebar */

.eh-filter-select-wrap {
	position: relative;
}

.eh-filter-select {
	width: 100%;
	padding: 10px 36px 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	color: #374151;
	background: #ffffff;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.eh-filter-select:focus {
	border-color: #0F4CDE;
	box-shadow: 0 0 0 3px rgba(15, 76, 222, 0.08);
}

.eh-filter-select-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

/* Custom Checkboxes */

.eh-filter-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eh-filter-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.3;
	position: relative;
}

.eh-filter-checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.eh-checkmark {
	width: 18px;
	height: 18px;
	border: 1.5px solid #d1d5db;
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	background: #ffffff;
}

.eh-filter-checkbox-label input[type="checkbox"]:checked + .eh-checkmark {
	border-color: #0F4CDE;
	background-color: #0F4CDE;
}

.eh-filter-checkbox-label input[type="checkbox"]:checked + .eh-checkmark::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.eh-check-label {
	font-size: 13px;
	color: #4b5563;
}

/* Filter Actions */

.eh-filter-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.eh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	line-height: 1.4;
}

.eh-btn-apply {
	background: #0F4CDE;
	color: #ffffff;
	width: 100%;
	box-shadow: 0 2px 6px rgba(15, 76, 222, 0.25);
}

.eh-btn-apply:hover {
	background: #1e40af;
	box-shadow: 0 4px 10px rgba(15, 76, 222, 0.35);
}

.eh-btn-reset {
	background: #ffffff;
	color: #374151;
	border: 1px solid #d1d5db;
	width: 100%;
}

.eh-btn-reset:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

/* =========================================================
   Main Results Area
   ========================================================= */

.eh-search-main {
	flex: 1;
	min-width: 0;
}

.eh-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 0;
}

.eh-results-count {
	font-size: 14px;
	color: #6b7280;
}

.eh-count-number {
	font-weight: 500;
	color: #111827;
}

.eh-results-controls {
	display: flex;
	align-items: center;
	gap: 16px;
}

.eh-results-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.eh-sort-label {
	color: #6b7280;
	display: inline-block !important;
	width: 100px !important;
}

.eh-sort-select {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 32px 8px 12px;
	font-size: 14px;
	color: #111827;
	background: #ffffff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
}

.eh-sort-select:focus {
	outline: none;
	border-color: #0F4CDE;
}

.eh-view-toggle {
	display: flex;
	gap: 0;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
}

.eh-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #ffffff;
	border: none;
	cursor: pointer;
	color: #6b7280;
	transition: all 0.15s ease;
}

.eh-view-btn:hover {
	background: #f9fafb;
	color: #374151;
}

.eh-view-btn.active {
	background: #0F4CDE;
	color: #ffffff;
}

/* =========================================================
   Listing Card - Universal Styles for All BD Pages
   ========================================================= */

/* Container layout for all BD listing pages */
.eh-search-results,
.wpbdp-page .wpbdp-listings-list,
.wpbdp-page #wpbdp-listings-list,
.wpbdp-page .wpbdp-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Grid view layout for all BD pages */
.wpbdp-page .wpbdp-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

@media (max-width: 768px) {
	.wpbdp-page .wpbdp-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

.eh-listing-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.eh-listing-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #e5e7eb;
}

.eh-card-inner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

/* Logo */

.eh-card-logo {
	width: 150px;
	height: 150px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	border: 1px solid #e5e7eb;
}

.eh-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eh-card-logo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FF8A00;
	color: #ffffff;
	font-size: 24px;
	font-weight: 600;
}

.eh-card-logo-placeholder span {
	text-transform: uppercase;
}

/* Content */

.eh-card-content {
	flex: 1;
	min-width: 0;
	padding-top: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.eh-badge-verified {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 4px;
	background: #dbeafe;
	color: #2563eb;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	flex-shrink: 0;
	margin-bottom: 6px;
	width: fit-content;
}

.eh-card-title {
	font-size: 34px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 4px 0;
	line-height: 1.3;
	
}

.eh-card-title a {
	color: #111827;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.eh-card-title a:hover {
	color: #0F4CDE;
}

.eh-card-url {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #f97316;
	text-decoration: none;
	margin-bottom: 8px;
	line-height: 1.4;
	word-break: break-word;
	overflow-wrap: break-word;
	font-weight: 500;
	max-width: 100%;
}

.eh-card-url:hover {
	text-decoration: underline;
}

.eh-external-icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	color: #f97316;
	stroke-width: 2px;
}

.eh-card-description {
	font-size: 18px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0 0 12px 0;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 100%;
}

.eh-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.eh-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 6px;
	background: #eff6ff;
	color: #2563eb;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
}

/* Tag color variations */
.eh-tag-ielts {
	background: #dbeafe;
	color: #2563eb;
}

.eh-tag-exam,
.eh-tag-exam-preparation {
	background: #ffedd5;
	color: #f97316;
}

.eh-tag-practice {
	background: #d1fae5;
	color: #059669;
}

.eh-tag-courses {
	background: #d1fae5;
	color: #059669;
}

.eh-tag-official {
	background: #f3e8ff;
	color: #9333ea;
}

.eh-tag-information {
	background: #ede9fe;
	color: #7c3aed;
}

.eh-tag-toefl {
	background: #dbeafe;
	color: #2563eb;
}

.eh-tag-gre {
	background: #fef3c7;
	color: #d97706;
}

/* Meta & Actions */

.eh-card-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	min-width: 30%;
	flex-shrink: 0;
}

.eh-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.eh-stars {
	display: flex;
	gap: 1px;
	align-items: center;
}

.eh-star {
	width: 14px;
	height: 14px;
	color: #e5e7eb;
	fill: #e5e7eb;
}

.eh-star.filled {
	color: #f59e0b;
	fill: #f59e0b;
}

.eh-star.half {
	color: #f59e0b;
}

.eh-rating-value {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-left: 2px;
}

.eh-review-count {
	font-size: 13px;
	color: #9ca3af;
}

.eh-card-location,
.eh-card-institution {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 16px;
	color: #6b7280;
	margin-bottom: 2px;
}

.eh-card-location:last-of-type,
.eh-card-institution:last-of-type {
	margin-bottom: 0;
}

.eh-card-location svg,
.eh-card-institution svg {
	color: #9ca3af;
	stroke-width: 2;
}

.eh-meta-icon {
	width: 14px;
	height: 14px;
	color: #9ca3af;
	flex-shrink: 0;
}

.eh-card-actions {
	display: flex;
	flex-direction: row;
	gap: 8px;
	margin-top: 12px;
	width: 100%;
}

.eh-btn-view,
.eh-btn-edit {
	width: 50%;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	justify-content: center;
	align-items: center;
	text-decoration: none !important;
	transition: all 0.2s ease;
	min-height: 36px;
	display: inline-flex;
	gap: 6px;
}

.eh-btn-view {
	background: #ffffff;
	color: #2563eb;
	border: 1px solid #2563eb;
}

.eh-btn-view:hover {
	background: #eff6ff;
}

.eh-btn-view svg {
	width: 13px;
	height: 13px;
}

.eh-btn-edit {
	background: #2563eb;
	color: #ffffff;
	border: 1px solid #2563eb;
}

.eh-btn-edit:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.eh-btn-edit svg {
	width: 13px;
	height: 13px;
}

/* No results */

.eh-no-results {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 48px 24px;
	text-align: center;
}

.eh-no-results p {
	font-size: 15px;
	color: #6b7280;
	margin: 0;
}

/* =========================================================
   Pagination
   ========================================================= */

.eh-search-main .wpbdp-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-top: 24px;
}

.eh-search-main .wpbdp-pagination a,
.eh-search-main .wpbdp-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	transition: all 0.15s ease;
}

.eh-search-main .wpbdp-pagination a:hover {
	background: #f3f4f6;
	color: #111827;
}

.eh-search-main .wpbdp-pagination span.current {
	background: #0F4CDE;
	color: #ffffff;
	font-weight: 600;
}

.eh-search-main .wpbdp-pagination .dots {
	color: #9ca3af;
	cursor: default;
}

/* =========================================================
   Hide default BD listing styles
   ========================================================= */

.eh-search-results .wpbdp-listings-list,
.eh-search-results #wpbdp-listings-list,
.eh-search-results .wpbdp-grid,
.wpbdp-page .wpbdp-listings-list,
.wpbdp-page #wpbdp-listings-list,
.wpbdp-page .wpbdp-grid {
	display: contents !important;
}

/* Hide default BD elements on all listing pages */
.eh-search-results .wpbdp-listing-excerpt,
.wpbdp-page .wpbdp-listing-excerpt,
.wpbdp-category-page .wpbdp-listing-excerpt,
.wpbdp-main-page .wpbdp-listing-excerpt {
	margin-bottom: 20px !important;
	padding: 20px !important;
}

.eh-search-results .wpbdp-listing-excerpt .listing-details,
.eh-search-results .wpbdp-listing-excerpt .wpbdp-field,
.eh-search-results .wpbdp-listing-excerpt .wpbdp-field-display,
.eh-search-results .wpbdp-listing-excerpt .social-fields,
.wpbdp-page .wpbdp-listing-excerpt .listing-details,
.wpbdp-page .wpbdp-listing-excerpt .wpbdp-field,
.wpbdp-page .wpbdp-listing-excerpt .wpbdp-field-display,
.wpbdp-page .wpbdp-listing-excerpt .social-fields {
	display: none !important;
}

.eh-search-results .wpbdp-listing-excerpt .wpbdmthumbs,
.eh-search-results .wpbdp-listing-excerpt .wpbdp-excerpt-thumbnail,
.wpbdp-page .wpbdp-listing-excerpt .wpbdmthumbs,
.wpbdp-page .wpbdp-listing-excerpt .wpbdp-excerpt-thumbnail {
	display: none !important;
}

.eh-search-results .wpbdp-listing-excerpt .wpbdp-sticky-tag,
.eh-search-results .wpbdp-listing-excerpt .wpbdp-has-ribbon,
.wpbdp-page .wpbdp-listing-excerpt .wpbdp-sticky-tag,
.wpbdp-page .wpbdp-listing-excerpt .wpbdp-has-ribbon {
	display: none !important;
}

.eh-search-results .wpbdp-listing-actions,
.wpbdp-page .wpbdp-listing-actions,
.wpbdp-page .listing-actions {
	display: none !important;
}

/* =========================================================
   Grid & List View Layouts
   ========================================================= */

/* =========================================================
   DEFAULT GRID - Applied to all BD listing pages
   ========================================================= */

/* Default grid layout for category pages and all listings */
.wpbdp-category-page .wpbdp-listings-list,
.wpbdp-main-page .wpbdp-listings-list,
.wpbdp-main-page #wpbdp-listings-list,
.businessdirectory-category .wpbdp-listings-list {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* Ensure cards fill the grid cells */
.wpbdp-category-page .eh-listing-card,
.wpbdp-main-page .eh-listing-card,
.businessdirectory-category .eh-listing-card {
	height: 100%;
	padding: 24px;
}

/* Grid layout card inner structure */
.wpbdp-category-page .eh-card-inner,
.wpbdp-main-page .eh-card-inner,
.businessdirectory-category .eh-card-inner {
	flex-direction: column;
	height: 100%;
	gap: 16px;
}

/* Center logo in grid layout */
.wpbdp-category-page .eh-card-logo,
.wpbdp-main-page .eh-card-logo,
.businessdirectory-category .eh-card-logo {
	width: 80px;
	height: 80px;
	align-self: center;
	border-radius: 12px;
}

/* Center content in grid layout */
.wpbdp-category-page .eh-card-content,
.wpbdp-main-page .eh-card-content,
.businessdirectory-category .eh-card-content {
	flex: 1;
	text-align: center;
	align-items: center;
}

.wpbdp-category-page .eh-badge-verified,
.wpbdp-main-page .eh-badge-verified,
.businessdirectory-category .eh-badge-verified {
	margin: 0 auto 8px auto;
}

.wpbdp-category-page .eh-card-title,
.wpbdp-main-page .eh-card-title,
.businessdirectory-category .eh-card-title {
	font-size: 18px;
	margin-bottom: 6px;
}

.wpbdp-category-page .eh-card-url,
.wpbdp-main-page .eh-card-url,
.businessdirectory-category .eh-card-url {
	justify-content: center;
	font-size: 12px;
	margin-bottom: 10px;
}

.wpbdp-category-page .eh-card-description,
.wpbdp-main-page .eh-card-description,
.businessdirectory-category .eh-card-description {
	text-align: left;
	margin-bottom: 14px;
	line-clamp: 3;
	-webkit-line-clamp: 3;
}

.wpbdp-category-page .eh-card-tags,
.wpbdp-main-page .eh-card-tags,
.businessdirectory-category .eh-card-tags {
	justify-content: center;
	margin-bottom: 4px;
}

/* Meta section at bottom */
.wpbdp-category-page .eh-card-meta,
.wpbdp-main-page .eh-card-meta,
.businessdirectory-category .eh-card-meta {
	width: 100%;
	min-width: auto;
	align-items: center;
	gap: 6px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
	margin-top: auto;
}

.wpbdp-category-page .eh-card-rating,
.wpbdp-main-page .eh-card-rating,
.businessdirectory-category .eh-card-rating {
	margin-bottom: 4px;
}

.wpbdp-category-page .eh-card-location,
.wpbdp-category-page .eh-card-institution,
.wpbdp-main-page .eh-card-location,
.wpbdp-main-page .eh-card-institution,
.businessdirectory-category .eh-card-location,
.businessdirectory-category .eh-card-institution {
	margin-bottom: 2px;
	font-size: 13px;
}

/* Buttons side by side */
.wpbdp-category-page .eh-card-actions,
.wpbdp-main-page .eh-card-actions,
.businessdirectory-category .eh-card-actions {
	width: 100%;
	flex-direction: row;
	gap: 10px;
	margin-top: 12px;
}

.wpbdp-category-page .eh-btn-view,
.wpbdp-category-page .eh-btn-edit,
.wpbdp-main-page .eh-btn-view,
.wpbdp-main-page .eh-btn-edit,
.businessdirectory-category .eh-btn-view,
.businessdirectory-category .eh-btn-edit {
	flex: 1;
	min-height: 40px;
	font-size: 14px;
}

/* Responsive - single column on smaller screens */
@media (max-width: 768px) {
	.wpbdp-category-page .wpbdp-listings-list,
	.wpbdp-main-page .wpbdp-listings-list,
	.businessdirectory-category .wpbdp-listings-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* =========================================================
   LIST VIEW - Horizontal Card Layout (Default)
   ========================================================= */

.eh-search-results.eh-view-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eh-search-results.eh-view-list .eh-listing-card {
	margin-bottom: 0;
}

/* List view uses default horizontal card layout */
.eh-search-results.eh-view-list .eh-card-inner {
	flex-direction: row;
	align-items: flex-start;
}

.eh-search-results.eh-view-list .eh-card-logo {
	width: 150px;
	height: 150px;
	align-self: flex-start;
}

.eh-search-results.eh-view-list .eh-card-content {
	text-align: left;
	align-items: flex-start;
}

.eh-search-results.eh-view-list .eh-badge-verified {
	margin: 0 0 6px 0;
}

.eh-search-results.eh-view-list .eh-card-title {
	font-size: 34px;
}

.eh-search-results.eh-view-list .eh-card-url {
	justify-content: flex-start;
}

.eh-search-results.eh-view-list .eh-card-tags {
	justify-content: flex-start;
}

.eh-search-results.eh-view-list .eh-card-meta {
	width: auto;
	min-width: 30% !important;
	align-items: flex-end;
	padding-top: 0;
	border-top: none;
}

.eh-search-results.eh-view-list .eh-card-actions {
	flex-direction: row;
	gap: 8px;
}

.eh-search-results.eh-view-list .eh-btn-view,
.eh-search-results.eh-view-list .eh-btn-edit {
	flex: none;
	min-height: 36px;
	font-size: 13px;
}

/* =========================================================
   LIST VIEW for Category Listings
   ========================================================= */

.wpbdp-listings-list.eh-view-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpbdp-listings-list.eh-view-list .eh-listing-card {
	margin-bottom: 0;
}

/* List view uses default horizontal card layout */
.wpbdp-listings-list.eh-view-list .eh-card-inner {
	flex-direction: row;
	align-items: flex-start;
}

.wpbdp-listings-list.eh-view-list .eh-card-logo {
	width: 150px;
	height: 150px;
	align-self: flex-start;
}

.wpbdp-listings-list.eh-view-list .eh-card-content {
	text-align: left;
	align-items: flex-start;
}

.wpbdp-listings-list.eh-view-list .eh-badge-verified {
	margin: 0 0 6px 0;
}

.wpbdp-listings-list.eh-view-list .eh-card-title {
	font-size: 34px;
}

.wpbdp-listings-list.eh-view-list .eh-card-url {
	justify-content: flex-start;
}

.wpbdp-listings-list.eh-view-list .eh-card-tags {
	justify-content: flex-start;
}

.wpbdp-listings-list.eh-view-list .eh-card-meta {
	width: auto;
	min-width: 30% !important;
	align-items: flex-end;
	padding-top: 0;
	border-top: none;
}

.wpbdp-listings-list.eh-view-list .eh-card-actions {
	flex-direction: row;
	gap: 8px;
}

.wpbdp-listings-list.eh-view-list .eh-btn-view,
.wpbdp-listings-list.eh-view-list .eh-btn-edit {
	flex: none;
	min-height: 36px;
	font-size: 13px;
}

/* =========================================================
   COUNTRY LISTINGS PAGE
   ========================================================= */

.wpbdp-page .eh-country-layout {
	display: flex !important;
	gap: 24px;
	max-width: 100%;
	margin: 0 auto;
}

.wpbdp-page .eh-country-sidebar {
	display: block !important;
	width: 280px;
	flex-shrink: 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	height: fit-content;
	position: sticky;
	top: 20px;
	box-sizing: border-box;
}

.wpbdp-page .eh-country-main {
	flex: 1;
	min-width: 0;
	display: block !important;
}

.eh-country-header {
	text-align: center;
	margin-bottom: 32px;
	padding: 24px 0;
}

.eh-country-title {
	font-size: 32px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px 0;
}

.eh-country-subtitle {
	font-size: 16px;
	color: #6b7280;
	margin: 0;
}

.eh-country-filter {
	margin-top: 16px;
}

.eh-country-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eh-country-item {
	margin: 0;
	border-bottom: 1px solid #f3f4f6;
}

.eh-country-item:last-child {
	border-bottom: none;
}

.eh-country-link {
	display: block;
	padding: 12px 16px;
	color: #374151;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.2s ease;
	font-size: 14px;
}

.eh-country-link:hover {
	background: #f3f4f6;
	color: #2563eb;
}

.eh-country-item.active .eh-country-link {
	background: #eff6ff;
	color: #2563eb;
	font-weight: 600;
}

.eh-country-results {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.eh-country-results.eh-view-list .eh-listing-card {
	margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
	.eh-search-layout,
	.wpbdp-page .eh-country-layout {
		flex-direction: column !important;
		width: 100% !important;
	}

	.eh-search-sidebar,
	.wpbdp-page .eh-country-sidebar {
		width: 100% !important;
		position: static;
	}

	/* All listing cards - stack layout */
	.eh-listing-card .eh-card-inner,
	.eh-search-results .eh-card-inner,
	.eh-country-results .eh-card-inner,
	.wpbdp-listings-list .eh-card-inner {
		flex-direction: column !important;
		gap: 12px;
	}

	/* Smaller logo for all cards */
	.eh-listing-card .eh-card-logo,
	.eh-search-results .eh-card-logo,
	.eh-country-results .eh-card-logo,
	.wpbdp-listings-list .eh-card-logo {
		width: 100px !important;
		height: 100px !important;
		min-height: auto !important;
		align-self: flex-start;
	}

	/* Smaller title */
	.eh-listing-card .eh-card-title,
	.eh-search-results .eh-card-title,
	.eh-country-results .eh-card-title,
	.wpbdp-listings-list .eh-card-title {
		font-size: 24px !important;
		line-height: 1.3;
	}

	/* Meta section full width */
	.eh-listing-card .eh-card-meta,
	.eh-search-results .eh-card-meta,
	.eh-country-results .eh-card-meta,
	.wpbdp-listings-list .eh-card-meta {
		align-items: flex-start !important;
		width: 100% !important;
		min-width: auto !important;
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid #f3f4f6;
	}

	/* Actions row layout */
	.eh-listing-card .eh-card-actions,
	.eh-search-results .eh-card-actions,
	.eh-country-results .eh-card-actions,
	.wpbdp-listings-list .eh-card-actions {
		flex-direction: row;
		width: 100%;
	}

	/* Category and main pages responsive */
	.wpbdp-category-page,
	.wpbdp-main-page,
	.businessdirectory-category,
	.businessdirectory-main {
		width: 95%;
	}

	/* Switch grid to single column on tablet */
	.wpbdp-category-page .wpbdp-listings-list,
	.wpbdp-main-page .wpbdp-listings-list,
	.wpbdp-main-page #wpbdp-listings-list,
	.businessdirectory-category .wpbdp-listings-list,
	.businessdirectory-main .wpbdp-listings-list {
		grid-template-columns: 1fr !important;
		gap: 16px;
	}

	.wpbdp-category-page .eh-card-inner,
	.wpbdp-main-page .eh-card-inner,
	.businessdirectory-category .eh-card-inner,
	.businessdirectory-main .eh-card-inner {
		flex-direction: column;
		gap: 12px;
	}

	.wpbdp-category-page .eh-card-logo,
	.wpbdp-main-page .eh-card-logo,
	.businessdirectory-category .eh-card-logo,
	.businessdirectory-main .eh-card-logo {
		width: 80px;
		height: 80px;
		min-height: auto;
	}

	.wpbdp-category-page .eh-card-title,
	.wpbdp-main-page .eh-card-title,
	.businessdirectory-category .eh-card-title,
	.businessdirectory-main .eh-card-title {
		font-size: 18px;
	}

	.wpbdp-category-page .eh-card-meta,
	.wpbdp-main-page .eh-card-meta,
	.businessdirectory-category .eh-card-meta,
	.businessdirectory-main .eh-card-meta {
		align-items: flex-start;
		width: 100%;
		min-width: auto;
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid #f3f4f6;
	}

	.wpbdp-category-page .eh-card-actions,
	.wpbdp-main-page .eh-card-actions,
	.businessdirectory-category .eh-card-actions,
	.businessdirectory-main .eh-card-actions {
		flex-direction: row;
		width: 100%;
	}
}

@media (max-width: 640px) {
	.eh-search-sidebar,
	.wpbdp-page .eh-country-sidebar {
		padding: 16px;
	}

	.eh-country-title {
		font-size: 24px;
	}

	/* All listing cards - compact padding */
	.eh-listing-card,
	.eh-search-results .eh-listing-card,
	.eh-country-results .eh-listing-card,
	.wpbdp-listings-list .eh-listing-card {
		padding: 14px;
	}

	/* Compact logo */
	.eh-listing-card .eh-card-logo,
	.eh-search-results .eh-card-logo,
	.eh-country-results .eh-card-logo,
	.wpbdp-listings-list .eh-card-logo {
		width: 70px !important;
		height: 70px !important;
		min-height: auto !important;
	}

	.eh-card-logo-placeholder {
		font-size: 18px;
	}

	/* Compact title */
	.eh-listing-card .eh-card-title,
	.eh-search-results .eh-card-title,
	.eh-country-results .eh-card-title,
	.wpbdp-listings-list .eh-card-title {
		font-size: 18px !important;
		margin-bottom: 4px;
	}

	/* Better URL wrapping */
	.eh-listing-card .eh-card-url,
	.eh-search-results .eh-card-url,
	.eh-country-results .eh-card-url,
	.wpbdp-listings-list .eh-card-url {
		font-size: 11px;
		word-break: break-all;
		line-height: 1.3;
	}

	/* Compact description */
	.eh-listing-card .eh-card-description,
	.eh-search-results .eh-card-description,
	.eh-country-results .eh-card-description,
	.wpbdp-listings-list .eh-card-description {
		font-size: 13px;
		line-height: 1.4;
		margin-bottom: 8px;
	}

	/* Compact tags */
	.eh-card-tags {
		gap: 4px;
	}

	.eh-tag {
		font-size: 10px;
		padding: 2px 6px;
	}

	/* Full width actions - stacked vertically */
	.eh-listing-card .eh-card-actions,
	.eh-search-results .eh-card-actions,
	.eh-country-results .eh-card-actions,
	.wpbdp-listings-list .eh-card-actions {
		flex-direction: column;
		width: 100%;
		gap: 6px;
	}

	.eh-card-actions .eh-btn {
		/* width: 100%; */
		justify-content: center;
		font-size: 12px;
		padding: 8px 10px;
		min-height: 36px;
		box-sizing: border-box;
	}

	/* Category and main pages mobile styles - horizontal layout like search results */
	.wpbdp-category-page .eh-listing-card,
	.wpbdp-main-page .eh-listing-card,
	.businessdirectory-category .eh-listing-card,
	.businessdirectory-main .eh-listing-card {
		padding: 12px;
	}

	/* Switch to horizontal layout on mobile (logo left, content right) */
	.wpbdp-category-page .eh-card-inner,
	.wpbdp-main-page .eh-card-inner,
	.businessdirectory-category .eh-card-inner,
	.businessdirectory-main .eh-card-inner {
		flex-direction: row !important;
		flex-wrap: wrap;
		gap: 12px;
		align-items: flex-start;
	}

	.wpbdp-category-page .eh-card-logo,
	.wpbdp-main-page .eh-card-logo,
	.businessdirectory-category .eh-card-logo,
	.businessdirectory-main .eh-card-logo {
		width: 70px !important;
		height: 70px !important;
		min-height: auto !important;
		align-self: flex-start;
	}

	/* Content takes remaining space */
	.wpbdp-category-page .eh-card-content,
	.wpbdp-main-page .eh-card-content,
	.businessdirectory-category .eh-card-content,
	.businessdirectory-main .eh-card-content {
		flex: 1;
		min-width: 0;
		text-align: left;
		align-items: flex-start;
	}

	.wpbdp-category-page .eh-badge-verified,
	.wpbdp-main-page .eh-badge-verified,
	.businessdirectory-category .eh-badge-verified,
	.businessdirectory-main .eh-badge-verified {
		margin: 0 0 6px 0;
	}

	.wpbdp-category-page .eh-card-title,
	.wpbdp-main-page .eh-card-title,
	.businessdirectory-category .eh-card-title,
	.businessdirectory-main .eh-card-title {
		font-size: 18px !important;
		text-align: left;
	}

	.wpbdp-category-page .eh-card-url,
	.wpbdp-main-page .eh-card-url,
	.businessdirectory-category .eh-card-url,
	.businessdirectory-main .eh-card-url {
		justify-content: flex-start;
	}

	.wpbdp-category-page .eh-card-tags,
	.wpbdp-main-page .eh-card-tags,
	.businessdirectory-category .eh-card-tags,
	.businessdirectory-main .eh-card-tags {
		justify-content: flex-start;
	}

	/* Meta full width below content */
	.wpbdp-category-page .eh-card-meta,
	.wpbdp-main-page .eh-card-meta,
	.businessdirectory-category .eh-card-meta,
	.businessdirectory-main .eh-card-meta {
		width: 100% !important;
		min-width: auto !important;
		align-items: flex-start;
		margin-top: 8px;
		padding-top: 8px;
		border-top: 1px solid #f3f4f6;
	}

	.wpbdp-category-page .eh-card-actions,
	.wpbdp-main-page .eh-card-actions,
	.businessdirectory-category .eh-card-actions,
	.businessdirectory-main .eh-card-actions {
		flex-direction: column;
		gap: 6px;
		width: 100%;
	}

	.wpbdp-category-page .eh-card-actions .eh-btn,
	.wpbdp-main-page .eh-card-actions .eh-btn,
	.businessdirectory-category .eh-card-actions .eh-btn,
	.businessdirectory-main .eh-card-actions .eh-btn {
		/* width: 100%; */
	}
}

/* =========================================================
   Small Mobile Breakpoint (480px and below)
   ========================================================= */

@media (max-width: 480px) {
	/* All listing cards - extra compact */
	.eh-listing-card,
	.eh-search-results .eh-listing-card,
	.eh-country-results .eh-listing-card,
	.wpbdp-listings-list .eh-listing-card {
		padding: 12px;
	}

	.eh-listing-card .eh-card-inner,
	.eh-search-results .eh-card-inner,
	.eh-country-results .eh-card-inner,
	.wpbdp-listings-list .eh-card-inner {
		gap: 10px;
	}

	/* Smallest logo */
	.eh-listing-card .eh-card-logo,
	.eh-search-results .eh-card-logo,
	.eh-country-results .eh-card-logo,
	.wpbdp-listings-list .eh-card-logo {
		width: 156px !important;
		height: 156px !important;
		min-height: auto !important;
	}

	.eh-card-logo-placeholder {
		font-size: 16px;
	}

	.eh-card-badge-verified {
		font-size: 10px;
		padding: 2px 6px;
	}

	/* Smallest title */
	.eh-listing-card .eh-card-title,
	.eh-search-results .eh-card-title,
	.eh-country-results .eh-card-title,
	.wpbdp-listings-list .eh-card-title {
		font-size: 16px !important;
		margin-bottom: 4px;
		line-height: 1.3;
	}

	/* Smallest URL */
	.eh-listing-card .eh-card-url,
	.eh-search-results .eh-card-url,
	.eh-country-results .eh-card-url,
	.wpbdp-listings-list .eh-card-url {
		font-size: 10px;
		margin-bottom: 4px;
		line-height: 1.3;
	}

	/* Compact description */
	.eh-listing-card .eh-card-description,
	.eh-search-results .eh-card-description,
	.eh-country-results .eh-card-description,
	.wpbdp-listings-list .eh-card-description {
		font-size: 12px;
		margin-bottom: 6px;
		line-height: 1.4;
	}

	/* Compact tags */
	.eh-card-tags {
		gap: 3px;
	}

	.eh-tag {
		font-size: 9px;
		padding: 2px 5px;
	}

	/* Compact meta */
	.eh-listing-card .eh-card-meta,
	.eh-search-results .eh-card-meta,
	.eh-country-results .eh-card-meta,
	.wpbdp-listings-list .eh-card-meta {
		margin-top: 8px;
		padding-top: 8px;
		gap: 4px;
	}

	.eh-card-rating svg {
		width: 12px;
		height: 12px;
	}

	.eh-card-location,
	.eh-card-institution {
		font-size: 11px;
	}

	/* Stacked buttons */
	.eh-listing-card .eh-card-actions,
	.eh-search-results .eh-card-actions,
	.eh-country-results .eh-card-actions,
	.wpbdp-listings-list .eh-card-actions {
		flex-direction: column;
		width: 100%;
		gap: 4px;
	}

	.eh-card-actions .eh-btn {
		/* width: 100%; */
		font-size: 11px;
		padding: 6px 10px;
		min-height: 32px;
		box-sizing: border-box;
	}

	/* Grid pages on smallest screens - compact horizontal layout */
	.wpbdp-category-page .eh-listing-card,
	.wpbdp-main-page .eh-listing-card,
	.businessdirectory-category .eh-listing-card,
	.businessdirectory-main .eh-listing-card {
		padding: 10px;
	}

	.wpbdp-category-page .eh-card-inner,
	.wpbdp-main-page .eh-card-inner,
	.businessdirectory-category .eh-card-inner,
	.businessdirectory-main .eh-card-inner {
		gap: 10px;
	}

	.wpbdp-category-page .eh-card-logo,
	.wpbdp-main-page .eh-card-logo,
	.businessdirectory-category .eh-card-logo,
	.businessdirectory-main .eh-card-logo {
		width: 60px !important;
		height: 60px !important;
	}

	.wpbdp-category-page .eh-card-title,
	.wpbdp-main-page .eh-card-title,
	.businessdirectory-category .eh-card-title,
	.businessdirectory-main .eh-card-title {
		font-size: 16px !important;
	}

	.wpbdp-category-page .eh-card-actions,
	.wpbdp-main-page .eh-card-actions,
	.businessdirectory-category .eh-card-actions,
	.businessdirectory-main .eh-card-actions {
		flex-direction: column;
		gap: 4px;
	}

	.wpbdp-category-page .eh-card-actions .eh-btn,
	.wpbdp-main-page .eh-card-actions .eh-btn,
	.businessdirectory-category .eh-card-actions .eh-btn,
	.businessdirectory-main .eh-card-actions .eh-btn {
		/* width: 100%; */
		font-size: 11px;
		padding: 6px 10px;
		min-height: 32px;
	}
}

/* =========================================================
   Featured Websites Carousel Widget
   ========================================================= */

.eh-featured-carousel-wrapper {
    width: 100%;
}

.eh-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.eh-carousel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eh-carousel-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.eh-carousel-subtitle {
    font-size: 14px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
}

.eh-carousel-view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.eh-carousel-view-all:hover {
    color: #1d4ed8;
}

.eh-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eh-carousel-swiper {
    flex: 1;
    overflow: hidden;
}

.eh-carousel-swiper .swiper-wrapper {
    align-items: stretch;
}

.eh-carousel-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.eh-carousel-swiper .swiper-slide > .eh-carousel-card {
    width: 100%;
}

.eh-carousel-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.eh-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.eh-carousel-image-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f9fafb;
    flex-shrink: 0;
}

.eh-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.eh-carousel-card:hover .eh-carousel-image {
    transform: scale(1.05);
}

.eh-carousel-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    font-weight: 700;
}

.eh-carousel-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fef3c7;
    color: #d97706;
}

.eh-carousel-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eh-carousel-category {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.eh-carousel-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.eh-carousel-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px 0;
    flex: 1;
}

.eh-carousel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.eh-carousel-stars {
    display: flex;
    gap: 2px;
}

.eh-carousel-stars .eh-star {
    width: 14px;
    height: 14px;
}

.eh-carousel-stars .eh-star.filled,
.eh-carousel-stars .eh-star.half {
    color: #fbbf24;
}

.eh-carousel-stars .eh-star.empty {
    color: #e5e7eb;
}

.eh-carousel-rating-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.eh-carousel-review-count {
    font-size: 13px;
    color: #9ca3af;
}

.eh-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    transition: all 0.2s;
    margin-top: auto;
}

.eh-carousel-btn:hover {
    background: #dbeafe;
}

.eh-carousel-btn svg {
    flex-shrink: 0;
}

.eh-carousel-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 100;
    position: relative;
    pointer-events: auto;
}

.eh-carousel-nav:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.eh-carousel-nav:disabled,
.eh-carousel-nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.eh-carousel-nav svg {
    stroke: #374151;
}

.eh-carousel-nav i {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arrow Position: Top */
.eh-carousel-nav-wrapper.eh-nav-top {
    display: flex;
    gap: 8px;
    align-items: center;
}

.eh-carousel-header .eh-nav-top {
    margin-left: auto;
}

.eh-nav-no-header {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

/* Arrow Position: Bottom */
.eh-carousel-nav-wrapper.eh-nav-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.eh-arrow-bottom .eh-carousel-container {
    flex-direction: column;
}

.eh-arrow-bottom .eh-carousel-container .eh-carousel-nav {
    display: none;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #2563eb;
}

/* Latest Articles Widget
----------------------------------------------- */
.eh-latest-articles {
    width: 100%;
}

.eh-articles-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.eh-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.eh-articles-grid.eh-columns-1 {
    grid-template-columns: 1fr;
}

.eh-articles-grid.eh-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.eh-articles-grid.eh-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.eh-articles-grid.eh-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .eh-articles-grid.eh-columns-3,
    .eh-articles-grid.eh-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .eh-articles-grid,
    .eh-articles-grid.eh-columns-2,
    .eh-articles-grid.eh-columns-3,
    .eh-articles-grid.eh-columns-4 {
        grid-template-columns: 1fr;
    }
}

.eh-article-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.eh-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.eh-article-image-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.eh-article-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.eh-article-card:hover .eh-article-image-wrap img {
    transform: scale(1.05);
}

.eh-article-content {
    padding: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eh-article-badge {
    display: inline-flex;
    align-self: flex-start;
    background: #2563eb;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: -12px 20px 0 20px;
    position: relative;
    z-index: 2;
}

.eh-article-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 12px 20px 8px 20px;
    line-height: 1.4;
}

.eh-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.eh-article-title a:hover {
    color: #2563eb;
}

.eh-article-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 20px 12px 20px;
    flex: 1;
}

.eh-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 20px;
    font-size: 12px;
    color: #9ca3af;
}

.eh-article-date,
.eh-article-read-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.eh-article-meta svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Pagination Styles
----------------------------------------------- */
.eh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
    gap: 8px;
    flex-wrap: wrap;
}

.eh-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eh-pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.eh-pagination .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.eh-pagination .prev,
.eh-pagination .next {
    padding: 0 16px;
}

.eh-pagination .prev .eh-prev-icon,
.eh-pagination .next .eh-next-icon {
    font-size: 12px;
}

.eh-pagination .prev .eh-prev-icon {
    margin-right: 4px;
}

.eh-pagination .next .eh-next-icon {
    margin-left: 4px;
}

.eh-pagination .dots {
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

/* WPBDP Default Pagination Override */
.wpbdp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
    gap: 8px;
}

.wpbdp-pagination .prev,
.wpbdp-pagination .next {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wpbdp-pagination .prev:hover,
.wpbdp-pagination .next:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.wpbdp-pagination span.prev,
.wpbdp-pagination span.next {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hide default BD pagination on search results page (we use custom numbered pagination) */
.eh-search-results-page .wpbdp-pagination {
    display: none !important;
}

/* All Categories Grid Styles
----------------------------------------------- */
#wpbdp-all-categories {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.eh-categories-header {
    text-align: center;
    margin-bottom: 50px;
}

.eh-categories-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.eh-categories-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.eh-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.eh-category-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.eh-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.eh-category-card-link {
    display: block;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
}

.eh-category-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.eh-category-icon {
    font-size: 28px;
    line-height: 1;
}

.eh-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.eh-category-default-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.eh-category-content {
    flex: 1;
}

.eh-category-name {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
	text-decoration: none !important;
}

.eh-category-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
    min-height: 42px;
}

.eh-category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.eh-category-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.eh-category-arrow {
    font-size: 18px;
    color: #2563eb;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.eh-category-card:hover .eh-category-arrow {
    transform: translateX(4px);
}

.eh-no-categories {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.eh-no-categories p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Responsive Pagination
----------------------------------------------- */
@media (max-width: 640px) {
    .eh-pagination {
        gap: 4px;
    }

    .eh-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .eh-pagination .prev,
    .eh-pagination .next {
        padding: 0 12px;
        font-size: 13px;
    }

    .eh-pagination .prev span,
    .eh-pagination .next span {
        display: none;
    }
}

/* ============================================================
   Posts Grid Layout - 3 Column Cards
   ============================================================ */

.posts-grid-main {
    padding: 40px 20px;
    max-width: 90% !important;
    margin: 0 auto;
}

.posts-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
	width: 90% !important;
	margin: auto;
}

/* Post Card Styles */
.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
    line-height: 1;
}

.post-card__content {
    padding: 20px;
}

.post-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.post-card__title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card__title a:hover {
    color: #3b82f6;
}

.post-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 16px;
}

.post-card__excerpt p {
    margin: 0;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.post-card__meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

.post-card__date,
.post-card__reading-time {
    display: inline-flex;
    align-items: center;
}

/* Pagination */
.posts-grid-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.posts-grid-pagination a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.posts-grid-pagination a:hover {
    background: #eff6ff;
}

.posts-grid-pagination .meta-nav {
    margin: 0 4px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .posts-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .posts-grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-card__image {
        height: 220px;
    }

    .post-card__title {
        font-size: 20px;
    }

    .posts-grid-main {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .post-card__image {
        height: 180px;
    }

    .post-card__title {
        font-size: 18px;
    }

    .post-card__content {
        padding: 16px;
    }
}

/* ============================================================
   Single Blog Post Template - Professional Design
   ============================================================ */

.single.single-post .single-blog-main {
    max-width: 90% !important;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Hero Section */
.single.single-post .single-blog__hero {
    text-align: center;
    padding: 60px 0 40px;
    max-width: 800px;
    margin: 0 auto;
}

.single.single-post .single-blog__category {
    display: inline-block;
    margin-bottom: 16px;
}

.single.single-post .single-blog__category a {
    display: inline-block;
    background: #3b82f6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.single.single-post .single-blog__category a:hover {
    background: #2563eb;
}

.single.single-post .single-blog__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.single.single-post .single-blog__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.single.single-post #comments {
    max-width: 800px;
    margin: auto;
}

.single.single-post .single-blog__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single.single-post .single-blog__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.single.single-post .single-blog__author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.single.single-post .single-blog__author-name a {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.single.single-post .single-blog__author-name a:hover {
    color: #3b82f6;
}

.single.single-post .single-blog__author-role {
    font-size: 13px;
    color: #9ca3af;
}

.single.single-post .single-blog__meta-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

.single.single-post .single-blog__meta-details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.single.single-post .single-blog__meta-details .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

.single.single-post .single-blog__date,
.single.single-post .single-blog__reading-time {
    display: inline-flex;
    align-items: center;
}

/* Featured Image */
.single.single-post .single-blog__featured-image {
    margin: 0 -20px 50px;
    border-radius: 16px;
    overflow: hidden;
}

.single.single-post .single-blog__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Wrapper */
.single.single-post .single-blog__content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Article Content */
.single.single-post .single-blog__content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.single.single-post .single-blog__content p {
    margin-bottom: 24px;
}

.single.single-post .single-blog__content h2,
.single.single-post .single-blog__content h3,
.single.single-post .single-blog__content h4 {
    font-weight: 700;
    color: #1f2937;
    margin: 40px 0 20px;
    line-height: 1.4;
}

.single.single-post .single-blog__content h2 {
    font-size: 28px;
}

.single.single-post .single-blog__content h3 {
    font-size: 24px;
}

.single.single-post .single-blog__content h4 {
    font-size: 20px;
}

.single.single-post .single-blog__content img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.single.single-post .single-blog__content a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single.single-post .single-blog__content a:hover {
    color: #2563eb;
}

.single.single-post .single-blog__content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4b5563;
}

.single.single-post .single-blog__content ul,
.single.single-post .single-blog__content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.single.single-post .single-blog__content li {
    margin-bottom: 8px;
}

/* Taxonomies */
.single.single-post .single-blog__taxonomies {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.single.single-post .single-blog__taxonomy {
    margin-bottom: 12px;
}

.single.single-post .single-blog__taxonomy-label {
    font-weight: 600;
    color: #1f2937;
    margin-right: 8px;
}

.single.single-post .single-blog__taxonomy a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single.single-post .single-blog__taxonomy a:hover {
    color: #3b82f6;
}

/* Share Buttons */
.single.single-post .single-blog__share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.single.single-post .single-blog__share-label {
    font-weight: 600;
    color: #1f2937;
}

.single.single-post .single-blog__share-buttons {
    display: flex;
    gap: 10px;
}

.single.single-post .single-blog__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.single.single-post .single-blog__share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.single.single-post .single-blog__share-btn--facebook {
    background: #1877f2;
}

.single.single-post .single-blog__share-btn--twitter {
    background: #1da1f2;
}

.single.single-post .single-blog__share-btn--linkedin {
    background: #0a66c2;
}

.single.single-post .single-blog__share-btn--email {
    background: #6b7280;
}

/* Author Bio */
.single.single-post .single-blog__author-bio {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
}

.single.single-post .single-blog__author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
}

.single.single-post .single-blog__author-bio-content {
    flex: 1;
}

.single.single-post .single-blog__author-bio-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.single.single-post .single-blog__author-bio-text {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.single.single-post .single-blog__author-bio-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

.single.single-post .single-blog__author-bio-link:hover {
    color: #2563eb;
}

.single.single-post .single-blog__author-bio-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

/* Post Navigation */
.single.single-post .single-blog__navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

.single.single-post .single-blog__nav-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single.single-post .single-blog__nav-link:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.single.single-post .single-blog__nav-link--next {
    text-align: right;
}

.single.single-post .single-blog__nav-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.single.single-post .single-blog__nav-link--next .single-blog__nav-label {
    flex-direction: row-reverse;
}

.single.single-post .single-blog__nav-label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.single.single-post .single-blog__nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.single.single-post .single-blog__nav-link:hover .single-blog__nav-title {
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .single.single-post .single-blog__hero {
        padding: 40px 0 30px;
    }

    .single.single-post .single-blog__title {
        font-size: 28px;
    }

    .single.single-post .single-blog__meta {
        flex-direction: column;
    }

    .single.single-post .single-blog__meta-divider {
        display: none;
    }

    .single.single-post .single-blog__featured-image {
        margin: 0 -16px 40px;
        border-radius: 0;
    }

    .single.single-post .single-blog__content {
        font-size: 16px;
    }

    .single.single-post .single-blog__share {
        flex-direction: column;
        align-items: flex-start;
    }

    .single.single-post .single-blog__author-bio {
        flex-direction: column;
        text-align: center;
    }

    .single.single-post .single-blog__author-bio-avatar {
        margin: 0 auto;
    }

    .single.single-post .single-blog__navigation {
        grid-template-columns: 1fr;
    }

    .single.single-post .single-blog__nav-link--next {
        text-align: left;
    }

    .single.single-post .single-blog__nav-link--next .single-blog__nav-label {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .single.single-post .single-blog__title {
        font-size: 24px;
    }

    .single.single-post .single-blog__content h2 {
        font-size: 22px;
    }

    .single.single-post .single-blog__content h3 {
        font-size: 20px;
    }
}
