/* 
 * ==============================================================================
 * HEADER STYLES
 * ============================================================================== 
 */

/* Top Bar */
.top-bar {
	background-color: var(--alsalam-background);
	border-bottom: 1px solid var(--alsalam-border);
	padding: 0.8rem 0;
	font-size: 0.95rem; font-weight: 500;
	min-height: 45px; /* Reserve space to prevent CLS */
	contain: layout style; /* Prevent layout thrashing */
}

.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.top-bar-right, .top-bar-left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.top-bar-right span, .top-bar-left a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--alsalam-text-light);
}

.top-bar-left ul {
	display: flex;
	gap: 1rem;
}

.top-bar-left a:hover {
	color: var(--alsalam-primary);
}

/* Main Header */
.main-header {
	background-color: var(--alsalam-surface);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow-sm);
	min-height: 90px; /* Reserve space to prevent CLS */
}

.main-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	gap: 2rem;
}

.site-branding {
	flex-shrink: 0;
	min-width: 150px; /* Reserve space for logo */
	min-height: 70px; /* Reserve space for logo */
}
.site-branding img {
	max-height: 70px;
	width: auto;
	max-width: 250px;
	object-fit: contain;
	aspect-ratio: auto;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--alsalam-primary);
}

/* Primary Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}
.main-navigation ul {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.main-navigation a {
	color: var(--alsalam-text);
	font-weight: 600;
	padding: 0.8rem 0;
	position: relative;
}

.main-navigation a:hover {
	color: var(--alsalam-primary);
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 0;
	height: 2px;
	background-color: var(--alsalam-primary);
	transition: width var(--transition-fast);
}

.main-navigation a:hover::after {
	width: 100%;
}

/* Header Actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.header-search-toggle, .header-cart-link {
	background: none;
	border: none;
	color: var(--alsalam-text);
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: background-color var(--transition-fast);
}

/* Header Search Modal */
.header-search-form {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.98);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-fast);
}
.header-search-form.active {
	opacity: 1;
	visibility: visible;
}
.header-search-form .container {
	width: 100%;
	max-width: 800px;
	position: relative;
	padding: 0 2rem;
}
.search-form-inner {
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--alsalam-text-light);
	transition: border-color var(--transition-fast);
}
.search-form-inner:focus-within {
	border-color: var(--alsalam-primary);
}
.search-form-inner .search-field {
	flex: 1;
	background: transparent;
	border: none;
	font-size: 2rem;
	padding: 1rem 0;
	color: var(--alsalam-text);
	outline: none;
}
.search-form-inner .search-submit {
	background: transparent;
	border: none;
	color: var(--alsalam-primary);
	cursor: pointer;
	padding: 1rem;
}
.search-form-inner .search-submit svg {
	width: 32px;
	height: 32px;
}
.close-search {
	position: absolute;
	top: -60px;
	right: 2rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--alsalam-text);
	padding: 0.5rem;
	transition: all var(--transition-fast);
}
.close-search svg {
	width: 32px;
	height: 32px;
}
.close-search:hover {
	color: var(--alsalam-primary);
	transform: scale(1.1);
}

.cart-contents-count {
	position: absolute;
	top: 2px;
	right: 2px;
	background-color: var(--alsalam-primary);
	color: white;
	font-size: 0.7rem;
	font-weight: 700;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	white-space: nowrap;
	font-weight: 600;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition-fast);
	border: 2px solid transparent;
}

.btn-primary {
	background-color: var(--alsalam-primary) !important;
	color: var(--alsalam-surface) !important;
}

.btn-primary:hover {
	background-color: var(--alsalam-primary-dark) !important;
	color: var(--alsalam-surface) !important;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 10;
}

.hamburger {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--alsalam-primary);
	transition: all var(--transition-fast);
	position: relative;
}

.hamburger::before, .hamburger::after {
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--alsalam-primary);
	transition: all var(--transition-fast);
	position: absolute;
	left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* 
 * ==============================================================================
 * FOOTER STYLES
 * ============================================================================== 
 */
.site-footer {
	background: linear-gradient(135deg, #1A0B2E 0%, #2D144A 100%);
	color: rgba(255, 255, 255, 0.75);
	margin-top: 4rem;
	position: relative;
	overflow: visible;
}
.site-footer::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--alsalam-accent), var(--alsalam-primary), var(--alsalam-kraft));
}

.footer-main {
	padding: 5rem 0 3rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 3rem;
}

.footer-logo {
	margin-bottom: 1.5rem;
	display: inline-block;
	transition: transform var(--transition-md);
}
.footer-logo:hover {
	transform: translateY(-3px);
}
.footer-logo img {
	max-height: 80px; /* Slightly larger since there's no box */
	object-fit: contain;
	aspect-ratio: auto; /* Reserve space to prevent CLS */
	min-height: 60px; /* Minimum height reservation */
}

.footer-desc {
	margin-bottom: 2rem;
	line-height: 1.8;
	font-size: 1.05rem;
}

.footer-contact-list {
	margin-bottom: 2rem;
}
.footer-contact-list li {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
	font-size: 1.05rem;
}
.footer-contact-list svg {
	color: var(--alsalam-accent);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.05);
	padding: 10px;
	border-radius: 50%;
	box-sizing: content-box;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all var(--transition-fast);
}
.footer-contact-list li:hover svg {
	background: var(--alsalam-accent);
	color: white;
	border-color: var(--alsalam-accent);
}
.footer-contact-list a {
	color: inherit;
	transition: color var(--transition-fast);
}
.footer-contact-list a:hover {
	color: white;
}

.footer-social {
	display: flex;
	gap: 1rem;
}
.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.05);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all var(--transition-md);
}
.footer-social a:hover {
	background-color: var(--alsalam-primary);
	border-color: var(--alsalam-primary);
	color: white;
	transform: translateY(-5px) rotate(8deg);
	box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.footer-widget-title {
	background: linear-gradient(to left, #ffffff, rgba(255,255,255,0.7));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: 1.4rem;
	margin-bottom: 2rem;
	position: relative;
	padding-bottom: 0.75rem;
	font-weight: 700;
	text-shadow: 0 2px 10px rgba(255,255,255,0.1);
}
.footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 50px;
	height: 3px;
	background: linear-gradient(90deg, var(--alsalam-accent), transparent);
	border-radius: 3px;
	box-shadow: 0 2px 4px rgba(var(--alsalam-accent-rgb), 0.3);
}

.footer-links ul li {
	margin-bottom: 1rem;
}
.footer-links a {
	color: rgba(255, 255, 255, 0.75);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: inline-flex;
	align-items: center;
	position: relative;
}
.footer-links a::before {
	content: '\203A';
	margin-left: 0.5rem;
	color: var(--alsalam-accent);
	opacity: 0;
	transform: translateX(-15px);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	font-size: 1.2rem;
}
.footer-links a:hover {
	color: white;
	transform: translateX(-8px);
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.footer-links a:hover::before {
	opacity: 1;
	transform: translateX(0);
	text-shadow: 0 0 10px var(--alsalam-accent);
}

.newsletter-form .form-group {
	display: flex;
	margin-top: 1.5rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-md);
	padding: 0.25rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: border-color var(--transition-fast);
}
.newsletter-form .form-group:focus-within {
	border-color: var(--alsalam-kraft);
}
.newsletter-form input {
	flex: 1;
	padding: 1rem 1.5rem;
	border: none;
	background: transparent;
	color: white;
	outline: none;
}
.newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}
.newsletter-form button {
	border-radius: calc(var(--radius-md) - 2px);
	background-color: var(--alsalam-kraft);
	color: var(--alsalam-primary-dark);
	font-weight: 700;
	padding: 0 1.5rem;
	margin: 0;
	border: none;
	cursor: pointer;
	transition: all var(--transition-fast);
}
.newsletter-form button:hover {
	background-color: white;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 2rem 0;
	text-align: center;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.6);
}

/* Floating WhatsApp */
.floating-whatsapp {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	width: 60px;
	height: 60px;
	background-color: var(--alsalam-success);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	z-index: 1000;
	transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
	transform: scale(1.1);
	color: white;
}

/* 
 * ==============================================================================
 * MEDIA QUERIES
 * ============================================================================== 
 */
@media (max-width: 991px) {
	.top-bar {
		display: none;
	}

	.main-header-inner {
		flex-wrap: nowrap;
		align-items: center;
		gap: 1rem;
	}
	
	.main-navigation {
		display: none; /* Hide on mobile by default, handled by JS later */
	}
	
	.main-navigation.active {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--alsalam-surface);
		padding: 1.5rem;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
		z-index: 999;
	}
	
	.main-navigation.active ul {
		flex-direction: column;
		gap: 1rem;
	}
	
	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		order: -1;
	}

	.header-actions {
		gap: 0.5rem;
	}
	
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	
	/* Blog Grid on Tablet */
	.blog-grid {
		grid-template-columns: 1fr 1fr !important;
	}
}

@media (max-width: 767px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
	
	.header-actions .btn-quote {
		display: none;
	}
	
	/* Blog Grid on Mobile */
	.blog-grid {
		grid-template-columns: 1fr !important;
	}
}
/* HOMEPAGE STYLES */
.section-padding { padding: 5rem 0; }
.section-title { font-size: 2.5rem; color: var(--alsalam-primary); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--alsalam-text-light); margin-bottom: 3rem; }
.text-center { text-align: center; }

/* Hero */
.home-hero { background: var(--alsalam-background); padding: 4rem 0; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-title { font-size: 3.5rem; color: var(--alsalam-primary); margin-bottom: 1.5rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.2rem; color: var(--alsalam-text); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; }
.btn-outline { background: transparent; border: 2px solid var(--alsalam-primary); color: var(--alsalam-primary); }
.btn-outline:hover { background: var(--alsalam-primary); color: var(--alsalam-surface); }
.hero-image-placeholder { width: 100%; height: 400px; min-height: 400px; background: var(--alsalam-kraft); border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }

/* Stats */
.home-stats { background-color: var(--alsalam-primary-dark); color: white; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-icon { margin-bottom: 1rem; color: var(--alsalam-kraft); }
.stat-number { font-size: 2.5rem; font-weight: bold; margin-bottom: 0.5rem; color: white; }
.stat-label { font-size: 1rem; color: rgba(255,255,255,0.8); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { background: var(--alsalam-surface); padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); text-align: center; border: 1px solid var(--alsalam-border); transition: var(--transition-fast); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--alsalam-primary); }
.icon-circle { width: 60px; height: 60px; min-width: 60px; min-height: 60px; background: var(--alsalam-background); border-radius: 50%; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; }
.service-title { color: var(--alsalam-primary); margin-bottom: 1rem; }

/* Timeline */
.timeline-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; text-align: center; margin-top: 3rem; }
.step-number { width: 40px; height: 40px; background: var(--alsalam-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-weight: bold; }

/* Blog Grid */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.blog-card {
	border: 1px solid var(--alsalam-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--alsalam-surface);
	transition: var(--transition-fast);
}
.blog-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-5px);
}
.blog-thumbnail {
	display: block;
}
.blog-thumbnail img, .image-placeholder {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	aspect-ratio: 16 / 9; /* Reserve space to prevent CLS */
}
.image-placeholder {
	background: var(--alsalam-background, #eee);
}
.blog-content {
	padding: 1.5rem;
}
.blog-meta {
	color: var(--alsalam-text-light);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}
.blog-title {
	margin-bottom: 1rem;
}
.blog-title a {
	color: var(--alsalam-primary);
	text-decoration: none;
}
.blog-excerpt {
	color: var(--alsalam-text);
	margin-bottom: 1rem;
}
.read-more {
	color: var(--alsalam-primary);
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
 * SINGLE POST STYLES
 * ========================================================================== */

.single-post-wrapper {
	background: #ffffff;
	border-radius: var(--radius-lg);
	box-shadow: 0 10px 40px rgba(0,0,0,0.05);
	overflow: hidden;
	margin-bottom: 3rem;
}

/* Hero Section */
.single-hero {
	padding: 4rem 3rem 3rem;
	text-align: center;
	background: linear-gradient(to bottom, rgba(var(--alsalam-primary-rgb), 0.03), transparent);
	border-bottom: 1px solid var(--alsalam-border);
}
.post-categories {
	margin-bottom: 1.5rem;
}
.post-categories a {
	display: inline-block;
	background: var(--alsalam-accent);
	color: white;
	padding: 0.4rem 1.2rem;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 700;
	transition: all var(--transition-fast);
}
.post-categories a:hover {
	background: var(--alsalam-primary);
	transform: translateY(-2px);
}
.single-title {
	font-size: 2.5rem;
	color: var(--alsalam-primary);
	margin-bottom: 1.5rem;
	line-height: 1.3;
	font-weight: 800;
}
.single-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	color: var(--alsalam-text-light);
	font-size: 0.95rem;
}
.meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.meta-item svg {
	color: var(--alsalam-accent);
}

/* Thumbnail */
.single-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

/* Content */
.single-content {
	padding: 3rem;
	font-size: 1.15rem;
	line-height: 1.9;
	color: var(--alsalam-text);
}
/* Premium Headings within Post Content */
.single-content h2, .premium-content h2,
.single-content h3, .premium-content h3,
.single-content h4, .premium-content h4 {
	color: var(--alsalam-primary-dark);
	margin-top: 2.5rem;
	margin-bottom: 1.2rem;
	font-weight: 800;
	position: relative;
	padding-right: 1.2rem; /* Space for the decorative bar in RTL */
}

.single-content h2::before, .premium-content h2::before,
.single-content h3::before, .premium-content h3::before,
.single-content h4::before, .premium-content h4::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 70%;
	background: linear-gradient(to bottom, var(--alsalam-accent), var(--alsalam-primary));
	border-radius: 4px;
}

.single-content h2, .premium-content h2 {
	font-size: 1.6rem;
}

.single-content h3, .premium-content h3 {
	font-size: 1.3rem;
}

.single-content h4, .premium-content h4 {
	font-size: 1.15rem;
}
.single-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	margin: 2rem 0;
}
.single-content a {
	color: var(--alsalam-primary);
	text-decoration: underline;
	text-decoration-color: var(--alsalam-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: all var(--transition-fast);
}
.single-content a:hover {
	color: var(--alsalam-accent);
}

/* Footer (Tags & Share) */
.single-footer {
	padding: 2rem 3rem;
	border-top: 1px solid var(--alsalam-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	background-color: #fafafa;
}
.post-tags a {
	display: inline-block;
	background: #eee;
	color: var(--alsalam-text);
	padding: 0.3rem 0.8rem;
	border-radius: 4px;
	font-size: 0.95rem; font-weight: 500;
	margin-left: 0.5rem;
	transition: all var(--transition-fast);
}
.post-tags a:hover {
	background: var(--alsalam-primary);
	color: white;
}
.post-share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.share-title {
	font-weight: 700;
	color: var(--alsalam-primary);
	margin-left: 0.5rem;
}
.share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: white;
	transition: all var(--transition-md);
}
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000000; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Author Box */
.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 3rem;
	background: linear-gradient(135deg, rgba(var(--alsalam-primary-rgb), 0.05), transparent);
	border-top: 1px solid var(--alsalam-border);
}
.author-avatar {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	min-width: 100px;
	min-height: 100px;
	position: relative;
}
.author-avatar img {
	width: 100px !important;
	height: 100px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid white;
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
	display: block;
}
.author-name {
	font-size: 1.4rem;
	color: var(--alsalam-primary);
	margin-bottom: 0.5rem;
	font-weight: 700;
}
.author-bio {
	color: var(--alsalam-text-light);
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
}

/* Post Navigation */
.post-navigation {
	display: flex;
	justify-content: space-between;
	padding: 3rem;
	border-top: 1px solid var(--alsalam-border);
	background: white;
}
.post-navigation > div {
	flex: 1;
}
.nav-next {
	text-align: left;
}
.nav-label {
	display: block;
	font-size: 0.9rem;
	color: var(--alsalam-text-light);
	margin-bottom: 0.5rem;
}
.nav-title {
	display: block;
	font-size: 1.2rem;
	color: var(--alsalam-primary);
	font-weight: 700;
	transition: color var(--transition-fast);
}
.post-navigation a:hover .nav-title {
	color: var(--alsalam-accent);
}

/* Related Posts */
.related-posts {
	padding: 3rem;
	background-color: #fafafa;
	border-top: 1px solid var(--alsalam-border);
}
.related-title {
	font-size: 1.8rem;
	color: var(--alsalam-primary);
	margin-bottom: 2rem;
	text-align: center;
	position: relative;
}
.related-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--alsalam-accent);
	margin: 1rem auto 0;
	border-radius: 3px;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.related-card {
	background: white;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transition: transform var(--transition-fast);
}
.related-card:hover {
	transform: translateY(-5px);
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.03); border: 1px solid #eee; background: #f9f9f9;
}
.related-thumbnail img, .related-thumbnail .image-placeholder {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	aspect-ratio: 16 / 9; /* Reserve space to prevent CLS */
}
.related-post-title {
	padding: 1.5rem 1.5rem 0.5rem;
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.5;
}
.related-post-title a {
	color: var(--alsalam-primary);
	transition: color var(--transition-fast);
}
.related-post-title a:hover {
	color: var(--alsalam-accent);
}
.related-date {
	display: block;
	padding: 0 1.5rem 1.5rem;
	font-size: 0.95rem; font-weight: 500;
	color: var(--alsalam-text-light);
}

/* Comments */
.comments-wrapper {
	padding: 3rem;
	border-top: 1px solid var(--alsalam-border);
}

@media (max-width: 991px) {
	.related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.single-hero, .single-content, .single-footer, .author-box, .post-navigation, .related-posts, .comments-wrapper {
		padding: 2rem 1.5rem;
	}
	.single-title { font-size: 2rem; }
	.single-footer { flex-direction: column; align-items: flex-start; }
	.author-box { flex-direction: column; text-align: center; align-items: center; }
	.post-navigation { flex-direction: column; gap: 2rem; text-align: center; }
	.nav-next { text-align: center; }
	.related-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * BLOG ARCHIVE PREMIUM STYLES
 * ========================================================================== */

/* Category Tabs */
.category-tabs {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0,0,0,0.05);
}
.cat-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.cat-list li a {
	display: block;
	padding: 0.6rem 1.5rem;
	background: white;
	color: var(--alsalam-text);
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	transition: all var(--transition-fast);
}
.cat-list li.active a, .cat-list li a:hover {
	background: var(--alsalam-primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Featured Post */
.featured-post {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	background: white;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.08);
	margin-bottom: 3rem;
	grid-column: 1 / -1; /* Span full width of grid */
}
.featured-thumbnail {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--alsalam-background);
	overflow: hidden;
}
.featured-thumbnail img, .featured-thumbnail .image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: 450px;
	aspect-ratio: 4 / 3; /* Reserve space to prevent CLS */
}
.featured-badge {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: var(--alsalam-accent);
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	font-weight: bold;
	font-size: 0.9rem;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.featured-content {
	padding: 4rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.featured-content .blog-meta {
	margin-bottom: 1rem;
}
.featured-title {
	font-size: 2.2rem;
	color: var(--alsalam-primary);
	line-height: 1.3;
	margin-bottom: 1.5rem;
}
.featured-excerpt {
	font-size: 1.1rem;
	color: var(--alsalam-text);
	line-height: 1.8;
	margin-bottom: 2rem;
}

/* Premium Blog Card Hover */
.premium-card {
	position: relative;
	border: none;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.premium-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.premium-card .blog-thumbnail {
	position: relative;
	overflow: hidden;
}
.premium-card .blog-thumbnail img {
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.premium-card:hover .blog-thumbnail img {
	transform: scale(1.08);
}
.card-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
	opacity: 0;
	transition: opacity 0.4s ease;
}
.premium-card:hover .card-overlay {
	opacity: 1;
}

/* Read More Link */
.read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--alsalam-primary);
	font-weight: 700;
	transition: color var(--transition-fast);
}
.read-more-link svg {
	transition: transform 0.3s ease;
}
.premium-card:hover .read-more-link {
	color: var(--alsalam-accent);
}
.premium-card:hover .read-more-link svg {
	transform: translateX(-5px); /* RTL */
}

/* Newsletter Inline Card */
.newsletter-card {
	background: linear-gradient(135deg, var(--alsalam-primary) 0%, #2D144A 100%);
	border-radius: var(--radius-md);
	padding: 3rem 2rem;
	text-align: center;
	color: white;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.nl-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}
.nl-title {
	font-size: 1.6rem;
	color: white;
	margin-bottom: 1rem;
}
.nl-desc {
	font-size: 0.95rem;
	color: rgba(255,255,255,0.8);
	margin-bottom: 2rem;
}
.nl-form input {
	width: 100%;
	padding: 1rem;
	border: 1px solid rgba(255,255,255,0.3);
	background: rgba(255,255,255,0.15);
	border-radius: var(--radius-md);
	color: white;
	margin-bottom: 1rem;
	outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.6); }
.nl-form button {
	width: 100%;
	padding: 1rem;
	background: var(--alsalam-accent); color: #ffffff;
	border: none;
	border-radius: var(--radius-md);
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition-fast);
}
.nl-form button:hover { background: #ffffff; color: var(--alsalam-primary); }

@media (max-width: 991px) {
	.featured-post {
		grid-template-columns: 1fr;
	}
	.featured-thumbnail {
		min-height: 300px;
	}
	.featured-content {
		padding: 2.5rem 2rem;
	}
}

/* ==========================================================================
 * PREMIUM FOOTER UX/UI
 * ========================================================================== */

.premium-footer {
	border-top: 3px solid var(--alsalam-accent);
	background: linear-gradient(135deg, #2D144A 0%, #1A0B2E 100%);
	color: #ffffff;
	position: relative;
	margin-top: 100px; /* Space for floating newsletter */
	padding-top: 60px; /* Room for the newsletter to float above */
	overflow: visible;
	contain: style; /* Prevent layout thrashing */
}

/* Floating Newsletter */
/* Floating Newsletter */
.floating-newsletter {
	background: #ffffff;
	border-radius: var(--radius-lg);
	padding: 3.5rem 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	box-shadow: 0 15px 35px rgba(0,0,0,0.06), 0 5px 15px rgba(0,0,0,0.03);
	margin-top: -120px;
	position: relative;
	z-index: 10;
	border-bottom: 4px solid var(--alsalam-accent);
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	min-height: 120px; /* Reserve space to prevent CLS */
	contain: layout style; /* Prevent layout thrashing */
}
.floating-newsletter:hover {
	transform: translateY(-5px);
	box-shadow: 0 25px 50px rgba(0,0,0,0.12), 0 10px 20px rgba(0,0,0,0.05);
}
.fn-content {
	flex: 1;
	color: white;
}
.fn-title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	color: var(--alsalam-primary-dark);
	font-weight: 800;
}
.fn-desc {
	font-size: 1.1rem;
	margin: 0;
	color: var(--alsalam-text-light);
}
.fn-form-wrapper {
	flex: 1;
	max-width: 500px;
}
.fn-input-group {
	display: flex;
	background: white;
	border-radius: 50px;
	padding: 0.5rem;
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.03); border: 1px solid #eee; background: #f9f9f9;
}
.fn-input-group input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.5rem 1.5rem;
	font-size: 1rem;
	outline: none;
}
.fn-btn {
	background: var(--alsalam-primary);
	color: white;
	border-radius: 50px;
	padding: 0.5rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-fast);
}
.fn-btn:hover {
	background: #1A0B2E;
	transform: scale(1.05);
}

/* SVG Wave */
.footer-wave {
	position: absolute;
	top: 0; left: 0; width: 100%;
	overflow: hidden;
	line-height: 0;
}
.footer-wave svg {
	position: relative;
	display: block;
	width: calc(100% + 1.3px);
	height: 60px;
}

/* Footer Grid & Content */
.premium-footer .footer-main {
	position: relative;
	padding-top: 8rem; /* Extra space below the floating newsletter */
	text-align: right; /* Force proper alignment for all columns */
}
.footer-col {
	text-align: right;
}
.premium-grid {
	grid-template-columns: 2fr 1fr 1fr; /* 3 columns layout */
	gap: 4rem;
}
.premium-footer-grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr 1fr 1fr;
	gap: 3rem;
}
.premium-footer .footer-desc {
	color: rgba(255,255,255,0.7);
	font-size: 1.05rem;
	line-height: 1.8;
}

/* Glassmorphism Social Icons */
.premium-social {
	display: flex;
	gap: 1rem;
	margin-top: 2.5rem;
	justify-content: flex-start !important;
}
.glass-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: white;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	text-decoration: none;
}
.glass-icon:hover {
	background: linear-gradient(135deg, var(--alsalam-accent), var(--alsalam-primary-dark));
	border-color: transparent;
	transform: translateY(-4px) scale(1.05);
	box-shadow: 0 8px 20px rgba(227, 153, 36, 0.25);
	color: white;
}

/* Premium Links & Micro-animations */
.premium-links .footer-widget-title {
	color: white;
	font-size: 1.4rem;
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 0.5rem;
}
.premium-links .footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: 0; right: 0;
	width: 40px; height: 2px;
	background: var(--alsalam-accent);
}
.premium-links ul li {
	margin-bottom: 0.8rem;
}
.premium-links ul li a {
	color: rgba(255,255,255,0.7);
	transition: all var(--transition-fast);
	position: relative;
	display: inline-block;
}
.premium-links ul { list-style: none; padding: 0; margin: 0; }
.premium-links ul li a::before {
	content: '';
	position: absolute;
	right: -15px;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
	height: 12px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23661e68" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>');
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0;
	transition: all var(--transition-fast);
}
.premium-links ul li a:hover {
	color: white;
	transform: translateX(-15px); /* RTL left slide */
}
.premium-links ul li a:hover::before {
	opacity: 1;
}

/* Contact List */
.premium-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}
.premium-contact li {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 0.85rem !important;
	margin-bottom: 1.25rem !important;
	color: rgba(255, 255, 255, 0.8) !important;
	transition: all 0.3s ease !important;
}
.premium-contact li:hover {
	transform: translateX(-5px) !important; /* Gentle slide left in RTL */
	color: #ffffff !important;
}
.premium-contact .icon-circle {
	width: 38px !important; 
	height: 38px !important;
	flex-shrink: 0 !important;
	background: rgba(102, 30, 104, 0.15) !important; /* Soft brand purple background */
	border: 1px solid rgba(102, 30, 104, 0.25) !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--alsalam-accent) !important;
	transition: all 0.3s ease !important;
	box-shadow: none !important;
}
.premium-contact li:hover .icon-circle {
	background: var(--alsalam-accent) !important;
	color: #ffffff !important;
	border-color: var(--alsalam-accent) !important;
	transform: scale(1.1) rotate(5deg) !important;
	box-shadow: 0 4px 12px rgba(102, 30, 104, 0.3) !important;
}
.premium-contact .icon-circle svg {
	background: transparent !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	width: 17px !important;
	height: 17px !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	color: inherit !important;
}
.premium-contact a, .premium-contact span {
	color: inherit !important;
	text-decoration: none !important;
	display: inline-block !important;
	direction: rtl !important; /* Reset direction */
	text-align: right !important;
	line-height: 1.5 !important;
	font-size: 0.95rem !important;
	flex: 1 !important;
	word-break: break-word !important;
	margin-top: 6px !important; /* Align with top of circle icon */
}
.premium-contact a[href^="tel:"] {
	direction: ltr !important;
	text-align: right !important;
	unicode-bidi: embed !important;
}

/* Footer Bottom Glow */
.premium-footer .footer-bottom {
	background: rgba(0,0,0,0.2);
	border-top: 1px solid rgba(255,255,255,0.05);
	margin-top: 2rem;
	padding: 1.5rem 0;
}
.glow-text {
	color: var(--alsalam-accent);
	font-weight: 700;
	text-shadow: 0 0 10px rgba(227, 153, 36, 0.3);
}

@media (max-width: 991px) {
	.floating-newsletter {
		flex-direction: column;
		text-align: center;
		gap: 2rem;
		padding: 2.5rem;
	}
	.premium-grid, .premium-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
	.footer-about {
		grid-column: 1 / -1;
		text-align: center;
		margin-bottom: 2.5rem;
	}
	.footer-about .footer-logo {
		margin: 0 auto 1.5rem;
	}
	.footer-about .footer-social {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.floating-newsletter {
		margin-top: -80px;
	}
	.premium-grid, .premium-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}
	.footer-about {
		grid-column: span 1;
		margin-bottom: 0;
	}
	.footer-col {
		text-align: center;
	}
	.premium-footer .footer-main {
		padding-top: 2rem;
		text-align: center;
	}
	.premium-footer .footer-widget-title,
	.premium-links .footer-widget-title {
		text-align: center;
	}
	.premium-footer .footer-widget-title::after,
	.premium-links .footer-widget-title::after {
		right: 50%;
		transform: translateX(50%);
	}
	.premium-contact li {
		justify-content: center;
		align-items: center;
		text-align: center;
		flex-direction: column;
		gap: 0.5rem;
	}
	.premium-contact a, .premium-contact span {
		text-align: center;
		margin-top: 0;
	}
	.premium-social {
		justify-content: center;
	}
}


/* ==========================================================================
 * PREMIUM SINGLE POST UX/UI
 * ========================================================================== */

/* Immersive Hero */
.premium-single-main {
	padding-top: 0 !important;
}
.immersive-hero {
	position: relative;
	width: 100%;
	height: 60vh;
	min-height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	padding-bottom: 4rem;
	margin-bottom: 4rem;
	contain: layout style; /* Prevent layout thrashing */
}
.hero-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, rgba(26, 11, 46, 0.95) 0%, rgba(26, 11, 46, 0.4) 50%, rgba(26, 11, 46, 0.1) 100%);
	z-index: 1;
}
.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 800px !important;
	margin: 0 auto;
}
.hero-content .single-title {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	line-height: 1.4;
	text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.text-white { color: #ffffff !important; }
.premium-categories { margin-bottom: 1rem; }
.premium-categories a {
	background: var(--alsalam-accent);
	color: white;
	padding: 0.4rem 1.2rem;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s;
}
.hero-content .single-meta {
	display: flex;
	justify-content: center;
	gap: 2rem;
	opacity: 0.9;
	font-size: 1rem;
}
.hero-content .meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.meta-avatar {
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.2);
}

/* Single Layout Grid - Reset */
.single-layout-grid {
	display: block;
}
.sticky-share-sidebar, .sticky-share-inner {
	display: none;
}

/* Share Label (Horizontal Box) */
.share-label {
	writing-mode: horizontal-tb;
	transform: none;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--alsalam-primary);
	margin-bottom: 0;
	letter-spacing: 0;
}

/* Premium Share Icons */
.share-icon {
	width: 45px; 
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.share-icon.facebook { background: linear-gradient(135deg, #1877F2, #0d5cbf); }
.share-icon.twitter { background: linear-gradient(135deg, #000000, #333333); }
.share-icon.whatsapp { background: linear-gradient(135deg, #25D366, #1da851); }
.share-icon:hover {
	transform: translateY(-5px) scale(1.1);
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	color: #ffffff;
}

/* Premium Content */
.premium-content {
	background: #ffffff;
	padding: 3rem;
	border-radius: var(--radius-lg);
	box-shadow: 0 5px 30px rgba(0,0,0,0.03);
	font-size: 1.15rem;
	line-height: 2;
}

/* Premium Author Box */
.premium-author-box {
	margin-top: 3rem;
	padding: 2.5rem;
	background: #ffffff;
	border: 1px solid rgba(0,0,0,0.06);
	border-right: 4px solid var(--alsalam-accent);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	gap: 2rem;
	box-shadow: 0 10px 30px rgba(0,0,0,0.04);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.premium-author-box:hover {
	box-shadow: 0 20px 50px rgba(227,153,36,0.12);
	transform: translateY(-5px);
	border-right-color: var(--alsalam-primary);
}
.premium-author-box .author-avatar {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	position: relative;
}
.premium-author-box .author-avatar::after {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--alsalam-accent), var(--alsalam-primary));
	z-index: 0;
}
.premium-author-box .author-avatar img {
	position: relative;
	z-index: 1;
	width: 100px !important;
	height: 100px !important;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid white;
	display: block;
}
.premium-author-box .author-info {
	flex: 1;
}
.author-label {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--alsalam-accent);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.25rem;
}

/* Reading Progress Bar */
.reading-progress-container {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: transparent;
	z-index: 9999;
}
.reading-progress-bar {
	height: 100%;
	background: var(--alsalam-accent);
	width: 0%;
	transition: width 0.1s;
	box-shadow: 0 0 10px var(--alsalam-accent);
}

/* Premium Related Section */
.premium-related-section {
	margin-top: 5rem;
	padding: 3rem;
	background: linear-gradient(135deg, rgba(26,11,46,0.03) 0%, rgba(227,153,36,0.04) 100%);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(0,0,0,0.04);
}
.section-heading {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}
.section-heading .related-title {
	font-size: 1.4rem;
	margin: 0;
	font-weight: 700;
	color: var(--alsalam-primary);
	white-space: nowrap;
}
.section-heading .heading-line {
	flex: 1;
	height: 2px;
	background: linear-gradient(to left, var(--alsalam-accent), transparent);
	border-radius: 2px;
}

/* Responsive */
@media (max-width: 991px) {
	.single-layout-grid { grid-template-columns: 1fr; gap: 2rem; }
	.sticky-share-sidebar { display: none; /* Hide sticky sidebar on mobile */ }
	.hero-content .single-title { font-size: 2.2rem; }
	.hero-content .single-meta { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
@media (max-width: 767px) {
	.immersive-hero { height: 50vh; padding-bottom: 2rem; }
	.premium-content, .premium-author-box { padding: 1.5rem; }
	.premium-author-box { flex-direction: column; text-align: center; }
}

/* ==========================================================================
 * RESPONSIVENESS FIXES (HOMEPAGE & GLOBAL)
 * ========================================================================== */

@media (max-width: 991px) {
	/* Homepage Hero */
	.hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero-actions {
		justify-content: center;
	}
	.hero-title {
		font-size: 2.8rem;
	}
	
	/* Homepage Stats */
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	/* Homepage Services */
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	/* Timeline Steps */
	.timeline-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

@media (max-width: 767px) {
	/* Global Padding */
	.section-padding { padding: 3rem 0; }
	.section-title { font-size: 2rem; }
	
	/* Homepage Hero */
	.hero-title {
		font-size: 2.2rem;
	}
	.hero-image-placeholder {
		height: 250px;
	}
	
	/* Homepage Stats */
	.stats-grid {
		grid-template-columns: 1fr;
	}
	
	/* Homepage Services */
	.services-grid {
		grid-template-columns: 1fr;
	}
	
	/* Timeline Steps */
	.timeline-steps {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	
	/* Header Search Fixes for Mobile */
	.search-form-inner .search-field {
		font-size: 1.5rem;
	}
	.header-search-form .container {
		padding: 0 1rem;
	}
}

/* Fix width issue that causes horizontal scroll */
.header-search-form {
	width: 100%; /* Changed from 100vw to prevent scrollbar overflow */
}

/* ==========================================================================
 * STANDARD PAGES (page.php)
 * ========================================================================== */

.solid-hero {
	background: linear-gradient(135deg, #1A0B2E 0%, #2D144A 100%);
	padding: 8rem 0 4rem;
	text-align: center;
}
.solid-hero .page-title {
	font-size: 3rem;
	font-weight: 800;
	margin: 0;
	color: #ffffff;
}
.page-main {
	padding-top: 0 !important;
}

/* ==========================================================================
 * SINGLE POST EXTENSIONS (Navigation & Comments)
 * ========================================================================== */

.immersive-hero {
	background-color: var(--alsalam-primary-dark);
}

.premium-post-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0,0,0,0.05);
}
.premium-post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}
.premium-post-navigation .nav-previous,
.premium-post-navigation .nav-next {
	flex: 1;
	background: #ffffff;
	padding: 1.5rem;
	border-radius: var(--radius-md);
	box-shadow: 0 5px 20px rgba(0,0,0,0.03);
	transition: all 0.3s;
}
.premium-post-navigation .nav-previous:hover,
.premium-post-navigation .nav-next:hover {
	box-shadow: 0 10px 30px rgba(227,153,36,0.1);
	transform: translateY(-3px);
}
.premium-post-navigation .nav-next {
	text-align: left;
}
.premium-post-navigation .nav-subtitle {
	display: block;
	font-size: 0.95rem; font-weight: 500;
	color: var(--alsalam-text-light);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.premium-post-navigation .nav-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--alsalam-primary);
}
.premium-post-navigation a {
	text-decoration: none;
	display: block;
}

/* Comments Section */
.premium-comments {
	margin-top: 4rem;
	padding: 3rem;
	background: #ffffff;
	border-radius: var(--radius-lg);
	box-shadow: 0 5px 30px rgba(0,0,0,0.03);
}
.comments-title, .comment-reply-title {
	font-size: 1.8rem;
	font-weight: 800;
	margin-bottom: 2rem;
}
.comment-list {
	list-style: none;
	padding: 0;
}
.comment-body {
	padding: 2rem;
	background: rgba(0,0,0,0.02);
	border-radius: var(--radius-md);
	margin-bottom: 2rem;
}
.comment-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}
.comment-author img {
	border-radius: 50%;
}
.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--alsalam-border);
	border-radius: var(--radius-sm);
	margin-bottom: 1rem;
}
.comment-form .submit {
	background: var(--alsalam-primary);
	color: white;
	border: none;
	padding: 1rem 2rem;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s;
}
.comment-form .submit:hover {
	background: var(--alsalam-accent);
}

@media (max-width: 767px) {
	.premium-post-navigation .nav-links {
		flex-direction: column;
	}
	.premium-post-navigation .nav-next {
		text-align: right;
	}
	.premium-comments {
		padding: 1.5rem;
	}
}



/* ==========================================================================
 * BLOG GRID META ICONS
 * ========================================================================== */
.premium-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1rem;
}
.premium-meta .meta-item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: var(--alsalam-text-light);
}
.premium-meta .meta-item svg {
	color: var(--alsalam-primary);
}
.premium-meta .meta-item a {
	color: inherit;
}
.premium-meta .meta-item a:hover {
	color: var(--alsalam-primary);
}
.newsletter-card .nl-icon svg { color: #ffffff; opacity: 0.9; }

/* ==========================================================================
 * BLOG CATEGORY BADGE
 * ========================================================================== */
.blog-thumbnail {
	position: relative;
	display: block;
	overflow: hidden;
}
.card-category-badge {
	position: absolute;
	bottom: 15px;
	right: 15px;
	background: var(--alsalam-accent, #e83c72);
	color: #ffffff;
	padding: 0.4rem 1rem;
	border-radius: 30px;
	font-size: 0.8rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(232, 60, 114, 0.4);
	transition: transform var(--transition-normal), background var(--transition-fast);
	pointer-events: none;
}
.blog-thumbnail:hover .card-category-badge {
	transform: translateY(-3px) scale(1.02);
	background: var(--alsalam-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
 * HORIZONTAL SHARE BOX (Single Post)
 * ========================================================================== */
.horizontal-share-box {
	margin-top: 3rem;
	padding: 2rem 2.5rem;
	background: linear-gradient(135deg, rgba(26,11,46,0.04) 0%, rgba(227,153,36,0.06) 100%);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

/* Single Layout Grid (Sticky Sidebar) - Removed in favor of horizontal box */
.single-layout-grid {
	display: block;
}
.sticky-share-sidebar, .sticky-share-inner {
	display: none;
}

/* ==========================================================================
 * PREMIUM TAGS (Single Post)
 * ========================================================================== */
.premium-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	border: none;
	background: none;
}
.premium-tags a {
	display: inline-block;
	background: var(--alsalam-background);
	color: var(--alsalam-text);
	padding: 0.4rem 1rem;
	border-radius: 50px;
	font-size: 0.9rem;
	font-weight: 600;
	border: 1px solid var(--alsalam-border);
	transition: all 0.3s;
}
.premium-tags a:hover {
	background: var(--alsalam-primary);
	color: white;
	border-color: var(--alsalam-primary);
	transform: translateY(-2px);
}

/* Single Footer Override */
.premium-single-article .single-footer {
	padding: 2rem 0;
	margin-top: 3rem;
	border-top: 1px solid rgba(0,0,0,0.06);
	background: transparent;
}

/* ==========================================================================
 * SINGLE CONTENT AREA
 * ========================================================================== */
.single-content-area {
	max-width: 100%;
}

/* ==========================================================================
 * PREMIUM PAGINATION
 * ========================================================================== */
.premium-pagination {
	margin-top: 3rem;
	text-align: center;
}
.premium-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.premium-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: white;
	color: var(--alsalam-text);
	font-weight: 600;
	border: 1px solid var(--alsalam-border);
	transition: all 0.3s;
}
.premium-pagination .page-numbers.current,
.premium-pagination .page-numbers:hover {
	background: var(--alsalam-primary);
	color: white;
	border-color: var(--alsalam-primary);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.premium-pagination .prev,
.premium-pagination .next {
	background: var(--alsalam-background);
}

/* ==========================================================================
 * CARD IMAGE & CARD CONTENT (Premium Cards)
 * ========================================================================== */
.premium-card .card-image {
	position: relative;
	overflow: hidden;
}
.premium-card .card-image a {
	display: block;
}
.premium-card .card-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
	aspect-ratio: 16 / 9; /* Reserve space to prevent CLS */
}
.premium-card:hover .card-image img {
	transform: scale(1.08);
}
.premium-card .card-category {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: var(--alsalam-accent);
	color: white;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 700;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.premium-card .card-content {
	padding: 1.5rem;
}
.premium-card .card-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
	color: var(--alsalam-text-light);
	font-size: 0.85rem;
}
.premium-card .card-meta svg {
	color: var(--alsalam-primary);
	flEx-shrink: 0;
}
.premium-card .card-title {
	font-size: 1.15rem;
	line-height: 1.5;
	margin-bottom: 0.75rem;
}
.premium-card .card-title a {
	color: var(--alsalam-primary);
	transition: color 0.3s;
}
.premium-card .card-title a:hover {
	color: var(--alsalam-accent);
}
.premium-card .card-excerpt {
	color: var(--alsalam-text-light);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}
.premium-card .card-footer {
	padding-top: 0.75rem;
	border-top: 1px solid var(--alsalam-border);
}
.btn-read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--alsalam-primary);
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.3s;
}
.btn-read-more:hover {
	color: var(--alsalam-accent);
	gap: 0.75rem;
}
.premium-card .image-placeholder {
	width: 100%;
	height: 220px;
	background: var(--alsalam-background);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
 * PREMIUM GRID OVERRIDE
 * ========================================================================== */
.premium-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.premium-card {
	background: white;
	border-radius: var(--radius-md);
	overflow: hidden;
}

@media (max-width: 991px) {
	.premium-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.horizontal-share-box {
		justify-content: center;
		text-align: center;
	}
}
@media (max-width: 767px) {
	.premium-grid {
		grid-template-columns: 1fr;
	}
	.horizontal-share-box {
		flex-direction: column;
		padding: 1.5rem;
	}
}.mobile-menu-actions {
	display: none !important;
}
.menu-toggle.active .hamburger {
	background-color: transparent;
}
.menu-toggle.active .hamburger::before {
	transform: translateY(0) rotate(45deg);
}
.menu-toggle.active .hamburger::after {
	transform: translateY(0) rotate(-45deg);
}
@media (max-width: 991px) {
	.main-navigation.active .mobile-menu-actions {
		display: block !important;
		margin-top: 1.5rem;
		padding-top: 1.5rem;
		border-top: 1px solid var(--alsalam-border);
		text-align: center;
	}
	.btn-quote-mobile {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 1rem;
		border-radius: var(--radius-md);
		gap: 0.5rem;
	}
}
/* 
 * ==============================================================================
 * FINAL MOBILE OVERRIDES (Ensures they win CSS cascade)
 * ============================================================================== 
 */
@media (max-width: 991px) {
	.premium-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
	.footer-about {
		grid-column: span 3;
		text-align: center;
		margin-bottom: 2.5rem;
	}
	.footer-about .footer-logo {
		margin: 0 auto 1.5rem;
	}
	.footer-about .footer-social {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.premium-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
	}
	.footer-about {
		grid-column: span 1;
		margin-bottom: 0;
	}
	.footer-contact-list li {
		justify-content: center;
		word-break: break-word;
	}
	.footer-contact-list svg {
		flex-shrink: 0;
	}
	.footer-social {
		justify-content: center;
	}
	.footer-widget-title::after {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
	}
	.fn-form {
		flex-direction: column;
		gap: 0.5rem;
	}
	.fn-input-group {
		flex-direction: column;
		gap: 0.5rem;
	}
	.fn-input-group input, 
	.fn-input-group button {
		width: 100%;
		border-radius: var(--radius-md);
	}
	.footer-logo img {
		margin: 0 auto;
	}
}
