/**
 * Blocsys News & Gallery Showcase - Frontend CSS
 * Primary Theme Color: #3A5BD3
 */

:root {
	--bng-primary: var(--primary-color, var(--pxl-primary-color, #3A5BD3));
	--bng-primary-hover: var(--primary-color-hover, var(--pxl-primary-color-hover, #2946ad));
	--bng-primary-light: rgba(58, 91, 211, 0.08);
	--bng-text-dark: #0f172a;
	--bng-text-muted: #64748b;
	--bng-card-bg: #ffffff;
	--bng-border: #e2e8f0;
	--bng-radius: 16px;
	--bng-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
	--bng-shadow-hover: 0 16px 36px -4px rgba(58, 91, 211, 0.2);
	--bng-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Common Grid & Layout System
   ========================================================================== */
.bng-news-wrapper,
.bng-gallery-wrapper,
.bng-single-gallery-wrapper {
	margin: 25px 0;
	width: 100%;
	box-sizing: border-box;
}

.bng-news-grid,
.bng-gallery-grid,
.bng-single-gallery-grid {
	display: grid;
	gap: 24px;
	width: 100%;
}

.bng-cols-1 .bng-news-grid,
.bng-cols-1 .bng-gallery-grid,
.bng-cols-1 .bng-single-gallery-grid { grid-template-columns: 1fr; }

.bng-cols-2 .bng-news-grid,
.bng-cols-2 .bng-gallery-grid,
.bng-cols-2 .bng-single-gallery-grid { grid-template-columns: repeat(2, 1fr); }

.bng-cols-3 .bng-news-grid,
.bng-cols-3 .bng-gallery-grid,
.bng-cols-3 .bng-single-gallery-grid { grid-template-columns: repeat(3, 1fr); }

.bng-cols-4 .bng-news-grid,
.bng-cols-4 .bng-gallery-grid,
.bng-cols-4 .bng-single-gallery-grid { grid-template-columns: repeat(4, 1fr); }

.bng-cols-6 .bng-gallery-grid,
.bng-cols-6 .bng-single-gallery-grid { grid-template-columns: repeat(6, 1fr); }

/* ==========================================================================
   Showcase / News Card Styles
   ========================================================================== */
.bng-news-card,
.bng-showcase-card {
	background: var(--bng-card-bg);
	border: 1px solid var(--bng-border);
	border-radius: var(--bng-radius);
	overflow: hidden;
	box-shadow: var(--bng-shadow);
	transition: var(--bng-transition);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	cursor: pointer;
	text-decoration: none;
	user-select: none;
}

.bng-news-card:hover,
.bng-showcase-card:hover {
	transform: translateY(-6px);
	border-color: rgba(58, 91, 211, 0.4);
	box-shadow: var(--bng-shadow-hover);
}

.bng-news-card:focus-visible,
.bng-showcase-card:focus-visible {
	outline: 2px solid var(--bng-primary);
	outline-offset: 3px;
}

.bng-news-card__thumb {
	position: relative;
	width: 100%;
	padding-top: 75%; /* 4:3 Bigger & Proper Aspect Ratio */
	overflow: hidden;
	background: #0f172a;
}

.bng-single-cover-img,
.bng-news-card__thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.5s ease;
}

.bng-news-card:hover .bng-single-cover-img,
.bng-news-card:hover .bng-news-card__thumb img {
	transform: scale(1.05);
}

.bng-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	background: #1e293b;
}

/* Badge overlay */
.bng-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 13px;
	border-radius: 30px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	z-index: 5;
}

/* Photo Count Badge */
.bng-photo-count-badge {
	position: absolute;
	bottom: 14px;
	right: 14px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	z-index: 5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.bng-news-card__content {
	padding: 22px 22px 18px !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
}

.bng-news-card__meta {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-bottom: 12px !important;
	font-size: 12.5px !important;
	flex-wrap: wrap !important;
}

.bng-news-cat {
	color: #3A5BD3 !important;
	font-weight: 700 !important;
	background: #eff6ff !important;
	padding: 4px 10px !important;
	border-radius: 6px !important;
	font-size: 11.5px !important;
	letter-spacing: 0.3px !important;
	text-transform: uppercase !important;
}

.bng-news-date {
	color: #64748b !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
}

.bng-news-date svg {
	color: #94a3b8 !important;
}

.bng-news-card__title {
	margin: 0 0 10px 0 !important;
	font-size: 17.5px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	letter-spacing: -0.015em !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.bng-card-title-link {
	color: #0f172a !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

.bng-card-title-link:hover,
.bng-news-card:hover .bng-card-title-link {
	color: #3A5BD3 !important;
}

.bng-news-card__subtitle {
	margin: 0 0 14px 0 !important;
	font-size: 13.5px !important;
	color: #475569 !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 1 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.bng-news-card__excerpt {
	color: #64748b !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	margin: 0 0 14px 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* Location Badge - Premium Theme Blue Banner with Proper Spacing */
.bng-card-location {
	display: flex !important;
	align-items: center !important;
	gap: 11px !important;
	padding: 10px 14px !important;
	background: linear-gradient(135deg, #3A5BD3 0%, #2546b8 100%) !important;
	border-radius: 10px !important;
	margin-top: 14px !important;
	margin-bottom: 18px !important;
	box-shadow: 0 4px 14px rgba(58, 91, 211, 0.22) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	border: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

.bng-news-card:hover .bng-card-location {
	background: linear-gradient(135deg, #2f50c7 0%, #1d3ca8 100%) !important;
	box-shadow: 0 6px 20px rgba(58, 91, 211, 0.38) !important;
	transform: translateY(-1px) !important;
}

.bng-loc-badge-icon {
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.22) !important;
	color: #ffffff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
}

.bng-loc-badge-icon svg {
	stroke: #ffffff !important;
}

.bng-loc-text {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	line-height: 1.38 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	letter-spacing: 0.15px !important;
	margin: 0 !important;
}

/* Footer Section */
.bng-news-card__footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding-top: 14px !important;
	border-top: 1px solid #f1f5f9 !important;
	font-size: 12.5px !important;
	margin-top: auto !important;
}

.bng-news-source {
	color: #64748b !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-weight: 500 !important;
	font-size: 12.5px !important;
	text-decoration: none !important;
	max-width: calc(100% - 40px) !important;
}

.bng-news-source span {
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.bng-news-source svg {
	color: #94a3b8 !important;
	flex-shrink: 0 !important;
}

.bng-news-source--link {
	color: #3A5BD3 !important;
	font-weight: 600 !important;
	transition: color 0.2s ease !important;
}

.bng-news-source--link:hover {
	color: #1d4ed8 !important;
}

.bng-card-arrow-link {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: rgba(58, 91, 211, 0.08) !important;
	color: #3A5BD3 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	flex-shrink: 0 !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	border: 1px solid rgba(58, 91, 211, 0.14) !important;
}

.bng-card-arrow-link:hover,
.bng-news-card:hover .bng-card-arrow-link {
	background: #3A5BD3 !important;
	color: #ffffff !important;
	border-color: #3A5BD3 !important;
	transform: translateX(3px) !important;
	box-shadow: 0 4px 12px rgba(58, 91, 211, 0.35) !important;
}

/* Multi-Image Slider on Card */
.bng-news-card__thumb--slider {
	position: relative;
}

.bng-news-card__thumb .bng-slider-card {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #0f172a;
}

.bng-card-slider-track {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.bng-card-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	z-index: 1;
}

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

.bng-gallery-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.bng-card-dots {
	position: absolute;
	bottom: 12px;
	left: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
	z-index: 4;
}

.bng-card-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.bng-card-dot.bng-active {
	background: var(--bng-primary);
	width: 16px;
	border-radius: 8px;
}

/* ==========================================================================
   Dedicated Single Details Page Layout (Dark Theme Matched)
   ========================================================================== */
.bng-details-page-wrapper {
	width: 100%;
	background: transparent;
	color: #cbd5e1;
	padding-top: clamp(100px, 10vw, 150px);
	padding-bottom: 80px;
	box-sizing: border-box;
}

.bng-details-container {
	max-width: 1330px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.bng-details-article {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.bng-details-back-bar {
	margin-bottom: 24px;
}

.bng-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #94a3b8;
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none !important;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: all 0.2s ease;
}

.bng-back-btn:hover {
	color: #ffffff !important;
	background: var(--bng-primary);
	border-color: var(--bng-primary);
	transform: translateX(-3px);
}

.bng-details-header {
	margin-bottom: 28px;
}

.bng-details-tags {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.bng-badge-pill {
	color: #ffffff;
	padding: 5px 14px;
	border-radius: 30px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bng-cat-pill {
	background: rgba(58, 91, 211, 0.18);
	color: #60a5fa;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 6px;
	letter-spacing: 0.5px;
}

.bng-details-title {
	font-size: 34px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: #ffffff !important;
	margin: 0 0 12px !important;
	letter-spacing: -0.5px;
}

.bng-details-subtitle {
	font-size: 17.5px !important;
	font-weight: 500 !important;
	color: #93c5fd !important;
	margin: 0 0 20px !important;
	line-height: 1.5 !important;
}

.bng-details-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	padding: 12px 18px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.bng-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: #94a3b8;
	font-weight: 500;
}

.bng-meta-item.bng-meta-loc {
	color: #ffffff;
	font-weight: 600;
}

.bng-meta-item.bng-meta-loc svg {
	color: var(--bng-primary);
}

/* Slider / Media in Details Screen */
.bng-details-media-box {
	margin: 28px 0 34px;
}

.bng-single-gallery-slider,
.bng-single-hero-wrap {
	position: relative;
	width: 100%;
	border-radius: 18px;
	overflow: hidden;
	background: #070a12;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.bng-single-gallery-slider {
	padding-top: 52%;
	min-height: 420px;
}

.bng-single-hero-wrap {
	max-height: 650px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bng-single-hero-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #070a12;
}

.bng-single-photo-count {
	position: absolute;
	top: 18px;
	right: 18px;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	z-index: 5;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Photos Thumbnails Grid in Details */
.bng-single-thumbs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
	margin: 16px 0 0;
}

.bng-single-thumb-item {
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: #070a12;
	border: 2px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.25s ease;
}

.bng-single-thumb-item:hover {
	border-color: var(--bng-primary);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(58, 91, 211, 0.35);
}

.bng-single-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bng-single-thumb-item:hover img {
	transform: scale(1.08);
}

/* Body Content in Details */
.bng-details-body-text {
	font-size: 16px;
	line-height: 1.85;
	color: #cbd5e1;
	margin-bottom: 30px;
}

.bng-details-body-text p {
	margin-bottom: 20px;
}

.bng-details-body-text h2,
.bng-details-body-text h3,
.bng-details-body-text h4 {
	color: #ffffff;
	margin-top: 28px;
	margin-bottom: 14px;
	font-weight: 700;
}

.bng-details-body-text strong {
	color: #ffffff;
}

.bng-details-body-text a {
	color: #60a5fa;
	text-decoration: underline;
}

.bng-details-body-text img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 20px 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.bng-details-source-footer {
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 30px;
}

.bng-details-action-btn {
	background: linear-gradient(135deg, #3A5BD3 0%, #2546b8 100%);
	color: #ffffff !important;
	padding: 14px 28px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	box-shadow: 0 6px 20px rgba(58, 91, 211, 0.4);
	transition: all 0.25s ease;
}

.bng-details-action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(58, 91, 211, 0.55);
}

/* Hide theme page title in header, post sidebar/author/tags/categories/comments if rendered on single news */
.single-blocsys_news #pxl-page-title-element,
.single-blocsys_news .pxl-page-title-element,
.single-blocsys_news .page-title-wrap,
.single-blocsys_news .pxl-pagetitle,
.single-blocsys_news .pxl-sidebar-area,
.single-blocsys_news .post-author-box,
.single-blocsys_news .post-tags-share,
.single-blocsys_news .pxl-author-box,
.single-blocsys_news .author-info,
.single-blocsys_news .pxl-related-post,
.single-blocsys_news .widget_categories,
.single-blocsys_news .widget_recent_entries,
.single-blocsys_news .widget_tag_cloud,
.single-blocsys_news #comments,
.single-blocsys_news .comment-respond,
.single-blocsys_gallery #pxl-page-title-element,
.single-blocsys_gallery .pxl-page-title-element,
.single-blocsys_gallery .page-title-wrap,
.single-blocsys_gallery .pxl-pagetitle,
.single-blocsys_gallery .pxl-sidebar-area,
.single-blocsys_gallery .post-author-box,
.single-blocsys_gallery .post-tags-share,
.single-blocsys_gallery .pxl-author-box,
.single-blocsys_gallery .author-info,
.single-blocsys_gallery .pxl-related-post,
.single-blocsys_gallery .widget_categories,
.single-blocsys_gallery .widget_recent_entries,
.single-blocsys_gallery .widget_tag_cloud,
.single-blocsys_gallery #comments,
.single-blocsys_gallery .comment-respond {
	display: none !important;
}

/* ==========================================================================
   Details Modal Popup Styles (State-of-the-Art Interactive Dialog)
   ========================================================================== */
.bng-details-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
}

.bng-details-modal.bng-active {
	opacity: 1;
	visibility: visible;
}

.bng-details-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 28, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.bng-details-dialog {
	position: relative;
	width: 100%;
	max-width: 820px;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
	z-index: 2;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: scale(0.94) translateY(15px);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bng-details-modal.bng-active .bng-details-dialog {
	transform: scale(1) translateY(0);
}

.bng-details-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px !important;
	height: 38px !important;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.65);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	padding: 0 !important;
	margin: 0 !important;
}

.bng-details-close:hover {
	background: #dc2626;
	border-color: #dc2626;
	transform: scale(1.08) rotate(90deg);
}

.bng-details-scrollable {
	overflow-y: auto;
	max-height: 90vh;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.bng-details-scrollable::-webkit-scrollbar {
	width: 6px;
}

.bng-details-scrollable::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 4px;
}

/* Modal Gallery / Media Slider */
.bng-details-media {
	position: relative;
	background: #0f172a;
	width: 100%;
}

.bng-modal-slider {
	position: relative;
	width: 100%;
	height: 380px;
	overflow: hidden;
	background: #090d16;
}

.bng-modal-slider-track {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.bng-modal-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bng-modal-slide.bng-active {
	opacity: 1;
	visibility: visible;
}

.bng-modal-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bng-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px !important;
	height: 42px !important;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.7);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
	padding: 0 !important;
	margin: 0 !important;
}

.bng-modal-nav:hover {
	background: var(--bng-primary);
	transform: translateY(-50%) scale(1.1);
}

.bng-modal-prev { left: 16px; }
.bng-modal-next { right: 16px; }

.bng-modal-counter {
	position: absolute;
	bottom: 14px;
	left: 18px;
	background: rgba(15, 23, 42, 0.75);
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	z-index: 10;
	backdrop-filter: blur(4px);
}

.bng-modal-thumbs-tray {
	display: flex;
	gap: 10px;
	padding: 12px 18px;
	background: #1e293b;
	overflow-x: auto;
	scrollbar-width: none;
}

.bng-modal-thumbs-tray::-webkit-scrollbar {
	display: none;
}

.bng-modal-thumb {
	width: 60px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	margin: 0;
	background: #000;
	cursor: pointer;
	opacity: 0.55;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.bng-modal-thumb:hover {
	opacity: 0.9;
}

.bng-modal-thumb.bng-active {
	opacity: 1;
	border-color: var(--bng-primary);
	transform: scale(1.05);
}

.bng-modal-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Modal Content Details */
.bng-details-content-box {
	padding: 32px 36px 36px;
}

.bng-details-header-tags {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.bng-modal-cat {
	color: var(--bng-primary);
	font-weight: 700;
	background: var(--bng-primary-light);
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bng-modal-badge {
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bng-modal-title {
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #0f172a !important;
	margin: 0 0 10px !important;
}

.bng-modal-subtitle {
	font-size: 16px !important;
	color: var(--bng-primary) !important;
	font-weight: 500 !important;
	margin: 0 0 18px !important;
	line-height: 1.45 !important;
}

.bng-modal-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 14px 18px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	margin-bottom: 24px;
}

.bng-modal-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: #475569;
	font-weight: 500;
}

.bng-modal-meta-item.bng-meta-loc {
	color: #0f172a;
	font-weight: 600;
}

.bng-modal-meta-item.bng-meta-loc svg {
	color: #e11d48;
}

.bng-modal-richtext {
	color: #334155;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 28px;
}

.bng-modal-richtext p {
	margin-bottom: 16px;
}

.bng-modal-richtext img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 14px 0;
}

.bng-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	gap: 15px;
	flex-wrap: wrap;
}

.bng-modal-source-btn {
	background: var(--bng-primary);
	color: #ffffff !important;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(58, 91, 211, 0.35);
	transition: all 0.2s ease;
}

.bng-modal-source-btn:hover {
	background: var(--bng-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(58, 91, 211, 0.45);
}

.bng-modal-close-btn {
	background: #f1f5f9;
	color: #475569 !important;
	border: 1px solid #cbd5e1;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bng-modal-close-btn:hover {
	background: #e2e8f0;
	color: #0f172a !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
	.bng-cols-4 .bng-news-grid,
	.bng-cols-4 .bng-gallery-grid,
	.bng-cols-4 .bng-single-gallery-grid,
	.bng-cols-6 .bng-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bng-modal-slider {
		height: 300px;
	}

	.bng-details-content-box {
		padding: 24px;
	}
}

@media (max-width: 768px) {
	.bng-news-grid,
	.bng-gallery-grid,
	.bng-single-gallery-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px;
	}

	.bng-details-dialog {
		max-height: 94vh;
	}

	.bng-modal-slider {
		height: 240px;
	}

	.bng-modal-title {
		font-size: 20px !important;
	}
}

@media (max-width: 520px) {
	.bng-news-grid,
	.bng-gallery-grid,
	.bng-single-gallery-grid {
		grid-template-columns: 1fr !important;
	}

	.bng-details-content-box {
		padding: 20px 16px;
	}

	.bng-modal-slider {
		height: 200px;
	}

	.bng-modal-title {
		font-size: 18px !important;
	}

	.bng-modal-meta-row {
		flex-direction: column;
		gap: 8px;
	}
}
