/* Custom styles for steps hover effects */
#steps-how-to-open-social-trading-account .div-card {
	height: 265px; /* Fixed card height */
	display: flex;
	flex-direction: column;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
	/* cursor: pointer; */
}

/* Initial state - hide descriptions and make titles larger */
#steps-how-to-open-social-trading-account .div-card .card-description {
	opacity: 0;
	transition: opacity 0.2s ease;
}

#steps-how-to-open-social-trading-account .div-card .card-title {
	font-size: 1.5rem; /* text-2xl */
	line-height: 2rem;
	transition: font-size 0.1s ease, line-height 0.1s ease;
}

/* Hover state */
#steps-how-to-open-social-trading-account .div-card:hover {
	background-color: var(--primary-700, #1A56DB) !important;
	color: white;
}

#steps-how-to-open-social-trading-account .div-card:hover .card-description {
	opacity: 1;
}

#steps-how-to-open-social-trading-account .div-card:hover .card-title {
	font-size: 1.125rem; /* text-lg */
	line-height: 1.75rem;
	color: white;
}

#steps-how-to-open-social-trading-account .div-card:hover * {
	color: white !important;
}

#steps-how-to-open-social-trading-account .div-card:hover svg {
	color: white !important;
}

#steps-how-to-open-social-trading-account .div-card:hover svg path {
	fill: white !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
	#steps-how-to-open-social-trading-account .div-card {
		height: 150px; /* Shorter initial height on mobile */
		transition: height 0.3s ease, background-color 0.3s ease, color 0.3s ease;
	}
	
	#steps-how-to-open-social-trading-account .div-card:hover {
		height: 250px; /* Expand on hover */
	}
	
	#steps-how-to-open-social-trading-account .div-card .card-title {
		font-size: 1.25rem; /* text-xl - smaller on mobile */
		line-height: 1.75rem;
	}
	
	#steps-how-to-open-social-trading-account .div-card:hover .card-title {
		font-size: 1.125rem; /* text-lg on hover */
		line-height: 1.75rem;
	}
}


/* Cards Powerful Tools Hover Effects */
#cards-why-choose-social-trading-with-fxt .div-card {
	position: relative;
	overflow: hidden;
	/* cursor: pointer; */
	/* transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
}

/* Sliding overlay effect - slides from bottom to top */
#cards-why-choose-social-trading-with-fxt .div-card::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 100%;
	background: rgba(0, 0, 0, 0.75);
	transition: top 0.5s ease;
	z-index: 1;
	pointer-events: none;
}

#cards-why-choose-social-trading-with-fxt .div-card:hover::before {
	top: 0;
}

#cards-why-choose-social-trading-with-fxt .div-card .card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
    height: 160px;
	transition: height 0.5s ease;
    padding: 50px;
}

#cards-why-choose-social-trading-with-fxt .div-card:hover .card-content {
    height: 100%;
}

/* Content container positioning */
/* #cards-why-choose-social-trading-with-fxt .div-card > div:first-child {
	position: relative;
	z-index: 2;
	transition: transform 0.5s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

#cards-why-choose-social-trading-with-fxt .div-card:hover > div:first-child {
	transform: translateY(-30px);
	justify-content: flex-start;
	padding-top: 2.5rem;
} */

/* Title styling - smoother animation */
#cards-why-choose-social-trading-with-fxt .card-slide-up-title {
	transform: translateY(0);
	opacity: 1;
	/* transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s; */
	position: relative;
	z-index: 2;
	/* margin-bottom: 0.5rem; */
}

#cards-why-choose-social-trading-with-fxt .div-card:hover .card-slide-up-title {
	transform: translateY(-15px);
	/* margin-bottom: 1.5rem; */
}

/* Description styling - smoother slide up */
#cards-why-choose-social-trading-with-fxt .card-slide-up-description {
	transform: translateY(50px);
	opacity: 0;
	/* transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s; */
	position: relative;
	z-index: 2;
	max-height: 0;
	overflow: hidden;
}

#cards-why-choose-social-trading-with-fxt .div-card:hover .card-slide-up-description {
	transform: translateY(0);
	opacity: 1;
	max-height: 400px;
}

/* Ensure all content is above overlay */
#cards-why-choose-social-trading-with-fxt .div-card * {
	position: relative;
	z-index: 2;
}

@media (max-width: 1024px) {
	#cards-why-choose-social-trading-with-fxt .div-card {
		height: 350px;
	}

    #cards-why-choose-social-trading-with-fxt .div-card .card-content {
        height: 160px;
        padding: 50px;
    }
}

@media (max-width: 992px) {
    #cards-why-choose-social-trading-with-fxt {
        gap: var(--spacing-8);
    }

	#cards-why-choose-social-trading-with-fxt .card-slide-up-title {
		font-size: 30px;
	}
}

@media (max-width: 768px) {
	#cards-why-choose-social-trading-with-fxt .card-slide-up-title {
		font-size: 24px;
	}

    #cards-why-choose-social-trading-with-fxt .div-card .card-content {
        height: 180px;
        padding: 30px;
    }
}