/* ==========================================================================
   NoorPost Desktop & Tablet Footer (Self-contained Foxiz Capital Style)
   Active on viewports >= 768px; hidden on mobile <= 767px.
   All assets (bg-footer.png, noorpost-logo.webp, inline SVGs) are local.
   ========================================================================== */

.np-footer-wrap {
	position: relative;
	z-index: 0;
	display: block;
}

.np-capital-footer {
	position: relative;
	display: block;
	width: 100%;
	background-color: #000000;
	background-image: url("../images/bg-footer.png");
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: contain;
	color: #ffffff;
	overflow: hidden;
	font-family: var(--dwidgets-family, var(--body-family, "Oxygen", sans-serif));
}

.np-capital-footer *,
.np-capital-footer *::before,
.np-capital-footer *::after {
	box-sizing: border-box;
}

/* Top Curved Divider (matches page background above footer) */
.np-footer-curve {
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	line-height: 0;
	direction: ltr;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.np-footer-curve svg {
	position: relative;
	left: 50%;
	display: block;
	width: calc(100% + 1.3px);
	height: 10px;
	transform: translateX(-50%);
}

.np-footer-curve-fill {
	fill: var(--np-footer-curve-fill, var(--solid-white, #ffffff));
	transform-origin: center;
}

/* Seamless curve fill on custom NoorPost pages */
body.page-id-1830[data-theme="dark"] .np-capital-footer {
	--np-footer-curve-fill: #0b101b;
}

body.page-id-12512 .np-capital-footer,
body.page-id-12513 .np-capital-footer,
body.page-videos .np-capital-footer {
	--np-footer-curve-fill: #f6f8f3;
}

body.page-id-12512[data-theme="dark"] .np-capital-footer,
body.page-id-12513[data-theme="dark"] .np-capital-footer,
body.page-videos[data-theme="dark"] .np-capital-footer {
	--np-footer-curve-fill: #080c14;
}

/* Main 4-Column Container */
.np-footer-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Column 1: Brand Logo + Description + Social Icons */
.np-footer-col-brand {
	flex: 0 1 40%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.np-footer-logo {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.2s cubic-bezier(0.32, 0.74, 0.57, 1);
}

.np-footer-logo:hover {
	opacity: 0.7;
}

.np-footer-logo img {
	display: block;
	width: 160px;
	max-width: 160px;
	height: auto;
}

.np-footer-desc {
	margin: 0 0 10px 0;
	padding: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	color: #aaaaaa;
}

.np-footer-socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px 7px;
	margin: 0;
	padding: 0;
}

.np-footer-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.np-footer-social-btn svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: #ffffff;
}

.np-footer-social-btn:hover,
.np-footer-social-btn:focus-visible {
	color: #ffffff;
	opacity: 0.9;
	transform: scale(1.12);
	outline: none;
}

.np-social-facebook {
	background-color: #3b5998;
}

.np-social-twitter {
	background-color: #1da1f2;
}

.np-social-youtube {
	background-color: #cd201f;
}

.np-social-instagram {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.np-social-rss {
	background-color: #f26522;
}

/* Columns 2 & 3: Vertical Menus */
.np-footer-col-menu {
	flex: 0 1 20%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 10px 50px;
}

.np-footer-heading {
	display: block;
	margin: 0 0 15px 0;
	padding: 0;
	color: #ffffff;
	font-family: var(--heading-family, var(--dwidgets-family, "Encode Sans Condensed", sans-serif));
	font-size: var(--rem-small, 0.92rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
}

.np-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.np-footer-menu li {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
}

.np-footer-menu a {
	position: relative;
	display: block;
	padding: 2px 0;
	color: #ffffff;
	font-family: var(--dwidgets-family, var(--body-family, "Oxygen", sans-serif));
	font-size: var(--dwidgets-fsize, 14px);
	font-weight: var(--dwidgets-fweight, 500);
	line-height: 1.65;
	text-decoration: none;
	transition: color 0.2s cubic-bezier(0.32, 0.74, 0.57, 1), opacity 0.2s ease;
}

.np-footer-menu li:first-child a {
	padding-top: 0;
}

.np-footer-menu a:hover,
.np-footer-menu a:focus-visible,
.np-footer-menu li.is-current a {
	color: #aaaaaa;
	opacity: 1;
	outline: none;
}

/* Column 4: Copyright Icon + Text */
.np-footer-col-copy {
	flex: 0 1 30%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 16px;
	padding: 10px 10px 10px 60px;
}

.np-footer-copy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #eeeeee;
}

.np-footer-copy-icon svg {
	display: block;
	width: 50px;
	height: 50px;
	fill: #eeeeee;
}

.np-footer-copy-text {
	margin: 0;
	padding: 0;
	text-align: right;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
	color: #aaaaaa;
}

[data-theme="dark"] .np-footer-copy-icon {
	color: #ffffff;
}

[data-theme="dark"] .np-footer-copy-icon svg {
	fill: #ffffff;
}

[data-theme="dark"] .np-footer-copy-text {
	color: #ffffff;
}

/* Mobile spacer preserved only below 768px */
.np-mobile-footer-spacer {
	display: none;
}

.bo-nav {
	display: none;
}

/* ==========================================================================
   Tablet Layout (768px - 1024px)
   Matches Foxiz Capital: Brand row full width on top, 3 equal columns below.
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 768px) {
	.np-footer-inner {
		flex-wrap: wrap;
		padding: 30px 20px;
	}

	.np-footer-col-brand {
		flex: 0 0 100%;
		width: 100%;
		margin: 0 0 20px 0;
	}

	.np-footer-social-btn {
		width: 35px;
		height: 35px;
	}

	.np-footer-social-btn svg {
		width: 15px;
		height: 15px;
	}

	.np-footer-col-menu {
		flex: 0 0 33.3333%;
		width: 33.3333%;
		padding: 10px;
	}

	.np-footer-col-copy {
		flex: 0 0 33.3333%;
		width: 33.3333%;
		padding: 10px;
	}
}

/* ==========================================================================
   Mobile (< 768px): Hide desktop/tablet footer, keep mobile spacer untouched
   ========================================================================== */
@media (max-width: 767px) {
	.np-capital-footer {
		display: none !important;
	}

	.np-mobile-footer-spacer {
		display: block;
	}
}
