/* HALA Portfolio. Colors taken from hala.capital. */
.hp-portfolio,
.hp-single {
	--hp-bg: #ffffff;
	--hp-ink: #0D2C35;
	--hp-text: #000000;
	--hp-band: #DCD5BE;
	--hp-gold: #AD882E;
	--hp-gold-text: #8A6A23;
	--hp-border: #DCE5F0;
	--hp-line: #E8EEF5;
	--hp-soft: #F4F7FB;
	--hp-chip: #F1F6FC;
	--hp-muted: #51606B;
	--hp-idle: #3D4F5A;
	--hp-pill-border: #CBD7E4;
	--hp-radius: 20px;
	color: var(--hp-ink);
	box-sizing: border-box;
}
.hp-portfolio *,
.hp-single * {
	box-sizing: border-box;
}
.hp-portfolio [hidden],
.hp-single [hidden] {
	display: none !important;
}

/* Theme resets for buttons and links inside the plugin. */
.hp-portfolio button.hp-tab,
.hp-portfolio button.hp-filter {
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	width: auto;
	height: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.hp-portfolio a,
.hp-single a {
	text-decoration: none;
	box-shadow: none;
}
.hp-icon {
	display: block;
	flex-shrink: 0;
}
[dir="rtl"] .hp-flip,
.rtl .hp-flip {
	transform: scaleX(-1);
}

/* ---------- Section ---------- */
.hp-portfolio {
	container-type: inline-size;
	container-name: hp;
	background: var(--hp-bg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	width: 100%;
}
.hp-title {
	margin: 0;
	text-align: center;
	font-size: clamp(34px, 4.2vw, 60px);
	font-weight: 800;
	line-height: 1.1;
	color: var(--hp-ink);
}
.hp-title span {
	padding: 0 8px;
	background: linear-gradient(transparent 62%, var(--hp-band) 62%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------- Tabs ---------- */
.hp-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}
.hp-portfolio button.hp-tab {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	padding: 12px 16px 12px 28px;
	padding-block: 12px;
	padding-inline: 28px 16px;
	border-radius: 999px;
	border: 1px solid var(--hp-pill-border);
	background: #ffffff;
	color: var(--hp-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hp-portfolio button.hp-tab:hover {
	border-color: var(--hp-ink);
}
.hp-portfolio button.hp-tab.is-active {
	background: var(--hp-ink);
	border-color: var(--hp-ink);
	color: #ffffff;
}
.hp-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--hp-chip);
	color: var(--hp-idle);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.hp-tab.is-active .hp-tab-count {
	background: rgba(255, 255, 255, .18);
	color: #ffffff;
}

/* ---------- Category filters ---------- */
.hp-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 40px;
	row-gap: 4px;
	max-width: 1240px;
}
.hp-portfolio button.hp-filter {
	min-height: 44px;
	min-width: 44px;
	flex-shrink: 0;
	text-align: center;
	padding: 10px 2px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--hp-idle);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	transition: color .2s ease, border-color .2s ease;
}
.hp-portfolio button.hp-filter:hover {
	color: var(--hp-ink);
}
.hp-portfolio button.hp-filter.is-active {
	color: var(--hp-ink);
	font-weight: 700;
	border-bottom-color: var(--hp-gold);
}
.hp-portfolio button:focus-visible,
.hp-portfolio a:focus-visible,
.hp-single a:focus-visible {
	outline: 2px solid var(--hp-gold);
	outline-offset: 3px;
}

/* ---------- Grid and cards ---------- */
.hp-grid {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.hp-card {
	display: flex;
	flex-direction: column;
	min-height: 520px;
	background: #ffffff;
	border: 1px solid var(--hp-border);
	border-radius: var(--hp-radius);
	overflow: hidden;
	color: var(--hp-text);
	transition: box-shadow .2s ease, transform .2s ease;
}
.hp-card:hover {
	box-shadow: 0 14px 34px rgba(13, 44, 53, .10);
	transform: translateY(-3px);
}
.hp-card-logo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 280px;
	padding: 36px;
	background: #ffffff;
	border-bottom: 1px solid var(--hp-line);
}
.hp-card-logo .hp-logo-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.hp-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 150px;
	border-radius: 32px;
	background: var(--hp-soft);
	border: 1px solid var(--hp-border);
	color: var(--hp-ink);
	font-size: 52px;
	font-weight: 800;
	line-height: 1;
}
.hp-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}
.hp-card-logo .hp-badge {
	position: absolute;
	inset-block-start: 16px;
	inset-inline-start: 16px;
}
.hp-badge-body {
	display: none;
}
.hp-badge-tried {
	background: #F3ECDC;
	color: #6B4F12;
}
.hp-badge-exit {
	background: #E3EFE9;
	color: #1D5A43;
}
.hp-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
	padding: 28px 32px 32px;
}
.hp-card-sector {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hp-gold-text);
}
.hp-card-name {
	overflow-wrap: anywhere;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--hp-text);
}
.hp-card-desc {
	font-size: 16px;
	line-height: 1.55;
	color: var(--hp-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hp-card-meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--hp-line);
	font-size: 13px;
	color: var(--hp-muted);
}
.hp-empty {
	margin: 0;
	color: var(--hp-muted);
	font-size: 16px;
}

/* ---------- Button ---------- */
.hp-cta-wrap {
	display: flex;
	justify-content: center;
}
.hp-portfolio a.hp-cta,
.hp-single a.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 16px 34px;
	border-radius: 999px;
	background: var(--hp-ink);
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	transition: background-color .2s ease;
}
.hp-portfolio a.hp-cta:hover,
.hp-single a.hp-btn:hover {
	background: #1A4552;
	color: #ffffff;
}

/* ---------- Single page ---------- */
.hp-single {
	background: var(--hp-bg);
	padding-bottom: 96px;
}
.hp-wrap {
	container-type: inline-size;
	container-name: hpsingle;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.hp-single a.hp-back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--hp-ink);
	font-size: 15px;
	font-weight: 600;
}
.hp-single a.hp-back:hover {
	color: var(--hp-gold-text);
}
.hp-hero {
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 48px;
	background: #ffffff;
	border: 1px solid var(--hp-border);
	border-radius: 24px;
}
.hp-hero-logo {
	flex-shrink: 0;
	width: 148px;
	height: 148px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 28px;
	background: #ffffff;
	border: 1px solid var(--hp-border);
	padding: 16px;
	overflow: hidden;
}
.hp-hero-logo .hp-logo-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.hp-hero-logo .hp-initials {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 18px;
}
.hp-hero-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.hp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.hp-chip {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #F6F0E2;
	color: var(--hp-gold-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.hp-single h1.hp-hero-name {
	margin: 0;
	font-size: clamp(38px, 4.4vw, 60px);
	font-weight: 800;
	line-height: 1.05;
	color: var(--hp-ink);
}
.hp-hero-short {
	margin: 0;
	max-width: 720px;
	font-size: 19px;
	line-height: 1.5;
	color: var(--hp-text);
}
.hp-hero-actions {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}
.hp-socials {
	display: flex;
	justify-content: center;
	gap: 12px;
}
.hp-socials.is-spread {
	justify-content: space-between;
}
.hp-hero-actions.no-btn .hp-socials {
	justify-content: flex-end;
}
.hp-single a.hp-soc {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid var(--hp-pill-border);
	background: #ffffff;
	color: var(--hp-ink);
	transition: background-color .2s ease, color .2s ease;
}
.hp-single a.hp-soc:hover {
	background: var(--hp-ink);
	color: #ffffff;
}
.hp-single a.hp-soc-sm {
	width: 44px;
	height: 44px;
}

.hp-facts {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
.hp-fact {
	padding: 22px 26px;
	background: #ffffff;
	border: 1px solid var(--hp-border);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hp-fact dt {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--hp-muted);
}
.hp-fact dd {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--hp-ink);
}

.hp-body {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.hp-body.no-side {
	grid-template-columns: minmax(0, 1fr);
}
.hp-main {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.hp-panel {
	background: #ffffff;
	border: 1px solid var(--hp-border);
	border-radius: var(--hp-radius);
	padding: 40px;
}
.hp-single .hp-panel h2,
.hp-single .hp-related h2 {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--hp-ink);
}
.hp-about-text p {
	margin: 0 0 1em;
	font-size: 17px;
	line-height: 1.75;
	color: var(--hp-text);
}
.hp-about-text p:last-child {
	margin-bottom: 0;
}
.hp-team {
	margin: 0;
	border-radius: var(--hp-radius);
	overflow: hidden;
}
.hp-team img {
	display: block;
	width: 100%;
	height: auto;
}
.hp-founders {
	padding: 36px;
}
.hp-founders ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.hp-founder {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border-radius: 14px;
	background: var(--hp-soft);
	margin: 0;
}
.hp-founder-avatar {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--hp-ink);
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
}
.hp-founder-avatar.has-photo {
	background: var(--hp-border);
	overflow: hidden;
}
.hp-founder-avatar .hp-founder-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
	display: block;
}
.hp-founder-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.hp-founder-name {
	font-size: 17px;
	font-weight: 700;
	color: var(--hp-ink);
}
.hp-founder-role {
	font-size: 14px;
	color: var(--hp-muted);
}

.hp-related {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.hp-related-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}
.hp-single .hp-related-head h2 {
	margin: 0;
	font-size: 32px;
}
.hp-single .hp-related-head a {
	flex-shrink: 0;
	white-space: nowrap;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--hp-ink);
}

/* ---------- Responsive (sizes follow the element's own width, so it
   works in full-width WPBakery rows and in narrow columns alike) ---------- */
@container hp (max-width: 1000px) {
	.hp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}
@container hp (max-width: 620px) {
	.hp-portfolio {
		gap: 24px;
	}
	.hp-tabs {
		flex-wrap: nowrap;
		width: 100%;
		gap: 6px;
	}
	.hp-portfolio button.hp-tab {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 46px;
		justify-content: center;
		padding-inline: 12px 8px;
		gap: 6px;
		font-size: 14px;
		line-height: 1.15;
		text-align: center;
		white-space: normal;
	}
	.hp-tab-count {
		flex-shrink: 0;
	}
	.hp-tab-count {
		min-width: 24px;
		height: 22px;
		padding: 0 6px;
		font-size: 12px;
	}
	.hp-filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		column-gap: 22px;
		width: 100%;
		padding-inline: 4px 28px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
	}
	[dir="rtl"] .hp-filters,
	.rtl .hp-filters {
		padding-inline: 4px 28px;
		-webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
		mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
	}
	.hp-filters::-webkit-scrollbar {
		display: none;
	}
	.hp-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.hp-card {
		flex-direction: row;
		align-items: stretch;
		min-height: 0;
		border-radius: 16px;
	}
	.hp-card:hover {
		transform: none;
	}
	.hp-card .hp-card-logo {
		width: 104px;
		height: auto;
		flex-shrink: 0;
		padding: 14px;
		border-bottom: 0;
		border-inline-end: 1px solid var(--hp-line);
	}
	.hp-card .hp-card-logo .hp-initials {
		width: 68px;
		height: 68px;
		font-size: 24px;
		border-radius: 16px;
	}
	.hp-card .hp-card-logo .hp-badge {
		display: none;
	}
	.hp-card .hp-badge-body {
		display: inline-block;
		align-self: flex-start;
		font-size: 11px;
		padding: 3px 8px;
	}
	.hp-card .hp-card-body {
		min-width: 0;
		padding: 14px 16px;
		gap: 5px;
	}
	.hp-card .hp-card-sector {
		font-size: 11px;
	}
	.hp-card .hp-card-name {
		font-size: 20px;
	}
	.hp-card .hp-card-desc {
		font-size: 14px;
		line-height: 1.45;
		-webkit-line-clamp: 2;
	}
	.hp-card .hp-card-meta {
		padding-top: 8px;
		font-size: 12px;
	}
}
@container hpsingle (max-width: 1000px) {
	.hp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	.hp-hero {
		flex-wrap: wrap;
	}
	.hp-hero-main {
		flex-basis: calc(100% - 188px);
	}
	.hp-hero-actions {
		width: 100% !important;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.hp-socials,
	.hp-socials.is-spread,
	.hp-hero-actions.no-btn .hp-socials {
		justify-content: flex-start;
	}
	.hp-body {
		grid-template-columns: minmax(0, 1fr);
	}
}
@container hpsingle (max-width: 620px) {
	.hp-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.hp-card {
		flex-direction: row;
		align-items: stretch;
		min-height: 0;
		border-radius: 16px;
	}
	.hp-card:hover {
		transform: none;
	}
	.hp-card .hp-card-logo {
		width: 104px;
		height: auto;
		flex-shrink: 0;
		padding: 14px;
		border-bottom: 0;
		border-inline-end: 1px solid var(--hp-line);
	}
	.hp-card .hp-card-logo .hp-initials {
		width: 68px;
		height: 68px;
		font-size: 24px;
		border-radius: 16px;
	}
	.hp-card .hp-card-logo .hp-badge {
		display: none;
	}
	.hp-card .hp-badge-body {
		display: inline-block;
		align-self: flex-start;
		font-size: 11px;
		padding: 3px 8px;
	}
	.hp-card .hp-card-body {
		min-width: 0;
		padding: 14px 16px;
		gap: 5px;
	}
	.hp-card .hp-card-sector {
		font-size: 11px;
	}
	.hp-card .hp-card-name {
		font-size: 20px;
	}
	.hp-card .hp-card-desc {
		font-size: 14px;
		line-height: 1.45;
		-webkit-line-clamp: 2;
	}
	.hp-card .hp-card-meta {
		padding-top: 8px;
		font-size: 12px;
	}
	.hp-hero {
		padding: 24px;
		gap: 18px;
	}
	.hp-hero-logo {
		width: 88px;
		height: 88px;
		border-radius: 20px;
		padding: 10px;
	}
	.hp-hero-main {
		flex-basis: 100%;
	}
	.hp-hero-short {
		font-size: 17px;
	}
	.hp-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.hp-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.hp-fact {
		padding: 14px 16px;
	}
	.hp-fact dd {
		font-size: 18px;
	}
	.hp-panel,
	.hp-founders {
		padding: 22px;
	}
	.hp-single .hp-panel h2 {
		font-size: 24px;
	}
	.hp-about-text p {
		font-size: 16px;
		line-height: 1.7;
	}
	.hp-founder {
		padding: 12px;
		gap: 12px;
	}
	.hp-founder-avatar {
		width: 46px;
		height: 46px;
		font-size: 16px;
	}
	.hp-single .hp-related-head h2 {
		font-size: 24px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hp-card,
	.hp-portfolio button.hp-tab,
	.hp-portfolio button.hp-filter {
		transition: none;
	}
	.hp-card:hover {
		transform: none;
	}
}

/* Arabic: letter-spacing and uppercase break Arabic letter joining. */
[dir="rtl"] .hp-card-sector,
[dir="rtl"] .hp-chip,
.rtl .hp-card-sector,
.rtl .hp-chip {
	letter-spacing: 0;
	text-transform: none;
	font-size: 13px;
}
