/* Abrar Qasim theme custom styles */

:root {
	--aq-primary: #0d6efd;
	--aq-primary-dark: #0a58ca;
	--aq-text: #212529;
	--aq-muted: #6c757d;
	--aq-bg: #ffffff;
	--aq-bg-soft: #f8f9fa;
}

html, body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--aq-text);
	background: var(--aq-bg);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--aq-primary); }
a:hover { color: var(--aq-primary-dark); }

/* Header */
.aq-header .navbar-brand { font-weight: 700; }
.aq-header .nav-link {
	font-weight: 500;
	color: #333 !important;
	transition: color .15s;
}
.aq-header .nav-link:hover,
.aq-header .nav-link.active {
	color: var(--aq-primary) !important;
}
.aq-header .custom-logo { max-height: 50px; width: auto; }

/* Post list cards ---------------------------------------------------- */
.aq-post-list { max-width: 960px; margin: 0 auto; }

.aq-card {
	transition: transform .2s ease, box-shadow .2s ease;
	border-radius: .75rem;
}
.aq-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .1) !important;
}

/* Desktop: fixed 280px card height, image fills left column edge-to-edge */
.aq-card .aq-card-link > .row {
	min-height: 280px;
}
.aq-card .aq-card-thumb {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
	overflow: hidden;
	background: var(--aq-bg-soft);
}
.aq-card .aq-card-thumb .aq-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform .4s ease;
}
.aq-card:hover .aq-card-thumb .aq-card-img {
	transform: scale(1.04);
}

/* Clamp title and excerpt to keep cards the same height regardless of content length */
.aq-card .card-title {
	transition: color .15s;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.aq-card .card-text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.aq-card:hover .card-title {
	color: var(--aq-primary);
}
.aq-card .aq-readmore {
	pointer-events: none;
}

/* Tablet + phone: stack image on top, fixed image height, auto card height */
@media (max-width: 767.98px) {
	.aq-card .aq-card-link > .row {
		min-height: 0;
	}
	.aq-card .aq-card-thumb {
		position: relative;
		min-height: 0;
		height: 220px;
		width: 100%;
	}
	.aq-card .aq-card-thumb .aq-card-img {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
	}
	.aq-card .card-body {
		padding: 1.25rem !important;
	}
	.aq-card .card-title {
		font-size: 1.15rem;
		-webkit-line-clamp: 3;
	}
}

/* Single post ------------------------------------------------------- */
.aq-single .entry-title { line-height: 1.2; }
.entry-content { color: #2b2b2b; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: .5rem;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2rem;
	font-weight: 700;
}
.entry-content blockquote {
	border-left: 4px solid var(--aq-primary);
	padding: .5rem 0 .5rem 1rem;
	color: var(--aq-muted);
	font-style: italic;
	margin: 1.5rem 0;
}
.entry-content pre {
	background: #f4f4f4;
	padding: 1rem;
	border-radius: .5rem;
	overflow-x: auto;
}
.entry-content code {
	background: #f4f4f4;
	padding: .15rem .4rem;
	border-radius: .25rem;
	font-size: .9em;
}
.entry-tags .badge { font-weight: 500; }

/* Social share buttons */
.aq-share .btn {
	transition: transform .15s, box-shadow .15s;
}
.aq-share .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}

/* Related posts slider */
.aq-related-swiper {
	padding: 0 2.5rem 2.5rem;
}
.aq-related-swiper .aq-related-thumb {
	height: 180px;
	object-fit: cover;
	width: 100%;
}
.aq-related-card {
	transition: transform .2s, box-shadow .2s;
}
.aq-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .1) !important;
}
.aq-related-swiper .swiper-button-prev,
.aq-related-swiper .swiper-button-next {
	color: var(--aq-primary);
	width: 30px;
	height: 30px;
}
.aq-related-swiper .swiper-button-prev::after,
.aq-related-swiper .swiper-button-next::after {
	font-size: 1.25rem;
	font-weight: 700;
}
.aq-related-swiper .swiper-pagination-bullet-active {
	background: var(--aq-primary);
}

/* Pagination */
.pagination .page-link {
	color: var(--aq-primary);
	border-color: #e5e5e5;
}
.pagination .page-item.active .page-link {
	background: var(--aq-primary);
	border-color: var(--aq-primary);
	color: #fff;
}
.pagination .page-link:hover {
	background: #f0f4ff;
	color: var(--aq-primary-dark);
}

/* Footer */
.aq-footer .aq-email-link { color: var(--aq-text); }
.aq-footer .aq-email-link:hover { color: var(--aq-primary); }

/* Accessibility: focus outlines */
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--aq-primary);
	outline-offset: 2px;
}

