/*
Theme Name: Sarkari Udyogam
Theme URI: https://sarkariudyogam.com
Author: Sarkari Udyogam Team
Author URI: https://sarkariudyogam.com
Description: A distinctive, SEO-friendly, AdSense-optimized WordPress theme built for SarkariUdyogam.com — government job updates, exam notifications, results, admit cards, study material and free PDF downloads. Bold amber-and-teal identity, dark mode, JobPosting schema, ad-gated PDF downloads, and full Gutenberg support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkari-udyogam
Tags: blog, news, education, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, rtl-language-support, sticky-post, threaded-comments, translation-ready, dark-mode, accessibility-ready
*/

/* ==========================================================================
   1. CSS RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--su-font-body);
	color: var(--su-text);
	background: var(--su-bg);
	line-height: 1.65;
	font-size: 16px;
	overflow-x: hidden;
	transition: background .3s ease, color .3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

:focus-visible {
	outline: 3px solid var(--su-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--su-primary);
	color: #fff;
	padding: 12px 20px;
	z-index: 100000;
	border-radius: 0 0 8px 0;
	transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   2. THEME COLOR VARIABLES (customizable via Customizer -> outputs to head)
   ========================================================================== */
:root {
	--su-primary: #e8590c;
	--su-primary-dark: #b8450a;
	--su-accent: #0f9b8e;
	--su-accent-dark: #0b7a70;
	--su-success: #16a34a;
	--su-warning: #f5b400;
	--su-danger: #e0324a;

	--su-bg: #fbf7f2;
	--su-surface: #ffffff;
	--su-surface-glass: rgba(255,252,248,0.72);
	--su-text: #1c1710;
	--su-text-muted: #736a5e;
	--su-border: #ece3d8;

	--su-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--su-font-heading: 'Sora', 'Manrope', sans-serif;

	--su-radius: 18px;
	--su-radius-sm: 12px;
	--su-shadow: 0 8px 30px rgba(28,23,16,0.07);
	--su-shadow-lg: 0 20px 55px rgba(28,23,16,0.14);
	--su-header-height: 78px;
}

body.dark-mode {
	--su-bg: #14100b;
	--su-surface: #1e1912;
	--su-surface-glass: rgba(30,25,18,0.72);
	--su-text: #f6f1e9;
	--su-text-muted: #b6ab9b;
	--su-border: #232b3d;
	--su-shadow: 0 8px 30px rgba(0,0,0,0.35);
	--su-shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.su-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.su-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
@media (max-width: 960px) { .su-grid { grid-template-columns: 1fr; } }

section { padding: 56px 0; }
.su-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.su-section-head h2 {
	font-family: var(--su-font-heading);
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 700;
	position: relative;
	padding-left: 14px;
}
.su-section-head h2::before {
	content: '';
	position: absolute;
	left: 0; top: 6px; bottom: 6px;
	width: 5px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--su-primary), var(--su-accent));
}
.su-view-all {
	font-size: .9rem;
	font-weight: 600;
	color: var(--su-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap .2s ease;
}
.su-view-all:hover { gap: 10px; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
#su-header {
	position: sticky;
	top: 0;
	z-index: 999;
	height: var(--su-header-height);
	display: flex;
	align-items: center;
	background: var(--su-surface-glass);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--su-border);
	transition: box-shadow .25s ease, background .3s ease;
}
#su-header.su-scrolled { box-shadow: var(--su-shadow); }

.su-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.su-logo { display: flex; align-items: center; gap: 10px; font-family: var(--su-font-heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.su-logo img { height: 40px; width: auto; }
.su-logo-mark {
	width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
	background: linear-gradient(135deg, var(--su-primary), var(--su-accent));
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-family: var(--su-font-heading); font-weight: 800; font-size: 1.05rem;
	box-shadow: 0 6px 16px rgba(232,89,12,.35);
	transform: rotate(-4deg);
}
.su-logo-text span { display: block; line-height: 1.1; }
.su-logo-text .su-logo-sub { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--su-accent); }

.su-ticker-wrap {
	display: none;
}
@media (min-width: 1100px) {
	.su-ticker-wrap { display: flex; align-items: center; gap: 10px; flex: 1; margin: 0 20px; overflow: hidden; max-width: 420px; }
}
.su-ticker-label {
	background: var(--su-danger);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	flex-shrink: 0;
	animation: su-pulse 2s infinite;
}
@keyframes su-pulse { 0%,100%{opacity:1;} 50%{opacity:.6;} }
.su-ticker { overflow: hidden; white-space: nowrap; position: relative; flex: 1; }
.su-ticker-track { display: inline-flex; gap: 60px; animation: su-marquee 30s linear infinite; }
.su-ticker-track a { font-size: .85rem; font-weight: 500; }
@keyframes su-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mega menu */
.su-nav { display: none; }
@media (min-width: 1100px) { .su-nav { display: flex; align-items: center; gap: 4px; } }
.su-nav > ul { display: flex; gap: 4px; }
.su-nav > ul > li { position: relative; }
.su-nav > ul > li > a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 14px; border-radius: 10px;
	font-weight: 600; font-size: .92rem;
	transition: background .2s ease, color .2s ease;
}
.su-nav > ul > li > a:hover, .su-nav > ul > li.su-menu-open > a { background: rgba(232,89,12,0.1); color: var(--su-primary); }
.su-nav .su-mega,
.su-nav ul ul {
	position: absolute; top: calc(100% + 10px); left: 0;
	background: var(--su-surface); border: 1px solid var(--su-border);
	border-radius: var(--su-radius-sm); box-shadow: var(--su-shadow-lg);
	min-width: 220px; padding: 10px; opacity: 0; visibility: hidden;
	transform: translateY(8px); transition: all .2s ease; z-index: 50;
}
.su-nav > ul > li:hover > .su-mega,
.su-nav > ul > li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.su-nav ul ul li a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; }
.su-nav ul ul li a:hover { background: var(--su-bg); color: var(--su-primary); }

.su-header-actions { display: flex; align-items: center; gap: 10px; }
.su-icon-btn {
	width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--su-bg); border: 1px solid var(--su-border);
	transition: transform .2s ease, background .2s ease;
	position: relative;
}
.su-icon-btn:hover { transform: translateY(-2px); background: rgba(232,89,12,0.1); }
.su-notif-dot {
	position: absolute; top: 6px; right: 7px; width: 8px; height: 8px;
	background: var(--su-danger); border-radius: 50%;
}
.su-hamburger { display: flex; }
@media (min-width: 1100px) { .su-hamburger { display: none; } }
.su-hamburger span { width: 20px; height: 2px; background: var(--su-text); display: block; position: relative; }
.su-hamburger span::before, .su-hamburger span::after {
	content: ''; position: absolute; width: 20px; height: 2px; background: var(--su-text); left: 0; transition: transform .2s ease;
}
.su-hamburger span::before { top: -6px; } .su-hamburger span::after { top: 6px; }

/* Mobile drawer */
.su-mobile-menu {
	position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); height: 100vh;
	background: var(--su-surface); box-shadow: var(--su-shadow-lg);
	transform: translateX(100%); transition: transform .3s ease; z-index: 1001;
	overflow-y: auto; padding: 24px;
}
.su-mobile-menu.su-open { transform: translateX(0); }
.su-mobile-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden;
	transition: opacity .3s ease; z-index: 1000;
}
.su-mobile-overlay.su-open { opacity: 1; visibility: visible; }
.su-mobile-menu ul li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--su-border); font-weight: 600; }

/* Bottom mobile nav */
.su-bottom-nav {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
	display: flex; justify-content: space-around;
	background: var(--su-surface-glass); backdrop-filter: blur(14px);
	border-top: 1px solid var(--su-border); padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
@media (min-width: 1100px) { .su-bottom-nav { display: none; } }
.su-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--su-text-muted); }
.su-bottom-nav a.active { color: var(--su-primary); }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.su-hero {
	position: relative; overflow: hidden; padding: 64px 0 96px;
	background: linear-gradient(135deg, #fff4e9 0%, var(--su-bg) 55%, #eaf6f4 100%);
}
body.dark-mode .su-hero { background: linear-gradient(135deg, #241a10 0%, var(--su-bg) 55%, #0f221f 100%); }
.su-hero::before {
	content: ''; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px; border-radius: 50%;
	background: radial-gradient(circle, rgba(232,89,12,.16), transparent 70%); z-index: 0;
}
.su-hero::after {
	content: ''; position: absolute; bottom: -80px; left: -100px; width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle, rgba(15,155,142,.16), transparent 70%); z-index: 0;
}
.su-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.su-hero-wave svg { width: 100%; height: 60px; display: block; }
.su-hero-bg-anim {
	position: absolute; inset: -20%; z-index: 0; pointer-events: none;
	background: linear-gradient(120deg, rgba(232,89,12,.08), rgba(15,155,142,.08), rgba(232,89,12,.08));
	background-size: 200% 200%; animation: su-gradient 12s ease infinite;
}
@keyframes su-gradient { 0%{background-position:0% 50%;} 50%{background-position:100% 50%;} 100%{background-position:0% 50%;} }
.su-hero-inner { position: relative; z-index: 2; text-align: center; }
.su-hero h1 {
	font-family: var(--su-font-heading); font-weight: 800;
	font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 16px;
}
.su-hero h1 span { background: linear-gradient(90deg, var(--su-primary), var(--su-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.su-hero p { color: var(--su-text-muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 28px; }

.su-search {
	max-width: 640px; margin: 0 auto; position: relative;
	background: var(--su-surface); border-radius: 999px; box-shadow: var(--su-shadow-lg);
	display: flex; align-items: center; padding: 6px 6px 6px 22px; border: 1px solid var(--su-border);
}
.su-search input { flex: 1; border: none; background: none; padding: 12px 0; outline: none; color: var(--su-text); }
.su-search button {
	background: linear-gradient(135deg, var(--su-primary), var(--su-accent));
	color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 700;
	position: relative; overflow: hidden;
}
.su-search-suggestions {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--su-surface);
	border-radius: var(--su-radius-sm); box-shadow: var(--su-shadow-lg); border: 1px solid var(--su-border);
	text-align: left; overflow: hidden; display: none; z-index: 20;
}
.su-search-suggestions.su-show { display: block; }
.su-search-suggestions li a { display: flex; justify-content: space-between; padding: 10px 18px; font-size: .9rem; }
.su-search-suggestions li a:hover { background: var(--su-bg); }

.su-trending-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.su-trending-tags a {
	font-size: .8rem; padding: 6px 14px; border-radius: 999px; background: var(--su-surface);
	border: 1px solid var(--su-border); transition: all .2s ease;
}
.su-trending-tags a:hover { background: var(--su-primary); color: #fff; border-color: var(--su-primary); }

.su-hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.su-stat { text-align: center; }
.su-stat-num { font-family: var(--su-font-heading); font-size: 2rem; font-weight: 800; color: var(--su-primary); }
.su-stat-label { font-size: .8rem; color: var(--su-text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ==========================================================================
   6. CATEGORY QUICK LINKS
   ========================================================================== */
.su-quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 16px; }
.su-quicklink-card {
	background: var(--su-surface); border: 1px solid var(--su-border); border-radius: var(--su-radius);
	padding: 22px 14px; text-align: center; box-shadow: var(--su-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.su-quicklink-card:hover { transform: translateY(-6px); box-shadow: var(--su-shadow-lg); }
.su-quicklink-card .su-ic {
	width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
	display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
	background: linear-gradient(135deg, rgba(232,89,12,.15), rgba(15,155,142,.15));
}
.su-quicklink-card span { font-weight: 700; font-size: .88rem; }

/* ==========================================================================
   7. CARDS / POST LISTS
   ========================================================================== */
.su-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.su-tab-btn {
	padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem;
	background: var(--su-surface); border: 1px solid var(--su-border);
}
.su-tab-btn.active { background: var(--su-primary); color: #fff; border-color: var(--su-primary); }

.su-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.su-job-card {
	background: var(--su-surface); border: 1px solid var(--su-border); border-radius: var(--su-radius);
	padding: 20px; box-shadow: var(--su-shadow); position: relative;
	opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease, box-shadow .25s ease;
}
.su-job-card.su-inview { opacity: 1; transform: translateY(0); }
.su-job-card:hover { box-shadow: var(--su-shadow-lg); }
.su-job-card .su-badge {
	position: absolute; top: 14px; right: 14px; font-size: .65rem; font-weight: 700;
	padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.su-badge-new { background: rgba(22,163,74,.15); color: var(--su-success); }
.su-badge-hot { background: rgba(239,68,68,.15); color: var(--su-danger); }
.su-job-card h3 { font-family: var(--su-font-heading); font-size: 1.02rem; font-weight: 700; margin: 4px 0 10px; padding-right: 60px; }
.su-job-card h3 a:hover { color: var(--su-primary); }
.su-job-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--su-text-muted); margin-bottom: 12px; }
.su-job-meta span { display: flex; align-items: center; gap: 4px; }
.su-job-card::before {
	content: ''; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; border-radius: 50%;
	background: var(--su-bg); border: 1px solid var(--su-border);
}
.su-job-card::after {
	content: ''; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; border-radius: 50%;
	background: var(--su-bg); border: 1px solid var(--su-border);
}
.su-job-card .su-btn-row { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--su-border); }
.su-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
	font-weight: 700; font-size: .82rem; transition: transform .2s ease;
}
.su-btn-primary { background: linear-gradient(135deg, var(--su-primary), var(--su-accent)); color: #fff; }
.su-btn-outline { border: 1px solid var(--su-border); }
.su-btn:hover { transform: translateY(-2px); }
.su-bookmark-btn { position: absolute; bottom: 16px; right: 16px; }

/* Skeleton loader */
.su-skeleton { position: relative; overflow: hidden; background: var(--su-border); border-radius: var(--su-radius-sm); }
.su-skeleton::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
	animation: su-shimmer 1.4s infinite;
}
@keyframes su-shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }
.su-skeleton-card { height: 190px; }

/* Animated counters section */
.su-counters {
	background: linear-gradient(135deg, var(--su-primary), var(--su-primary-dark));
	color: #fff; border-radius: var(--su-radius); display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); text-align: center;
}
.su-counters .su-stat-num { color: #fff; }
.su-counters .su-stat { padding: 30px 10px; }

/* ==========================================================================
   8. SIDEBAR & WIDGETS
   ========================================================================== */
.su-sidebar { position: sticky; top: calc(var(--su-header-height) + 20px); align-self: start; display: flex; flex-direction: column; gap: 24px; }
.widget {
	background: var(--su-surface); border: 1px solid var(--su-border); border-radius: var(--su-radius);
	padding: 20px; box-shadow: var(--su-shadow);
}
.widget-title { font-family: var(--su-font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--su-bg); }
.su-widget-list li { padding: 9px 0; border-bottom: 1px dashed var(--su-border); font-size: .88rem; }
.su-widget-list li:last-child { border-bottom: none; }
.su-widget-list li a { display: flex; justify-content: space-between; gap: 8px; }
.su-ad-slot {
	display: flex; align-items: center; justify-content: center; text-align: center;
	background: var(--su-bg); border: 1px dashed var(--su-border); border-radius: var(--su-radius-sm);
	color: var(--su-text-muted); font-size: .75rem; min-height: 90px; margin: 0 auto;
}
.su-ad-728 { max-width: 728px; min-height: 90px; }
.su-ad-300 { max-width: 300px; min-height: 250px; }
.su-ad-336 { max-width: 336px; min-height: 280px; }
.su-sticky-mobile-ad {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 997; background: var(--su-surface);
	border-top: 1px solid var(--su-border); padding: 6px; display: flex; justify-content: center;
}
@media (min-width: 1100px) { .su-sticky-mobile-ad { display: none; } }

/* ==========================================================================
   9. SINGLE POST
   ========================================================================== */
.su-reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,var(--su-primary),var(--su-accent)); z-index: 1002; width: 0%; }
.su-entry-header { padding: 40px 0 20px; }
.su-breadcrumbs { font-size: .82rem; color: var(--su-text-muted); margin-bottom: 14px; }
.su-breadcrumbs a:hover { color: var(--su-primary); }
.su-entry-header h1 { font-family: var(--su-font-heading); font-size: clamp(1.5rem,3vw,2.3rem); font-weight: 800; margin-bottom: 14px; }
.su-entry-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--su-text-muted); font-size: .85rem; align-items: center; }
.su-reading-time::before { content: '⏱ '; }
.su-share-floating { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 10px; float: left; margin-left: -66px; }
@media (max-width: 1200px) { .su-share-floating { display: none; } }
.su-job-infobox {
	background: linear-gradient(135deg, rgba(232,89,12,.08), rgba(15,155,142,.08));
	border: 1px solid var(--su-border); border-radius: var(--su-radius); padding: 20px; margin: 20px 0;
}
.su-job-infobox table { width: 100%; border-collapse: collapse; }
.su-job-infobox td { padding: 8px 4px; border-bottom: 1px solid var(--su-border); font-size: .9rem; }
.su-job-infobox td:first-child { font-weight: 700; width: 40%; }
.su-entry-content { font-size: 1.02rem; }
.su-entry-content h2, .su-entry-content h3 { font-family: var(--su-font-heading); margin: 28px 0 14px; }
.su-entry-content p { margin-bottom: 16px; }
.su-entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.su-entry-content table td, .su-entry-content table th { border: 1px solid var(--su-border); padding: 10px; }
.su-faq-item { border: 1px solid var(--su-border); border-radius: var(--su-radius-sm); margin-bottom: 10px; overflow: hidden; }
.su-faq-q { padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; cursor: pointer; }
.su-faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.su-faq-item.open .su-faq-a { padding: 0 18px 16px; max-height: 500px; }

/* Back to top */
#su-back-to-top {
	position: fixed; bottom: 90px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
	background: var(--su-primary); color: #fff; display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; z-index: 900; box-shadow: var(--su-shadow-lg);
}
#su-back-to-top.su-show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1100px) { #su-back-to-top { bottom: 30px; } }

/* Loader */
#su-page-loader {
	position: fixed; inset: 0; background: var(--su-bg); z-index: 9999; display: flex; align-items: center; justify-content: center;
	transition: opacity .4s ease, visibility .4s ease;
}
#su-page-loader.su-hide { opacity: 0; visibility: hidden; }
.su-loader-ring { width: 46px; height: 46px; border: 4px solid var(--su-border); border-top-color: var(--su-primary); border-radius: 50%; animation: su-spin 0.8s linear infinite; }
@keyframes su-spin { to { transform: rotate(360deg); } }

/* Buttons ripple */
.su-ripple { position: relative; overflow: hidden; }
.su-ripple-effect { position: absolute; border-radius: 50%; background: rgba(255,255,255,.6); transform: scale(0); animation: su-ripple .6s linear; pointer-events: none; }
@keyframes su-ripple { to { transform: scale(4); opacity: 0; } }

/* Scroll reveal */
.su-reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.su-reveal.su-inview { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   10. ARCHIVE / SEARCH / 404
   ========================================================================== */
.su-archive-header { padding: 36px 0 10px; }
.su-archive-header h1 { font-family: var(--su-font-heading); font-size: 1.8rem; font-weight: 800; }
.su-pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; }
.su-pagination a, .su-pagination span {
	min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	border-radius: 10px; border: 1px solid var(--su-border); background: var(--su-surface); font-weight: 600; font-size: .88rem;
}
.su-pagination .current { background: var(--su-primary); color: #fff; border-color: var(--su-primary); }
.su-404-wrap { text-align: center; padding: 100px 0; }
.su-404-wrap h1 { font-size: 6rem; font-family: var(--su-font-heading); font-weight: 800; color: var(--su-primary); }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
#su-footer { background: #0b0f1a; color: #d1d5db; margin-top: 60px; padding-top: 60px; }
.su-footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.su-footer-grid h3 { color: #fff; font-family: var(--su-font-heading); margin-bottom: 16px; font-size: 1rem; }
.su-footer-grid li { padding: 6px 0; font-size: .88rem; }
.su-footer-grid a:hover { color: var(--su-accent); }
.su-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 calc(20px + 60px); flex-wrap: wrap; gap: 10px; font-size: .82rem; }
@media (min-width: 1100px) { .su-footer-bottom { padding-bottom: 20px; } }
.su-social-row { display: flex; gap: 10px; }
.su-social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.su-app-banner {
	background: linear-gradient(135deg, var(--su-primary), var(--su-accent)); border-radius: var(--su-radius);
	color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 30px; flex-wrap: wrap; gap: 16px;
}
.su-newsletter-box {
	background: var(--su-surface); border-radius: var(--su-radius); border: 1px solid var(--su-border);
	padding: 30px; text-align: center; box-shadow: var(--su-shadow);
}
.su-newsletter-box form { display: flex; max-width: 420px; margin: 16px auto 0; gap: 8px; }
.su-newsletter-box input { flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--su-border); background: var(--su-bg); }

/* Comments */
.su-comments { margin-top: 40px; }
.comment-list { list-style: none; }
.comment-body { background: var(--su-surface); border: 1px solid var(--su-border); border-radius: var(--su-radius-sm); padding: 16px; margin-bottom: 14px; }
.comment-respond input, .comment-respond textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--su-border); margin-bottom: 12px; background: var(--su-bg); }

/* Utility */
.su-mt-40 { margin-top: 40px; } .su-text-center{text-align:center;}
@media print { #su-header, #su-footer, .su-sidebar, #su-back-to-top, .su-share-floating { display: none !important; } }

/* ==========================================================================
   12. PDF LIBRARY + AD-GATE DOWNLOAD MODAL
   ========================================================================== */
.su-pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.su-pdf-card {
	background: var(--su-surface); border: 1px solid var(--su-border); border-radius: var(--su-radius);
	padding: 24px 20px; text-align: center; box-shadow: var(--su-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.su-pdf-card:hover { transform: translateY(-4px); box-shadow: var(--su-shadow-lg); }
.su-pdf-icon {
	width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; font-size: 1.6rem;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(232,89,12,.15), rgba(15,155,142,.15));
}
.su-pdf-card h3 { font-family: var(--su-font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.su-pdf-card p { font-size: .85rem; color: var(--su-text-muted); margin-bottom: 10px; }
.su-pdf-size {
	display: inline-block; font-size: .72rem; font-weight: 700; color: var(--su-accent);
	background: rgba(15,155,142,.1); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}
.su-pdf-card .su-btn { width: 100%; justify-content: center; }

.su-pdf-modal-overlay {
	position: fixed; inset: 0; background: rgba(15,10,5,.6); backdrop-filter: blur(4px);
	display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px;
}
.su-pdf-modal {
	position: relative; width: min(440px, 100%); background: var(--su-surface); border-radius: var(--su-radius);
	box-shadow: var(--su-shadow-lg); padding: 32px 28px; text-align: center;
	animation: su-pdf-pop .25s ease;
}
@keyframes su-pdf-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.su-pdf-modal-close {
	position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
	background: var(--su-bg); border: 1px solid var(--su-border); display: flex; align-items: center; justify-content: center;
}
.su-pdf-modal h2 { font-family: var(--su-font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; padding-right: 20px; }
.su-pdf-modal-filename { font-size: .82rem; color: var(--su-text-muted); margin-bottom: 18px; word-break: break-word; }
.su-pdf-ad-slot {
	min-height: 100px; display: flex; align-items: center; justify-content: center;
	background: var(--su-bg); border: 1px dashed var(--su-border); border-radius: var(--su-radius-sm);
	color: var(--su-text-muted); font-size: .8rem; margin-bottom: 18px; overflow: hidden;
}
.su-pdf-countdown-text { font-size: .88rem; margin-bottom: 10px; }
.su-pdf-countdown-text #su-pdf-countdown-num { font-weight: 800; color: var(--su-primary); font-size: 1.1rem; }
.su-pdf-progress-track { height: 6px; border-radius: 999px; background: var(--su-border); overflow: hidden; margin-bottom: 20px; }
.su-pdf-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--su-primary), var(--su-accent)); transition: width 1s linear; }
.su-pdf-download-link { display: flex; align-items: center; justify-content: center; width: 100%; }
.su-pdf-download-link.su-pdf-locked { opacity: .5; cursor: not-allowed; pointer-events: none; }

