/* =========================================================
   A K INFOTECH - CATEGORY ARCHIVE
   File: /wp-content/themes/astra-child/assets/css/category.css
   ========================================================= */

:root {
	--akic-blue: #0d4ed8;
	--akic-blue-dark: #073b9d;
	--akic-blue-soft: #eaf2ff;
	--akic-navy: #0a1733;
	--akic-text: #172033;
	--akic-muted: #6f7a8c;
	--akic-border: #e2e7ee;
	--akic-soft: #f7f9fc;
	--akic-white: #ffffff;
	--akic-green: #159a55;
	--akic-green-soft: #eaf8f0;
	--akic-orange: #ef7b1a;
	--akic-orange-soft: #fff1e7;
	--akic-purple: #7447d3;
	--akic-purple-soft: #f3edff;
	--akic-container: 1240px;
	--akic-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

/* =========================================================
   RESET / ASTRA OVERRIDE
   ========================================================= */

.aki-category-page,
.aki-category-page *,
.aki-category-page *::before,
.aki-category-page *::after {
	box-sizing: border-box;
}

.aki-category-page {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #ffffff;
	color: var(--akic-text);
}

.aki-category-page a {
	text-decoration: none;
}

.aki-category-page img {
	display: block;
	max-width: 100%;
	height: auto;
}

.aki-category-page h1,
.aki-category-page h2,
.aki-category-page h3,
.aki-category-page p {
	margin-top: 0;
}

.aki-category-container {
	width: min(100% - 32px, var(--akic-container));
	margin: 0 auto;
}

/* Remove Astra archive spacing/layout */
.category .site-content,
.category .ast-container,
.category .content-area,
.category .site-main,
.category .ast-article-post,
.category .ast-row,
.category .ast-blog-layout-1 {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.category .ast-container {
	display: block !important;
}

/* =========================================================
   CATEGORY HERO
   ========================================================= */

.aki-category-hero {
	padding: 46px 0 38px;
	background:
		radial-gradient(circle at 8% 14%, rgba(13, 78, 216, 0.08), transparent 30%),
		radial-gradient(circle at 92% 10%, rgba(85, 136, 246, 0.08), transparent 27%),
		linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
	border-bottom: 1px solid #edf1f5;
}

.aki-category-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
	gap: 34px;
	align-items: center;
}

.aki-category-hero-content {
	min-width: 0;
}

.aki-category-label {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 11px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: var(--akic-blue-soft);
	color: var(--akic-blue-dark);
	font-size: 8.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.aki-category-hero-content h1 {
	margin-bottom: 10px;
	color: #172138;
	font-size: clamp(30px, 3.8vw, 48px);
	line-height: 1.08;
	font-weight: 850;
	letter-spacing: -0.04em;
}

.aki-category-hero-content p {
	max-width: 720px;
	margin-bottom: 17px;
	color: #6f7a8c;
	font-size: 11.5px;
	line-height: 1.7;
	font-weight: 500;
}

.aki-category-hero-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.aki-category-status,
.aki-category-count {
	display: inline-flex;
	align-items: center;
	min-height: 31px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 8px;
	font-weight: 800;
}

.aki-category-status {
	gap: 7px;
	border: 1px solid #dceae2;
	background: #f3faf6;
	color: #168249;
}

.aki-category-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #18a15b;
	box-shadow: 0 0 0 4px rgba(24, 161, 91, 0.1);
}

.aki-category-count {
	border: 1px solid #dfe5ed;
	background: #ffffff;
	color: #657184;
}

.aki-category-hero-card {
	justify-self: end;
	width: 100%;
	max-width: 340px;
	padding: 25px;
	border: 1px solid #e0e6ee;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	text-align: center;
}

.aki-category-hero-icon {
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	border-radius: 24px;
	background: var(--akic-blue-soft);
	color: var(--akic-blue);
}

.aki-category-hero-card strong {
	display: block;
	color: #182238;
	font-size: 17px;
	font-weight: 850;
}

.aki-category-hero-card > span {
	display: block;
	margin-top: 5px;
	color: #7f8a9c;
	font-size: 8.8px;
	line-height: 1.45;
	font-weight: 600;
}

/* ACCENT COLORS */

.aki-category-results .aki-category-label,
.aki-category-results .aki-category-hero-icon {
	background: var(--akic-green-soft);
	color: var(--akic-green);
}

.aki-category-admit .aki-category-label,
.aki-category-admit .aki-category-hero-icon {
	background: var(--akic-orange-soft);
	color: var(--akic-orange);
}

.aki-category-answer .aki-category-label,
.aki-category-answer .aki-category-hero-icon {
	background: var(--akic-purple-soft);
	color: var(--akic-purple);
}

/* =========================================================
   QUICK CATEGORY NAV
   ========================================================= */

.aki-category-nav-section {
	padding: 20px 0;
	background: #ffffff;
	border-bottom: 1px solid #edf0f4;
}

.aki-category-nav-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.aki-category-nav-card {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px;
	border: 1px solid #e1e6ed;
	border-radius: 13px;
	background: #ffffff;
	box-shadow: 0 7px 18px rgba(15, 23, 42, 0.04);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.aki-category-nav-card:hover,
.aki-category-nav-card:focus {
	transform: translateY(-2px);
	border-color: #cad6e8;
	box-shadow: 0 11px 24px rgba(15, 23, 42, 0.07);
}

.aki-nav-icon {
	width: 37px;
	height: 37px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 37px;
	border-radius: 9px;
}

.aki-category-nav-card > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.aki-category-nav-card strong {
	color: #1d273a;
	font-size: 10.5px;
	line-height: 1.2;
	font-weight: 850;
}

.aki-category-nav-card small {
	margin-top: 2px;
	color: #838e9f;
	font-size: 7.5px;
	line-height: 1.3;
	font-weight: 600;
}

.aki-nav-jobs .aki-nav-icon {
	background: var(--akic-blue-soft);
	color: var(--akic-blue);
}

.aki-nav-results .aki-nav-icon {
	background: var(--akic-green-soft);
	color: var(--akic-green);
}

.aki-nav-admit .aki-nav-icon {
	background: var(--akic-orange-soft);
	color: var(--akic-orange);
}

.aki-nav-answer .aki-nav-icon {
	background: var(--akic-purple-soft);
	color: var(--akic-purple);
}

.aki-category-nav-card.is-current {
	border-color: #b9cef8;
	background: #f8fbff;
	box-shadow: 0 10px 24px rgba(13, 78, 216, 0.08);
}

/* =========================================================
   CONTENT SECTION
   ========================================================= */

.aki-category-content-section {
	padding: 48px 0 54px;
	background:
		linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.aki-category-section-head {
	margin-bottom: 20px;
}

.aki-category-small-label {
	display: inline-block;
	margin-bottom: 6px;
	color: var(--akic-blue);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.aki-category-section-head h2 {
	margin-bottom: 6px;
	color: #172138;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.16;
	font-weight: 850;
	letter-spacing: -0.03em;
}

.aki-category-section-head p {
	margin: 0;
	color: #768194;
	font-size: 10px;
	line-height: 1.5;
}

/* =========================================================
   POST GRID
   ========================================================= */

.aki-category-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.aki-category-post-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e1e6ed;
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.aki-category-post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.075);
}

.aki-category-post-link {
	display: block;
	height: 100%;
	color: inherit;
}

.aki-category-post-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2f5f9;
}

.aki-category-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.aki-category-post-card:hover .aki-category-post-image img {
	transform: scale(1.03);
}

.aki-category-post-content {
	padding: 15px;
}

.aki-category-post-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.aki-category-post-date {
	color: #8b95a4;
	font-size: 7.5px;
	font-weight: 700;
}

.aki-category-new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 18px;
	padding: 0 5px;
	border-radius: 4px;
	background: #eaf8f0;
	color: #13834a;
	font-size: 6.5px;
	font-weight: 850;
	text-transform: uppercase;
}

.aki-category-post-content h2 {
	margin-bottom: 8px;
	color: #1c263a;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 850;
	letter-spacing: -0.015em;
}

.aki-category-post-content p {
	margin-bottom: 12px;
	color: #737f91;
	font-size: 8.8px;
	line-height: 1.6;
	font-weight: 500;
}

.aki-category-read-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--akic-blue);
	font-size: 8.5px;
	font-weight: 800;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.aki-category-empty {
	max-width: 760px;
	margin: 0 auto;
	padding: 44px 30px;
	text-align: center;
	border: 1px solid #e1e6ed;
	border-radius: 20px;
	background:
		radial-gradient(circle at 50% 0%, rgba(13, 78, 216, 0.06), transparent 32%),
		#ffffff;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.aki-category-empty-icon {
	width: 106px;
	height: 106px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	border-radius: 26px;
	background: var(--akic-blue-soft);
	color: var(--akic-blue);
}

.aki-category-results .aki-category-empty-icon {
	background: var(--akic-green-soft);
	color: var(--akic-green);
}

.aki-category-admit .aki-category-empty-icon {
	background: var(--akic-orange-soft);
	color: var(--akic-orange);
}

.aki-category-answer .aki-category-empty-icon {
	background: var(--akic-purple-soft);
	color: var(--akic-purple);
}

.aki-category-empty-label {
	display: inline-block;
	margin-bottom: 7px;
	color: var(--akic-blue);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.aki-category-empty h2 {
	margin-bottom: 8px;
	color: #172138;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 850;
	letter-spacing: -0.03em;
}

.aki-category-empty p {
	max-width: 590px;
	margin: 0 auto 18px;
	color: #748092;
	font-size: 10px;
	line-height: 1.65;
}

.aki-category-empty-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.aki-category-empty-primary,
.aki-category-empty-whatsapp {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 13px;
	border-radius: 9px;
	font-size: 9px;
	font-weight: 800;
}

.aki-category-empty-primary {
	background: linear-gradient(135deg, #073b9d, #0d4ed8);
	color: #ffffff;
}

.aki-category-empty-primary:hover,
.aki-category-empty-primary:focus {
	color: #ffffff;
}

.aki-category-empty-whatsapp {
	background: #159a55;
	color: #ffffff;
}

.aki-category-empty-whatsapp:hover,
.aki-category-empty-whatsapp:focus {
	color: #ffffff;
	background: #0f874b;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.aki-category-pagination {
	margin-top: 24px;
}

.aki-category-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
}

.aki-category-pagination .page-numbers {
	min-width: 36px;
	min-height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border: 1px solid #dde4ed;
	border-radius: 8px;
	background: #ffffff;
	color: #536075;
	font-size: 8.5px;
	font-weight: 800;
}

.aki-category-pagination .page-numbers.current {
	border-color: var(--akic-blue);
	background: var(--akic-blue);
	color: #ffffff;
}

/* =========================================================
   SERVICE CTA
   ========================================================= */

.aki-category-service-section {
	padding: 0 0 50px;
	background: #ffffff;
}

.aki-category-service-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 27px 29px;
	border-radius: 18px;
	background:
		radial-gradient(circle at 92% 16%, rgba(90, 150, 255, 0.22), transparent 28%),
		linear-gradient(135deg, #071a3d, #0b357e 55%, #0d4ed8);
	color: #ffffff;
	box-shadow: 0 18px 40px rgba(8, 49, 119, 0.17);
}

.aki-category-service-content {
	max-width: 720px;
}

.aki-category-service-content > span {
	display: block;
	margin-bottom: 5px;
	color: #bdd0f3;
	font-size: 8px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.aki-category-service-content h2 {
	margin-bottom: 6px;
	color: #ffffff;
	font-size: 24px;
	line-height: 1.18;
	font-weight: 850;
	letter-spacing: -0.03em;
}

.aki-category-service-content p {
	margin: 0;
	color: #dce5f5;
	font-size: 9.5px;
	line-height: 1.6;
}

.aki-category-service-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.aki-category-call,
.aki-category-whatsapp {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
}

.aki-category-call {
	flex-direction: column;
	align-items: flex-start;
	padding: 7px 13px;
	background: #ffffff;
}

.aki-category-call span {
	color: #7d8796;
	font-size: 7px;
	font-weight: 700;
	text-transform: uppercase;
}

.aki-category-call strong {
	margin-top: 2px;
	color: #0a397f;
	font-size: 10px;
	font-weight: 850;
}

.aki-category-whatsapp {
	padding: 0 14px;
	background: #159a55;
	color: #ffffff;
	font-size: 9px;
	font-weight: 800;
}

.aki-category-whatsapp:hover,
.aki-category-whatsapp:focus {
	color: #ffffff;
	background: #0f874b;
}

/* =========================================================
   INFORMATION
   ========================================================= */

.aki-category-info-section {
	padding: 0 0 48px;
	background: #ffffff;
}

.aki-category-info-box {
	padding: 23px;
	border: 1px solid #e1e6ed;
	border-radius: 16px;
	background:
		linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%);
}

.aki-category-info-box h2 {
	margin-bottom: 14px;
	color: #172138;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 850;
	letter-spacing: -0.025em;
}

.aki-category-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 13px;
}

.aki-category-info-grid p {
	margin: 0;
	padding: 13px;
	border: 1px solid #e6eaf0;
	border-radius: 10px;
	background: #ffffff;
	color: #727d8f;
	font-size: 8.5px;
	line-height: 1.68;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

	.aki-category-hero-layout {
		grid-template-columns: 1fr 300px;
	}

	.aki-category-nav-grid {
		grid-template-columns: 1fr 1fr;
	}

	.aki-category-post-grid {
		grid-template-columns: 1fr 1fr;
	}

	.aki-category-info-grid {
		grid-template-columns: 1fr 1fr;
	}

	.aki-category-info-grid p:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {

	.aki-category-hero-layout {
		grid-template-columns: 1fr;
	}

	.aki-category-hero-card {
		justify-self: start;
		max-width: 420px;
	}

	.aki-category-service-card {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.aki-category-container {
		width: min(100% - 20px, var(--akic-container));
	}

	.aki-category-hero {
		padding: 32px 0 28px;
	}

	.aki-category-hero-content h1 {
		font-size: 30px;
	}

	.aki-category-hero-content p {
		font-size: 10.5px;
	}

	.aki-category-hero-card {
		width: 100%;
		max-width: none;
		padding: 18px;
	}

	.aki-category-hero-icon {
		width: 78px;
		height: 78px;
		border-radius: 20px;
	}

	.aki-category-hero-icon svg {
		width: 44px;
		height: 44px;
	}

	.aki-category-nav-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.aki-category-nav-card {
		padding: 9px;
		gap: 7px;
	}

	.aki-nav-icon {
		width: 31px;
		height: 31px;
		flex-basis: 31px;
	}

	.aki-nav-icon svg {
		width: 18px;
		height: 18px;
	}

	.aki-category-nav-card strong {
		font-size: 9px;
	}

	.aki-category-nav-card small {
		display: none;
	}

	.aki-category-content-section {
		padding: 38px 0 42px;
	}

	.aki-category-section-head h2 {
		font-size: 24px;
	}

	.aki-category-post-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.aki-category-post-content {
		padding: 10px;
	}

	.aki-category-post-content h2 {
		font-size: 10px;
	}

	.aki-category-post-content p {
		font-size: 7.7px;
	}

	.aki-category-read-more {
		font-size: 7.5px;
	}

	.aki-category-empty {
		padding: 30px 18px;
	}

	.aki-category-empty h2 {
		font-size: 21px;
	}

	.aki-category-service-card {
		padding: 22px 20px;
	}

	.aki-category-service-content h2 {
		font-size: 22px;
	}

	.aki-category-service-actions {
		width: 100%;
	}

	.aki-category-call,
	.aki-category-whatsapp {
		flex: 1;
	}

	.aki-category-info-grid {
		grid-template-columns: 1fr;
	}

	.aki-category-info-grid p:last-child {
		grid-column: auto;
	}
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.aki-category-container {
		width: min(100% - 16px, var(--akic-container));
	}

	.aki-category-hero-content h1 {
		font-size: 27px;
	}

	.aki-category-status,
	.aki-category-count {
		font-size: 7px;
	}

	.aki-category-nav-card {
		padding: 8px;
	}

	.aki-category-nav-card strong {
		font-size: 8.3px;
	}

	.aki-category-post-grid {
		grid-template-columns: 1fr;
	}

	.aki-category-post-content h2 {
		font-size: 12px;
	}

	.aki-category-post-content p {
		font-size: 8.5px;
	}

	.aki-category-empty-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.aki-category-empty-primary,
	.aki-category-empty-whatsapp {
		width: 100%;
	}

	.aki-category-service-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.aki-category-info-box {
		padding: 17px 14px;
	}
}

/* =========================================================
   VERY SMALL
   ========================================================= */

@media (max-width: 360px) {

	.aki-category-nav-grid,
	.aki-category-service-actions {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.aki-category-page a:focus-visible,
.aki-category-page button:focus-visible {
	outline: 2px solid var(--akic-blue);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

	.aki-category-page *,
	.aki-category-page *::before,
	.aki-category-page *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}