/**
 * Instagram Expert Profile Widget - Simplified Scroll Flip
 * Clean two-column layout with scroll-triggered flip card
 */

.iep {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.iep-outer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 60px 40px;
}

/* ═══════════════════════════════════════════════════════
   LEFT: TEXT CONTENT
═══════════════════════════════════════════════════════ */

.iep-text-content {
	padding-right: 40px;
}

.iep-heading {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 24px;
	color: #1a1a1a;
}

.iep-content {
	font-size: 18px;
	line-height: 1.8;
	color: #4a5568;
}

.iep-content p {
	margin-bottom: 20px;
}

.iep-content p:last-child {
	margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   RIGHT: FLIP CARD
═══════════════════════════════════════════════════════ */

.iep-flip-container {
	position: sticky;
	top: 100px;
	height: 600px;
	perspective: 1000px;
}

.iep-flip-card {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.iep-flip-card.flipped {
	transform: rotateY(180deg);
}

.iep-card-face {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.iep-card-front {
	background: #f5f5f5;
}

.iep-card-back {
	transform: rotateY(180deg);
	background: #e8e6e1;
}

.iep-card-face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE: TABLET
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.iep-outer {
		gap: 60px;
		padding: 40px 30px;
	}

	.iep-heading {
		font-size: 40px;
	}

	.iep-content {
		font-size: 17px;
	}

	.iep-flip-container {
		height: 500px;
	}
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE: MOBILE
═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.iep-outer {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 30px 20px;
	}

	/* Image first on mobile */
	.iep-flip-container {
		order: -1;
		position: relative;
		top: 0;
		height: 400px;
	}

	.iep-text-content {
		padding-right: 0;
	}

	.iep-heading {
		font-size: 32px;
		margin-bottom: 20px;
	}

	.iep-content {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.iep-heading {
		font-size: 28px;
	}

	.iep-content {
		font-size: 15px;
	}

	.iep-flip-container {
		height: 350px;
	}
}
