/**
 * Phytest Services List Styles
 * Pixel-perfect services list with active and hover states
 */

/* Wrapper */
.phytest-services-list-wrapper {
	width: 100%;
	background: #ffffff;
}

/* Container */
.phytest-services-list-container {
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Individual Service Item */
.phytest-service-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 32px;
	border-radius: 24px;
	transition: all 0.3s ease;
	position: relative;
	gap: 30px;
}

/* Active Service (First One) */
.phytest-service-active {
	background: #f3f0ff;
	background: linear-gradient(135deg, #f3f0ff 0%, #f0ecff 100%);
	box-shadow: 0 2px 8px rgba(107, 79, 187, 0.08);
}

/* Hover Services (Default State) */
.phytest-service-hover {
	background: transparent;
	border: 2px solid transparent;
}

/* Hover Effect */
.phytest-service-hover:hover {
	background: #f3f0ff;
	background: linear-gradient(135deg, #f3f0ff 0%, #f0ecff 100%);
	box-shadow: 0 2px 8px rgba(107, 79, 187, 0.08);
	transform: translateY(-2px);
}

/* Service Content */
.phytest-service-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Service Title */
.phytest-service-title {
	font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
	font-size: 32px;
	font-weight: 500;
	color: #000000;
	margin: 0;
	padding: 0;
	line-height: 40px;
}

/* Service Description */
.phytest-service-description {
	font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
	font-size: 20px;
	font-weight: 400;
	color: #000000;
	margin: 0;
	padding: 0;
	line-height: 28px;
}

/* Button Wrapper */
.phytest-service-button-wrapper {
	flex-shrink: 0;
}

/* Service Button */
.phytest-service-button {
	font-family: 'Archivo', Helvetica, Arial, Lucida, sans-serif !important;
	display: inline-block;
	padding: 10px 32px;
	background: #682B88;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 12px 0;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(107, 79, 187, 0.25);
	cursor: pointer;
}

/* Active Service Button (Always Visible) */
.phytest-service-active .phytest-service-button {
	opacity: 1;
	visibility: visible;
}

/* Hover Services Button (Hidden by Default) */
.phytest-service-hover .phytest-service-button {
	opacity: 0;
	visibility: hidden;
}

/* Show Button on Hover */
.phytest-service-hover:hover .phytest-service-button {
	opacity: 1;
	visibility: visible;
}

/* Button Hover Effect */
.phytest-service-button:hover {
	background: #5a3fa0;
	background: linear-gradient(135deg, #5a3fa0 0%, #6a4fb5 100%);
	box-shadow: 0 6px 16px rgba(107, 79, 187, 0.35);
	transform: translateY(-2px);
}

.phytest-service-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(107, 79, 187, 0.25);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.phytest-service-item {
		padding: 28px 35px;
		gap: 25px;
	}
	
	.phytest-service-title {
		font-size: 24px;
	}
	
	.phytest-service-description {
		font-size: 15px;
	}
	
	.phytest-service-button {
		padding: 13px 26px;
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.phytest-services-list-wrapper {
		padding: 0 20px;
	}
	
	.phytest-services-list-container {
		gap: 18px;
	}
	
	.phytest-service-item {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 30px;
		gap: 20px;
	}
	
	.phytest-service-button-wrapper {
		width: 100%;
	}
	
	.phytest-service-button {
		width: 100%;
		text-align: center;
	}
	
	.phytest-service-title {
		font-size: 22px;
	}
	
	.phytest-service-description {
		font-size: 15px;
	}
	
	/* Show buttons on mobile always */
	.phytest-service-hover .phytest-service-button {
		opacity: 0.7;
		visibility: visible;
	}
	
	.phytest-service-hover:hover .phytest-service-button {
		opacity: 1;
	}
}

@media (max-width: 480px) {
	.phytest-services-list-wrapper {
		padding:0 15px;
	}
	
	.phytest-services-list-container {
		gap: 16px;
	}
	
	.phytest-service-item {
		padding: 20px 24px;
		gap: 16px;
		border-radius: 12px;
	}
	
	.phytest-service-title {
		font-size: 20px;
	}
	
	.phytest-service-description {
		font-size: 14px;
		line-height: 1.4;
	}
	
	.phytest-service-button {
		padding: 12px 24px;
		font-size: 14px;
		border-radius: 8px;
	}
}

/* Animation for items on load */
@keyframes fadeInSlide {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.phytest-service-item {
	animation: fadeInSlide 0.5s ease-out;
}

.phytest-service-item:nth-child(1) {
	animation-delay: 0s;
}

.phytest-service-item:nth-child(2) {
	animation-delay: 0.1s;
}

.phytest-service-item:nth-child(3) {
	animation-delay: 0.2s;
}

.phytest-service-item:nth-child(4) {
	animation-delay: 0.3s;
}

