/**
 * npocto Pro - Core Theme Base Styles
 * Author: npocto (https://npocto.ir)
 * Version: 2.0.0
 */

:root {
	/* Palette from Site Global Settings */
	--npocto-primary: #F2891A;
	--npocto-primary-rgb: 242, 137, 26;
	--npocto-primary-hover: #d9740e;
	--npocto-secondary: #54595F;
	--npocto-secondary-rgb: 84, 89, 95;
	--npocto-text: #7A7A7A;
	--npocto-text-dark: #1f2937;
	--npocto-accent: #61CE70;
	--npocto-accent-rgb: 97, 206, 112;
	--npocto-bg: #f8fafc;
	--npocto-bg-card: #ffffff;
	--npocto-border: #e5e7eb;
	--npocto-radius-sm: 8px;
	--npocto-radius-md: 14px;
	--npocto-radius-lg: 20px;
	--npocto-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
	--npocto-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.07);
	--npocto-shadow-lg: 0 20px 30px -10px rgba(242, 137, 26, 0.15);
	--npocto-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Container */
.npocto-container {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

/* RTL Helpers */
.npocto-rtl {
	direction: rtl;
	text-align: right;
}

/* Clean Responsive Images */
img {
	max-width: 100%;
	height: auto;
}

/* Site Credits */
.site-credit {
	text-align: center;
	padding: 1.5rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.9rem;
	color: var(--npocto-text-muted);
}

.site-credit a {
	color: var(--npocto-primary);
	font-weight: 700;
	text-decoration: none;
}

/* ==========================================================================
   Accessibility & Usability: Skip Links & Landmarks
   ========================================================================== */
.skip-link.screen-reader-text:focus {
	background-color: #ffffff !important;
	clip: auto !important;
	clip-path: none !important;
	color: #0f172a !important;
	display: block !important;
	font-size: 1rem !important;
	height: auto !important;
	left: 10px !important;
	line-height: normal !important;
	padding: 12px 24px !important;
	text-decoration: none !important;
	top: 10px !important;
	width: auto !important;
	z-index: 100000 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
	border-radius: 8px !important;
	border: 2px solid var(--npocto-primary, #F2891A) !important;
}

/* ==========================================================================
   Layout Stability: Zero Cumulative Layout Shift (CLS) Guards
   ========================================================================== */
.npocto-overlay-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 2.05fr;
	gap: 16px;
	width: 100%;
	direction: rtl;
	box-sizing: border-box;
}

.npocto-overlay-card {
	position: relative;
	height: 235px;
	border-radius: 18px;
	overflow: hidden;
	background-color: #0f172a;
	display: block;
	box-sizing: border-box;
	contain: layout style;
}

@media (max-width: 1024px) {
	.npocto-overlay-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px;
	}
	.npocto-overlay-card {
		height: 220px;
	}
}

@media (max-width: 640px) {
	.npocto-overlay-grid {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}
	.npocto-overlay-card {
		height: 205px;
	}
}

.npocto-overlay-thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	display: block;
}

.npocto-overlay-date-icon {
	width: 13px;
	height: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.npocto-overlay-date-icon svg {
	width: 13px !important;
	height: 13px !important;
}

/* Editor's Choice Slider Guard */
.npocto-ec-slider-track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
}

.npocto-ec-card {
	min-width: 320px;
	min-height: 165px;
	background: #ffffff;
	border-radius: 16px;
	box-sizing: border-box;
}

.npocto-ec-visual {
	min-height: 165px;
	position: relative;
	border-radius: 14px;
	overflow: hidden;
}

.npocto-ec-thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Magazine Articles Guard */
.npocto-mag-featured-thumb-wrap {
	width: 160px;
	height: 135px;
	min-height: 135px;
	position: relative;
	overflow: hidden;
	border-radius: 14px;
}

.npocto-mag-compact-thumb-wrap {
	width: 78px;
	height: 78px;
	min-height: 78px;
	position: relative;
	overflow: hidden;
	border-radius: 14px;
}

.npocto-mag-featured-thumb,
.npocto-mag-compact-thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Blog Tabs Guard */
.npocto-tab-card-visual {
	min-height: 165px;
	position: relative;
	border-radius: 14px;
	overflow: hidden;
}

.npocto-tab-thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Most Discussed Guard */
.npocto-discussed-thumb-wrap {
	width: 145px;
	height: 125px;
	min-height: 125px;
	position: relative;
	overflow: hidden;
	border-radius: 14px;
}

.npocto-discussed-thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Mobile Header Logo Explicit Sizing */
.nm-header-logo-img {
	height: auto;
	max-height: 48px;
	width: auto;
	display: block;
	object-fit: contain;
}

/* Prevent Elementor Image Aspect Ratio Distortion */
.elementor-widget-image img {
	height: auto;
	object-fit: contain;
}

/* ==========================================================================
   Accessibility: WCAG AA Color Contrast Improvements
   ========================================================================== */
.npocto-ec-subtitle,
.npocto-mag-subtitle,
.npocto-discussed-subtitle,
.novinmag-contact-subtitle {
	color: #475569 !important;
}

.npocto-mag-meta-item[itemprop="author"],
.npocto-discussed-author {
	color: #047857 !important;
}

.npocto-mag-meta-item[itemprop="author"] svg,
.npocto-discussed-author svg {
	fill: #047857 !important;
	color: #047857 !important;
}

.npocto-mag-meta-item[itemprop="datePublished"],
.npocto-discussed-date {
	color: #4338ca !important;
}

.npocto-mag-meta-item[itemprop="datePublished"] svg,
.npocto-discussed-date svg {
	fill: #4338ca !important;
	color: #4338ca !important;
}

.npocto-mag-btn-readmore,
.npocto-discussed-btn {
	background: #0f766e !important;
	color: #ffffff !important;
}

.npocto-tab-btn:not(.is-active) {
	color: #334155 !important;
}

/* Accessibility: Touch Target Sizes (Minimum 36px - 44px hit areas) */
.npocto-mag-compact-category,
.npocto-mag-btn-compact,
.npocto-ec-category-pill,
.npocto-tab-category-pill,
.npocto-discussed-category {
	min-height: 36px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 6px 14px !important;
	box-sizing: border-box;
}

/* ==========================================================================
   Global Link Typography Stability (Prevent Font Family/Style Shift on Hover)
   ========================================================================== */
a,
a:hover,
a:focus,
a:active,
.elementor a,
.elementor a:hover,
.elementor a:focus,
.elementor a:active,
.site-main a,
.site-main a:hover,
.site-main a:focus,
.site-header a,
.site-header a:hover,
.site-footer a,
.site-footer a:hover {
	font-family: inherit !important;
}


