/**
 * VMG Widget Styles
 * Vision, Mission & Goals Section
 * @package VMG_Widget
 */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* CSS Variables for Theme Colors */
:root {
	--primary: #2a97aa;
	--primary-light: #3aa6b9;
	--primary-dark: #2a8696;
	--accent: #94c17d;
	--accent-secondary: #35a9a6;
	--surface: #ffffff;
	--surface-alt: #e8f5f6;
	--text-primary: #39414d;
	--text-secondary: #4a5361;
	--text-tertiary: #adc6c8;
	--border: #9ad8d0;
	--gradient-gov: linear-gradient(135deg, #2a97aa 0%, #37ada9 100%);
	--shadow-md: 0 4px 6px -1px rgba(42, 151, 170, 0.1);
	--shadow-xl: 0 25px 50px -12px rgba(42, 151, 170, 0.25);
}

.vmg-section {
	padding: 30px 15px;
/* 	background: linear-gradient(180deg, #e8f5f6 0%, #ffffff 100%); */
}

.vmg-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header Section */
.vmg-section-header {
	text-align: center;
	margin-bottom: 60px;
}

.vmg-section-subtitle {
	color: #2a97aa;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 15px;
	position: relative;
	display: inline-block;
}

.vmg-section-subtitle::before,
.vmg-section-subtitle::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 30px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #35a9a6);
}

.vmg-section-subtitle::before {
	left: -40px;
}

.vmg-section-subtitle::after {
	right: -40px;
	background: linear-gradient(90deg, #35a9a6, transparent);
}

.vmg-section-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	background: linear-gradient(135deg, #2a97aa 0%, #37ada9 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 20px;
	letter-spacing: -1px;
}

.vmg-section-description {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: #4a5361;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.8;
	padding: 0 15px;
}

/* VMG Grid - Same as Blog Posts */
.vmg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 35px;
	margin-bottom: 80px;
	width: 100%;
	box-sizing: border-box;
}

/* Modern Card - Same as Blog Posts */
.vmg-card {
	background: #ffffff;
	border-radius: 24px;
	padding: clamp(40px, 5vw, 60px) clamp(25px, 4vw, 40px);
	text-align: center;
	position: relative;
	overflow: hidden;
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 0 4px 6px -1px rgba(42, 151, 170, 0.1);
	border: 1px solid #9ad8d0;
	/* Scroll-triggered animations */
	opacity: 0;
	transform: translateY(50px);
}

.vmg-card.show {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered delays for Vision, Mission, Values */
.vmg-card:nth-child(1).show {
	transition-delay: 0.2s;
}

.vmg-card:nth-child(2).show {
	transition-delay: 0.4s;
}

.vmg-card:nth-child(3).show {
	transition-delay: 0.6s;
}

.vmg-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(42, 151, 170, 0.05) 0%, rgba(148, 193, 125, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
	z-index: 1;
}

/* HOVER EFFECT */
.vmg-card:hover {
	transform: translateY(-12px) scale(1.02) !important;
	box-shadow: 0 25px 50px -12px rgba(42, 151, 170, 0.25) !important;
	border-color: transparent !important;
}

.vmg-card:hover::before {
	opacity: 1;
}

/* Icon Styles */
.card-icon-wrapper {
	margin: 0 auto 30px;
	position: relative;
	width: clamp(100px, 20vw, 140px);
	height: clamp(100px, 20vw, 140px);
	opacity: 0;
	transform: translateY(30px) scale(0.8);
}

.vmg-card.show .card-icon-wrapper {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.icon-circle {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a97aa 0%, #35a9a6 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-shadow: 0 15px 50px rgba(42, 151, 170, 0.3);
	z-index: 1;
}

.icon-circle::before {
	content: '';
	position: absolute;
	inset: -3px;
	background: linear-gradient(135deg, #3aa6b9, #9ad8d0, #37ada9);
	border-radius: 50%;
	z-index: -1;
	opacity: 0;
	filter: blur(10px);
	transition: opacity 0.5s ease;
	animation: rotate 4s linear infinite;
}

.vmg-card:hover .icon-circle::before {
	opacity: 1;
}

.icon-circle::after {
	content: '';
	position: absolute;
	inset: 8px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
	border-radius: 50%;
	backdrop-filter: blur(5px);
}

.card-icon {
	width: 50%;
	height: 50%;
	fill: #ffffff;
	position: relative;
	z-index: 2;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vmg-card:hover .card-icon {
	transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* Animated Rings */
.icon-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 2px solid rgba(42, 151, 170, 0.2);
	border-radius: 50%;
	animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.icon-ring:nth-child(1) {
	width: 110%;
	height: 110%;
	animation-delay: 0s;
}

.icon-ring:nth-child(2) {
	width: 130%;
	height: 130%;
	animation-delay: 0.5s;
}

.icon-ring:nth-child(3) {
	width: 150%;
	height: 150%;
	animation-delay: 1s;
}

@keyframes pulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0.4;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.1);
		opacity: 0.1;
	}
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Card Content */
.vmg-card-content {
	position: relative;
	z-index: 2;
}

/* Card Title */
.vmg-card-title {
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: #39414d;
	margin: 0 0 20px 0;
	line-height: 1.4;
	transition: color 0.3s ease;
	letter-spacing: -0.5px;
}

/* TITLE HOVER */
.vmg-card:hover .vmg-card-title {
	color: #3aa6b9 !important;
}

/* Card Text */
.vmg-card-text {
	color: #4a5361;
	line-height: 1.7;
	font-size: 16px;
	flex-grow: 1;
	text-align: center;
/* 	margin-bottom: 25px; */
}

/* Goals Section */
.vmg-goals-section {
	background: #ffffff;
	border-radius: 24px;
	padding: clamp(40px, 5vw, 70px) clamp(25px, 4vw, 60px);
	transition: all 0.8s ease;
	box-shadow: 0 4px 6px -1px rgba(42, 151, 170, 0.1);
	border: 1px solid #9ad8d0;
	/* Scroll-triggered animations */
	opacity: 0;
	transform: translateY(50px);
}

.vmg-goals-section.show {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.8s ease, transform 0.8s ease;
	transition-delay: 0.2s;
}

.vmg-goals-header {
	text-align: center;
	margin-bottom: clamp(40px, 5vw, 60px);
}

.vmg-goals-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	background: linear-gradient(135deg, #2a97aa 0%, #37ada9 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 12px;
	letter-spacing: -1px;
}

.vmg-goals-subtitle {
	font-size: clamp(1rem, 2vw, 1.125rem);
	color: #4a5361;
}

/* Goals Grid */
.vmg-goals-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(20px, 3vw, 30px);
}

/* Goal Item - Same Card Style */
.vmg-goal-item {
	background: #ffffff;
	border-radius: 20px;
	padding: clamp(25px, 3vw, 35px);
	border: 1px solid #9ad8d0;
	box-shadow: 0 4px 6px -1px rgba(42, 151, 170, 0.1);
	transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	position: relative;
	overflow: hidden;
	/* Scroll-triggered animations */
	opacity: 0;
	transform: translateY(30px);
}

.vmg-goal-item.show {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered delays for goal items (100ms, 200ms, 300ms, etc.) */
.vmg-goal-item:nth-child(1).show { transition-delay: 0.1s; }
.vmg-goal-item:nth-child(2).show { transition-delay: 0.2s; }
.vmg-goal-item:nth-child(3).show { transition-delay: 0.3s; }
.vmg-goal-item:nth-child(4).show { transition-delay: 0.4s; }
.vmg-goal-item:nth-child(5).show { transition-delay: 0.5s; }
.vmg-goal-item:nth-child(6).show { transition-delay: 0.6s; }

.vmg-goal-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(42, 151, 170, 0.05) 0%, rgba(148, 193, 125, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.vmg-goal-item:hover {
	transform: translateY(-8px) scale(1.02) !important;
	box-shadow: 0 25px 50px -12px rgba(42, 151, 170, 0.25) !important;
	border-color: transparent !important;
}

.vmg-goal-item:hover::before {
	opacity: 1;
}

.vmg-goal-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	position: relative;
	z-index: 1;
}

.vmg-goal-number {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #2a97aa 0%, #35a9a6 100%);
	color: white;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(42, 151, 170, 0.3);
	position: relative;
}

.vmg-goal-number::before {
	content: '';
	position: absolute;
	inset: -2px;
	background: linear-gradient(135deg, #3aa6b9, #9ad8d0);
	border-radius: 14px;
	z-index: -1;
	opacity: 0;
	filter: blur(8px);
	transition: opacity 0.3s ease;
}

.vmg-goal-item:hover .vmg-goal-number::before {
	opacity: 1;
}

.vmg-goal-content {
	flex: 1;
}

.vmg-goal-content h3 {
	font-size: clamp(1.1rem, 2.2vw, 1.375rem);
	font-weight: 600;
	color: #39414d;
	margin-bottom: 10px;
	letter-spacing: -0.3px;
	transition: color 0.3s ease;
}

.vmg-goal-item:hover .vmg-goal-content h3 {
	color: #3aa6b9 !important;
}

.vmg-goal-content p {
	font-size: clamp(0.9rem, 1.8vw, 1rem);
	color: #4a5361;
	line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.vmg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
}

@media (max-width: 900px) {
	.vmg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
}

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

	.vmg-goals-grid {
		grid-template-columns: 1fr;
	}

	.vmg-section-subtitle::before,
	.vmg-section-subtitle::after {
		width: 20px;
		left: -25px;
		right: -25px;
	}
}

@media (max-width: 480px) {
	.vmg-grid {
		gap: 20px;
	}

	.vmg-card-content {
		padding: 25px;
	}

	.vmg-icon-wrapper {
		width: 100px;
		height: 100px;
	}

	.vmg-icon-circle {
		width: 100px;
		height: 100px;
	}

	.vmg-card-icon svg {
		width: 50px;
		height: 50px;
	}
}
