/* Wrapper */
.bcg-wrapper {
	position: relative;
	width: 100%;
	font-family: inherit;
}

.bcg-notice {
	padding: 20px;
	background: #f8f9fa;
	border-left: 4px solid #ffb900;
	color: #333;
	border-radius: 4px;
}

/* Tabs Container */
.bcg-tabs-container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	position: relative;
}

/* Tabs Swiper */
.bcg-tabs-swiper {
	overflow: hidden;
	width: calc(100% - 100px); /* Space for arrows */
}

.bcg-tabs {
	display: flex;
	align-items: center;
}

.bcg-tab-slide {
	width: auto !important; /* Essential to let tabs dictate width based on content */
	flex-shrink: 0;
	height: 100%;
}

.bcg-tab-btn {
	background: #f5f5f5;
	border: 1px solid transparent;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 500;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	position: relative;
	transition: all 0.3s ease;
	border-radius: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

.bcg-tab-icon {
	display: inline-flex;
	margin-right: 8px;
	align-items: center;
	justify-content: center;
}

.bcg-tab-btn:hover {
	color: #111;
	background: #e9e9e9;
}

.bcg-tab-btn.active {
	color: #fff;
	background-color: #02264C;
}

/* Optional Bottom Indicator fallback if borders/bg are cleared by user controls */
.bcg-tab-btn::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background-color: transparent;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.bcg-tab-btn.active::after {
	width: 80%;
}

/* Tabs Navigation Arrows */
.bcg-tabs-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	background-color: #f1f1f1;
	border-radius: 50%;
	cursor: pointer;
	color: #333;
	font-size: 16px;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
	flex-shrink: 0;
	z-index: 10;
}

.bcg-tabs-nav:hover {
	background-color: #ddd;
}

.bcg-tabs-nav.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

/* Carousel */
.bcg-carousel-container {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #eee; /* placeholder while loading */
}

.bcg-swiper {
	width: 100%;
	height: 100%;
	padding-bottom: 40px !important; /* space for dots */
}

.bcg-swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	aspect-ratio: 16/9;
	overflow: hidden;
	position: relative;
}

.bcg-swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bcg-slide-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0);
	transition: background 0.4s ease;
	z-index: 1;
}

.bcg-swiper-slide:hover img {
	transform: scale(1.05);
}
.bcg-swiper-slide:hover .bcg-slide-overlay {
	background: rgba(0,0,0,0.15);
}

/* Category Badge */
.bcg-cat-badge {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: rgba(0, 0, 0, 0.75);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	z-index: 10;
	pointer-events: none;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Gallery Arrows */
.bcg-swiper-next,
.bcg-swiper-prev {
	color: #fff;
	background: rgba(0,0,0,0.4);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: all 0.3s ease;
	backdrop-filter: blur(4px);
	margin-top: -20px; /* Adjust for the padding bottom we added to swiper */
}

.bcg-swiper-next:hover,
.bcg-swiper-prev:hover {
	background: rgba(0,0,0,0.8);
	transform: scale(1.1);
}

.bcg-swiper-next::after,
.bcg-swiper-prev::after {
	font-size: 18px;
	font-weight: 700;
}

/* Dots */
.bcg-swiper-pagination {
	bottom: 10px !important;
}

.swiper-pagination-bullet {
	background: #000;
	opacity: 0.3;
	transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
	background: #02264C;
	opacity: 1;
	transform: scale(1.2);
}


/* Lightbox */
.bcg-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.bcg-lightbox.active {
	display: flex;
	opacity: 1;
}

.bcg-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(5px);
}

.bcg-lightbox-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	box-sizing: border-box;
}

.bcg-lightbox-image-container {
	position: relative;
	max-width: 90%;
	max-height: 85vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.bcg-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.bcg-lightbox-cat-badge {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: rgba(0, 0, 0, 0.8);
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: none;
}

.bcg-lightbox-cat-badge.active {
	display: block;
}

.bcg-lightbox-close {
	position: absolute;
	top: 25px;
	right: 35px;
	background: rgba(255,255,255,0.1);
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all 0.3s ease;
}

.bcg-lightbox-close:hover {
	background: rgba(255,255,255,0.25);
	transform: rotate(90deg);
}

.bcg-lightbox-prev,
.bcg-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.1);
	border: none;
	color: #fff;
	font-size: 20px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 2;
}

.bcg-lightbox-prev:hover,
.bcg-lightbox-next:hover {
	background: rgba(255,255,255,0.3);
	transform: translateY(-50%) scale(1.1);
}

.bcg-lightbox-prev { left: 30px; }
.bcg-lightbox-next { right: 30px; }

.bcg-lightbox-counter {
	position: absolute;
	bottom: 30px;
	color: rgba(255,255,255,0.7);
	font-size: 15px;
	letter-spacing: 2px;
	font-weight: 500;
}

@media (max-width: 767px) {
	.bcg-swiper-slide {
		aspect-ratio: 4/3;
	}
	.bcg-lightbox-content {
		padding: 20px;
	}
	.bcg-lightbox-prev,
	.bcg-lightbox-next {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}
	.bcg-lightbox-prev { left: 15px; }
	.bcg-lightbox-next { right: 15px; }
	.bcg-lightbox-close {
		top: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
	.bcg-cat-badge, .bcg-lightbox-cat-badge {
		bottom: 15px;
		left: 15px;
		font-size: 10px;
		padding: 4px 10px;
	}
}