/* ═══════════════════════════════════════════════════════════
   Showcase Hub - Homepage Showcase Page Styling
   Modern Almowafir-Inspired Design with RTL Support
   ═══════════════════════════════════════════════════════════ */

/* ── Full-width layout override for Showcase page ── */
body:has(.ht-showcase-hub) .container {
	max-width: 1100px;
}
body:has(.ht-showcase-hub) #site-container {
	max-width: 1100px;
}
body:has(.ht-showcase-hub) #primary {
	padding-left: 0;
	padding-right: 0;
}
body:has(.ht-showcase-hub) .ht-showcase-hub {
	padding: 0;
}

/* ── Modern Header Section (Almowafir-inspired) ── */
.ht-showcase-hub .ht-showcase-header-modern {
	position: relative;
	padding: 20px 20px 16px;
	background: linear-gradient(135deg, var(--ht-primary-light) 0%, var(--ht-primary-dark) 100%);
	color: white;
	text-align: center;
	overflow: hidden;
}

.ht-showcase-header-modern .ht-hero-deco {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.08;
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="p" x="0" y="0" width="120" height="120" patternUnits="userSpaceOnUse"><circle cx="60" cy="60" r="40" fill="white" opacity="0.5"/></pattern></defs><rect width="1200" height="600" fill="url(%23p)"/></svg>');
}

.ht-showcase-header-modern .ht-hero-content {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
}

.ht-showcase-header-modern__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 4px 0;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.ht-showcase-header-modern__sub {
	font-size: 18px;
	opacity: 0.9;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

/* Hero CTA Buttons */
.ht-hero-ctas {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ht-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.ht-hero-btn--primary {
	background: var(--ht-accent, #b9a779);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ht-hero-btn--primary:hover {
	background: var(--ht-accent-dark, #988561);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ht-hero-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.ht-hero-btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   Featured Showcase Section - Logo Grid & Promo Banner (Compact)
   ═══════════════════════════════════════════════════════════ */
.ht-featured-showcase {
	padding: 12px 20px;
	background: linear-gradient(to bottom, #ffffff 0%, #f5f7fa 100%);
}

.ht-featured-showcase-wrap {
	max-width: 1300px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 14px;
	align-items: stretch;
}

.ht-logos-section {
	display: flex;
	align-items: center;
	order: 2;
}

[dir="rtl"] .ht-logos-section {
	order: 1;
}

.ht-logos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 8px;
	justify-items: stretch;
	align-items: center;
	width: 100%;
}

.ht-logo-card {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	background: white;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 8px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	cursor: pointer;
}

.ht-logo-card:hover {
	border-color: var(--ht-primary-light);
	box-shadow: 0 6px 16px rgba(var(--ht-primary-rgb), 0.2);
	transform: translateY(-3px);
}

.ht-logo-card img {
	max-width: 85%;
	max-height: 85%;
	object-fit: contain;
}

/* ─────────────────────────────────────────────────────────── */
.ht-special-offer-banner {
	background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA500 100%);
	border-radius: 14px;
	padding: 24px 20px;
	color: white;
	text-align: center;
	box-shadow: 0 8px 24px rgba(255, 107, 107, 0.18);
	overflow: hidden;
	position: relative;
	order: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

[dir="rtl"] .ht-special-offer-banner {
	order: 2;
}

.ht-special-offer-banner::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -10%;
	width: 200px;
	height: 200px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	z-index: 0;
	animation: float-pulse 6s ease-in-out infinite;
}

.ht-special-offer-banner::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -8%;
	width: 160px;
	height: 160px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 50%;
	z-index: 0;
	animation: float-pulse 8s ease-in-out infinite reverse;
}

@keyframes float-pulse {
	0%, 100% { transform: translateY(0px) scale(1); }
	50% { transform: translateY(15px) scale(1.02); }
}

.ht-offer-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.25);
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 10px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	position: relative;
	z-index: 1;
}

.ht-offer-title {
	position: relative;
	z-index: 1;
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 4px 0;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.ht-offer-desc {
	position: relative;
	z-index: 1;
	font-size: 18px;
	opacity: 0.92;
	margin: 0 0 12px 0;
	line-height: 1.4;
}

.ht-offer-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: white;
	color: #FF6B6B;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13px;
	transition: all 0.3s ease;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	border: 2px solid white;
}

.ht-offer-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	background: #FFF5F5;
}

/* ═══════════════════════════════════════════════════════════
   Category Navigation - Circular Designs with Gradients
   ═══════════════════════════════════════════════════════════ */
.ht-category-nav {
	padding: 16px 20px;
	background: white;
}

.ht-category-nav .ht-section-title {
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 14px;
	color: #333;
	letter-spacing: -0.5px;
}

.ht-circular-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
	justify-content: center;
	gap: 10px;
	max-width: 1300px;
	margin: 0 auto;
}

.ht-circular-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 8px 12px;
	background: #fafbfc;
	border: 1px solid #e8ecf0;
	border-radius: 12px;
	text-decoration: none;
	color: #333;
	transition: all 0.25s ease;
	cursor: pointer;
	text-align: center;
	position: relative;
	max-width: 200px;
}

.ht-circular-cat:hover {
	border-color: var(--ht-primary-light, #5a9e8f);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
	background: #fff;
}

.ht-circular-cat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #f0f2f5;
	color: #555;
	border-radius: 10px;
	flex-shrink: 0;
	font-size: 18px;
	margin-bottom: 6px;
	transition: all 0.25s ease;
}

.ht-circular-cat:hover .ht-circular-cat__icon {
	background: var(--ht-primary-lighter, #e8f1ef);
	color: var(--ht-primary, #054239);
	transform: scale(1.08);
}

.ht-circular-cat__label {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	color: #444;
	transition: color 0.25s ease;
}

.ht-circular-cat:hover .ht-circular-cat__label {
	color: var(--ht-primary, #054239);
}

.ht-circular-cat__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 18px;
	padding: 0 6px;
	margin-top: 5px;
	font-size: 10px;
	font-weight: 700;
	color: #888;
	background: #eef0f3;
	border-radius: 9px;
	line-height: 1;
	transition: all 0.25s ease;
}

.ht-circular-cat:hover .ht-circular-cat__count {
	background: var(--ht-primary, #054239);
	color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   Comparison Table Section (Compact)
   ═══════════════════════════════════════════════════════════ */
.ht-showcase-hub .ht-compare-table-wrap {
	padding: 16px 20px;
	background: linear-gradient(to bottom, #f5f7fa 0%, #ffffff 100%);
}

.ht-table-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
}

.ht-table-toolbar .ht-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	margin: 0;
	color: #333;
}

.ht-table-toolbar__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ht-table-search {
	flex: 1;
	min-width: 200px;
	padding: 10px 16px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.3s;
}

.ht-table-search:focus {
	outline: none;
	border-color: var(--ht-primary-light);
}

.ht-table-scroll {
	overflow-x: auto;
	max-width: 1300px;
	margin: 0 auto;
	border-radius: 8px;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ht-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ht-compare-table thead {
	background: #f5f5f5;
	border-bottom: 2px solid #ddd;
}

.ht-compare-table th {
	padding: 10px 8px;
	text-align: left;
	font-weight: 600;
	color: #555;
	white-space: nowrap;
}

.ht-compare-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s;
}

.ht-compare-table tbody tr:hover {
	background-color: #f9f9f9;
}

.ht-compare-table tbody tr.ht-row-selected {
	background-color: #e8f1ff;
}

.ht-compare-table td {
	padding: 8px 8px;
	vertical-align: middle;
}

.ht-th-check,
.ht-td-check {
	width: 40px;
	text-align: center;
}

.ht-th-check input,
.ht-td-check input {
	cursor: pointer;
}

.ht-cmp-provider {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.ht-cmp-provider img {
	width: 24px;
	height: 24px;
	border-radius: 4px;
}

.ht-cmp-provider a {
	color: var(--ht-primary);
	text-decoration: none;
	font-weight: 600;
}

.ht-cmp-provider a:hover {
	text-decoration: underline;
}

.ht-cmp-rating {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
}

.ht-cmp-rating--high {
	background: #d4edda;
	color: #155724;
}

.ht-cmp-rating--mid {
	background: #fff3cd;
	color: #856404;
}

.ht-cmp-rating--low {
	background: #f8d7da;
	color: #721c24;
}

.ht-sortable {
	cursor: pointer;
	user-select: none;
	position: relative;
	padding-right: 20px;
}

.ht-sort-arrow {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.5;
	transition: opacity 0.2s;
}

.ht-sortable:hover .ht-sort-arrow {
	opacity: 0.8;
}

.ht-sortable.ht-sorted-asc .ht-sort-arrow::after {
	content: '▲';
	color: var(--ht-primary);
}

.ht-sortable.ht-sorted-desc .ht-sort-arrow::after {
	content: '▼';
	color: var(--ht-primary);
}

.ht-cmp-btn {
	display: inline-block;
	padding: 6px 12px;
	background: var(--ht-primary);
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.2s;
}

.ht-cmp-btn:hover {
	background: var(--ht-primary-dark);
	box-shadow: 0 2px 6px rgba(var(--ht-primary-rgb), 0.3);
}

/* ═══════════════════════════════════════════════════════════
   Showcase Sections (Latest Reviews - Compact)
   ═══════════════════════════════════════════════════════════ */
.ht-showcase-sections {
	max-width: 1300px;
	margin: 0 auto;
	padding: 16px 20px;
	background: white;
}

.ht-latest-reviews .ht-section-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 20px;
	margin-bottom: 12px;
	color: #333;
}

.ht-reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}

.ht-review-card-sm {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: #f9f9f9;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
}

.ht-review-card-sm:hover {
	border-color: var(--ht-primary-light);
	box-shadow: 0 4px 12px rgba(var(--ht-primary-rgb), 0.12);
	background: white;
	transform: translateY(-2px);
}

.ht-review-card-sm img,
.ht-provider-initial {
	width: 38px;
	height: 40px;
	border-radius: 6px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ht-primary-light) 0%, var(--ht-primary) 100%);
	color: white;
	font-weight: 600;
	font-size: 16px;
	overflow: hidden;
}

.ht-review-card-sm__body {
	flex: 1;
	min-width: 0;
}

.ht-review-card-sm__body strong {
	display: block;
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ht-review-card-sm__meta {
	display: block;
	font-size: 12px;
	color: #888;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ht-review-card-sm__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}

.ht-review-card-sm__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--ht-primary);
	font-weight: 600;
}

.ht-review-card-sm__date {
	font-size: 12px;
	color: #bbb;
}

/* ═══════════════════════════════════════════════════════════
   Page Content Section (Compact)
   ═══════════════════════════════════════════════════════════ */
.ht-showcase-section.ht-page-content {
	max-width: 1300px;
	margin: 0 auto;
	padding: 24px 20px;
	background: white;
}

.ht-showcase-section.ht-page-content .entry-content {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

/* ═══════════════════════════════════════════════════════════
   FAQ Section
   ═══════════════════════════════════════════════════════════ */
.ht-faq-section {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.ht-faq-section .ht-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 18px;
	color: #333;
}

.ht-faq-list {
	max-width: 800px;
	margin: 0 auto;
}

.ht-faq-item {
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	margin-bottom: 8px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.ht-faq-item:hover {
	border-color: #c7d2fe;
}

.ht-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 18px;
	background: #fafafa;
	border: none;
	font-weight: 600;
	font-size: 15px;
	color: #333;
	cursor: pointer;
	text-align: left;
	transition: background 0.2s;
	font-family: inherit;
}

[dir="rtl"] .ht-faq-q {
	text-align: right;
}

.ht-faq-q:hover {
	background: #f0f0f0;
}

.ht-faq-q svg {
	flex-shrink: 0;
	color: #999;
	transition: transform 0.3s;
}

.ht-faq-item.ht-faq--open .ht-faq-q svg {
	transform: rotate(180deg);
}

.ht-faq-a {
	display: none;
	padding: 0 18px 14px;
	background: #fafafa;
}

.ht-faq-item.ht-faq--open .ht-faq-a {
	display: block;
}

.ht-faq-a p {
	color: #666;
	line-height: 1.7;
	font-size: 14px;
	margin: 0;
}

@media (max-width: 900px) {
	.ht-featured-showcase-wrap {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ht-logos-section,
	[dir="rtl"] .ht-logos-section {
		order: auto;
	}

	.ht-special-offer-banner,
	[dir="rtl"] .ht-special-offer-banner {
		order: auto;
	}

	.ht-logos-grid {
		grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	}
}

@media (max-width: 768px) {
	.ht-showcase-header-modern__title {
		font-size: 20px;
	}

	.ht-showcase-header-modern__sub {
		font-size: 12px;
	}

	.ht-logos-grid {
		grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
		gap: 6px;
	}

	.ht-logo-card {
		padding: 6px;
	}

	.ht-special-offer-banner {
		padding: 18px 16px;
	}

	.ht-offer-title {
		font-size: 18px;
	}

	.ht-offer-desc {
		font-size: 12px;
	}

	.ht-circular-categories {
		grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
		gap: 8px;
	}

	.ht-circular-cat {
		padding: 12px 6px 10px;
	}

	.ht-circular-cat__icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
		margin-bottom: 5px;
	}

	.ht-circular-cat__label {
		font-size: 11px;
	}

	.ht-table-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.ht-table-toolbar .ht-section-title {
		justify-content: flex-start;
	}

	.ht-table-toolbar__actions {
		flex-direction: column;
	}

	.ht-table-search {
		min-width: 100%;
	}

	.ht-compare-table {
		font-size: 11px;
	}

	.ht-compare-table th,
	.ht-compare-table td {
		padding: 8px 6px;
	}

	.ht-review-card-sm {
		gap: 8px;
		padding: 10px;
	}

	.ht-reviews-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ht-showcase-sections {
		padding: 18px 15px;
	}
}

@media (max-width: 480px) {
	.ht-showcase-header-modern {
		padding: 14px 12px;
	}

	.ht-showcase-header-modern__title {
		font-size: 18px;
		gap: 4px;
	}

	.ht-showcase-header-modern__sub {
		font-size: 11px;
		margin-bottom: 8px;
	}

	.ht-hero-btn {
		padding: 8px 16px;
		font-size: 12px;
	}
	}

	.ht-featured-showcase {
		padding: 10px 12px;
	}

	.ht-featured-showcase-wrap {
		gap: 8px;
	}

	.ht-logos-grid {
		grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
		gap: 5px;
	}

	.ht-logo-card {
		padding: 4px;
	}

	.ht-special-offer-banner {
		padding: 16px 12px;
	}

	.ht-offer-title {
		font-size: 16px;
	}

	.ht-offer-badge {
		padding: 3px 8px;
		font-size: 9px;
	}

	.ht-circular-categories {
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
		gap: 6px;
	}

	.ht-circular-cat {
		padding: 10px 4px 8px;
	}

	.ht-circular-cat__icon {
		width: 36px;
		height: 36px;
	}

	.ht-circular-cat__label {
		font-size: 10px;
	}

	.ht-circular-cat__count {
		font-size: 9px;
		min-width: 20px;
		height: 16px;
	}

	.ht-category-nav {
		padding: 14px 12px;
	}

	.ht-category-nav .ht-section-title {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.ht-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ht-faq-q {
		padding: 10px 12px;
		font-size: 12px;
	}

	.ht-faq-a {
		padding: 0 12px 10px;
	}
}
