/*--------------------------------------------------------------
 * New Grants Theme — Main Stylesheet (Advisory Style)
 *
 * Design: Light, minimal, shadow-based cards, generous whitespace
 * Inspired by pixfort Advisory template
 *
 * Table of Contents:
 * 1.  CSS Custom Properties
 * 2.  Reset & Base
 * 3.  Typography
 * 4.  Layout
 * 5.  Buttons
 * 6.  Header (Transparent → Boxed Blur)
 * 7.  Navigation
 * 8.  Sections (Advisory spacing)
 * 9.  Cards (Shadow-based)
 * 10. Statistics
 * 11. Feature Grid
 * 12. CTA Section
 * 13. Post Cards
 * 14. Single Post
 * 15. Pages
 * 16. Sidebar
 * 17. Footer
 * 18. 404
 * 19. Forms (MetForm)
 * 20. Accessibility
 * 21. Animations
 * 22. Responsive
 *--------------------------------------------------------------*/

/* 1. CSS Custom Properties
--------------------------------------------------------------*/
:root {
	/* Brand colors */
	--ng-primary: #1a365d;
	--ng-primary-light: #2b6cb0;
	--ng-primary-dark: #0f2440;
	--ng-secondary: #c9a227;
	--ng-secondary-light: #e0bc4e;
	--ng-accent: #38b2ac;

	/* Text — Advisory style: near-black heading, gray body */
	--ng-text: #1a202c;
	--ng-text-body: #52525B;
	--ng-text-light: #71717A;
	--ng-text-muted: #A1A1AA;

	/* Backgrounds */
	--ng-bg: #ffffff;
	--ng-bg-alt: #f8f9fa;
	--ng-bg-dark: #0f172a;

	/* Borders & Dividers — Advisory uses very subtle borders */
	--ng-border: #E9ECEF;

	/* Shadows — Advisory card shadow style */
	--ng-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--ng-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	--ng-shadow-card: 0 6px 9px rgba(0, 0, 0, 0.1);
	--ng-shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
	--ng-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
	--ng-shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.12);

	/* Radius — Advisory uses 15px standard */
	--ng-radius: 10px;
	--ng-radius-lg: 15px;
	--ng-radius-xl: 20px;

	/* System */
	--ng-success: #38a169;
	--ng-error: #e53e3e;
	--ng-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--ng-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	--ng-container: 1200px;
	--ng-header-height: 80px;
}

/* 2. Reset & Base
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--ng-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ng-text-body);
	background-color: var(--ng-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ng-primary);
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: all var(--ng-transition);
}

a:hover,
a:focus {
	color: var(--ng-primary-light);
	text-decoration-color: currentColor;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 3. Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ng-font);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ng-text);
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
	margin: 0 0 1.25em;
	color: var(--ng-text-body);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 1.5em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	margin-bottom: 1.25em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
	border-left: 4px solid var(--ng-primary);
	margin: 2em 0;
	padding: 1em 1.5em;
	background: var(--ng-bg-alt);
	border-radius: 0 var(--ng-radius) var(--ng-radius) 0;
	font-style: italic;
	color: var(--ng-text-light);
}

/* 4. Layout
--------------------------------------------------------------*/
.ng-container {
	width: 100%;
	max-width: var(--ng-container);
	margin: 0 auto;
	padding: 0 24px;
}

.ng-site-main {
	min-height: 60vh;
}

.ng-single-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 48px;
	padding-top: 48px;
	padding-bottom: 48px;
}

.ng-full-width .ng-single-layout {
	grid-template-columns: 1fr;
}

.ng-text-center {
	text-align: center;
}

/* 5. Buttons — Advisory style: clean, subtle shadow on hover
--------------------------------------------------------------*/
.ng-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	font-family: var(--ng-font);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	border: 2px solid transparent;
	border-radius: var(--ng-radius);
	cursor: pointer;
	transition: all var(--ng-transition);
	text-decoration: none;
	white-space: nowrap;
}

.ng-btn svg {
	flex-shrink: 0;
	transition: transform var(--ng-transition);
}

.ng-btn:hover svg {
	transform: translateX(4px);
}

.ng-btn-primary {
	background: var(--ng-primary);
	color: #ffffff;
	border-color: var(--ng-primary);
}

.ng-btn-primary:hover {
	background: var(--ng-primary-light);
	border-color: var(--ng-primary-light);
	color: #ffffff;
	box-shadow: var(--ng-shadow-md);
	transform: translateY(-1px);
}

.ng-btn-secondary {
	background: transparent;
	color: var(--ng-text);
	border-color: var(--ng-border);
}

.ng-btn-secondary:hover {
	border-color: var(--ng-text);
	box-shadow: var(--ng-shadow-sm);
}

.ng-btn-accent {
	background: var(--ng-secondary);
	color: var(--ng-primary-dark);
	border-color: var(--ng-secondary);
}

.ng-btn-accent:hover {
	background: var(--ng-secondary-light);
	border-color: var(--ng-secondary-light);
	color: var(--ng-primary-dark);
	box-shadow: var(--ng-shadow-md);
}

.ng-btn-outline-light {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.3);
}

.ng-btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
	color: #ffffff;
}

.ng-btn-lg {
	padding: 16px 40px;
	font-size: 1rem;
}

/* 6. Header — Advisory style: transparent → boxed with blur
--------------------------------------------------------------*/
.ng-site-header {
	position: fixed;
	top: 10px;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: all var(--ng-transition);
}

.ng-header-inner {
	max-width: calc(var(--ng-container) + 48px);
	margin: 0 auto;
	height: var(--ng-header-height);
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-radius: var(--ng-radius-lg);
	padding: 0 32px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: all var(--ng-transition);
}

.ng-site-header.ng-scrolled .ng-header-inner {
	box-shadow: var(--ng-shadow-card);
	background: rgba(255, 255, 255, 0.95);
}

.ng-header-container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.ng-header-brand {
	flex-shrink: 0;
}

.ng-site-title {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--ng-text);
	text-decoration: none;
	letter-spacing: -0.025em;
}

.ng-site-title:hover {
	color: var(--ng-primary);
}

.ng-logo img {
	max-height: 44px;
	width: auto;
}

/* 7. Navigation
--------------------------------------------------------------*/
.ng-main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ng-nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ng-nav-menu li {
	position: relative;
}

.ng-nav-menu > li > a {
	display: block;
	padding: 8px 16px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ng-text);
	text-decoration: none;
	transition: color var(--ng-transition);
	border-radius: var(--ng-radius);
}

.ng-nav-menu > li > a:hover,
.ng-nav-menu > li.current-menu-item > a,
.ng-nav-menu > li.current-menu-ancestor > a {
	color: var(--ng-primary);
}

/* Advisory-style underline on active */
.ng-nav-menu > li.current-menu-item > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 16px;
	right: 16px;
	height: 2px;
	background: var(--ng-primary);
	border-radius: 1px;
}

.ng-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	box-shadow: var(--ng-shadow-lg);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--ng-transition);
	z-index: 100;
}

.ng-nav-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ng-nav-menu .sub-menu a {
	display: block;
	padding: 10px 16px;
	font-size: 0.875rem;
	color: var(--ng-text-body);
	text-decoration: none;
	border-radius: var(--ng-radius);
}

.ng-nav-menu .sub-menu a:hover {
	background: var(--ng-bg-alt);
	color: var(--ng-primary);
}

.ng-nav-menu .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}

.ng-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.ng-header-cta {
	padding: 10px 24px;
	font-size: 0.875rem;
	border-radius: var(--ng-radius);
	text-decoration: none;
}

/* Hamburger */
.ng-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 1001;
}

.ng-hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
}

.ng-hamburger span {
	display: block;
	height: 2px;
	background: var(--ng-text);
	border-radius: 2px;
	transition: all var(--ng-transition);
}

.ng-menu-toggle[aria-expanded="true"] .ng-hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.ng-menu-toggle[aria-expanded="true"] .ng-hamburger span:nth-child(2) {
	opacity: 0;
}

.ng-menu-toggle[aria-expanded="true"] .ng-hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* 8. Sections — Advisory: generous whitespace
--------------------------------------------------------------*/
.ng-section {
	padding: 120px 0;
}

.ng-section-alt {
	background: var(--ng-bg-alt);
}

.ng-section-header {
	margin-bottom: 64px;
}

.ng-section-badge {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ng-primary);
	margin-bottom: 16px;
}

.ng-section-title {
	margin-bottom: 16px;
}

.ng-section-text {
	font-size: 1.0625rem;
	color: var(--ng-text-body);
	max-width: 640px;
	line-height: 1.75;
}

.ng-section-header .ng-section-text {
	margin: 0 auto;
}

.ng-section-grid {
	display: grid;
	gap: 64px;
	align-items: center;
}

.ng-section-grid-2 {
	grid-template-columns: 1fr 1fr;
}

/* 9. Cards — Advisory style: shadow-based, no borders
--------------------------------------------------------------*/
.ng-card {
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	padding: 36px;
	box-shadow: var(--ng-shadow-card);
	transition: all var(--ng-transition);
}

.ng-card:hover {
	box-shadow: var(--ng-shadow-lg);
	transform: translateY(-4px);
}

/* Service cards */
.ng-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.ng-service-card {
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	padding: 36px;
	position: relative;
	overflow: hidden;
	transition: all var(--ng-transition);
	box-shadow: var(--ng-shadow-card);
	border: none;
}

.ng-service-card:hover {
	box-shadow: var(--ng-shadow-xl);
	transform: translateY(-6px);
}

.ng-service-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 1.25rem;
}

.ng-service-icon-1 { background: rgba(43, 108, 176, 0.08); color: var(--ng-primary-light); }
.ng-service-icon-2 { background: rgba(201, 162, 39, 0.08); color: var(--ng-secondary); }
.ng-service-icon-3 { background: rgba(56, 178, 172, 0.08); color: var(--ng-accent); }
.ng-service-icon-4 { background: rgba(128, 90, 213, 0.08); color: #805ad5; }

.ng-service-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--ng-text);
}

.ng-service-description {
	color: var(--ng-text-body);
	margin-bottom: 16px;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.ng-service-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ng-primary);
	text-decoration: underline;
}

.ng-service-link:hover {
	color: var(--ng-primary-light);
}

/* Client/Partner cards */
.ng-clients-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ng-client-card {
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	padding: 32px;
	text-align: center;
	transition: all var(--ng-transition);
	box-shadow: var(--ng-shadow-card);
}

.ng-client-card:hover {
	box-shadow: var(--ng-shadow-lg);
	transform: translateY(-3px);
}

.ng-client-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--ng-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: var(--ng-primary);
	transition: all var(--ng-transition);
}

.ng-client-card:hover .ng-client-icon {
	background: var(--ng-primary);
	color: #ffffff;
}

.ng-client-card h4 {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
	color: var(--ng-text);
}

/* 10. Statistics — Advisory style: minimal, large numbers
--------------------------------------------------------------*/
.ng-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.ng-stat-item {
	text-align: center;
}

.ng-stat-number {
	display: block;
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 8px;
	letter-spacing: -0.03em;
	color: var(--ng-text);
}

.ng-stat-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ng-text-light);
}

/* Feature Grid — Advisory style: minimal border-top cards */
.ng-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.ng-feature-item {
	padding: 32px 28px;
	border-top: 1px solid var(--ng-border);
	border-left: 1px solid var(--ng-border);
	transition: all var(--ng-transition);
}

.ng-feature-item:hover {
	background: var(--ng-bg-alt);
}

.ng-feature-item:nth-child(3n+1) {
	border-left: none;
}

.ng-feature-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ng-text);
}

.ng-feature-text {
	font-size: 0.875rem;
	color: var(--ng-text-body);
	margin: 0;
	line-height: 1.7;
}

/* 11. Approach / Process */
.ng-approach-items {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ng-approach-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 28px;
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	box-shadow: var(--ng-shadow-card);
	transition: all var(--ng-transition);
}

.ng-approach-item:hover {
	box-shadow: var(--ng-shadow-lg);
	transform: translateY(-2px);
}

.ng-approach-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(43, 108, 176, 0.06);
	color: var(--ng-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ng-approach-item h4 {
	font-size: 1rem;
	margin-bottom: 4px;
	color: var(--ng-text);
}

.ng-approach-item p {
	font-size: 0.875rem;
	color: var(--ng-text-body);
	margin: 0;
}

/* 12. CTA Section
--------------------------------------------------------------*/
.ng-section-cta {
	position: relative;
	padding: 120px 0;
	overflow: hidden;
}

.ng-cta-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--ng-primary-dark) 0%, var(--ng-primary) 100%);
}

.ng-cta-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.ng-section-cta .ng-container {
	position: relative;
	z-index: 1;
}

.ng-cta-content {
	max-width: 680px;
	margin: 0 auto;
}

.ng-cta-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: #ffffff;
	margin-bottom: 20px;
}

.ng-cta-text {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 36px;
}

/* 13. Post Cards
--------------------------------------------------------------*/
.ng-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 28px;
	padding: 48px 0;
}

.ng-post-card {
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	overflow: hidden;
	box-shadow: var(--ng-shadow-card);
	transition: all var(--ng-transition);
}

.ng-post-card:hover {
	box-shadow: var(--ng-shadow-lg);
	transform: translateY(-4px);
}

.ng-post-card .ng-post-thumbnail img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.ng-post-card-content {
	padding: 28px;
}

.ng-post-card-title {
	font-size: 1.125rem;
	margin-bottom: 12px;
}

.ng-post-card-title a {
	color: var(--ng-text);
	text-decoration: none;
}

.ng-post-card-title a:hover {
	color: var(--ng-primary);
}

.ng-post-meta {
	display: flex;
	gap: 16px;
	font-size: 0.8125rem;
	color: var(--ng-text-muted);
	margin-bottom: 8px;
}

.ng-post-meta a {
	color: var(--ng-text-muted);
	text-decoration: none;
}

.ng-post-meta a:hover {
	color: var(--ng-primary);
}

.ng-post-card-excerpt {
	color: var(--ng-text-body);
	font-size: 0.9375rem;
	margin-bottom: 16px;
}

.ng-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ng-primary);
	text-decoration: underline;
}

.ng-read-more:hover {
	color: var(--ng-primary-light);
}

.ng-read-more svg {
	transition: transform var(--ng-transition);
}

.ng-read-more:hover svg {
	transform: translateX(4px);
}

/* 14. Single Post
--------------------------------------------------------------*/
.ng-single-post {
	padding-bottom: 40px;
}

.ng-single-header {
	margin-bottom: 32px;
}

.ng-single-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.ng-single-content {
	font-size: 1.0625rem;
	line-height: 1.85;
}

.ng-single-content img {
	border-radius: var(--ng-radius-lg);
}

.ng-single-footer {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ng-border);
	font-size: 0.875rem;
	color: var(--ng-text-light);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* 15. Pages
--------------------------------------------------------------*/
.ng-page-header {
	background: var(--ng-bg);
	padding: 60px 0 48px;
	margin-top: var(--ng-header-height);
}

.ng-archive-header {
	background: var(--ng-bg);
	padding: 60px 0 48px;
	margin-top: var(--ng-header-height);
}

.ng-page-title {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 0;
}

.ng-page-content {
	padding: 48px 0;
}

.ng-page-content .entry-content {
	max-width: 800px;
}

.ng-pagination {
	padding: 24px 0 48px;
}

.ng-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ng-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--ng-radius);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ng-text-body);
	background: var(--ng-bg);
	border: 1px solid var(--ng-border);
	transition: all var(--ng-transition);
}

.ng-pagination .page-numbers:hover,
.ng-pagination .page-numbers.current {
	background: var(--ng-primary);
	color: #ffffff;
	border-color: var(--ng-primary);
}

/* Checklist */
.ng-checklist {
	margin: 24px 0;
}

.ng-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 0;
	font-size: 1rem;
}

.ng-check-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ng-success);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.ng-check-icon::after {
	content: '';
	width: 10px;
	height: 6px;
	border-left: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(-45deg);
	margin-top: -2px;
}

/* 16. Sidebar
--------------------------------------------------------------*/
.ng-sidebar {
	padding-top: 8px;
}

.ng-sidebar .widget {
	margin-bottom: 32px;
	padding: 28px;
	background: var(--ng-bg);
	border-radius: var(--ng-radius-lg);
	box-shadow: var(--ng-shadow-card);
}

.ng-sidebar .widget-title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ng-primary);
}

.ng-sidebar .widget ul {
	list-style: none;
}

.ng-sidebar .widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--ng-border);
}

.ng-sidebar .widget li:last-child {
	border-bottom: none;
}

.ng-sidebar .widget a {
	color: var(--ng-text-body);
	font-size: 0.9375rem;
	text-decoration: none;
}

.ng-sidebar .widget a:hover {
	color: var(--ng-primary);
}

/* 17. Footer — Dark, multi-column (Advisory style)
--------------------------------------------------------------*/
.ng-site-footer {
	background: var(--ng-bg-dark);
	color: rgba(255, 255, 255, 0.7);
}

.ng-footer-main {
	padding: 80px 0 48px;
}

.ng-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 48px;
}

.ng-footer-site-title {
	display: inline-block;
	font-size: 1.375rem;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 12px;
	text-decoration: none;
}

.ng-footer-site-title:hover {
	color: rgba(255, 255, 255, 0.8);
}

.ng-footer-logo img {
	max-height: 40px;
	width: auto;
	margin-bottom: 12px;
}

.ng-footer-tagline {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.7;
}

.ng-footer-col .widget-title,
.ng-footer-col h3 {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #ffffff;
	margin-bottom: 20px;
}

.ng-footer-links li {
	margin-bottom: 10px;
}

.ng-footer-links a {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.9375rem;
	transition: color var(--ng-transition);
	text-decoration: none;
}

.ng-footer-links a:hover {
	color: #ffffff;
}

.ng-footer-text {
	font-size: 0.9375rem;
}

.ng-footer-social {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.ng-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--ng-radius);
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.6);
	transition: all var(--ng-transition);
	text-decoration: none;
}

.ng-footer-social a:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
}

.ng-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px 0;
}

.ng-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.ng-copyright {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.35);
	margin: 0;
}

.ng-footer-menu {
	display: flex;
	gap: 24px;
}

.ng-footer-menu a {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.35);
	text-decoration: none;
}

.ng-footer-menu a:hover {
	color: #ffffff;
}

/* 18. 404
--------------------------------------------------------------*/
.ng-error-404 {
	padding: calc(var(--ng-header-height) + 80px) 0 100px;
	min-height: 80vh;
	display: flex;
	align-items: center;
}

.ng-404-content {
	max-width: 500px;
	margin: 0 auto;
}

.ng-404-number {
	display: block;
	font-size: 8rem;
	font-weight: 800;
	line-height: 1;
	color: var(--ng-primary);
	margin-bottom: 16px;
}

.ng-404-title {
	margin-bottom: 16px;
}

.ng-404-text {
	color: var(--ng-text-body);
	margin-bottom: 32px;
}

/* 19. Forms (MetForm compatibility)
--------------------------------------------------------------*/
.ng-site .mf-input-wrapper input,
.ng-site .mf-input-wrapper textarea,
.ng-site .mf-input-wrapper select {
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	padding: 14px 18px;
	font-family: var(--ng-font);
	font-size: 0.9375rem;
	transition: border-color var(--ng-transition), box-shadow var(--ng-transition);
	background: var(--ng-bg);
}

.ng-site .mf-input-wrapper input:focus,
.ng-site .mf-input-wrapper textarea:focus,
.ng-site .mf-input-wrapper select:focus {
	outline: none;
	border-color: var(--ng-primary);
	box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.ng-site .metform-submit-btn {
	background: var(--ng-primary) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: var(--ng-radius) !important;
	padding: 14px 36px !important;
	font-family: var(--ng-font) !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	cursor: pointer !important;
	transition: all var(--ng-transition) !important;
}

.ng-site .metform-submit-btn:hover {
	background: var(--ng-primary-light) !important;
	box-shadow: var(--ng-shadow-md) !important;
	transform: translateY(-1px) !important;
}

/* 20. Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--ng-bg);
	clip: auto !important;
	clip-path: none;
	color: var(--ng-text);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	background: var(--ng-primary);
	color: #ffffff;
	padding: 12px 24px;
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 99999;
	border-radius: var(--ng-radius);
	box-shadow: var(--ng-shadow-lg);
	font-weight: 700;
}

*:focus-visible {
	outline: 2px solid var(--ng-primary);
	outline-offset: 2px;
}

/* 21. Animations
--------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
	.ng-service-card,
	.ng-client-card,
	.ng-approach-item,
	.ng-post-card,
	.ng-card {
		opacity: 0;
		transform: translateY(20px);
		animation: ng-fade-in-up 0.5s ease forwards;
	}

	@keyframes ng-fade-in-up {
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.ng-services-grid .ng-service-card:nth-child(1) { animation-delay: 0.05s; }
	.ng-services-grid .ng-service-card:nth-child(2) { animation-delay: 0.1s; }
	.ng-services-grid .ng-service-card:nth-child(3) { animation-delay: 0.15s; }
	.ng-services-grid .ng-service-card:nth-child(4) { animation-delay: 0.2s; }

	.ng-clients-grid .ng-client-card:nth-child(1) { animation-delay: 0.05s; }
	.ng-clients-grid .ng-client-card:nth-child(2) { animation-delay: 0.1s; }
	.ng-clients-grid .ng-client-card:nth-child(3) { animation-delay: 0.15s; }
	.ng-clients-grid .ng-client-card:nth-child(4) { animation-delay: 0.2s; }
	.ng-clients-grid .ng-client-card:nth-child(5) { animation-delay: 0.25s; }
	.ng-clients-grid .ng-client-card:nth-child(6) { animation-delay: 0.3s; }
}

/* 22. Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
	.ng-section-grid-2 {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.ng-services-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ng-feature-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ng-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ng-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.ng-single-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	:root {
		--ng-header-height: 64px;
	}

	.ng-section {
		padding: 80px 0;
	}

	.ng-site-header {
		top: 0;
	}

	.ng-header-inner {
		border-radius: 0;
		padding: 0 20px;
		margin: 0;
		max-width: 100%;
	}

	.ng-menu-toggle {
		display: block;
	}

	.ng-main-navigation {
		position: fixed;
		top: 0;
		right: -100%;
		width: 300px;
		height: 100vh;
		background: var(--ng-bg);
		padding: calc(var(--ng-header-height) + 24px) 24px 24px;
		box-shadow: var(--ng-shadow-lg);
		transition: right var(--ng-transition);
		z-index: 999;
		overflow-y: auto;
	}

	.ng-main-navigation.ng-toggled {
		right: 0;
	}

	.ng-nav-menu {
		flex-direction: column;
		gap: 0;
	}

	.ng-nav-menu > li > a {
		padding: 12px 0;
		border-bottom: 1px solid var(--ng-border);
	}

	.ng-nav-menu > li.current-menu-item > a::after {
		display: none;
	}

	.ng-nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 16px;
		background: transparent;
	}

	.ng-header-actions {
		display: none;
	}

	.ng-services-grid {
		grid-template-columns: 1fr;
	}

	.ng-clients-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ng-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.ng-feature-grid {
		grid-template-columns: 1fr;
	}

	.ng-feature-item {
		border-left: none;
	}

	.ng-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ng-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.ng-posts-grid {
		grid-template-columns: 1fr;
	}

	.ng-404-number {
		font-size: 5rem;
	}
}

@media (max-width: 480px) {
	.ng-container {
		padding: 0 16px;
	}

	.ng-clients-grid {
		grid-template-columns: 1fr;
	}

	.ng-stat-number {
		font-size: 2.25rem;
	}

	.ng-service-card {
		padding: 28px;
	}

	.ng-section {
		padding: 64px 0;
	}
}
