/**
 * npocto Pro - Most Discussed Articles Widget Styles
 * Matches Reference Design pixel-perfect
 */

.npocto-discussed-wrapper {
	width: 100%;
	position: relative;
	padding: 1rem 0;
}

/* Header */
.npocto-discussed-header {
	margin-bottom: 2rem;
}

.npocto-discussed-heading-group {
	position: relative;
	padding-right: 16px;
	border-right: 4px solid #70cbb4;
}

.npocto-discussed-title {
	font-size: 1.55rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.npocto-discussed-subtitle {
	font-size: 0.95rem;
	color: #475569;
	margin: 0;
}

/* 2 Columns Grid */
.npocto-discussed-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	width: 100%;
}

/* Single Card */
.npocto-discussed-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #f1f5f9;
	padding: 16px;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
	box-sizing: border-box;
}

.npocto-discussed-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
	border-color: #e2e8f0;
}

/* Visual Side (Right in RTL) */
.npocto-discussed-thumb-wrap {
	flex: 0 0 145px;
	width: 145px;
	height: 125px;
	min-height: 125px;
	align-self: center;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	background: #f1f5f9;
	flex-shrink: 0;
}

.npocto-discussed-thumb-wrap a {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.npocto-discussed-thumb-wrap img,
.npocto-discussed-thumb {
	width: 100%;
	height: 100%;
	min-height: 100%;
	max-height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 14px;
	transition: transform 0.4s ease;
}

.npocto-discussed-card:hover .npocto-discussed-thumb {
	transform: scale(1.08);
}

/* Content Side (Left in RTL) */
.npocto-discussed-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.npocto-discussed-card-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	max-height: 3.1em;
}

.npocto-discussed-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npocto-discussed-card-title a:hover {
	color: #0f766e;
}

.npocto-discussed-excerpt {
	font-size: 0.84rem;
	line-height: 1.7;
	color: #334155;
	margin: 0 0 12px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
	max-height: 3.4em;
}

/* Footer Meta */
.npocto-discussed-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	width: 100%;
}

.npocto-discussed-meta-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.npocto-discussed-category {
	font-size: 0.75rem;
	color: #1e40af;
	background: #dbeafe;
	padding: 5px 12px;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1.4;
	flex-shrink: 0;
}

.npocto-discussed-category:hover {
	background: #1e40af;
	color: #ffffff;
}

.npocto-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.npocto-discussed-author {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #047857;
	white-space: nowrap;
	flex-shrink: 0;
}

.npocto-discussed-author svg,
.npocto-discussed-author i {
	color: #047857;
	fill: currentColor;
	font-size: 13px;
}

.npocto-discussed-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #4338ca;
	white-space: nowrap;
	flex-shrink: 0;
}

.npocto-discussed-date svg,
.npocto-discussed-date i {
	color: #4338ca;
	fill: currentColor;
	font-size: 13px;
}

.npocto-discussed-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #0f766e;
	color: #ffffff;
	padding: 7px 18px;
	min-height: 36px;
	box-sizing: border-box;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.npocto-discussed-btn:hover {
	background: #115e59;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(15, 118, 110, 0.4);
}

.npocto-btn-icon {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
}

/* Responsive - Fixes mobile view to match Image 3 */
@media (max-width: 992px) {
	.npocto-discussed-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.npocto-discussed-card {
		flex-direction: column !important;
		align-items: stretch !important;
		padding: 14px !important;
	}
	.npocto-discussed-thumb-wrap {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		height: 195px !important;
		min-height: 195px !important;
		max-height: 195px !important;
		flex: 0 0 195px !important;
		border-radius: 14px !important;
		align-self: stretch !important;
	}
	.npocto-discussed-thumb-wrap a {
		position: relative !important;
		display: block !important;
		height: 100% !important;
		width: 100% !important;
	}
	.npocto-discussed-thumb {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
	}
	.npocto-discussed-body {
		padding-top: 10px;
	}
	.npocto-discussed-footer {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		flex-wrap: nowrap !important;
		gap: 6px !important;
		width: 100% !important;
	}
	.npocto-discussed-meta-group {
		display: flex !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		gap: 6px !important;
		font-size: 0.72rem !important;
		overflow-x: auto !important;
		scrollbar-width: none !important;
	}
	.npocto-discussed-meta-group::-webkit-scrollbar {
		display: none;
	}
	.npocto-discussed-category {
		font-size: 0.7rem !important;
		padding: 2px 7px !important;
	}
	.npocto-discussed-author,
	.npocto-discussed-date {
		font-size: 0.72rem !important;
		gap: 3px !important;
	}
	.npocto-discussed-btn {
		padding: 5px 12px !important;
		font-size: 0.76rem !important;
	}
}
