/* News Blocks Pro — Frontend CSS */

/* ============================================================
   WRAPPER / GRID
   ============================================================ */
.nbp-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr 300px;
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.nbp-wrapper.has-news.has-videos.has-social { grid-template-columns: 1fr 1fr 300px; }
.nbp-wrapper.has-news:not(.has-videos) { grid-template-columns: 1fr 300px; }
.nbp-wrapper:not(.has-news).has-videos { grid-template-columns: 1fr 300px; }

.nbp-col { min-width: 0; }
.nbp-col-right { display: flex; flex-direction: column; gap: 24px; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.nbp-section-title {
	border-bottom: 3px solid #D60000;
	margin-bottom: 16px;
	padding-bottom: 0;
}
.nbp-section-title .nbp-label {
	display: inline-block;
	background-color: #D60000;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 6px 14px;
	line-height: 1;
}

/* ============================================================
   NEWS BLOCK
   ============================================================ */
.nbp-news-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nbp-news-card {
	background-color: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.07);
	display: flex;
	flex-direction: row;
	transition: box-shadow .25s ease, transform .25s ease;
}

.nbp-news-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.13);
	transform: translateY(-2px);
}

/* Image wrap */
.nbp-news-img-wrap {
	display: block;
	flex: 0 0 120px;
	width: 120px;
	overflow: hidden;
	position: relative;
}

.nbp-news-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

/* Hover effects */
.hover-zoom .nbp-news-img { transform: scale(1); }
.hover-zoom:hover .nbp-news-img,
.nbp-news-card:hover .nbp-news-img-wrap.hover-zoom .nbp-news-img { transform: scale(1.08); }

.hover-fade .nbp-news-img { opacity: 1; transition: opacity .3s ease; }
.nbp-news-card:hover .nbp-news-img-wrap.hover-fade .nbp-news-img { opacity: .7; }

/* Category badge */
.nbp-cat-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background-color: #D60000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	letter-spacing: .04em;
}

/* Card body */
.nbp-news-card-body {
	flex: 1;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nbp-news-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.nbp-news-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color .2s;
}
.nbp-news-card:hover .nbp-news-title a { color: #D60000; }

.nbp-news-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.nbp-meta-item {
	font-size: 11px;
	color: #888;
	position: relative;
}

.nbp-meta-item + .nbp-meta-item::before {
	content: '·';
	margin-right: 8px;
	color: #ccc;
}

.nbp-news-excerpt {
	margin: 0;
	font-size: 12px;
	color: #666;
	line-height: 1.5;
}

/* ============================================================
   VIDEOS BLOCK
   ============================================================ */
.nbp-video-main-wrap {
	position: relative;
	margin-bottom: 14px;
	border-radius: 6px;
	overflow: hidden;
}

.nbp-video-main {
	display: block;
	width: 100%;
	height: 220px;
	background: #111;
	position: relative;
	overflow: hidden;
}

.nbp-video-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease, opacity .3s ease;
}

.nbp-video-main:hover .nbp-video-main-img { transform: scale(1.04); opacity: .85; }

.nbp-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #D60000;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s, transform .2s;
	pointer-events: none;
}

.nbp-video-main:hover .nbp-play-btn { background-color: #a00000; transform: translate(-50%, -50%) scale(1.1); }

.nbp-play-btn svg { width: 20px; height: 20px; fill: #fff; }
.nbp-play-sm { width: 32px; height: 32px; }
.nbp-play-sm svg { width: 12px; height: 12px; }

/* Video list */
.nbp-video-list { display: flex; flex-direction: column; gap: 10px; }

.nbp-video-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.nbp-video-list-thumb-wrap {
	display: block;
	flex: 0 0 90px;
	height: 65px;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	background: #111;
}

.nbp-video-list-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .3s;
}

.nbp-video-list-thumb-wrap:hover .nbp-video-list-thumb { opacity: .75; }

.nbp-video-info { flex: 1; }

.nbp-video-title {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
}

.nbp-video-date { font-size: 11px; color: #888; }

/* ============================================================
   SOCIAL BLOCK
   ============================================================ */
.nbp-social-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.nbp-social-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
	transition: filter .25s ease, transform .25s ease;
	text-align: center;
	gap: 4px;
}

.nbp-social-card:hover { filter: brightness(1.15); transform: translateY(-2px); }

.nbp-social-icon svg { width: 22px; height: 22px; fill: #fff; display: block; }

.nbp-social-count {
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.nbp-social-text {
	font-size: 10px;
	color: rgba(255,255,255,.85);
	text-transform: uppercase;
	letter-spacing: .03em;
}

/* ============================================================
   NEWSLETTER BLOCK
   ============================================================ */
.nbp-newsletter-block {
	background: #f9f9f9;
	padding: 16px;
	border-radius: 6px;
}

.nbp-nl-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.nbp-nl-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	font-family: inherit;
	background: #fff;
	transition: border-color .2s;
	outline: none;
}

.nbp-nl-input:focus { border-color: #D60000; }

.nbp-btn-subscribe {
	background-color: #D60000;
	color: #fff;
	border: none;
	padding: 11px 20px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .04em;
	transition: background-color .2s, transform .15s;
	width: 100%;
	font-family: inherit;
}

.nbp-btn-subscribe:hover { background-color: #a00000; transform: translateY(-1px); }
.nbp-btn-subscribe:active { transform: translateY(0); }
.nbp-btn-subscribe:disabled { opacity: .6; cursor: not-allowed; }

.nbp-nl-msg {
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 4px;
	display: none;
}

.nbp-nl-msg.success { background: #e6f9ee; color: #2d7a4f; border: 1px solid #b8e8cb; display: block; }
.nbp-nl-msg.error   { background: #ffeaea; color: #b00; border: 1px solid #f5c6c6; display: block; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.nbp-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.92);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .3s;
}

.nbp-lightbox-overlay.open { opacity: 1; }

.nbp-lightbox-inner {
	position: relative;
	width: 90vw;
	max-width: 900px;
	aspect-ratio: 16/9;
}

.nbp-lightbox-inner iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.nbp-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
	padding: 4px 10px;
	transition: color .2s;
}

.nbp-lightbox-close:hover { color: #D60000; }
