/**
 * [B] Beautifull Posts - Widget base styles.
 * All colors, fonts and spacings are controlled via Elementor Style tab.
 */

.bdw-bp-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px;
}

.bdw-bp-featured-col {
	flex: 1 1 48%;
	min-width: 0;
}

.bdw-bp-side-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Featured post */
.bdw-bp-featured-image {
	margin-bottom: 24px;
}

.bdw-bp-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Category tag */
.bdw-bp-cat {
	margin-bottom: 12px;
}

.bdw-bp-cat a {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

/* Title */
.bdw-bp-title {
	margin: 0 0 14px;
}

.bdw-bp-title a {
	text-decoration: none;
	transition: color 0.2s ease;
}

/* Meta (date / author) */
.bdw-bp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	font-size: 13px;
}

.bdw-bp-meta a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

/* Excerpt */
.bdw-bp-excerpt {
	margin-bottom: 16px;
	line-height: 1.6;
}

/* Read more */
.bdw-bp-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bdw-bp-readmore svg {
	transition: fill 0.2s ease, transform 0.2s ease;
}

.bdw-bp-readmore:hover svg,
.bdw-bp-readmore:hover i {
	transform: translateX(3px);
}

[dir="rtl"] .bdw-bp-readmore:hover svg,
[dir="rtl"] .bdw-bp-readmore:hover i {
	transform: translateX(-3px);
}

/* Screen-reader only text (fallback if theme lacks the utility class) */
.bdw-bp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bdw-bp-readmore i {
	transition: color 0.2s ease, transform 0.2s ease;
}

/* Side items */
.bdw-bp-side-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.bdw-bp-side-item .bdw-bp-excerpt {
	margin-bottom: 0;
}

.bdw-bp-divider-yes .bdw-bp-side-item:not(:last-child) {
	border-bottom: 1px solid #e5e0d8;
	padding-bottom: 24px;
}

.bdw-bp-side-image {
	flex: 0 0 140px;
	max-width: 140px;
}

.bdw-bp-side-image img {
	display: block;
	width: 100%;
	height: auto;
}

.bdw-bp-side-content {
	flex: 1 1 0;
	min-width: 0;
}

/* ============================================
   [B] Beautifull Image Cards
   ============================================ */

.bdw-bp-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 24px;
	row-gap: 24px;
}

.bdw-bp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 320px;
	overflow: hidden;
	border-radius: 8px;
}

.bdw-bp-card-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.bdw-bp-card-bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bdw-bp-zoom-yes .bdw-bp-card:hover .bdw-bp-card-bg img {
	transform: scale(1.05);
}

.bdw-bp-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(20, 34, 80, 0.35) 0%, rgba(11, 21, 56, 0.9) 100%);
	pointer-events: none;
}

.bdw-bp-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.bdw-bp-card-content {
	position: relative;
	z-index: 3;
	padding: 32px;
}

.bdw-bp-card-title {
	margin: 0 0 10px;
}

.bdw-bp-card-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bdw-bp-card-excerpt {
	margin-bottom: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.bdw-bp-card .bdw-bp-readmore {
	color: #ffffff;
}

/* Focus visibility (WCAG 2.2 AA) */
.bdw-bp-title a:focus-visible,
.bdw-bp-cat a:focus-visible,
.bdw-bp-readmore:focus-visible,
.bdw-bp-card-title a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Responsive */
@media (max-width: 767px) {
	.bdw-bp-wrapper {
		flex-direction: column;
	}

	.bdw-bp-featured-col,
	.bdw-bp-side-col {
		flex: 1 1 100%;
		width: 100%;
	}
}
