/* Dev Stories & Dev Spotlight Styles */

.dev-stories-hub-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 20px 48px 20px;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.dev-stories-hub-wrapper {
		padding: 16px 0 48px 0;
	}
}

/* Hub Header */
.dev-stories-header {
	text-align: center;
	padding: 28px 16px 20px 16px;
	margin-bottom: 28px;
}

@media (max-width: 480px) {
	.dev-stories-header {
		padding: 16px 0 20px 0;
	}
}

.dev-stories-header h1 {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 10px 0;
	color: var(--body-deep, #0f172a);
	text-transform: uppercase;
}

body.dark-theme .dev-stories-header h1 {
	color: #f8fafc;
}

.dev-stories-header p.subtitle {
	font-size: 15px;
	color: var(--body-gray, #475569);
	max-width: 640px;
	margin: 0 auto 22px auto;
	line-height: 1.55;
}

body.dark-theme .dev-stories-header p.subtitle {
	color: #94a3b8;
}

/* Tabs / Filters */
.dev-stories-tabs {
	display: inline-flex;
	background: rgba(157, 185, 212, 0.06);
	border: 1px solid rgba(155, 155, 155, 0.3);
	border-radius: 32px;
	padding: 4px;
	gap: 4px;
}

.dev-stories-tab,
.dev-stories-tab:link,
.dev-stories-tab:visited {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 26px;
	font-size: 14px;
	font-weight: 600;
	color: var(--body-gray) !important;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

@media (max-width: 380px) {
	.dev-stories-tab {
		font-size: 12px !important;
		padding: 8px 16px !important;
	}
}

.dev-stories-tab:hover {
	color: var(--body-deep) !important;
	opacity: 1 !important;
}

.dev-stories-tab.active,
.dev-stories-tab.active:link,
.dev-stories-tab.active:visited {
	background: var(--primary-button-bg);
	color: var(--on-primary-btn) !important;
}

/* ==========================================================================
   Featured Spotlight Hero Section (Vertical Layout)
   ========================================================================== */

.dev-stories-featured-hero {
	background: rgba(157, 185, 212, 0.06);
	border: 1px solid rgba(155, 155, 155, 0.3);
	border-radius: 20px;
	padding: 0;
	margin: 0 auto 44px auto;
	max-width: 840px;
	/* box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03); */
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dev-stories-featured-hero:hover {
	background: rgba(157, 185, 212, 0.1);
	border: 1px solid rgba(155, 155, 155, 0.4);
}

.featured-media-col {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: #0f172a;
}

.featured-media-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
}

.featured-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-stories-featured-hero:hover .featured-thumbnail {
	transform: scale(1.03);
}

.featured-play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease;
}

.dev-stories-featured-hero:hover .featured-play-overlay {
	background: rgba(0, 0, 0, 0.15);
}

.featured-play-btn {
	width: 64px;
	height: 64px;
	background: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.featured-play-btn svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
	margin-left: 3px;
}

.dev-stories-featured-hero:hover .featured-play-btn {
	transform: scale(1.12);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-duration-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.featured-info-col {
	padding: 26px 30px 30px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-width: 0;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.featured-info-col {
		padding: 20px 18px 22px 18px;
		gap: 14px;
	}

	.featured-title {
		font-size: 20px;
	}

	.featured-play-btn {
		width: 52px;
		height: 52px;
	}

	.featured-play-btn svg {
		width: 22px;
		height: 22px;
	}
}

.featured-header-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Badges */
.badge-spotlight {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(99, 102, 241, 0.1);
	color: #4f46e5;
	border: 1px solid rgba(99, 102, 241, 0.25);
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	width: fit-content;
}

body.dark-theme .badge-spotlight {
	background: rgba(99, 102, 241, 0.15);
	color: #a5b4fc;
	border-color: rgba(99, 102, 241, 0.35);
}

.badge-story {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
	border: 1px solid rgba(16, 185, 129, 0.25);
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	width: fit-content;
}

body.dark-theme .badge-story {
	background: rgba(16, 185, 129, 0.15);
	color: #6ee7b7;
	border-color: rgba(16, 185, 129, 0.35);
}

.featured-title {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
	color: var(--body-deep, #0f172a);
	letter-spacing: -0.3px;
}

body.dark-theme .featured-title {
	color: #f8fafc;
}

.featured-title a,
.featured-title a:link,
.featured-title a:visited {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.featured-title a:hover {
	color: #4f46e5 !important;
}

body.dark-theme .featured-title a:hover {
	color: #a5b4fc !important;
}

/* Featured Guest / Person Info Card */
.featured-person-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: rgba(157, 185, 212, 0.02);
	border: 1px solid rgba(155, 155, 155, 0.2);
	border-radius: 10px;
}

.featured-person-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

body.dark-theme .featured-person-avatar {
	border-color: #334155;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.featured-person-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.featured-person-name-row {
	font-size: 14px;
	font-weight: 700;
	color: var(--body-deep, #0f172a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.dark-theme .featured-person-name-row {
	color: #ffffff;
}

.featured-with-label {
	color: var(--body-gray, #64748b);
	font-weight: 500;
	margin-right: 4px;
}

body.dark-theme .featured-with-label {
	color: #94a3b8;
}

.featured-person-link,
.featured-person-link:link,
.featured-person-link:visited {
	color: #4f46e5 !important;
	font-weight: 700;
	text-decoration: none !important;
}

.featured-person-link:hover {
	text-decoration: underline !important;
	color: #4338ca !important;
}

body.dark-theme .featured-person-link,
body.dark-theme .featured-person-link:link,
body.dark-theme .featured-person-link:visited {
	color: #818cf8 !important;
}

body.dark-theme .featured-person-link:hover {
	color: #a5b4fc !important;
}

.featured-person-role {
	font-size: 12px;
	color: var(--body-gray, #64748b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.dark-theme .featured-person-role {
	color: #94a3b8;
}

.featured-excerpt {
	font-size: 14px;
	color: var(--body-gray, #475569);
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.dark-theme .featured-excerpt {
	color: #94a3b8;
}

/* Actions Row & CTA Button */
.featured-actions-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.featured-action-btn,
.featured-action-btn:link,
.featured-action-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 24px;
	background: var(--primary-button-bg);
	color: var(--on-primary-btn) !important;
	font-size: 14px;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	width: fit-content;
}

.featured-action-btn:hover,
.featured-action-btn:active {
	transform: translateY(-2px);
}

.featured-secondary-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.featured-secondary-link,
.featured-secondary-link:link,
.featured-secondary-link:visited {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 14px;
	background: #f1f5f9;
	color: #475569 !important;
	font-size: 12px;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	text-decoration: none !important;
	transition: all 0.15s ease;
}

.featured-secondary-link:hover {
	background: #e2e8f0;
	color: #0f172a !important;
	border-color: #94a3b8;
}

body.dark-theme .featured-secondary-link,
body.dark-theme .featured-secondary-link:link,
body.dark-theme .featured-secondary-link:visited {
	background: #1e293b;
	color: #cbd5e1 !important;
	border-color: #334155;
}

body.dark-theme .featured-secondary-link:hover {
	background: #334155;
	color: #ffffff !important;
	border-color: #475569;
}

/* ==========================================================================
   Latest Content Section & Grid Cards
   ========================================================================== */

.dev-stories-section-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--body-deep, #0f172a);
	margin: 36px 0 20px 0;
	letter-spacing: -0.2px;
	text-transform: uppercase;
}

body.dark-theme .dev-stories-section-title {
	color: #f8fafc;
}

.dev-stories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

@media (max-width: 480px) {
	.dev-stories-grid {
		grid-template-columns: 1fr;
	}
}

/* Common Card */
.dev-story-card {
	background: rgba(157, 185, 212, 0.06);
	border: 1px solid rgba(155, 155, 155, 0.3);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dev-story-card:hover {
	transform: translateY(-4px);
	background: rgba(157, 185, 212, 0.1);
	border: 1px solid rgba(155, 155, 155, 0.4);
}


.card-media-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;
	background: #0f172a;
	overflow: hidden;
}

.card-media-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
}

.card-media-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dev-story-card:hover .card-media-wrapper img {
	transform: scale(1.03);
}

.card-play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease;
}

.dev-story-card:hover .card-play-overlay {
	background: rgba(0, 0, 0, 0.15);
}

.card-play-btn {
	width: 48px;
	height: 48px;
	background: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
}

.dev-story-card:hover .card-play-btn {
	transform: scale(1.1);
}

.card-play-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	margin-left: 2px;
}

.card-duration-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Card Body */
.card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
}

.card-meta-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-person-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.card-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
}

body.dark-theme .card-avatar {
	background: #334155;
	border-color: #334155;
}

.card-person-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.card-person-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--body-deep, #0f172a);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card-person-name a {
	color: var(--body-deep, #0f172a) !important;
}

.card-person-role {
	font-size: 12px;
	color: var(--body-gray, #64748b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.dark-theme .card-person-role {
	color: #94a3b8;
}

.card-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	color: var(--body-deep, #0f172a);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.dark-theme .card-title {
	color: #ffffff;
}

.card-title a,
.card-title a:link,
.card-title a:visited {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.card-title a:hover {
	color: #4f46e5 !important;
}

body.dark-theme .card-title a:hover {
	color: #a5b4fc !important;
}

.card-footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(155, 155, 155, 0.15);
	display: flex;
	align-items: center;
	justify-content: space-between;
}


.card-action-link,
.card-action-link:link,
.card-action-link:visited {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent) !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap 0.2s ease, color 0.15s ease;
}

.card-action-link:hover,
.card-action-link:active {
	gap: 9px;
}

.card-date {
	font-size: 12px;
	color: var(--body-lite, #64748b);
}

/* Empty State */
.dev-stories-empty-state {
	text-align: center;
	padding: 48px 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.dark-theme .dev-stories-empty-state {
	background: #182234;
	border-color: #334155;
	box-shadow: none;
}

.dev-stories-empty-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--body-deep, #0f172a);
	margin: 0 0 8px 0;
}

body.dark-theme .dev-stories-empty-title {
	color: #f8fafc;
}

.dev-stories-empty-subtitle {
	font-size: 14px;
	color: var(--body-gray, #64748b);
	margin: 0;
}

body.dark-theme .dev-stories-empty-subtitle {
	color: #94a3b8;
}

/* Hub Pagination & Infinite Scroll */
.dev-stories-hub-wrapper .qa-page-links {
	margin: 36px 0 20px 0;
	text-align: center;
}

.dev-stories-hub-wrapper .qa-page-links-list {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.dev-stories-hub-wrapper .ias_status {
	margin: 32px 0 20px 0;
}

/* Callout Section: WANT TO BE FEATURED? */
.dev-stories-cta-card {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border: 1px solid #334155;
	border-radius: 18px;
	padding: 44px 28px;
	text-align: center;
	margin-top: 40px;
	position: relative;
	overflow: hidden;
}

.dev-stories-cta-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: 50%;
	transform: translateX(-50%);
	width: 500px;
	height: 200px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
	pointer-events: none;
}

.dev-stories-cta-card h2 {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.3px;
	margin: 0 0 12px 0;
	color: #ffffff;
	text-transform: uppercase;
}

.dev-stories-cta-card p {
	font-size: 15px;
	color: #cbd5e1;
	max-width: 600px;
	margin: 0 auto 24px auto;
	line-height: 1.6;
}

.dev-stories-featured-cta-btn,
.dev-stories-featured-cta-btn:link,
.dev-stories-featured-cta-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	border-radius: 30px;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dev-stories-featured-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
	color: #ffffff !important;
}

/* Home Page Right Sidebar Widget Styles */
.qa-dev-stories-widget {}

.qa-dev-stories-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.qa-dev-stories-widget-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--body-deep, #0f172a);
	margin: 0;
}

.qa-dev-stories-widget-viewall {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.qa-dev-stories-widget-subtitle {
	font-size: 12px;
	color: var(--body-gray, #64748b);
	margin: 0 0 14px 0;
}

body.dark-theme .qa-dev-stories-widget-subtitle {
	color: #94a3b8;
}

.qa-dev-stories-widget-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.qa-dev-stories-widget-item {
	display: flex;
	gap: 12px;
	align-items: center;
}

.qa-dev-stories-widget-media {
	position: relative;
	width: 90px;
	height: 52px;
	border-radius: 6px;
	overflow: hidden;
	background: #0f172a;
	flex-shrink: 0;
}

.qa-dev-stories-widget-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.qa-dev-stories-widget-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
}

.qa-dev-stories-widget-play-icon {
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111;
}

.qa-dev-stories-widget-play-icon svg {
	width: 10px;
	height: 10px;
	fill: currentColor;
	margin-left: 1px;
}

.qa-dev-stories-widget-duration {
	position: absolute;
	bottom: 2px;
	right: 4px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 1px 4px;
	border-radius: 2px;
}

.qa-dev-stories-widget-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.qa-dev-stories-widget-item-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--body-deep, #0f172a) !important;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qa-dev-stories-widget-item-author a,
.qa-dev-stories-widget-item-author {
	font-size: 11px;
	color: var(--body-gray, #64748b);
	margin-top: 3px;
}

/* ==========================================================================
   Dev Story Single Post View Styling
   ========================================================================== */

.dev-story-post-header {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.dark-theme .dev-story-post-header {
	border-bottom-color: #334155;
}

.dev-story-post-featuring {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 16px;
	color: var(--body-gray, #475569);
	font-weight: 500;
	line-height: 1.5;
}

body.dark-theme .dev-story-post-featuring {
	color: #cbd5e1;
}

.dev-story-featuring-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	vertical-align: middle;
	border: 1px solid #cbd5e1;
	display: inline-block;
}

body.dark-theme .dev-story-featuring-avatar {
	border-color: #475569;
}

.dev-story-person-link {
	color: var(--accent, #6366f1);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.15s ease;
}

.dev-story-person-link:hover {
	text-decoration: underline;
	color: var(--accent-hover, #4f46e5);
}

body.dark-theme .dev-story-person-link {
	color: #818cf8;
}

body.dark-theme .dev-story-person-link:hover {
	color: #a5b4fc;
}

.dev-story-post-person,
.dev-story-person-name {
	color: var(--body-deep, #0f172a);
	font-weight: 700;
}

body.dark-theme .dev-story-post-person,
body.dark-theme .dev-story-person-name {
	color: #ffffff;
}

.dev-story-post-role {
	color: var(--body-lite, #64748b);
	font-weight: 400;
}

body.dark-theme .dev-story-post-role {
	color: #94a3b8;
}

.dev-story-post-video,
.qa-template-question .video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	margin-bottom: 20px;
}

.dev-story-post-video iframe,
.qa-template-question .video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dev-story-post-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.dev-story-action-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: #f1f5f9;
	color: #4338ca;
	border: 1px solid #cbd5e1;
	transition: all 0.2s ease;
}

.dev-story-action-link:hover {
	background: #e2e8f0;
	color: #3730a3;
	border-color: #94a3b8;
}

body.dark-theme .dev-story-action-link {
	background: rgba(99, 102, 241, 0.12);
	color: #a5b4fc;
	border-color: rgba(99, 102, 241, 0.3);
}

body.dark-theme .dev-story-action-link:hover {
	background: rgba(99, 102, 241, 0.22);
	color: #ffffff;
	border-color: rgba(99, 102, 241, 0.5);
}

/* Post View Title & Post Content enhancements for Dev Stories */
.post-view-title {
	color: var(--body-deep, #0f172a);
}

body.dark-theme .post-view-title {
	color: #ffffff;
}

.qa-template-question .dev-story-post-header~.qa-q-view-content {
	color: var(--body-deep, #1e293b);
	font-size: 15px;
	line-height: 1.7;
}

body.dark-theme .qa-template-question .dev-story-post-header~.qa-q-view-content {
	color: var(--body-gray, #e2e8f0);
}

.qa-template-question .qa-q-view-content h1,
.qa-template-question .qa-q-view-content h2,
.qa-template-question .qa-q-view-content h3,
.qa-template-question .qa-q-view-content h4 {
	color: var(--body-deep, #0f172a);
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-weight: 700;
}

body.dark-theme .qa-template-question .qa-q-view-content h1,
body.dark-theme .qa-template-question .qa-q-view-content h2,
body.dark-theme .qa-template-question .qa-q-view-content h3,
body.dark-theme .qa-template-question .qa-q-view-content h4 {
	color: #f8fafc;
}

.qa-template-question .qa-q-view-content p {
	color: var(--body-deep, #334155);
	margin-bottom: 1.2em;
	line-height: 1.7;
}

body.dark-theme .qa-template-question .qa-q-view-content p {
	color: #cbd5e1;
}

.qa-template-question .qa-q-view-content strong {
	color: var(--body-deep, #0f172a);
}

body.dark-theme .qa-template-question .qa-q-view-content strong {
	color: #ffffff;
}

/* ==========================================================================
   Dev Story Cover Image — Listing Card
   ========================================================================== */

.card-story-cover {
	background: #f1f5f9;
}

body.dark-theme .card-story-cover {
	background: #1e293b;
}

.card-story-cover .card-media-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.card-story-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dev-story-card:hover .card-story-cover img {
	transform: scale(1.03);
}

/* ==========================================================================
   Dev Story Cover Image — Post View Page
   ========================================================================== */

.dev-story-cover-image {
	width: 100%;
	max-height: 480px;
	border-radius: 12px;
	overflow: hidden;
	margin: 18px 0 24px 0;
	background: #f1f5f9;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

body.dark-theme .dev-story-cover-image {
	background: #1e293b;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dev-story-cover-image img {
	width: 100%;
	height: 100%;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

@media (max-width: 640px) {
	.dev-story-cover-image {
		border-radius: 8px;
		max-height: 260px;
		margin: 14px 0 18px 0;
	}

	.dev-story-cover-image img {
		max-height: 260px;
	}
}