/* Modern Jannah-inspired Design Layer for Jarida */
:root {
	--tie-primary: #0088ff;
	--tie-primary-dark: #0066cc;
	--tie-navy: #0f172a;
	--tie-bg: #f4f6f9;
	--tie-surface: #ffffff;
	--tie-text: #1e293b;
	--tie-muted: #64748b;
	--tie-border: #e2e8f0;
	--tie-radius: 10px;
	--tie-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

*, *::before, *::after {
	box-sizing: inherit;
}

body {
	background-color: var(--tie-bg) !important;
	background-image: none !important;
	color: var(--tie-text);
	overflow-x: hidden;
}

.background-cover {
	display: none !important;
}

.skip-link.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 12px;
	right: 12px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--tie-primary);
	color: #fff;
	border-radius: 6px;
	z-index: 99999;
	font-weight: 600;
	text-decoration: none;
}

/* Jannah-style Top Bar & Header */
.top-nav {
	background: var(--tie-navy) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breaking-news span {
	background: var(--tie-primary) !important;
	border-radius: 4px;
	padding: 2px 10px;
	font-weight: 700;
}

#theme-header {
	background: var(--tie-surface);
	border-radius: var(--tie-radius);
	box-shadow: var(--tie-shadow);
	margin-top: 14px;
	margin-bottom: 18px;
	overflow: hidden;
}

/* Jannah-style Main Navigation */
#main-nav {
	background: var(--tie-navy) !important;
	border-radius: 0 0 var(--tie-radius) var(--tie-radius);
	box-shadow: var(--tie-shadow);
	margin-bottom: 0;
	border-top: 2px solid var(--tie-primary);
}

#main-nav ul li a {
	transition: background-color 0.2s ease, color 0.2s ease;
	font-weight: 600;
}

#main-nav ul li.current-menu-item > a,
#main-nav ul li a:hover {
	background-color: var(--tie-primary) !important;
	color: #fff !important;
}

/* Modern Jannah Card Surfaces */
.post-listing,
.cat-box,
.widget-container,
#the-post,
#author-box .post-listing,
.post-navigation {
	background: var(--tie-surface);
	border: 1px solid var(--tie-border);
	border-radius: var(--tie-radius);
	box-shadow: var(--tie-shadow);
}

.post-listing,
.cat-box,
.widget-container {
	padding: 20px;
	margin-bottom: 24px;
}

/* Jannah-style Section Headers with Accent Bar */
.cat-box-title,
.block-head,
.widget-top {
	position: relative;
	border-bottom: 2px solid var(--tie-border);
	padding-bottom: 10px;
	margin-bottom: 18px;
}

.cat-box-title h2,
.block-head h3,
.widget-top h4 {
	color: var(--tie-navy);
	font-weight: 700;
	display: inline-block;
	position: relative;
}

.cat-box-title h2::after,
.block-head h3::after,
.widget-top h4::after {
	content: "";
	position: absolute;
	bottom: -12px;
	right: 0;
	left: 0;
	height: 2px;
	background: var(--tie-primary);
}

/* Card Thumbnail Hover Polish */
.post-thumbnail {
	overflow: hidden;
	border-radius: 8px;
}

.post-thumbnail img {
	transition: transform 0.3s ease;
	border-radius: 8px;
}

.post-thumbnail:hover img {
	transform: scale(1.03);
}

.post-title a,
.entry-title {
	color: var(--tie-text);
	transition: color 0.2s ease;
}

.post-title a:hover {
	color: var(--tie-primary);
}

.post-meta,
.post-meta a {
	color: var(--tie-muted);
}

.more-link,
.button,
button[type="submit"],
input[type="submit"] {
	background-color: var(--tie-primary);
	color: #fff;
	border-radius: 6px;
	border: 0;
	transition: background-color 0.2s ease;
}

.more-link:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background-color: var(--tie-primary-dark);
}

/* Jannah-style Hero Slider Polish */
.flexslider {
	border-radius: var(--tie-radius);
	overflow: hidden;
	box-shadow: var(--tie-shadow);
	margin-bottom: 24px !important;
	background: var(--tie-navy);
}

.flexslider .slider-caption {
	background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.65) 65%, transparent 100%) !important;
	padding: 20px 18px 14px !important;
}

.flex-control-paging li a {
	background: rgba(255, 255, 255, 0.75) !important;
	border: 1px solid rgba(15, 23, 42, 0.4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.flex-control-paging li a.flex-active {
	background: var(--tie-primary) !important;
	border-color: #fff;
}

/* Jannah-style Dark Footer */
footer#theme-footer,
.footer-bottom {
	background: var(--tie-navy) !important;
	color: #cbd5e1;
}

footer#theme-footer a,
.footer-bottom a {
	color: #e2e8f0;
}

.edutech-mobile-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: var(--tie-primary);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin: 8px 12px;
}

img {
	max-width: 100%;
	height: auto;
}

/* Tablet & Mobile Responsive Grid (Zero Horizontal Overflow) */
@media (max-width: 991px) {
	.container,
	.wrapper,
	#main-content,
	.content-wrap,
	.content,
	.sidebar,
	#theme-header,
	.header-content,
	.flexslider,
	.flexslider .slides > li,
	.flexslider .slides img,
	.cat-box-content,
	.e3lan-top {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		box-sizing: border-box !important;
	}

	.flexslider {
		height: auto !important;
		margin-bottom: 20px !important;
	}

	.container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.edutech-mobile-toggle {
		display: inline-flex;
	}

	#main-nav .main-menu {
		display: none;
		width: 100%;
		padding: 12px 0;
	}

	#main-nav .main-menu.is-open {
		display: block;
	}

	#main-nav .main-menu ul li {
		float: none !important;
		display: block;
		width: 100%;
	}

	#main-nav .main-menu ul li a {
		display: block;
		padding: 10px 14px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
}

@media (max-width: 767px) {
	.top-nav .search-block {
		width: 100%;
		float: none;
		margin-bottom: 8px;
	}

	.header-content {
		padding: 10px 12px !important;
	}

	.header-content .logo {
		float: none !important;
		text-align: center;
		margin: 8px auto !important;
	}

	.e3lan-top {
		float: none;
		text-align: center;
		margin: 8px auto;
	}

	.flexslider .slider-caption {
		position: static !important;
		background: var(--tie-navy) !important;
		padding: 12px 14px !important;
	}

	.post-listing,
	.cat-box,
	.widget-container,
	#the-post {
		padding: 16px;
	}

	.post-thumbnail {
		float: none !important;
		margin: 0 0 12px 0 !important;
		width: 100% !important;
	}

	.post-thumbnail img {
		width: 100%;
		height: auto;
		border-radius: 8px;
	}

	h1.post-title,
	h1.entry-title {
		font-size: 22px !important;
		line-height: 1.45 !important;
	}
}
