/* =========================================================
   GCTS Services Mega Menu — 4 Column Card Layout
   ========================================================= */

li.mega-menu {
	position: relative;
}

/* Small connector arrow under the "Services" link */
.gcts-mega-arrow {
	position: absolute;
	top: -7px;
	left: 40px;
	width: 14px;
	height: 14px;
	background: #FAFCFB;
	border-left: 1px solid var(--gcts-border);
	border-top: 1px solid var(--gcts-border);
	transform: rotate(45deg);
	z-index: 2;
}

/* Panel */
.gcts-mega-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	background: linear-gradient(180deg, #FAFCFB 0%, #F3F8F6 100%);
	border: 1px solid var(--gcts-border);
	border-radius: 20px;
	box-shadow: 0 20px 45px rgba(15, 78, 65, 0.14);
	padding: 28px;
	width: min(1000px, 92vw);
	z-index: 500;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

li.mega-menu:hover > .gcts-mega-panel,
li.mega-menu.gcts-mega-open > .gcts-mega-panel {
	opacity: 1;
	visibility: visible;
}

/* 4-column grid */
.gcts-mega-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

/* Card */
.svc-card {
	background: #ffffff;
	border: 1px solid var(--gcts-border);
	border-radius: 16px;
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	list-style: none;
}

.svc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 28px rgba(15, 110, 86, 0.14);
	border-color: var(--gcts-teal);
}

.svc-card .card-header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 52px;
	margin-bottom: 6px;
}

.svc-card .card-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--gcts-teal-tint);
	color: var(--gcts-teal);
}

.svc-card .card-icon i {
	font-size: 18px;
}

.svc-card .title-line {
	padding-top: 6px;
}

.svc-card .title-line a {
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -0.1px;
	color: #0C3B33;
	line-height: 1.35;
	text-decoration: none;
}

.count-badge-wrap {
	margin-bottom: 8px;
}

.count-badge {
	font-size: 10px;
	font-weight: 600;
	color: #6B7C78;
	background: #F0F3F2;
	padding: 2px 8px;
	border-radius: 20px;
	white-space: nowrap;
}

.svc-card .svc-desc {
	font-size: 11.5px;
	color: var(--gcts-text-muted);
	line-height: 1.5;
	margin-bottom: 10px;
}

.svc-list {
	display: flex;
	flex-direction: column;
}

.svc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	font-size: 12.5px;
	color: #4B5B57;
	border-bottom: 1px solid #F0F3F2;
	text-decoration: none;
}

.svc-item:hover {
	color: var(--gcts-teal);
}

.svc-list .svc-item:last-child {
	border-bottom: none;
}

.badge {
	font-size: 9.5px;
	font-weight: 600;
	color: var(--gcts-teal);
	background: var(--gcts-teal-tint);
	padding: 2px 7px;
	border-radius: 20px;
	letter-spacing: 0.2px;
	white-space: nowrap;
	margin-left: 8px;
}

.view-all {
	margin-top: auto;
	padding-top: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--gcts-teal);
	display: flex;
	align-items: center;
	gap: 4px;
	text-decoration: none;
}

.view-all i {
	font-size: 13px;
}

/* Per-card icon color variation, in the order the cards appear:
   1 = USA Services (teal), 2 = Pakistan Services (green),
   3 = E-commerce Solutions (amber), 4 = Verified Bank Accounts (navy) */
.gcts-mega-grid .svc-card:nth-child(1) .card-icon { background: #E1F5EE; color: #0F6E56; }
.gcts-mega-grid .svc-card:nth-child(2) .card-icon { background: #E3EFE0; color: #2F6B3A; }
.gcts-mega-grid .svc-card:nth-child(3) .card-icon { background: #FBE9D0; color: #B4791A; }
.gcts-mega-grid .svc-card:nth-child(4) .card-icon { background: #DCE4F5; color: #2C4C8C; }

/* Bottom footer row: trust line + CTA buttons */
.gcts-mega-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--gcts-border);
	flex-wrap: wrap;
	gap: 12px;
}

.gcts-mega-trust {
	font-size: 11.5px;
	color: var(--gcts-text-muted);
}

.gcts-mega-trust i {
	color: var(--gcts-teal);
	font-size: 13px;
	margin-right: 5px;
}

.gcts-mega-cta {
	display: flex;
	gap: 10px;
}

.cta-outline,
.cta-filled {
	font-size: 13.5px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	white-space: nowrap;
}

.cta-outline {
	border: 1.5px solid var(--gcts-teal);
	color: var(--gcts-teal);
	background: #ffffff;
}

.cta-outline:hover {
	background: var(--gcts-teal-tint);
	color: var(--gcts-teal);
}

.cta-filled {
	background: var(--gcts-teal);
	color: #ffffff;
	border: 1.5px solid var(--gcts-teal);
}

.cta-filled:hover {
	background: var(--gcts-teal-dark);
	color: #ffffff;
}

/* Mobile: stack cards, switch panel to static block instead of floating */
@media (max-width: 921px) {
	.gcts-mega-panel {
		position: static;
		transform: none;
		width: auto;
		box-shadow: none;
		border-radius: 0;
		margin-top: 0;
	}

	.gcts-mega-grid {
		grid-template-columns: 1fr;
	}

	.gcts-mega-arrow {
		display: none;
	}

	.gcts-mega-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}
