/* Hero slider (Swiper) - di-port dari branch taleera.id (assets/stylesheets/style.css)
   agar slider homepage bakerzin.id sama dengan taleera.id. Font label samping memakai font bakerzin (LouisGeorgeCafe). */

.flat-sliders-container {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	position: relative;
	z-index: 1;
	/* Cancel .box side padding so slider uses full page width */
	width: calc(100% + 7%);
	margin-left: -3.5%;
	margin-right: -3.5%;
	height: auto;
	max-height: none;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
	background-color: transparent;
}

.slider-side-rail {
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	overflow: visible;
	padding: 0 6px;
	box-sizing: border-box;
	align-self: stretch;
}

.flat-sliders-container .hero-swiper,
.flat-sliders-container .swiper-container {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	/* Aspect on the image area only (not including side rails) */
	height: auto;
	aspect-ratio: 21 / 9;
	position: relative;
	z-index: 1;
}

/* Left and Right Slider Text Elements */
.left-slider-text,
.right-slider-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: none;
	font-family: 'LouisGeorgeCafe-Bold', 'LouisGeorgeCafe-Regular', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
	color: #4f311d;
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.left-slider-text {
	transform: rotate(180deg);
}

.right-slider-text {
	transform: none;
}

.left-slider-text a,
.right-slider-text a,
.left-slider-text span,
.right-slider-text span {
	color: inherit;
	text-decoration: none;
	letter-spacing: inherit;
}

.left-slider-text a i {
	font-size: 15px;
	line-height: 1;
	color: inherit;
}

/* Keep swiper arrows inside the image, not over side labels */
.flat-sliders-container .hero-swiper .swiper-button-prev {
	left: 16px !important;
}

.flat-sliders-container .hero-swiper .swiper-button-next {
	right: 16px !important;
}

/* Mobile styles for slider text */
@media (max-width: 768px) {
	.flat-sliders-container {
		height: auto;
		max-height: none;
		width: calc(100% + 7%);
		margin-left: -3.5%;
		margin-right: -3.5%;
	}

	.slider-side-rail {
		flex-basis: 30px;
		padding: 0 2px;
	}

	.flat-sliders-container .hero-swiper,
	.flat-sliders-container .swiper-container,
	.hero-swiper {
		height: auto;
		max-height: none;
		aspect-ratio: 21 / 9;
	}

	.hero-swiper .slide-content img {
		object-fit: cover;
		object-position: center center;
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.left-slider-text,
	.right-slider-text {
		font-size: 10px;
		letter-spacing: 0.12em;
		gap: 6px;
	}

	.left-slider-text a i {
		font-size: 11px;
	}

	.flat-sliders-container .hero-swiper .swiper-button-prev {
		left: 8px !important;
	}

	.flat-sliders-container .hero-swiper .swiper-button-next {
		right: 8px !important;
	}
}

@media (max-width: 480px) {
	.flat-sliders-container {
		height: auto;
		max-height: none;
		/* .box still has 3.5% padding until 389px */
		width: calc(100% + 7%);
		margin-left: -3.5%;
		margin-right: -3.5%;
	}

	.slider-side-rail {
		flex-basis: 24px;
		padding: 0;
	}

	.flat-sliders-container .hero-swiper,
	.flat-sliders-container .swiper-container,
	.hero-swiper {
		height: auto;
		max-height: none;
		aspect-ratio: 21 / 9;
	}

	.left-slider-text,
	.right-slider-text {
		font-size: 9px;
		letter-spacing: 0.1em;
	}

	.left-slider-text a i {
		font-size: 10px;
	}
}

@media (max-width: 389px) {
	.flat-sliders-container {
		/* .box padding becomes 0 here */
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Swiper Hero Slider
-------------------------------------------------------------- */
.hero-swiper {
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: 21 / 9;
	position: relative;
	overflow: hidden;
	/* Avoid white edge gaps behind rounded/clipped images */
	background-color: transparent;
}

.flat-sliders-container .hero-swiper {
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	max-height: none;
	aspect-ratio: 21 / 9;
	border-radius: 0;
}

.hero-swiper .swiper-slide {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: transparent;
}

.hero-swiper .swiper-wrapper {
	height: 100%;
}

.hero-swiper .slide-content {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: transparent;
}

.hero-swiper .slide-content img {
	width: 100%;
	height: 100%;
	/* Fill the banner frame without letterboxing; frame ratio matches wide banners */
	object-fit: cover;
	object-position: center center;
	/* Override global img { border-radius: 15px } that caused white corner gaps */
	border-radius: 0 !important;
	display: block;
}

.hero-swiper .slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%); */
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-swiper .slide-text {
	text-align: center;
	color: #fff;
	max-width: 800px;
	padding: 0 20px;
	z-index: 2;
}

.hero-swiper .title-slide {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: slideInDown 1s ease-out;
	color: #fff;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.hero-swiper .description-slider {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	animation: slideInUp 1s ease-out 0.3s both;
	color: #fff;
	font-weight: 300;
	font-style: italic;
}

.hero-swiper .desc-slide {
	font-size: 1.1rem;
	line-height: 1.6;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	animation: fadeIn 1s ease-out 0.6s both;
	color: #fff;
	font-weight: 400;
}

/* Swiper Navigation - Force override any existing styles */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
	color: #615f5f !important;
	background: rgb(255, 255, 255) !important;
	width: 50px !important;
	height: 50px !important;
	/* border-radius: 50% !important; */
	transition: all 0.3s ease !important;
	border: 2px solid rgba(255, 255, 255, 0.3) !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: scale(0.8) !important;
	z-index: 1000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	/* Ensure proper positioning */
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) scale(0.8) !important;
}

.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev {
	opacity: 1 !important;
	visibility: visible !important;
	transform: scale(1) !important;
}

/* Additional hover states to ensure visibility */
.hero-swiper:hover .swiper-button-next {
	opacity: 1 !important;
	visibility: visible !important;
	transform: scale(1) !important;
}

.hero-swiper:hover .swiper-button-prev {
	opacity: 1 !important;
	visibility: visible !important;
	transform: scale(1) !important;
}

/* Fallback: Force show buttons when container is hovered */
.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: scale(1) !important;
	pointer-events: auto !important;
}

/* Ensure buttons are clickable when visible */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
	pointer-events: auto !important;
	cursor: pointer !important;
}

/* Mobile-specific: Always show navigation buttons on touch devices */
@media (max-width: 768px) {

	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev {
		pointer-events: auto !important;
		cursor: pointer !important;
		/* Ensure buttons are always visible on mobile */
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(-50%) scale(1) !important;
		/* Enhanced visibility for mobile */
		background: rgba(255, 255, 255, 0.95) !important;
		border: 2px solid rgba(0, 0, 0, 0.2) !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
		color: #333 !important;
	}

	/* Remove hover effects on mobile since buttons are always visible */
	.hero-swiper:hover .swiper-button-next,
	.hero-swiper:hover .swiper-button-prev {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(-50%) scale(1) !important;
	}

	/* Active state for better touch feedback */
	.hero-swiper .swiper-button-next:active,
	.hero-swiper .swiper-button-prev:active {
		transform: translateY(-50%) scale(0.95) !important;
		background: rgba(255, 255, 255, 1) !important;
	}
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
	background: rgba(0, 0, 0, 0.8);
	border-color: rgba(255, 255, 255, 0.8);
	transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
	font-size: 20px;
	font-weight: bold;
	transition: all 0.3s ease;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	line-height: 1 !important;
}

/* Enhanced hover effects for navigation buttons */
.hero-swiper .swiper-button-next:hover::after,
.hero-swiper .swiper-button-prev:hover::after {
	transform: scale(1.2);
}

/* Swiper Pagination */
.hero-swiper .swiper-pagination {
	bottom: 30px;
}

.hero-swiper .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.6);
	opacity: 1;
	transition: all 0.3s ease;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-swiper .swiper-pagination-bullet-active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.3);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slideInDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes slideInUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-swiper {
		height: auto;
		max-height: none;
		aspect-ratio: 21 / 9;
	}

	.flat-sliders-container .hero-swiper {
		width: auto;
		height: auto;
		aspect-ratio: 21 / 9;
	}

	.hero-swiper .title-slide {
		font-size: 2.5rem;
		line-height: 1.2;
	}

	.hero-swiper .description-slider {
		font-size: 1.2rem;
		line-height: 1.4;
	}

	.hero-swiper .desc-slide {
		font-size: 1rem;
		line-height: 1.5;
	}

	/* Mobile: Always show navigation buttons */
	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(-50%) scale(1) !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 40px !important;
		height: 40px !important;
		background: rgba(255, 255, 255, 0.95) !important;
		border: 2px solid rgba(0, 0, 0, 0.2) !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
		color: #333 !important;
		/* Ensure minimum touch target size */
		min-width: 40px !important;
		min-height: 40px !important;
	}

	.hero-swiper .swiper-button-next::after,
	.hero-swiper .swiper-button-prev::after {
		font-size: 16px;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 100% !important;
		line-height: 1 !important;
	}

	.hero-swiper .slide-text {
		padding: 0 15px;
	}
}

@media (max-width: 480px) {
	.hero-swiper {
		height: auto;
		max-height: none;
		aspect-ratio: 21 / 9;
	}

	.flat-sliders-container .hero-swiper {
		width: auto;
		height: auto;
		aspect-ratio: 21 / 9;
	}

	.hero-swiper .title-slide {
		font-size: 2rem;
		line-height: 1.1;
	}

	.hero-swiper .description-slider {
		font-size: 1rem;
		line-height: 1.3;
	}

	.hero-swiper .desc-slide {
		font-size: 0.9rem;
		line-height: 1.4;
	}

	/* Mobile small: Always show navigation buttons */
	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-button-prev {
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(-50%) scale(1) !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 40px !important;
		height: 40px !important;
		background: rgba(255, 255, 255, 0.95) !important;
		border: 2px solid rgba(0, 0, 0, 0.2) !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
		color: #333 !important;
		/* Ensure minimum touch target size */
		min-width: 40px !important;
		min-height: 40px !important;
	}

	.hero-swiper .swiper-button-next::after,
	.hero-swiper .swiper-button-prev::after {
		font-size: 14px;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 100% !important;
		line-height: 1 !important;
	}

	.hero-swiper .slide-text {
		padding: 0 10px;
		max-width: 90%;
	}

	.hero-swiper .swiper-pagination {
		bottom: 20px;
	}

	.hero-swiper .swiper-pagination-bullet {
		width: 10px;
		height: 10px;
	}
}

/* Flat Sliders Container for Swiper */
.flat-sliders-container .swiper-container {
	border-radius: 0;
}

/* Mobile adjustments for side elements */
@media (max-width: 768px) {
	.flat-sliders-container .flat-vertical {
		display: none;
	}
}
