/* --- CAROUSEL CONTAINER --- */
.carousel-container {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Lato", sans-serif;
	background-color: #1a1a1a;
	height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	/* Full viewport height */
	overflow: hidden;
	background-color: #000;
}

/* --- SLIDES --- */
.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.8s ease-in-out,
		visibility 0.8s;
}

.slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* --- LEFT SIDE (TEXT) --- */
.text-panel {
	width: 40%;
	/* Matches the visual proportion */
	background-color: #54425d;
	/* Deep plum/purple color from image */
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 8%;
	/* Horizontal padding */
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	z-index: 3;
	opacity: 0.9;
}

.text-panel h1 {
	font-family: "Playfair Display", serif;
	font-size: 3.5rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
	line-height: 1.1;
	letter-spacing: 1px;
}

.text-panel p {
	font-family:
		"Playfair Display", serif;
	/* Using serif for body to match image */
	font-size: 1.1rem;
	line-height: 1.6;
	opacity: 0.9;
	margin-bottom: 2.5rem;
	font-weight: 300;
	max-width: 400px;
}

/* --- BUTTON --- */
.btn-read-more {
	display: inline-block;
	background: transparent;
	color: white;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 24px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	letter-spacing: 1px;
	font-weight: 600;
	transition: all 0.3s ease;
	width: fit-content;
}

.btn-read-more:hover {
	background: white;
	color: #54425d;
	border-color: white;
}

/* --- RIGHT SIDE (IMAGE) --- */
.image-panel {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	position: absolute;
	left: 0;
	top: 0;
}

/* Adding a subtle shadow overlay to blend the seam if needed */
.image-panel::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 100px;
	background: linear-gradient(to right,
			rgba(0, 0, 0, 0.2),
			transparent);
	pointer-events: none;
}

/* --- VERTICAL NAVIGATION DOTS --- */
.carousel-nav {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 25px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.3);
}

.dot {
	width: 12px;
	height: 12px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	background: transparent;
}

.dot.active {
	background: #fff;
	border-color: #fff;
}

.dot:hover {
	border-color: #fff;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
	.slide {
		flex-direction: column-reverse;
		/* Stack image on top, text on bottom */
	}

	.text-panel,
	.image-panel {
		width: 100%;
		height: 50%;
		position: relative;
		left: 0;
		top: 0;
	}

	.image-panel {
		background-size: cover;
		background-position: center;
	}

	.text-panel {
		padding: 1.5rem 1.5rem 3rem;
		align-items: center;
		text-align: center;
		position: relative;
	}

	.carousel-nav {
		left: 50%;
		top: auto;
		bottom: 10px;
		transform: translateX(-50%);
		flex-direction: row;
		/* Horizontal dots on mobile */
		width: auto;
		height: auto;
		background-color: transparent;
	}

	.text-panel h1 {
		font-size: 1.75rem;
		margin-bottom: 1rem;
		line-height: 1.2;
	}

	.text-panel p {
		font-size: 0.95rem;
		line-height: 1.5;
		margin-bottom: 1rem;
	}

	.btn-read-more {
		font-size: 0.9rem;
		padding: 0.6rem 1.5rem;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.text-panel {
		padding: 1rem 1rem 2.5rem;
	}

	.text-panel h1 {
		font-size: 1.5rem;
		margin-bottom: 0.75rem;
	}

	.text-panel p {
		font-size: 0.875rem;
		line-height: 1.4;
		margin-bottom: 0.75rem;
	}

	.btn-read-more {
		font-size: 0.85rem;
		padding: 0.5rem 1.25rem;
	}
}
