/**
 * Frontend styles for WP Domain Directory
 *
 * @package WP_Domain_Directory
 * @since 1.0.0
 */

/* Override Astra Theme Constraints */
.ast-container .wp-domain-directory-overview,
.ast-content-layout .wp-domain-directory-overview,
.site-content .wp-domain-directory-overview,
.entry-content .wp-domain-directory-overview {
	max-width: 1600px !important;
	width: 100% !important;
	background: #ffffff !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.ast-container .wp-domain-directory-table-container,
.ast-content-layout .wp-domain-directory-table-container,
.site-content .wp-domain-directory-table-container,
.entry-content .wp-domain-directory-table-container {
	max-width: none !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Universal Font Family for ALL Plugin Elements */
.wp-domain-directory-overview,
.wp-domain-directory-overview *,
.wp-domain-directory-table-container,
.wp-domain-directory-table-container *,
.wp-domain-directory-collection-page,
.wp-domain-directory-collection-page *,
.wp-domain-directory-item-page,
.wp-domain-directory-item-page *,
.wp-domain-directory-domains-table,
.wp-domain-directory-domains-table *,
.wp-domain-directory-collections-table,
.wp-domain-directory-collections-table *,
.wp-domain-directory-item-pages-table,
.wp-domain-directory-item-pages-table *,
.collection-header,
.collection-header *,
.item-header,
.item-header *,
.domains-list,
.domains-list *,
.item-pages-list,
.item-pages-list *,
.wp-domain-directory-domain-link,
.wp-domain-directory-collection-link,
.wp-domain-directory-item-page-link,
.domain-link {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Collections Overview */
.wp-domain-directory-overview {
	max-width: 1600px !important;
	margin: 0 auto !important;
	padding: 20px 20px 0 20px !important;
	background: #ffffff !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Remove bottom margin from last element */
.wp-domain-directory-overview > *:last-child {
	margin-bottom: 0 !important;
}

/* Force Consistent Font Properties Across Websites */
.wp-domain-directory-overview *,
.wp-domain-directory-table-container *,
.wp-domain-directory-collection-page *,
.wp-domain-directory-item-page * {
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Force Standard Font Weights */
.wp-domain-directory-domain-link,
.wp-domain-directory-collection-link,
.wp-domain-directory-item-page-link,
.domain-link {
	font-weight: 400 !important;
	font-style: normal !important;
}

.wp-domain-directory-overview h1 {
	font-size: 2em !important;
	font-weight: 600 !important;
	margin-bottom: 30px !important;
	color: #333 !important;
	text-align: center !important;
	border-bottom: 3px solid #0073aa !important;
	padding-bottom: 10px !important;
	line-height: 1.2 !important;
}

/* Table Container */
.wp-domain-directory-overview .wp-domain-directory-table-container,
.wp-domain-directory-table-container {
	background: #fff !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
	padding: 25px !important;
	margin-bottom: 0 !important;
	overflow-x: auto !important;
	width: 100% !important;
	max-width: none !important;
}

/* Collections Table - Updated */
.wp-domain-directory-collections-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 auto;
}

.wp-domain-directory-collections-table td {
	padding: 3px;
	text-align: center;
	border: 1px solid #e1e1e1;
	vertical-align: middle;
	min-width: 25px;
	min-height: 25px;
	height: 25px;
	font-size: 12px;
}

/* Alternating row colors for collections table */
.wp-domain-directory-collections-table tr:nth-child(odd) td {
	background: #ffffff;
}

.wp-domain-directory-collections-table tr:nth-child(even) td {
	background: #f0f2f5;
}

.wp-domain-directory-collection-cell {
	transition: all 0.3s ease;
}

.wp-domain-directory-collection-cell:hover {
	background: #e8f4fd !important;
	transform: scale(1.05);
}

.wp-domain-directory-collection-cell.empty {
	background: #f5f5f5;
	border: 1px dashed #ccc;
}

.wp-domain-directory-collection-link {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	font-weight: normal;
	font-family: monospace;
	font-size: 1.1em;
	display: block;
	width: 100%;
	height: 100%;
	line-height: 30px;
	transition: all 0.3s ease;
}

.wp-domain-directory-collection-link:hover {
	color: #003d82;
	text-decoration: underline;
	text-decoration-color: #003d82;
	background: #e8f4fd;
}

/* Responsive Design */
@media (max-width: 768px) {
	.wp-domain-directory-overview {
		padding: 10px;
	}
	
	.wp-domain-directory-overview h1 {
		font-size: 1.5em;
		margin-bottom: 20px;
	}
	
	.wp-domain-directory-table-container {
		padding: 15px;
	}
	
	.wp-domain-directory-collections-table td {
		padding: 4px 3px;
		min-width: 30px;
		height: 35px;
		font-size: 0.9em;
	}
	
	.wp-domain-directory-item-pages-table td,
	.wp-domain-directory-domains-table td {
		padding: 10px 5px;
		min-width: 60px;
		height: 40px;
		font-size: 0.9em;
	}
	
	.wp-domain-directory-collection-link,
	.wp-domain-directory-item-page-link,
	.wp-domain-directory-domain-link {
		font-size: 0.9em;
		line-height: 30px;
	}
}

@media (max-width: 480px) {
	.wp-domain-directory-collections-table td {
		padding: 3px 2px;
		min-width: 25px;
		height: 28px;
		font-size: 0.8em;
	}
	
	.wp-domain-directory-item-pages-table td,
	.wp-domain-directory-domains-table td {
		padding: 8px 3px;
		min-width: 50px;
		height: 30px;
		font-size: 0.8em;
	}
	
	.wp-domain-directory-collection-link,
	.wp-domain-directory-item-page-link,
	.wp-domain-directory-domain-link {
		font-size: 0.8em;
		line-height: 24px;
	}
}

/* Pagination */
.wp-domain-directory-pagination {
	margin: 20px 0;
	padding: 5px;
	text-align: center;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.pagination {
	display: inline-flex;
	gap: 5px;
	align-items: center;
}

.pagination a,
.pagination span {
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	color: #0056b3;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.pagination a:hover {
	background: #0056b3;
	color: #fff;
	border-color: #0056b3;
	text-decoration: none;
}

.pagination .current {
	background: #0056b3;
	color: #fff;
	border-color: #0056b3;
	text-decoration: none;
}

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

/* Back to Collection Link */
.back-to-collection {
	margin-top: 15px;
	margin-bottom: 0;
	text-align: center;
}

.back-to-collection-link {
	display: inline-block;
	padding: 8px 16px;
	background: #f8f9fa;
	color: #495057;
	text-decoration: none;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	font-size: 0.9em;
	transition: all 0.2s ease;
	line-height: 1.2;
	white-space: nowrap;
	height: auto;
	min-height: auto;
	margin-bottom: 0;
	vertical-align: top;
}

.back-to-collection-link:hover {
	background: #e9ecef;
	color: #212529;
	text-decoration: none;
	border-color: #adb5bd;
}

/* Fix for br tags that might be added by theme */
.back-to-collection-link br {
	display: none !important;
}

/* Remove extra spacing after pagination */
.wp-domain-directory-pagination + p:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
}

/* Remove any empty paragraphs that might be added after pagination */
.wp-domain-directory-pagination ~ p:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
}

/* More aggressive rule for empty paragraphs after pagination */
.wp-domain-directory-pagination + *:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
}

/* Targeted rules to remove only unwanted spacing after pagination */
.wp-domain-directory-pagination .back-to-collection {
	margin-bottom: 0;
}

.wp-domain-directory-pagination .back-to-collection-link {
	margin-bottom: 0;
}

/* Hide only empty elements that come immediately after pagination */
.wp-domain-directory-pagination + p:empty {
	margin-top: 0;
	padding-top: 0;
}

/* Hide empty paragraphs after pagination */
div.wp-domain-directory-pagination + p:empty {
	display: none;
}

/* Hide empty paragraphs inside pagination */
.wp-domain-directory-pagination p:empty {
	display: none;
}

/* Additional fix for WordPress content processing issues */
.wp-domain-directory-pagination:last-child {
	margin-bottom: 0;
}

/* Ensure back-to-collection is the last element in pagination with no bottom spacing */
.wp-domain-directory-pagination .back-to-collection:last-child {
	margin-bottom: 0;
}

/* Ensure pagination div has no bottom margin when followed by empty elements */
.wp-domain-directory-pagination:has(+ *:empty) {
	margin-bottom: 0 !important;
}


/* Hide any br tags that might be added after the back-to-collection link */
.back-to-collection + br,
.back-to-collection ~ br {
	display: none;
}


/* Ensure pagination doesn't have excessive bottom margin when followed by banner */
.wp-domain-directory-pagination:has(+ .wp-domain-directory-banner-bottom) {
	margin-bottom: 10px;
}


/* Collection Page */
.wp-domain-directory-collection-page {
	max-width: 1600px !important;
	margin: 0 auto !important;
	padding: 20px !important;
	background: #ffffff !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Item Pages Table */
.wp-domain-directory-item-pages-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 auto;
}

.wp-domain-directory-item-pages-table td {
	padding: 15px;
	text-align: center;
	border: 1px solid #e1e1e1;
	vertical-align: middle;
	min-width: 80px;
	min-height: 40px;
	height: 40px;
}

/* Alternating row colors for item pages table */
.wp-domain-directory-item-pages-table tr:nth-child(odd) td {
	background: #ffffff;
}

.wp-domain-directory-item-pages-table tr:nth-child(even) td {
	background: #f0f2f5;
}

.wp-domain-directory-item-page-cell {
	transition: all 0.3s ease;
}

.wp-domain-directory-item-page-cell:hover {
	background: #e8f4fd !important;
	transform: scale(1.05);
}

.wp-domain-directory-item-page-cell.empty {
	background: #f5f5f5;
	border: 1px dashed #ccc;
}

.wp-domain-directory-item-page-link {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	font-weight: normal;
	font-size: 0.9em;
	display: block;
	width: 100%;
	height: 100%;
	line-height: 30px;
	transition: all 0.3s ease;
}

.wp-domain-directory-item-page-link:hover {
	color: #003d82;
	text-decoration: underline;
	text-decoration-color: #003d82;
	background: #e8f4fd;
}

/* Domains Table */
.wp-domain-directory-domains-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 auto;
}

.wp-domain-directory-domains-table td {
	padding: 15px;
	text-align: center;
	border: 1px solid #e1e1e1;
	vertical-align: middle;
	min-width: 80px;
	min-height: 40px;
	height: 40px;
}

/* Alternating row colors for domains table */
.wp-domain-directory-domains-table tr:nth-child(odd) td {
	background: #ffffff;
}

.wp-domain-directory-domains-table tr:nth-child(even) td {
	background: #f0f2f5;
}

.wp-domain-directory-domain-cell {
	transition: all 0.3s ease;
}

.wp-domain-directory-domain-cell:hover {
	background: #e8f4fd !important;
	transform: scale(1.05);
}

.wp-domain-directory-domain-cell.empty {
	background: #f5f5f5;
	border: 1px dashed #ccc;
}

.wp-domain-directory-domain-link {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	font-weight: normal;
	font-size: 0.9em;
	display: block;
	width: 100%;
	height: 100%;
	line-height: 30px;
	transition: all 0.3s ease;
	word-break: break-word;
}

.wp-domain-directory-domain-link:hover {
	color: #003d82;
	text-decoration: underline;
	text-decoration-color: #003d82;
	background: #e8f4fd;
}

.collection-header {
	text-align: center;
	margin-bottom: 10px;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 6px;
}

.collection-header h1 {
	font-size: 1.8em;
	margin: 0 0 5px 0;
	color: #333;
}

.collection-description {
	font-size: 0.9em;
	color: #6c757d;
	margin-bottom: 8px;
	line-height: 1.4;
}

.collection-meta {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

.collection-meta span {
	background: #fff;
	padding: 4px 12px;
	border-radius: 15px;
	border: 1px solid #dee2e6;
	font-size: 0.8em;
}

.item-pages-list h2 {
	font-size: 1.8em;
	margin-bottom: 25px;
	color: #333;
}

.item-pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.item-page {
	padding: 20px;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	transition: box-shadow 0.3s ease;
}

.item-page:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-page h3 {
	margin: 0 0 10px 0;
	font-size: 1.1em;
}

.item-page h3 a {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	transition: color 0.3s ease;
}

.item-page h3 a:hover {
	color: #003d82;
	text-decoration-color: #003d82;
}

.item-description {
	color: #6c757d;
	margin: 10px 0;
	line-height: 1.5;
}

.item-meta {
	display: flex;
	gap: 15px;
	margin-top: 15px;
	font-size: 0.9em;
	color: #6c757d;
}

.page-number {
	background: #e9ecef;
	padding: 4px 8px;
	border-radius: 4px;
}

/* Item Page */
.wp-domain-directory-item-page {
	max-width: 1600px !important;
	margin: 0 auto !important;
	padding: 20px !important;
	background: #ffffff !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.breadcrumb {
	margin-bottom: 30px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	font-size: 0.9em;
}

.breadcrumb a {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
}

.breadcrumb a:hover {
	color: #003d82;
	text-decoration-color: #003d82;
}

.item-header {
	text-align: center;
	margin-bottom: 10px;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 6px;
}

.item-header h1 {
	font-size: 1.8em;
	margin: 0 0 5px 0;
	color: #333;
}

.item-description {
	font-size: 0.9em;
	color: #6c757d;
	margin-bottom: 8px;
	line-height: 1.4;
}

.item-meta {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

.item-meta span {
	background: #fff;
	padding: 4px 12px;
	border-radius: 15px;
	border: 1px solid #dee2e6;
	font-size: 0.8em;
}

.domains-list h2 {
	font-size: 1.8em;
	margin-bottom: 25px;
	color: #333;
}

.domains-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
}

.domain-item {
	padding: 20px;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	transition: box-shadow 0.3s ease;
}

.domain-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.domain-item h3 {
	margin: 0 0 10px 0;
	font-size: 1.2em;
}

.domain-item h3 a {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	transition: color 0.3s ease;
}

.domain-item h3 a:hover {
	color: #003d82;
	text-decoration-color: #003d82;
}

.domain-url {
	margin-top: 10px;
	font-size: 0.9em;
}

.domain-url a {
	color: #495057;
	text-decoration: underline;
	text-decoration-color: #495057;
	text-underline-offset: 2px;
	word-break: break-all;
}

.domain-url a:hover {
	color: #0056b3;
	text-decoration-color: #0056b3;
}

/* Meta Description Styling */
.wp-domain-directory-meta-description {
	background: #f8f9fa;
	border-left: 4px solid #007cba;
	padding: 20px;
	margin: 20px 0;
	border-radius: 4px;
}

.wp-domain-directory-meta-description p {
	margin: 0;
	color: #6c757d;
	font-size: 1.1em;
	line-height: 1.6;
	font-style: italic;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.wp-domain-directory-overview,
	.wp-domain-directory-collection-page,
	.wp-domain-directory-item-page {
		padding: 15px;
	}
	
	.collection-header,
	.item-header {
		padding: 6px;
		margin-bottom: 8px;
	}
	
	.collection-header h1,
	.item-header h1 {
		font-size: 1.5em;
		margin-bottom: 4px;
	}
	
	.collection-meta,
	.item-meta {
		flex-direction: column;
		gap: 8px;
	}
	
	.item-pages-grid,
	.domains-grid {
		grid-template-columns: 1fr;
	}
	
	.pagination {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.back-to-collection {
		margin-top: 10px;
		margin-bottom: 0;
	}
	
	.back-to-collection-link {
		padding: 6px 12px;
		font-size: 0.8em;
	}
}

@media screen and (max-width: 480px) {
	.collection-header h1,
	.item-header h1 {
		font-size: 1.2em;
		margin-bottom: 3px;
	}
	
	.collection-header,
	.item-header {
		padding: 5px;
		margin-bottom: 6px;
	}
	
	.wp-domain-directory-overview h1 {
		font-size: 1.5em;
	}
	
	.back-to-collection {
		margin-top: 8px;
		margin-bottom: 0;
	}
	
	.back-to-collection-link {
		padding: 5px 10px;
		font-size: 0.75em;
	}
	
	.item-pages-list h2,
	.domains-list h2 {
		font-size: 1.3em;
	}
}

/* Hide WordPress default elements for custom post types */
.domain_collection .entry-meta,
.domain_item .entry-meta,
.domain_collection .byline,
.domain_item .byline,
.domain_collection .entry-date,
.domain_item .entry-date,
.domain_collection .entry-author,
.domain_item .entry-author,
.domain_collection .post-date,
.domain_item .post-date,
.domain_collection .post-author,
.domain_item .post-author,
.domain_collection .post-meta,
.domain_item .post-meta {
	display: none !important;
}

/* Hide specific "Written by" text */
.domain_collection .entry-meta .byline,
.domain_item .entry-meta .byline,
.domain_collection .byline,
.domain_item .byline {
	display: none !important;
}

/* Hide post categories and tags */
.domain_collection .entry-categories,
.domain_item .entry-categories,
.domain_collection .entry-tags,
.domain_item .entry-tags,
.domain_collection .post-categories,
.domain_item .post-categories,
.domain_collection .post-tags,
.domain_item .post-tags {
	display: none !important;
}

/* Hide edit links */
.domain_collection .edit-link,
.domain_item .edit-link,
.domain_collection .post-edit-link,
.domain_item .post-edit-link {
	display: none !important;
}

/* Domain Directory Tables */
.wp-domain-directory-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 8px;
	margin: 20px 0;
}

.wp-domain-directory-table th,
.wp-domain-directory-table td {
	padding: 12px 16px;
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	text-align: center;
	vertical-align: middle;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	min-width: 60px;
	min-height: 50px;
}

/* Compact styling for collections table (shortcode) */
.wp-domain-directory-collections-table {
	border-spacing: 4px;
}

.wp-domain-directory-collections-table td {
	padding: 2px 4px;
	min-width: 20px;
	min-height: 20px;
	font-size: 11px;
}

.wp-domain-directory-collections-table .collection-link {
	font-size: 13px;
	line-height: 1.2;
}

/* Compact styling for item pages table (collection pages) */
.wp-domain-directory-item-pages-table {
	border-spacing: 4px;
}

.wp-domain-directory-item-pages-table td {
	padding: 6px 12px;
	min-height: 40px;
	height: 40px;
	font-size: 14px;
}

.wp-domain-directory-item-pages-table .collection-link {
	font-size: 13px;
	line-height: 1.2;
}

/* Compact styling for domains table (item pages) */
.wp-domain-directory-domains-table {
	border-spacing: 4px;
}

.wp-domain-directory-domains-table td {
	padding: 6px 12px;
	min-height: 40px;
	height: 40px;
	font-size: 14px;
}

.wp-domain-directory-domains-table .domain-link {
	font-size: 13px;
	line-height: 1.2;
}

.wp-domain-directory-table th {
	background: #f8f9fa;
	font-weight: 600;
	color: #495057;
	border-color: #dee2e6;
}

.wp-domain-directory-table td {
	background: #ffffff;
}

.wp-domain-directory-table td:hover {
	background: #f8f9fa;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Empty cells styling */
.wp-domain-directory-table td.empty {
	background: #f8f9fa;
	border: 1px dashed #dee2e6;
	opacity: 0.6;
}

.wp-domain-directory-table td.empty:hover {
	background: #f8f9fa;
	transform: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Collection Links */
.wp-domain-directory-table .collection-link {
	display: inline-block;
	padding: 8px 16px;
	background: #0056b3;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.wp-domain-directory-table .collection-link:hover {
	background: #003d82;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Domain Links */
.wp-domain-directory-table .domain-link {
	color: #0056b3;
	text-decoration: underline;
	text-decoration-color: #0056b3;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.wp-domain-directory-table .domain-link:hover {
	color: #003d82;
	text-decoration-color: #003d82;
}

/* Table container styling */
.wp-domain-directory-table-container {
	margin: 20px 0;
	padding: 20px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
/* Banner Styling */
.wp-domain-directory-banner {
	text-align: center;
	margin: 0;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
}

/* Advertisement Label */
.wp-domain-directory-banner-label {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(0, 0, 0, 0.8);
	color: #ffffff;
	font-size: 10px;
	font-weight: bold;
	line-height: 14px;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 10;
	font-family: Arial, sans-serif !important;
	font-style: normal !important;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Ensure banner labels are identical in top and bottom banners */
.wp-domain-directory-banner-top .wp-domain-directory-banner-label,
.wp-domain-directory-banner-bottom .wp-domain-directory-banner-label {
	font-size: 10px !important;
	font-weight: bold !important;
	line-height: 14px !important;
	font-family: Arial, sans-serif !important;
	font-style: normal !important;
	background: rgba(0, 0, 0, 0.8) !important;
	color: #ffffff !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.wp-domain-directory-banner-top {
	margin-top: 20px;
	margin-bottom: 20px;
}

.wp-domain-directory-banner-bottom {
	margin-top: 20px;
	margin-bottom: 0 !important;
	padding: 15px !important;
}

/* Reduce top margin when banner follows pagination */
.wp-domain-directory-pagination + .wp-domain-directory-banner-bottom {
	margin-top: 10px !important;
}

/* Ensure banner background consistency within WordPress theme wrappers */
.entry-content .wp-domain-directory-banner,
.post .wp-domain-directory-banner,
.hentry .wp-domain-directory-banner {
	background: #f9f9f9 !important;
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.wp-domain-directory-banner img {
	max-width: 728px;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 4px;
	transition: opacity 0.3s ease;
}

.wp-domain-directory-banner a:hover img {
	opacity: 0.9;
}

/* Responsive banner styling */
@media (max-width: 768px) {
	.wp-domain-directory-banner img {
		max-width: 100%;
		height: auto;
	}
	
	.wp-domain-directory-banner {
		margin: 15px 0;
		padding: 10px;
	}
	
	.wp-domain-directory-banner-bottom {
		padding: 10px !important;
	}
	
	.wp-domain-directory-banner-label {
		font-size: 9px;
		line-height: 12px;
		padding: 1px 4px;
		top: 3px;
		right: 3px;
	}
}

@media (max-width: 480px) {
	.wp-domain-directory-banner {
		margin: 10px 0;
		padding: 8px;
		border-radius: 4px;
	}
	
	.wp-domain-directory-banner-bottom {
		padding: 8px !important;
	}
	
	.wp-domain-directory-banner-top {
		margin-top: 20px;
		margin-bottom: 20px;
	}
	
	.wp-domain-directory-banner-bottom {
		margin-top: 20px;
	}
	
	/* Reduce top margin when banner follows pagination on mobile */
	.wp-domain-directory-pagination + .wp-domain-directory-banner-bottom {
		margin-top: 10px !important;
	}
	
	.wp-domain-directory-banner-label {
		font-size: 8px;
		line-height: 11px;
		padding: 1px 3px;
		top: 2px;
		right: 2px;
		letter-spacing: 0.3px;
	}
}

@media (max-width: 768px) {
	.wp-domain-directory-table {
		border-spacing: 4px;
	}
	
	.wp-domain-directory-table th,
	.wp-domain-directory-table td {
		padding: 8px 12px;
		font-size: 14px;
		min-width: 50px;
		min-height: 40px;
	}
	
	/* Mobile compact styling for collections table only */
	.wp-domain-directory-collections-table td {
		padding: 1px 2px;
		min-width: 15px;
		min-height: 18px;
		font-size: 10px;
	}
	
	/* Mobile compact styling for other tables */
	.wp-domain-directory-item-pages-table td,
	.wp-domain-directory-domains-table td {
		padding: 4px 8px;
		min-height: 30px;
		font-size: 12px;
	}
	
	.wp-domain-directory-table-container {
		padding: 15px;
		margin: 15px 0;
	}
}

/* Copyright Footer Styling - Make Astra WordPress Theme text black */
.site-footer .copyright a,
.site-footer .copyright span,
.ast-footer-copyright a,
.ast-footer-copyright span,
footer .copyright a,
footer .copyright span,
.copyright a,
.copyright span {
	color: #000000 !important;
}

/* More specific targeting for Astra theme copyright */
.site-footer .copyright,
.ast-footer-copyright,
footer .copyright,
.copyright {
	color: #000000 !important;
}

/* Target links within copyright text specifically */
.site-footer .copyright a,
.ast-footer-copyright a,
footer .copyright a,
.copyright a {
	color: #000000 !important;
	text-decoration: none !important;
}

.site-footer .copyright a:hover,
.ast-footer-copyright a:hover,
footer .copyright a:hover,
.copyright a:hover {
	color: #000000 !important;
	text-decoration: underline !important;
}
