/* GMS Elementor Blocks Styles */

.gms-testimonials-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	padding: 40px 0;
}

/* Header row: heading keeps its own alignment, arrows pin to the top right. */
.gms-testimonials-head {
	position: relative;
	margin-bottom: 50px;
}

.gms-testimonials-header {
	text-align: center;
}

.gms-testimonials-head .gms-testimonials-header {
	margin-bottom: 0;
}

.gms-testimonials-head .gms-slider-arrows {
	position: absolute;
	right: 0;
	bottom: 0;
	width: auto;
	justify-content: flex-end;
}

.gms-subtitle {
	color: #3b82f6; /* Blue */
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 10px;
	margin-top: 0;
}

.gms-title {
	color: #0f172a; /* Dark Slate */
	font-size: 36px;
	font-weight: 800;
	margin: 0;
	line-height: 1.2;
}

.gms-testimonials-slider {
	padding-bottom: 20px;
}

.swiper-slide {
	height: auto;
}

.gms-testimonial-card {
	height: 100%;
	background-color: #ffffff;
	border-radius: 12px;
	padding: 35px 30px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.gms-rating {
	margin-bottom: 20px;
}

.gms-rating .star {
	color: #e2e8f0;
	font-size: 16px;
	margin-right: 2px;
}

.gms-rating .star.active {
	color: #f59e0b; /* Amber */
}

.gms-content {
	margin-bottom: 30px;
}

.gms-content p {
	color: #475569;
	font-size: 15px;
	line-height: 1.6;
	font-style: italic;
	margin: 0;
}

.gms-author-meta {
	display: flex;
	align-items: center;
	margin-top: auto;
}

.gms-author-image {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 15px;
	flex-shrink: 0;
}

.gms-author-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gms-author-details {
	display: flex;
	flex-direction: column;
}

.gms-author-name {
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 3px 0;
}

.gms-author-designation {
	color: #94a3b8;
	font-size: 12px;
}

/* Slider Controls */
.gms-slider-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 40px;
	gap: 20px;
}

/* Dots and arrows share the GMS Testimonial Cards look. */
.gms-slider-controls .swiper-pagination {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	line-height: 0;
	/* Kills Swiper's own 4px bullet margin without !important */
	--swiper-pagination-bullet-horizontal-gap: 0px;
}

.gms-slider-controls .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	margin: 0;
	border-radius: 999px;
	background: #cbd5e1;
	opacity: 1;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.gms-slider-controls .swiper-pagination-bullet-active {
	width: 20px;
	background: #2563eb;
}

.gms-slider-arrows {
	display: flex;
	gap: 8px;
	justify-content: center;
	position: relative;
	width: 100%;
	/* Swiper sizes its chevron glyph from this */
	--swiper-navigation-size: 14px;
}

.gms-slider-arrows .swiper-button-prev,
.gms-slider-arrows .swiper-button-next {
	position: static;
	/* Swiper pulls these up with a negative margin-top when absolute */
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #ffffff;
	color: #64748b;
	border-radius: 50%;
	box-shadow: none;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	line-height: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* The chevron is an inline SVG, exactly like the Testimonial Cards block.
   Swiper's icon-font glyph would otherwise render on top at 44px. */
.gms-slider-arrows .swiper-button-prev::after,
.gms-slider-arrows .swiper-button-next::after {
	display: none;
	content: none;
}

.gms-slider-arrows .swiper-button-prev svg,
.gms-slider-arrows .swiper-button-next svg {
	display: block;
	width: 14px;
	height: 14px;
}

.gms-slider-arrows .swiper-button-prev:hover,
.gms-slider-arrows .swiper-button-next:hover {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}


.gms-slider-arrows .swiper-button-disabled {
	opacity: 0.4;
}

/* No room beside a centered heading on small screens — drop them below it. */
@media (max-width: 767px) {
	.gms-testimonials-head .gms-slider-arrows {
		position: static;
		justify-content: center;
		margin-top: 20px;
	}
}

/* ========================================= */
/* Workflow Widget CSS
/* ========================================= */

.gms-workflow-wrapper {
	width: 100%;
	--icon-box-size: 36px; /* default */
}

.gms-wf-header {
	text-align: center;
	margin-bottom: 50px;
}

.gms-wf-subtitle {
	color: #3b82f6;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 15px;
}

.gms-wf-title {
	font-size: 32px;
	font-weight: 800;
	color: #1e293b;
	margin: 0;
}

.gms-wf-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 992px) {
	.gms-wf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.gms-wf-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.gms-wf-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	border: 1px solid #f1f5f9;
	/* Grid items default to min-width:auto, which lets long text push the
	   column wider than its track and overflow the page on small screens. */
	min-width: 0;
}

.gms-wf-card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 30px;
	font-weight: 700;
	font-size: 16px;
	color: #0f172a;
}

.gms-wf-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.gms-wf-steps {
	display: flex;
	flex-direction: column;
}

.gms-wf-step {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	position: relative;
	padding-bottom: 30px;
}

.gms-wf-step:last-child {
	padding-bottom: 0;
}

.gms-wf-step-icon {
	width: var(--icon-box-size);
	height: var(--icon-box-size);
	background: #f8fafc;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #64748b;
	border: 1px solid #e2e8f0;
	position: relative;
	z-index: 2;
	flex-shrink: 0;
}

/* Vertical dashed line connecting icons */
.gms-wf-step:not(:last-child)::after {
	content: '';
	position: absolute;
	left: calc(var(--icon-box-size) / 2 - 1px);
	top: var(--icon-box-size);
	bottom: 5px; /* Leave a gap before next icon */
	width: 2px;
	background-image: linear-gradient(to bottom, #cbd5e1 50%, transparent 50%);
	background-size: 2px 8px;
	background-repeat: repeat-y;
	z-index: 1;
}

/* Arrow inside the dashed line (optional, user image had small arrows) */
.gms-wf-step:not(:last-child)::before {
	content: '';
	position: absolute;
	left: calc(var(--icon-box-size) / 2 - 4px);
	bottom: -4px;
	border-width: 4px;
	border-style: solid;
	border-color: #cbd5e1 transparent transparent transparent;
	z-index: 1;
}

.gms-wf-step-text {
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	padding-top: 8px;
	min-width: 0;
	overflow-wrap: break-word;
}

/* Workflow responsive tightening */
@media (max-width: 1024px) {
	.gms-wf-step {
		gap: 14px;
	}
}

@media (max-width: 767px) {
	.gms-wf-header {
		margin-bottom: 32px;
	}

	.gms-wf-title {
		font-size: 26px;
	}

	.gms-wf-card {
		padding: 24px 20px;
	}

	.gms-wf-card-title {
		margin-bottom: 22px;
	}

	.gms-wf-step {
		padding-bottom: 22px;
		gap: 14px;
	}

	.gms-wf-step-text {
		font-size: 13px;
		padding-top: 6px;
	}
}

/* ========================================= */
/* Post Grid Widget CSS
/* ========================================= */
.gms-grid-header-wrap {
	margin-bottom: 25px;
}
.gms-grid-header {
	color: #94a3b8;
	font-size: 14px;
	font-weight: 500;
	padding-bottom: 5px;
	display: inline-block;
}
.gms-grid-header .gms-grid-count {
	font-weight: 800;
	color: #0f172a;
}

.gms-grid-inner {
	display: grid;
	gap: 30px;
}
.gms-post-grid-wrapper.gms-grid-cols-2 .gms-grid-inner { grid-template-columns: repeat(2, 1fr); }
.gms-post-grid-wrapper.gms-grid-cols-3 .gms-grid-inner { grid-template-columns: repeat(3, 1fr); }
.gms-post-grid-wrapper.gms-grid-cols-4 .gms-grid-inner { grid-template-columns: repeat(4, 1fr); }

/* Featured Exact Mosaic Layout */
@media (min-width: 993px) {
	.gms-post-grid-wrapper.gms-grid-featured-first .gms-grid-inner {
		grid-template-columns: repeat(3, 1fr);
	}
	.gms-post-grid-wrapper.gms-grid-featured-first .gms-grid-inner > article:nth-child(1) {
		grid-column: span 2;
	}
	.gms-post-grid-wrapper.gms-grid-featured-first .gms-grid-inner > article:nth-child(4) {
		grid-column: span 2;
	}
}

@media (max-width: 992px) {
	.gms-post-grid-wrapper[class*="gms-grid-cols-"] .gms-grid-inner {
		grid-template-columns: repeat(2, 1fr);
	}
	.gms-post-grid-wrapper.gms-grid-featured-first .gms-grid-inner > article:nth-child(1) {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.gms-post-grid-wrapper[class*="gms-grid-cols-"] .gms-grid-inner {
		grid-template-columns: 1fr;
	}
	.gms-post-grid-wrapper.gms-grid-featured-first .gms-grid-inner > article:nth-child(1),
	.gms-post-grid-wrapper.gms-grid-featured-first .gms-grid-inner > article:nth-child(4) {
		grid-column: span 1;
	}
}

.gms-post-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #f1f5f9;
}

.gms-post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.gms-post-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 55%; /* Aspect ratio */
	overflow: hidden;
	background: #f1f5f9;
}

.gms-post-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gms-post-card:hover .gms-post-thumbnail img {
	transform: scale(1.05);
}

.gms-post-badges {
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	gap: 8px;
	z-index: 2;
}

.gms-post-badge {
	color: #fff;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: capitalize;
	letter-spacing: 0.5px;
}

.gms-post-badge.gms-badge-1 {
	background: #3b82f6; /* Blue */
}

.gms-post-badge.gms-badge-2 {
	background: #64748b; /* Slate */
}

.gms-post-badge.gms-badge-3 {
	background: #10b981; /* Green */
}

.gms-post-content-wrap {
	padding: 30px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.gms-post-meta {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 12px;
}

.gms-post-title {
	margin: 0 0 15px 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}

.gms-post-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s;
}

.gms-post-title a:hover {
	color: #3b82f6;
}

.gms-post-excerpt {
	color: #64748b;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 25px;
	flex-grow: 1;
}

/* Nothing follows the last block in a card, so its bottom margin is dead space.
   Matters most when a post has no stats and the excerpt ends the card. */
.gms-post-content-wrap > *:last-child {
	margin-bottom: 0;
}

/* Stats Section */
.gms-post-stats {
	display: flex;
	justify-content: flex-start;
	gap: 40px;
	align-items: center;
	padding-top: 15px;
	margin-top: auto;
}

.gms-stat-item {
	display: flex;
	flex-direction: column;
}

.gms-stat-val {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 4px;
	line-height: 1;
	color: #3b82f6; /* Default Blue */
}

.gms-stat-label {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 500;
}

/* Secondary badge is always slate by default, but we'll control it inline now */
/* Removed nth-child hardcoded colors to allow dynamic Elementor controls */

.gms-view-all-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.gms-btn-dark {
	background: #0f172a;
	color: #fff;
	padding: 14px 28px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: background 0.3s;
}

.gms-btn-dark:hover {
	background: #3b82f6;
	color: #fff;
}

