/* ============================================================
 * Growth Portfolio  (scoped: .gp-portfolio / .gp-spotlight)
 * ============================================================ */
.gp-portfolio,
.gp-spotlight {
	--gp-blue: #1a5fb4;
	--gp-gold: #f4b400;
	--gp-gold-soft: #f7e7bd;
	--gp-border: #cfe0f5;
	--gp-text: #1c2430;
	--gp-muted: #64748b;
	--gp-line: #e6ecf3;
	--gp-radius: 14px;
	color: var(--gp-text);
	font-family: 'Nunito', sans-serif !important;
}
.gp-portfolio *,
.gp-spotlight * {
	font-family: 'Nunito', sans-serif !important;
}

/* ---------- Head ---------- */
.gp-portfolio .gp-title {
	font-size: 2rem;
	font-weight: 800;
	color: #94a3b8;
	margin: 0 0 1.5rem;
}
.gp-portfolio .gp-title span {
	color: var(--gp-gold);
	font-style: italic;
}

/* ---------- Toolbar ---------- */
.gp-portfolio .gp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}
.gp-portfolio .gp-search {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 180px;
}
.gp-portfolio .gp-search-icon {
	position: absolute;
	left: 0;
	color: var(--gp-blue);
	pointer-events: none;
}
.gp-portfolio .gp-search-input {
	border: 0;
	border-bottom: 1px solid transparent;
	background: transparent;
	padding: .4rem .4rem .4rem 1.8rem;
	font-size: .95rem;
	outline: none;
	color: var(--gp-text);
	min-width: 140px;
}
.gp-portfolio .gp-search-input:focus {
	border-bottom-color: var(--gp-border);
}
.gp-portfolio .gp-filters {
	display: contents;
}

/* ---------- Filter dropdown (multiselect) ---------- */
.gp-portfolio .gp-dd {
	position: relative;
}
.gp-portfolio .gp-dd-toggle {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: transparent !important;
	border: 0 !important;
	padding: .3rem 0 !important;
	color: var(--gp-blue) !important;
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
	box-shadow: none !important;
}
.gp-portfolio .gp-dd.has-active .gp-dd-toggle {
	font-weight: 700;
}
.gp-portfolio .gp-caret {
	transition: transform .18s ease;
}
.gp-portfolio .gp-dd.is-open .gp-caret {
	transform: rotate(180deg);
}
.gp-portfolio .gp-dd-menu {
	position: absolute;
	top: calc(100% + .5rem);
	left: 0;
	z-index: 40;
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--gp-line);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(16, 42, 78, .12);
	padding: .5rem;
	display: none;
	max-height: 280px;
	overflow-y: auto;
}
.gp-portfolio .gp-dd.is-open .gp-dd-menu {
	display: block;
}
.gp-portfolio .gp-dd-item {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .45rem .5rem;
	border-radius: 7px;
	cursor: pointer;
	font-size: .9rem;
	color: var(--gp-text);
}
.gp-portfolio .gp-dd-item:hover {
	background: #f2f6fb;
}
.gp-portfolio .gp-dd-item input {
	width: 16px;
	height: 16px;
	accent-color: var(--gp-blue);
	margin: 0;
}

/* ---------- Sort ---------- */
.gp-portfolio .gp-sort {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--gp-border) !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--gp-blue) !important;
	cursor: pointer;
	box-shadow: none !important;
}
.gp-portfolio .gp-sort.is-desc svg {
	transform: scaleY(-1);
}

/* ---------- Grid + card ---------- */
.gp-portfolio .gp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	transition: opacity .2s ease;
}
.gp-portfolio .gp-grid.is-loading {
	opacity: .45;
	pointer-events: none;
}
.gp-portfolio .gp-card {
	position: relative;
	display: block;
	border: 1px solid var(--gp-border);
	border-radius: var(--gp-radius);
	background: #fff !important;
	aspect-ratio: 4 / 3;
	text-decoration: none !important;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
	z-index: 1;
	overflow: visible;
}
.gp-portfolio .gp-card:hover {
	transform: scale(1.05);
	box-shadow: 0 16px 34px rgba(16, 42, 78, .16);
	border-color: var(--gp-blue);
	z-index: 5;
}
.gp-portfolio .gp-card-inner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.75rem;
}
.gp-portfolio .gp-card-logo {
	max-width: 78%;
	max-height: 70%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.gp-portfolio .gp-card-name {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--gp-text);
	text-align: center;
}

/* status badge — hidden default, muncul saat hover */
.gp-portfolio .gp-badge {
	position: absolute;
	top: .75rem;
	right: .75rem;
	background: var(--gp-gold-soft);
	color: #8a6d1a;
	font-size: .72rem;
	font-weight: 600;
	padding: .28rem .7rem;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	z-index: 6;
}
.gp-portfolio .gp-card:hover .gp-badge {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Spotlight grid ---------- */
.gp-spotlight .gp-sl-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 2rem;
	transition: opacity .2s ease;
}
.gp-spotlight .gp-sl-grid.is-loading {
	opacity: .45;
	pointer-events: none;
}
.gp-spotlight .gp-sl-card {
	display: flex;
	flex-direction: column;
}
.gp-spotlight .gp-sl-media {
	border-radius: var(--gp-radius);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	margin-bottom: 1rem;
	background: #eef2f7;
}
.gp-spotlight .gp-sl-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gp-spotlight .gp-sl-title {
	font-size: 1.7rem;
	font-weight: 400;
	margin: 0 0 .5rem;
	color: var(--gp-text);
}
.gp-spotlight .gp-sl-desc {
	color: var(--gp-text);
	line-height: 1.6;
	margin: 0 0 1rem;
	font-size: .98rem;
}
.gp-spotlight .gp-sl-more {
	color: var(--gp-blue) !important;
	font-weight: 700;
	text-decoration: none !important;
	font-size: .95rem;
	margin-top: auto;
	align-self: flex-start;
}
.gp-spotlight .gp-sl-more:hover {
	text-decoration: underline !important;
	color: var(--gp-blue) !important;
}

/* ---------- Pagination ---------- */
.gp-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
}
.gp-pagination .gp-page {
	min-width: 40px;
	height: 40px;
	padding: 0 .6rem;
	border: 0 !important;
	background: transparent !important;
	border-radius: 999px;
	color: var(--gp-blue) !important;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none !important;
	transition: background .15s ease, color .15s ease;
}
.gp-pagination .gp-page:hover:not(:disabled):not(.is-active) {
	background: #eef4fb !important;
}
.gp-pagination .gp-page.is-active {
	background: var(--gp-gold) !important;
	color: #fff !important;
}
.gp-pagination .gp-page-nav {
	border: 1px solid var(--gp-border) !important;
	padding: 0 1.2rem !important;
}
.gp-pagination .gp-page:disabled {
	opacity: .4;
	cursor: not-allowed;
}
.gp-pagination .gp-page-dots {
	color: var(--gp-muted);
	padding: 0 .25rem;
}

/* ---------- Empty ---------- */
.gp-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--gp-muted);
	padding: 2rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.gp-portfolio .gp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.gp-portfolio .gp-grid { grid-template-columns: repeat(2, 1fr); }
	.gp-spotlight .gp-sl-grid { grid-template-columns: 1fr; }
	.gp-portfolio .gp-filters { margin-left: 0; }
	.gp-portfolio .gp-toolbar { gap: .75rem; }
}
@media (max-width: 480px) {
	.gp-portfolio .gp-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
	.gp-portfolio .gp-title { font-size: 1.5rem; }
}