/**
 * Advertisement Tracker Public Interstitial Page Stylesheet
 * Responsive Multi-Placement Grid Layout & QA Preview Mode
 */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.ad-tracker-interstitial-body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	background-color: #f0f2f5;
	color: #1d2327;
	min-height: 100vh;
	padding: 24px 16px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

body.mode-preview {
	background-color: #f8fafc;
}

/* Master Layout Container */
.ad-interstitial-page-wrapper {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Global QA Preview Banner */
.ad-preview-global-banner {
	background: #1e293b;
	color: #f8fafc;
	padding: 14px 20px;
	border-radius: 8px;
	text-align: center;
	font-size: 13px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	border-left: 4px solid #38bdf8;
}

.ad-preview-global-banner strong {
	color: #38bdf8;
	letter-spacing: 0.5px;
}

/* Placement Slot Heading in Preview Mode */
.ad-preview-slot-heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #0f172a;
	background: #f1f5f9;
	padding: 6px 14px;
	border-radius: 6px;
	display: inline-block;
	margin-bottom: 14px;
	border: 1px solid #cbd5e1;
}

/* QA Debug Info Panel */
.ad-debug-info-panel {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	text-align: left;
	font-size: 12px;
	line-height: 1.6;
}

.debug-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 0;
	border-bottom: 1px dashed #f1f5f9;
}

.debug-row:last-child {
	border-bottom: none;
}

.debug-label {
	font-weight: 600;
	color: #475569;
}

.debug-value {
	color: #0f172a;
}

.debug-url {
	background: #ffffff;
	padding: 2px 6px;
	border-radius: 3px;
	border: 1px solid #cbd5e1;
	word-break: break-all;
	font-size: 11px;
}

.badge-status-active {
	color: #16a34a;
	font-weight: 700;
}

.badge-status-inactive {
	color: #dc2626;
	font-weight: 700;
}

/* Slot Sections */
.ad-slot-section {
	width: 100%;
	margin: 0 auto 20px auto;
	text-align: center;
	clear: both;
}

.ad-slot-inner {
	width: 100%;
	margin: 0 auto;
	text-align: center;
}

/* Individual Advertisement Card */
.ad-item-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding: 28px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.ad-item-card:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.empty-slot-card {
	border: 2px dashed #cbd5e1;
	background: #ffffff;
}

.empty-slot-msg {
	font-size: 13px;
	color: #64748b;
	margin-top: 8px;
}

/* Header Slot Banner Styling */
.slot-header .ad-item-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	border-left: 4px solid #2271b1;
	padding: 24px 30px;
}

.slot-header .ad-title {
	font-size: 22px;
}

.slot-header .ad-image-container {
	max-height: 240px;
}

/* Middle Layout Grid */
.ad-middle-grid {
	display: grid;
	gap: 24px;
	width: 100%;
}

.grid-two-columns {
	grid-template-columns: 2fr 1fr;
}

.grid-single-column {
	grid-template-columns: 1fr;
}

/* Main Content Slot Styling */
.slot-main .ad-item-card {
	padding: 32px 28px;
}

.slot-main .ad-title {
	font-size: 24px;
}

.slot-main .ad-image-container {
	max-height: 420px;
}

/* Sidebar Slot Styling */
.slot-sidebar .ad-item-card {
	padding: 24px 20px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.slot-sidebar .ad-title {
	font-size: 18px;
}

.slot-sidebar .ad-image-container {
	max-height: 280px;
}

/* Footer Slot Banner Styling */
.slot-footer .ad-item-card {
	background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
	border-top: 3px solid #2271b1;
	padding: 24px 30px;
}

.slot-footer .ad-title {
	font-size: 20px;
}

.slot-footer .ad-image-container {
	max-height: 220px;
}

/* Badges */
.ad-badge-header {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 5px 12px;
	border-radius: 20px;
	margin-bottom: 14px;
	margin-right: 6px;
}

.badge-regular {
	background-color: #e7f2fa;
	color: #2271b1;
}

.badge-sponsored {
	background-color: #fff8c5;
	color: #9a6700;
}

.badge-preview-mode {
	background-color: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.badge-empty {
	background-color: #fef2f2;
	color: #991b1b;
}

/* Title */
.ad-title {
	font-weight: 700;
	color: #1d2327;
	margin-bottom: 18px;
	line-height: 1.3;
}

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

.ad-title a:hover {
	color: #2271b1;
}

/* Responsive Image Container */
.ad-image-container {
	margin-bottom: 22px;
	border-radius: 8px;
	overflow: hidden;
	background: #f6f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 600 / 340;
	max-height: 340px;
}

.ad-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 8px;
	transition: transform 0.3s ease;
	display: block;
	margin: 0 auto;
}

.ad-image-container img:hover {
	transform: scale(1.015);
}

/* Action CTA */
.ad-action-container {
	margin-top: 12px;
}

.ad-cta-button {
	display: inline-block;
	background: #2271b1;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.25);
}

.ad-cta-button:hover {
	background: #135e96;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(34, 113, 177, 0.35);
}

/* Master Layout Container */
.ad-interstitial-page-wrapper {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

/* Email Placement Sections Centering Wrapper */
.slot-email-center,
.slot-email-header {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}


/* Email & Site Endpoints Standalone Page Rules */
body.placement-endpoint-email-center,
body.placement-endpoint-email-header,
body.placement-endpoint-email-sidebar,
body.placement-endpoint-email-footer,
body.placement-endpoint-site-center,
body.placement-endpoint-site-header,
body.placement-endpoint-site-sidebar,
body.placement-endpoint-site-footer {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	min-height: auto !important;
}

body.placement-endpoint-email-center .ad-interstitial-page-wrapper,
body.placement-endpoint-email-header .ad-interstitial-page-wrapper,
body.placement-endpoint-email-sidebar .ad-interstitial-page-wrapper,
body.placement-endpoint-email-footer .ad-interstitial-page-wrapper,
body.placement-endpoint-site-center .ad-interstitial-page-wrapper,
body.placement-endpoint-site-header .ad-interstitial-page-wrapper,
body.placement-endpoint-site-sidebar .ad-interstitial-page-wrapper,
body.placement-endpoint-site-footer .ad-interstitial-page-wrapper {
	margin: 0 auto !important;
	padding: 0 !important;
	gap: 0 !important;
	overflow: hidden !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Site Center 2-Column Responsive Grid Layout */
.ad-site-center-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

.ad-site-center-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	align-items: stretch;
	width: 100%;
}

@media (max-width: 768px) {
	.ad-site-center-col {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}
}

/* Email Center Slot Styling (STRICT FIXED 600px Width x 340px Height) */
.slot-email-center,
.slot-email-center .ad-slot-inner,
.slot-email-center .ad-item-card,
.slot-email-center .ad-email-center-card,
.ad-placement-email-center,
.ad-placement-email-center .ad-email-center-card {
	width: 600px !important;
	max-width: 600px !important;
	min-width: 600px !important;
	height: 340px !important;
	max-height: 340px !important;
	min-height: 340px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

.slot-email-center img,
.ad-placement-email-center img,
.ad-placement-email-center .ad-image-container,
.ad-placement-email-center .ad-image-container img,
.ad-email-center-card .ad-image-container,
.ad-email-center-card .ad-image-container img {
	width: 600px !important;
	max-width: 600px !important;
	min-width: 600px !important;
	height: 340px !important;
	max-height: 340px !important;
	min-height: 340px !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	border-radius: 0 !important;
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 1 !important;
}

/* Email Header Slot Styling (STRICT FIXED 750px Width x 200px Height) */
.slot-email-header,
.slot-email-header .ad-slot-inner,
.slot-email-header .ad-item-card,
.ad-placement-email-header {
	width: 750px !important;
	max-width: 750px !important;
	min-width: 750px !important;
	height: 200px !important;
	max-height: 200px !important;
	min-height: 200px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

.slot-email-header img,
.ad-placement-email-header img,
.ad-placement-email-header .ad-image-container,
.ad-placement-email-header .ad-image-container img {
	width: 750px !important;
	max-width: 750px !important;
	min-width: 750px !important;
	height: 200px !important;
	max-height: 200px !important;
	min-height: 200px !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	border-radius: 0 !important;
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 1 !important;
}

/* Email Sidebar Slot Styling (STRICT FIXED 300px Width x 600px Height) */
.slot-email-sidebar,
.slot-email-sidebar .ad-slot-inner,
.slot-email-sidebar .ad-item-card,
.ad-placement-email-sidebar {
	width: 300px !important;
	max-width: 300px !important;
	min-width: 300px !important;
	height: 600px !important;
	max-height: 600px !important;
	min-height: 600px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

.slot-email-sidebar img,
.ad-placement-email-sidebar img {
	width: 300px !important;
	max-width: 300px !important;
	min-width: 300px !important;
	height: 600px !important;
	max-height: 600px !important;
	min-height: 600px !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	border-radius: 0 !important;
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 1 !important;
}

/* Email Footer Slot Styling (STRICT FIXED 600px Width x 180px Height) */
.slot-email-footer,
.slot-email-footer .ad-slot-inner,
.slot-email-footer .ad-item-card,
.ad-placement-email-footer {
	width: 600px !important;
	max-width: 600px !important;
	min-width: 600px !important;
	height: 180px !important;
	max-height: 180px !important;
	min-height: 180px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

.slot-email-footer img,
.ad-placement-email-footer img {
	width: 600px !important;
	max-width: 600px !important;
	min-width: 600px !important;
	height: 180px !important;
	max-height: 180px !important;
	min-height: 180px !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	border-radius: 0 !important;
	position: relative !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 1 !important;
}

.ad-image-overlay-wrap {
	position: relative !important;
	overflow: hidden !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0 auto !important;
}

.ad-placement-email-center .ad-overlay-content,
.ad-placement-email-header .ad-overlay-content,
.ad-placement-email-sidebar .ad-overlay-content,
.ad-placement-email-footer .ad-overlay-content,
.ad-email-center-card .ad-overlay-content,
.ad-overlay-content {
	position: absolute !important;
	bottom: 12px !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 10 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	padding: 0 16px !important;
	margin: 0 !important;
	text-align: center !important;
	color: #ffffff !important;
	box-sizing: border-box !important;
}

/* Email Title - overlay on image */
.ad-placement-email-center .ad-title,
.ad-placement-email-header .ad-title,
.ad-placement-email-sidebar .ad-title,
.ad-placement-email-footer .ad-title,
.ad-email-center-card .ad-title {
	color: #ffffff !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 2px #000000 !important;
}

.ad-placement-email-center a,
.ad-placement-email-header a,
.ad-email-center-card a,
.ad-placement-email-center .ad-title a,
.ad-placement-email-header .ad-title a,
.ad-email-center-card .ad-title a {
	color: #ffffff !important;
	text-decoration: none !important;
}

.ad-placement-email-center .ad-title a:hover,
.ad-placement-email-header .ad-title a:hover,
.ad-email-center-card .ad-title a:hover {
	color: #ffffff !important;
	text-decoration: underline !important;
}

/* Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 860px) {
	.grid-two-columns {
		grid-template-columns: 1fr;
	}

	.slot-sidebar .ad-item-card {
		height: auto;
	}

	.ad-interstitial-page-wrapper {
		gap: 20px;
	}

}

@media (max-width: 480px) {
	body.ad-tracker-interstitial-body {
		padding: 12px 8px;
	}

	.ad-item-card {
		padding: 20px 16px;
	}

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

	.ad-cta-button {
		font-size: 14px;
		padding: 12px 24px;
		width: 100%;
	}
}

/* Image with Overlay Title Styles for Email & Web Placements */
.ad-overlay-card-wrapper {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 8px;
}

.ad-overlay-card-wrapper img.ad-image {
	width: 100%;
	height: auto;
	display: block;
	border: 0;
	object-fit: cover;
	object-position: center;
}

.ad-image-title-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 10;
	background: transparent !important;
	padding: 16px;
	box-sizing: border-box;
	text-align: center;
}

.ad-image-title-overlay .ad-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #ffffff !important;
	text-align: center !important;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.8) !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	word-break: break-word !important;
}

/* Site Center 2-Column Side-by-Side Placement Styling (Total Width ~580-600px, 283x135 per Ad) */
.slot-site-center,
.ad-placement-site-center,
.ad-site-center-container {
	width: 100% !important;
	max-width: 600px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
}

.ad-site-center-grid {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 14px !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 600px !important;
	margin: 0 auto !important;
}

.ad-site-center-col {
	flex: 1 1 282px !important;
	width: 282px !important;
	max-width: 282px !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	margin: 0 auto !important;
}

/* Universal zero border-radius reset for ALL site advertisement images & containers */
html body .entry-content div[class*="ad-"] img,
html body .entry-content a[class*="ad-"] img,
html body .entry-content .ad-card-container img,
html body .entry-content .ad-site-center-container img,
html body .entry-content .ad-site-below-container img,
html body .entry-content .ad-site-sidebar img,
html body .post-content div[class*="ad-"] img,
html body .post-content a[class*="ad-"] img,
html body article div[class*="ad-"] img,
html body article a[class*="ad-"] img,
html body .code-block img,
html body .ai-viewport img,
html body div[class*="ad-"] img,
html body a[class*="ad-"] img,
html body div[class*="ad-"],
html body a[class*="ad-"],
.ad-site-center-container,
.ad-site-center-container img,
.ad-site-center-grid img,
.ad-site-center-col img,
.ad-site-below-container,
.ad-site-below-container img,
.ad-site-below-grid img,
.ad-site-below-col img,
.ad-site-sidebar,
.ad-site-sidebar img,
.ad-card-container,
.ad-card-container img,
.ad-card-container a img,
.ad-placement-card-site-center,
.ad-placement-card-site-center img,
.ad-placement-card-site-center a img,
.ad-placement-card-site-below,
.ad-placement-card-site-below img,
.ad-placement-card-site-below a img,
.ad-placement-card-site-sidebar,
.ad-placement-card-site-sidebar img,
.ad-placement-card-site-sidebar a img,
.ad-placement-card-site-header,
.ad-placement-card-site-header img,
.ad-placement-card-site-footer,
.ad-placement-card-site-footer img,
.ad-below-content {
	border-radius: 0 !important;
	-webkit-border-radius: 0 !important;
	-moz-border-radius: 0 !important;
	clip-path: none !important;
	-webkit-clip-path: none !important;
	mask-image: none !important;
	-webkit-mask-image: none !important;
}

.ad-card-container.ad-placement-card-site-center {
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	overflow: hidden !important;
	position: relative !important;
	border-radius: 0 !important;
	display: block !important;
	margin: 0 auto !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

/* Site-center images: dimensions controlled by inline style from saved ad dimensions */
.ad-placement-card-site-center img {
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	position: relative !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	top: auto !important;
	left: auto !important;
	z-index: 1 !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* Site-center image wrapper: respect exact saved dimensions */
.ad-placement-card-site-center .ad-image-wrapper {
	overflow: hidden !important;
	border-radius: 0 !important;
}

.ad-placement-card-site-center .ad-below-content {
	padding: 6px 0 0 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* Site Below Placement (Article & Other Pages) */
.slot-site-below,
.ad-placement-site-below,
.ad-site-below-container,
.ad-tracker-site-below-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
	box-sizing: border-box !important;
	clear: both !important;
}

.ad-site-below-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px 16px !important;
	justify-items: stretch !important;
	align-items: start !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

/* Site Homepage Below Placement (800px 2-column Article Grid Layout) */
.slot-site-homepage-below,
.ad-placement-site-homepage-below,
.ad-site-homepage-below-container,
.ad-tracker-site-homepage-below-wrapper,
.ad-tracker-homepage-loop-wrapper {
	width: 100% !important;
	max-width: 800px !important;
	margin: 24px 0 0 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
	box-sizing: border-box !important;
	clear: both !important;
	text-align: left !important;
}

.ad-site-homepage-below-grid,
.ad-site-below-grid-homepage {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 24px 30px !important;
	justify-items: stretch !important;
	align-items: start !important;
	width: 100% !important;
	max-width: 800px !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

@media (max-width: 900px) {
	.ad-site-below-grid:not(.ad-site-below-grid-homepage):not(.ad-site-homepage-below-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 16px !important;
	}
}

@media (max-width: 580px) {
	.ad-site-below-grid,
	.ad-site-below-grid-homepage,
	.ad-site-homepage-below-grid {
		grid-template-columns: 1fr !important;
		gap: 16px 16px !important;
	}
}

.ad-site-below-col,
.ad-site-homepage-below-col {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	box-sizing: border-box !important;
}

.ad-card-container.ad-placement-card-site-below,
.ad-card-container.ad-placement-card-site-homepage-below {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	overflow: hidden !important;
	position: relative !important;
	border-radius: 0 !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

.ad-card-container.ad-placement-card-site-below > a,
.ad-card-container.ad-placement-card-site-homepage-below > a {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	text-decoration: none !important;
	color: inherit !important;
}

/* Site-below image wrapper (Article pages / site-below-ads - native borderless style) */
.ad-placement-card-site-below .ad-image-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 16 / 10 !important;
	height: auto !important;
	min-height: 160px !important;
	max-height: 220px !important;
	overflow: hidden !important;
	border-radius: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	position: relative !important;
}

/* Homepage-specific image wrapper: 4:3 native ratio */
.ad-placement-card-site-homepage-below .ad-image-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 4 / 3 !important;
	height: auto !important;
	min-height: 220px !important;
	max-height: 280px !important;
	overflow: hidden !important;
	border-radius: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	position: relative !important;
}

/* Images: fill the wrapper exactly with object-fit: cover */
.ad-placement-card-site-below .ad-image-wrapper img,
.ad-placement-card-site-below img,
.ad-placement-card-site-homepage-below .ad-image-wrapper img,
.ad-placement-card-site-homepage-below img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	position: relative !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	top: auto !important;
	left: auto !important;
	z-index: 1 !important;
	opacity: 1 !important;
	visibility: visible !important;
	box-sizing: border-box !important;
}

/* Content box: borderless, transparent, seamless under image */
.ad-placement-card-site-below .ad-below-content,
.ad-placement-card-site-homepage-below .ad-below-content {
	width: 100% !important;
	max-width: 100% !important;
	padding: 10px 0 0 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

/* Hide category tag for both to keep clean native look */
.ad-placement-card-site-below .ad-category-tag,
.ad-placement-card-site-homepage-below .ad-category-tag {
	display: none !important;
}

.ad-placement-card-site-below .ad-title {
	font-family: inherit !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	text-transform: none !important;
	color: #111111 !important;
	margin: 0 0 4px 0 !important;
	padding: 0 !important;
	border: none !important;
	text-shadow: none !important;
	text-align: left !important;
	word-break: break-word !important;
	line-height: 1.35 !important;
}

.ad-placement-card-site-homepage-below .ad-title {
	font-family: inherit !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	text-transform: none !important;
	color: #111111 !important;
	margin: 0 0 4px 0 !important;
	padding: 0 !important;
	border: none !important;
	text-shadow: none !important;
	text-align: left !important;
	word-break: break-word !important;
	line-height: 1.35 !important;
}

.ad-placement-card-site-below .ad-source-text,
.ad-placement-card-site-homepage-below .ad-source-text {
	display: none !important;
}

/* Site Header Right-Side Placement Styling (Fluid 1795:291 Aspect Ratio) */
.slot-site-header,
.ad-placement-site-header,
.ad-tracker-site-header-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
	line-height: 0 !important;
}

.ad-card-container.ad-placement-card-site-header {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: auto !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	overflow: hidden !important;
	position: relative !important;
	border-radius: 8px !important;
	display: block !important;
	line-height: 0 !important;
}

.ad-card-container.ad-placement-card-site-header tbody,
.ad-card-container.ad-placement-card-site-header tr,
.ad-card-container.ad-placement-card-site-header td {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
}

.ad-placement-card-site-header img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	aspect-ratio: 1795 / 291 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	position: relative !important;
	z-index: 1 !important;
	opacity: 1 !important;
	visibility: visible !important;
	margin: 0 !important;
}

/* Site Sidebar Right-Side Placement Styling (dimensions controlled by saved ad values) */
.slot-site-sidebar,
.ad-placement-site-sidebar,
.ad-tracker-site-sidebar-wrapper,
.slot-sidebar {
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	margin: 0 auto 20px auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
	overflow: hidden !important;
}

.ad-card-container.ad-placement-card-site-sidebar,
.ad-card-container.ad-placement-card-sidebar {
	height: auto !important;
	max-height: none !important;
	min-height: auto !important;
	overflow: hidden !important;
	position: relative !important;
	border-radius: 0 !important;
	display: block !important;
	margin: 0 auto !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

/* Sidebar images: dimensions controlled by inline style from saved ad dimensions */
.ad-placement-card-site-sidebar img,
.ad-placement-card-sidebar img {
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	position: relative !important;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	top: auto !important;
	left: auto !important;
	z-index: 1 !important;
}

/* Sidebar image wrapper: respect exact saved dimensions */
.ad-placement-card-site-sidebar .ad-image-wrapper,
.ad-placement-card-sidebar .ad-image-wrapper {
	overflow: hidden !important;
	border-radius: 0 !important;
}

.ad-below-content {
	padding: 6px 0 0 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

.ad-below-content .ad-title {
	font-family: inherit !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	text-shadow: none !important;
	text-align: left !important;
	word-break: break-word !important;
}

/* Site Footer Placement Styling (dimensions controlled by saved ad values) */
.slot-site-footer,
.ad-placement-site-footer {
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	display: block !important;
	overflow: hidden !important;
}

.ad-card-container.ad-placement-card-site-footer {
	overflow: hidden !important;
	position: relative !important;
	border-radius: 8px !important;
	display: block !important;
	margin: 0 auto !important;
}

.ad-placement-card-site-footer img {
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 1 !important;
	opacity: 1 !important;
	visibility: visible !important;
}