/*
Theme Name: Nabd News
Theme URI: https://example.com/nabd-news
Author: Your Name
Author URI: https://example.com
Description: Arabic-first (RTL) news and magazine theme: breaking news bar, home slider, configurable category blocks (carousel, columns, videos, grids), share buttons, most-read widget. Everything is set in Appearance → Customize → Nabd News options.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nabd-news
Tags: news, blog, rtl-language-support, two-columns, left-sidebar, right-sidebar, custom-logo, custom-colors, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ==========================================================================
   1. Tokens & base
   ========================================================================== */

:root {
	--nb-primary: #3f9a3a;
	--nb-primary-dark: #2a7726;
	--nb-dark: #2a2e2a;
	--nb-darker: #1b1e1b;
	--nb-text: #1f221f;
	--nb-muted: #737873;
	--nb-border: #e4e7e4;
	--nb-soft: #f4f6f4;
	--nb-bg: #fff;
	--nb-container: 1200px;
	--nb-gap: 20px;
	--nb-font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	--nb-sticky-top: 0px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 70px;
}

body {
	margin: 0;
	font-family: var(--nb-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--nb-text);
	background: var(--nb-bg);
	overflow-wrap: break-word;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover,
a:focus-visible {
	color: var(--nb-primary);
}

:focus-visible {
	outline: 2px solid var(--nb-primary);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.45;
	margin: 0 0 0.6em;
	font-weight: 800;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	border: 1px solid var(--nb-border);
	background: #fff;
	padding: 8px 12px;
	border-radius: 0;
}

.nb-icon {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	vertical-align: -0.125em;
}

.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;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	inset-inline-start: 8px;
	top: 8px;
	z-index: 1000;
	background: #fff;
	padding: 10px 16px;
	color: var(--nb-text);
}

.nb-container {
	max-width: var(--nb-container);
	margin-inline: auto;
	padding-inline: 16px;
}

.admin-bar {
	--nb-sticky-top: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--nb-sticky-top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar {
		--nb-sticky-top: 0px;
	}
}

/* ==========================================================================
   2. Top bar & header
   ========================================================================== */

.nb-topbar {
	background: var(--nb-soft);
	border-bottom: 1px solid var(--nb-border);
	font-size: 13px;
	color: var(--nb-muted);
}

.nb-topbar .nb-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	min-height: 42px;
	flex-wrap: wrap;
}

.nb-topbar__start,
.nb-topbar__end {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.nb-topbar__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nb-topmenu {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nb-social {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nb-social a {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #b9c0b9;
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 14px;
	transition: background 0.2s;
}

.nb-social a:hover,
.nb-social a:focus-visible {
	background: var(--nb-primary);
	color: #fff;
}

.nb-newsletter {
	display: flex;
}

.nb-newsletter input {
	width: 190px;
	height: 30px;
	padding: 0 10px;
	font-size: 13px;
}

.nb-newsletter button {
	height: 30px;
	border: 0;
	padding: 0 16px;
	background: var(--nb-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.nb-newsletter button:hover {
	background: var(--nb-primary-dark);
}

.nb-header {
	padding: 22px 0;
}

.nb-header .nb-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nb-branding .custom-logo {
	max-height: 100px;
	width: auto;
}

.nb-site-title {
	margin: 0;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
}

.nb-site-title a {
	color: var(--nb-primary);
}

.nb-tagline {
	margin: 4px 0 0;
	color: var(--nb-muted);
	font-size: 14px;
}

.nb-header__end {
	flex: 0 1 728px;
	display: flex;
	justify-content: flex-end;
}

.nb-header__end .widget {
	margin: 0;
}

.nb-searchform {
	display: flex;
	width: 100%;
	max-width: 340px;
}

.nb-searchform input {
	flex: 1;
	min-width: 0;
	height: 42px;
}

.nb-searchform button {
	width: 46px;
	height: 42px;
	border: 0;
	background: var(--nb-primary);
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	display: grid;
	place-items: center;
}

/* ==========================================================================
   3. Main navigation
   ========================================================================== */

.nb-nav {
	background: var(--nb-dark);
	border-bottom: 3px solid var(--nb-primary);
	position: sticky;
	top: var(--nb-sticky-top);
	z-index: 90;
}

.nb-nav .nb-container {
	display: flex;
	align-items: stretch;
	min-height: 50px;
}

.nb-nav__home {
	background: var(--nb-primary);
	color: #fff;
	display: grid;
	place-items: center;
	width: 52px;
	font-size: 20px;
	flex-shrink: 0;
}

.nb-nav__home:hover,
.nb-nav__home:focus-visible {
	color: #fff;
	background: var(--nb-primary-dark);
}

.nb-nav__toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	color: #fff;
	font-weight: 700;
	padding: 0 16px;
	cursor: pointer;
	font-size: 15px;
}

.nb-nav__toggle .nb-icon {
	font-size: 22px;
}

.nb-nav__toggle .nb-nav__icon-close,
.nb-nav__toggle[aria-expanded="true"] .nb-nav__icon-open {
	display: none;
}

.nb-nav__toggle[aria-expanded="true"] .nb-nav__icon-close {
	display: block;
}

.nb-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nb-menu li {
	position: relative;
}

.nb-menu a {
	display: block;
	color: #fff;
	padding: 0 16px;
	line-height: 50px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}

.nb-menu > li > a:hover,
.nb-menu > li > a:focus-visible,
.nb-menu > li.current-menu-item > a,
.nb-menu > li.current-menu-ancestor > a,
.nb-menu > li.current-cat > a,
.nb-menu > li.current-post-ancestor > a {
	background: var(--nb-primary);
	color: #fff;
}

.nb-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-inline-start: 8px;
	vertical-align: 3px;
}

.nb-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	background: #fff;
	border-top: 3px solid var(--nb-primary);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 5;
}

.nb-menu li:hover > .sub-menu,
.nb-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nb-menu .sub-menu .sub-menu {
	top: -9px;
	inset-inline-start: 100%;
}

.nb-menu .sub-menu a {
	color: var(--nb-text);
	line-height: 1.5;
	padding: 9px 18px;
	font-weight: 500;
	white-space: normal;
}

.nb-menu .sub-menu a:hover,
.nb-menu .sub-menu a:focus-visible {
	color: var(--nb-primary);
	background: var(--nb-soft);
}

.nb-menu .sub-menu .menu-item-has-children > a::after {
	transform: rotate(-45deg);
}

[dir="rtl"] .nb-menu .sub-menu .menu-item-has-children > a::after {
	transform: rotate(135deg);
}

.nb-submenu-toggle {
	display: none;
}

/* ==========================================================================
   4. Breaking news ticker
   ========================================================================== */

.nb-ticker {
	display: flex;
	align-items: stretch;
	height: 42px;
	margin: 16px 0;
	border: 1px solid var(--nb-border);
	background: #fff;
	overflow: hidden;
	font-size: 14px;
}

.nb-ticker__label {
	display: flex;
	align-items: center;
	padding: 0 16px;
	background: var(--nb-primary);
	color: #fff;
	font-weight: 800;
	white-space: nowrap;
	flex-shrink: 0;
}

.nb-ticker__track {
	flex: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-width: 0;
}

.nb-ticker__list {
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0 20px;
	white-space: nowrap;
	width: max-content;
}

.nb-ticker__list li {
	position: relative;
	font-weight: 500;
}

.nb-ticker__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: -24px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-radius: 50%;
	background: var(--nb-primary);
}

.nb-ticker__list li:first-child::before {
	display: none;
}

.nb-ticker__list.is-running li:first-child::before {
	display: block;
}

.nb-ticker__list.is-running {
	animation: nb-ticker var(--nb-ticker-duration, 40s) linear infinite;
}

[dir="rtl"] .nb-ticker__list.is-running {
	animation-name: nb-ticker-rtl;
}

.nb-ticker:hover .nb-ticker__list,
.nb-ticker:focus-within .nb-ticker__list {
	animation-play-state: paused;
}

@keyframes nb-ticker {
	to {
		transform: translateX(-50%);
	}
}

@keyframes nb-ticker-rtl {
	to {
		transform: translateX(50%);
	}
}

.nb-ticker__follow {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 14px;
	background: var(--nb-dark);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

.nb-ticker__follow:hover {
	color: #fff;
	background: #000;
}

/* ==========================================================================
   5. Cards & shared bits
   ========================================================================== */

.nb-card {
	position: relative;
	min-width: 0;
}

.nb-card__thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--nb-soft);
}

.nb-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.nb-card:hover .nb-card__thumb img {
	transform: scale(1.05);
}

.nb-thumb-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #b8c2b8;
	font-size: 36px;
	background: linear-gradient(135deg, #eef2ee, #dce4dc);
}

.nb-card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	margin: 10px 0 4px;
}

.nb-card__body > .nb-badge + .nb-card__title {
	margin-top: 6px;
}

.nb-date {
	font-size: 12px;
	color: var(--nb-muted);
}

.nb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 12.5px;
	color: var(--nb-muted);
}

.nb-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nb-meta .nb-date {
	font-size: inherit;
}

.nb-excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	color: #555;
	line-height: 1.75;
}

.nb-badge {
	display: inline-block;
	background: var(--nb-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 10px;
}

.nb-badge:hover,
.nb-badge:focus-visible {
	color: #fff;
	background: var(--nb-primary-dark);
}

.nb-play {
	position: absolute;
	inset-inline-start: 12px;
	bottom: 12px;
	width: 42px;
	height: 42px;
	border: 2px solid #fff;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 18px;
	background: rgba(0, 0, 0, 0.35);
	transition: background 0.2s;
}

.nb-card:hover .nb-play {
	background: var(--nb-primary);
}

.nb-card--big .nb-play {
	width: 58px;
	height: 58px;
	font-size: 24px;
}

/* Row card: thumbnail beside the text. */
.nb-card--row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.nb-card--row .nb-card__title {
	margin-top: 0;
	font-size: 14px;
}

.nb-card--sm {
	grid-template-columns: 90px minmax(0, 1fr);
}

.nb-card--sm .nb-card__title {
	font-size: 13.5px;
	margin-bottom: 2px;
}

.nb-card--big .nb-card__title {
	font-size: 21px;
	line-height: 1.5;
}

/* ==========================================================================
   6. Block headings
   ========================================================================== */

.nb-block {
	margin-bottom: 36px;
	min-width: 0;
}

.nb-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding-inline: 12px;
	margin-bottom: 16px;
	background: var(--nb-soft);
	border-bottom: 2px solid var(--nb-border);
}

.nb-block__title {
	position: relative;
	margin: 0;
	padding: 9px 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--nb-primary);
}

.nb-block__title::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -2px;
	height: 2px;
	background: var(--nb-primary);
}

.nb-block__title a {
	color: inherit;
}

.nb-block__title a:hover {
	color: var(--nb-primary-dark);
}

.nb-block__tools {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nb-block__more {
	color: var(--nb-muted);
	font-size: 15px;
	letter-spacing: 1px;
	padding: 4px;
}

.nb-block__search {
	display: flex;
}

.nb-block__search input {
	width: 200px;
	height: 30px;
	padding: 0 10px;
	font-size: 13px;
}

.nb-block__search button {
	width: 32px;
	height: 30px;
	border: 0;
	background: var(--nb-primary);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.nb-arrow {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 1px solid var(--nb-border);
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.2s, color 0.2s;
}

.nb-arrow:hover:not(:disabled) {
	background: var(--nb-primary);
	border-color: var(--nb-primary);
	color: #fff;
}

.nb-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

[dir="rtl"] .nb-arrow .nb-icon,
[dir="rtl"] .nav-links .nb-icon {
	transform: scaleX(-1);
}

/* ==========================================================================
   7. Home: hero slider
   ========================================================================== */

.nb-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 36px;
}

.nb-hero__slides {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--nb-dark);
}

.nb-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s;
}

.nb-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.nb-hero__slide .nb-card__thumb {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.nb-overlay {
	position: absolute;
	inset: auto 0 0;
	padding: 80px 24px 22px;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
	color: #fff;
	pointer-events: none;
}

.nb-overlay a {
	pointer-events: auto;
}

.nb-overlay__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nb-overlay .nb-date {
	color: rgba(255, 255, 255, 0.85);
}

.nb-hero__title {
	margin: 10px 0 0;
	font-size: 26px;
	line-height: 1.5;
	color: #fff;
}

.nb-hero__title a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.nb-hero__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nb-hero__nav li {
	flex: 1;
	display: flex;
}

.nb-hero__nav button {
	width: 100%;
	border: 0;
	border-inline-start: 4px solid transparent;
	background: var(--nb-soft);
	color: var(--nb-text);
	padding: 10px 14px;
	text-align: start;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	transition: background 0.25s, color 0.25s;
}

.nb-hero__nav button:hover {
	background: #e9ede9;
}

.nb-hero__nav .is-active button {
	background: var(--nb-dark);
	color: #fff;
	border-color: var(--nb-primary);
}

/* ==========================================================================
   8. Home: block layouts
   ========================================================================== */

/* Carousel */
.nb-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--nb-gap)) / 3);
	gap: var(--nb-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.nb-carousel__track::-webkit-scrollbar {
	display: none;
}

.nb-carousel__track > * {
	scroll-snap-align: start;
}

.nb-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.nb-carousel__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfd5cf;
	cursor: pointer;
	transition: background 0.2s, width 0.2s;
}

.nb-carousel__dots button.is-active {
	background: var(--nb-primary);
	width: 22px;
	border-radius: 5px;
}

/* Feature */
.nb-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 24px;
}

.nb-feature__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nb-feature__list .nb-card--row {
	grid-template-columns: 150px minmax(0, 1fr);
	padding-bottom: 16px;
	border-bottom: 1px solid var(--nb-border);
}

.nb-feature__list .nb-card--row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* Columns */
.nb-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--nb-gap);
}

.nb-block--column .nb-block__title {
	font-size: 16px;
}

.nb-titles {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.nb-titles li {
	padding: 9px 0;
	border-top: 1px dashed var(--nb-border);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.6;
}

/* Video (dark) */
.nb-block--dark {
	background: var(--nb-dark);
	padding: 0 16px 20px;
	color: #e9ece9;
}

.nb-block--dark .nb-block__head {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.12);
	padding-inline: 0;
}

.nb-block--dark .nb-block__title {
	color: #fff;
}

.nb-block--dark .nb-block__more {
	color: rgba(255, 255, 255, 0.6);
}

.nb-block--dark .nb-card__title a {
	color: #fff;
}

.nb-block--dark .nb-card__title a:hover {
	color: #9fd89b;
}

.nb-block--dark .nb-date,
.nb-block--dark .nb-meta,
.nb-block--dark .nb-excerpt {
	color: rgba(255, 255, 255, 0.65);
}

.nb-block--dark .nb-card__thumb {
	background: rgba(255, 255, 255, 0.06);
}

.nb-video {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: var(--nb-gap);
}

.nb-video__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px var(--nb-gap);
	align-content: start;
}

.nb-video__grid .nb-card__title {
	font-size: 14px;
}

/* Duo */
.nb-duo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.nb-duo .nb-card--big .nb-card__thumb {
	aspect-ratio: 16 / 9;
}

.nb-duo__small {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nb-gap);
	margin-top: 18px;
}

/* Grid */
.nb-gridblock {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: var(--nb-gap);
}

.nb-gridblock__small,
.nb-grid-3,
.nb-grid-4 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--nb-gap);
}

.nb-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nb-gridblock__small .nb-card__title {
	font-size: 14px;
}

.nb-home__content {
	margin-bottom: 36px;
}

/* ==========================================================================
   9. Layout with sidebar
   ========================================================================== */

.nb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	margin-block: 8px 40px;
	align-items: start;
}

.nb-layout--start {
	grid-template-columns: 320px minmax(0, 1fr);
}

.nb-layout--start .nb-sidebar {
	order: -1;
}

.nb-layout--none {
	grid-template-columns: minmax(0, 1fr);
	max-width: 900px;
}

.nb-sidebar__inner {
	position: sticky;
	top: calc(var(--nb-sticky-top) + 70px);
}

.widget {
	margin-bottom: 32px;
	font-size: 14.5px;
}

.widget ul,
.widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget > ul > li,
.widget .menu > li,
.widget .wp-block-latest-posts > li,
.widget .wp-block-categories > li,
.widget .wp-block-archives > li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--nb-border);
}

.widget select {
	margin-top: 4px;
}

/* Block widgets: give their headings the theme heading style. */
.widget .wp-block-heading,
.widget .wp-block-search__label {
	position: relative;
	display: block;
	margin: 0 0 16px;
	padding: 9px 12px;
	font-size: 18px;
	font-weight: 800;
	color: var(--nb-primary);
	background: var(--nb-soft);
	border-bottom: 2px solid var(--nb-primary);
}

.widget .wp-block-search__inside-wrapper {
	display: flex;
}

.widget .wp-block-search__input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--nb-border);
	padding: 8px 12px;
}

.widget .wp-block-search__button {
	margin: 0;
	border: 0;
	padding: 0 16px;
	background: var(--nb-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.nb-footer .widget .wp-block-heading {
	background: transparent;
	color: #fff;
	padding-inline: 0;
	border-color: rgba(255, 255, 255, 0.12);
}

.nb-postlist {
	counter-reset: nb;
}

.nb-postlist > li {
	padding: 12px 0;
	border-bottom: 1px solid var(--nb-border);
}

.nb-postlist > li:first-child {
	padding-top: 0;
}

.nb-postlist > li:last-child {
	border-bottom: 0;
}

.nb-postlist--numbered > li {
	counter-increment: nb;
}

.nb-postlist--numbered .nb-card__thumb::after {
	content: counter(nb);
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	min-width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	background: var(--nb-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

.nb-tabs__nav {
	display: flex;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--nb-primary);
}

.nb-tabs__nav button {
	flex: 1;
	border: 0;
	padding: 10px 8px;
	background: var(--nb-soft);
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
	color: var(--nb-muted);
}

.nb-tabs__nav button[aria-selected="true"] {
	background: var(--nb-primary);
	color: #fff;
}

.nb-empty {
	color: var(--nb-muted);
}

/* ==========================================================================
   10. Breadcrumb, archives, pagination
   ========================================================================== */

.nb-breadcrumb {
	font-size: 13px;
	color: var(--nb-muted);
	margin-bottom: 14px;
}

.nb-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nb-breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-inline-start: 6px;
	color: #c1c7c1;
}

.nb-breadcrumb li:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.nb-archive-header {
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--nb-border);
}

.nb-archive-title {
	position: relative;
	font-size: 26px;
	color: var(--nb-primary);
	margin: 0;
}

.nb-archive-title span {
	color: var(--nb-text);
}

.nb-archive-desc {
	color: var(--nb-muted);
	margin-top: 8px;
}

.nb-archive-header .nb-searchform {
	margin-top: 16px;
	max-width: 480px;
}

.nb-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.nb-card--list {
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 20px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--nb-border);
}

.nb-card--list .nb-card__title {
	font-size: 19px;
	margin: 8px 0 6px;
}

.nb-card--list .nb-card__body > .nb-card__title:first-child {
	margin-top: 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--nb-border);
	font-weight: 700;
}

.page-numbers.current,
a.page-numbers:hover {
	background: var(--nb-primary);
	border-color: var(--nb-primary);
	color: #fff;
}

.page-numbers.dots {
	border: 0;
}

.nb-empty-state {
	padding: 40px 0;
	text-align: center;
}

.nb-empty-state .nb-searchform {
	margin: 20px auto 0;
}

/* ==========================================================================
   11. Single article
   ========================================================================== */

.nb-single__title {
	font-size: 30px;
	line-height: 1.5;
	margin: 12px 0 10px;
}

.nb-single__lead {
	font-size: 18px;
	color: #444;
	margin: 0 0 12px;
	font-weight: 500;
}

.nb-single__header {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--nb-border);
}

.nb-single__thumb {
	margin: 0 0 24px;
}

.nb-single__thumb img {
	width: 100%;
}

.nb-single__thumb figcaption,
.wp-caption-text,
.wp-element-caption {
	font-size: 13px;
	color: var(--nb-muted);
	padding: 8px 0;
	text-align: center;
}

.entry-content {
	font-size: 17.5px;
	line-height: 1.95;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.6em;
	color: var(--nb-primary-dark);
}

.entry-content h2 {
	font-size: 24px;
}

.entry-content h3 {
	font-size: 20px;
}

.entry-content a {
	color: var(--nb-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 16px 22px;
	background: var(--nb-soft);
	border-inline-start: 4px solid var(--nb-primary);
	font-size: 1.05em;
	font-weight: 500;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.4em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--nb-border);
	padding: 8px 12px;
	text-align: start;
}

.entry-content th {
	background: var(--nb-soft);
}

.entry-content iframe {
	width: 100%;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
	text-align: center;
}

.alignwide,
.alignfull {
	width: 100%;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.nb-page-links {
	display: flex;
	gap: 8px;
	align-items: center;
	font-weight: 700;
}

.nb-single__footer {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
}

.nb-tags__label {
	font-weight: 800;
}

.nb-tags a {
	padding: 4px 12px;
	background: var(--nb-soft);
	border: 1px solid var(--nb-border);
}

.nb-tags a:hover {
	background: var(--nb-primary);
	border-color: var(--nb-primary);
	color: #fff;
}

.nb-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 14px 0;
	border-block: 1px solid var(--nb-border);
}

.nb-share__label {
	font-weight: 800;
	margin-inline-end: 6px;
}

.nb-share__btn {
	width: 40px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	color: #fff;
	font-size: 17px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}

.nb-share__btn:hover,
.nb-share__btn:focus-visible {
	color: #fff;
	opacity: 0.88;
	transform: translateY(-2px);
}

.nb-share__btn--facebook { background: #1877f2; }
.nb-share__btn--x { background: #111; }
.nb-share__btn--whatsapp { background: #25d366; }
.nb-share__btn--telegram { background: #229ed9; }
.nb-share__btn--linkedin { background: #0a66c2; }
.nb-share__btn--mail { background: #6b7280; }
.nb-share__btn--print { background: var(--nb-dark); }

.post-navigation {
	margin: 28px 0 36px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 14px 16px;
	background: var(--nb-soft);
	border: 1px solid var(--nb-border);
}

.post-navigation .nav-next {
	text-align: end;
	grid-column: 2;
}

.nb-postnav__label {
	display: block;
	font-size: 12px;
	color: var(--nb-muted);
	font-weight: 700;
}

.nb-postnav__title {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.6;
}

/* Comments */
.nb-comment-list,
.nb-comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nb-comment-list .children {
	padding-inline-start: 32px;
}

.nb-comment-list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--nb-border);
	font-size: 15px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 12px;
	color: var(--nb-muted);
	margin: 4px 0 8px;
}

.reply a {
	font-size: 13px;
	font-weight: 700;
	color: var(--nb-primary);
}

.comment-respond {
	margin-top: 24px;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 4px;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
}

.comment-form .submit,
.wp-block-button__link,
.nb-button {
	display: inline-block;
	border: 0;
	padding: 10px 28px;
	background: var(--nb-primary);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.comment-form .submit:hover,
.nb-button:hover {
	background: var(--nb-primary-dark);
	color: #fff;
}

/* 404 */
.nb-404 {
	text-align: center;
	padding-block: 40px;
}

.nb-404__code {
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	margin: 0;
	color: var(--nb-primary);
}

.nb-404__title {
	font-size: 28px;
	margin: 10px 0;
}

.nb-404 .nb-searchform {
	margin: 20px auto 48px;
	max-width: 480px;
}

.nb-404__latest {
	text-align: start;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.nb-footer {
	margin-top: 40px;
	background: var(--nb-darker);
	color: #c8cec8;
	font-size: 14.5px;
}

.nb-footer a:hover {
	color: #9fd89b;
}

.nb-footer__widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-block: 44px 12px;
}

.nb-footer .nb-block__head {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.12);
	padding-inline: 0;
}

.nb-footer .nb-block__title {
	color: #fff;
}

.nb-footer .widget > ul > li,
.nb-footer .nb-postlist > li {
	border-color: rgba(255, 255, 255, 0.1);
}

.nb-footer .nb-date {
	color: rgba(255, 255, 255, 0.55);
}

.nb-footer__bottom {
	border-top: 3px solid var(--nb-primary);
	background: var(--nb-dark);
	padding-block: 18px;
	text-align: center;
}

.nb-footer__bottom .nb-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.nb-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 700;
}

.nb-social--footer a {
	background: rgba(255, 255, 255, 0.12);
}

.nb-copyright {
	margin: 0;
	font-size: 13.5px;
}

.nb-totop {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--nb-primary);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	z-index: 80;
}

.nb-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nb-totop:hover,
.nb-totop:focus-visible {
	color: #fff;
	background: var(--nb-primary-dark);
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.nb-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nb-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.nb-nav__toggle {
		display: inline-flex;
	}

	.nb-nav .nb-container {
		flex-wrap: wrap;
		padding-inline: 0;
	}

	.nb-menu {
		display: none;
		flex-direction: column;
		flex-wrap: nowrap;
		width: 100%;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		background: var(--nb-darker);
	}

	.nb-menu.is-open {
		display: flex;
	}

	.nb-menu li {
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.nb-menu a {
		line-height: 1.5;
		padding: 13px 16px;
		white-space: normal;
	}

	.nb-menu .menu-item-has-children > a {
		padding-inline-end: 56px;
	}

	.nb-menu .menu-item-has-children > a::after {
		display: none;
	}

	.nb-submenu-toggle {
		display: grid;
		place-items: center;
		position: absolute;
		top: 0;
		inset-inline-end: 0;
		width: 50px;
		height: 48px;
		border: 0;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
		background: transparent;
		color: #fff;
		cursor: pointer;
	}

	.nb-submenu-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg);
		transition: transform 0.2s;
	}

	.nb-submenu-toggle[aria-expanded="true"]::before {
		transform: rotate(-135deg);
	}

	.nb-menu .sub-menu,
	.nb-menu .sub-menu .sub-menu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0;
		background: rgba(255, 255, 255, 0.04);
	}

	.nb-menu li.is-open > .sub-menu {
		display: block;
	}

	.nb-menu .sub-menu a {
		color: #e6e9e6;
		padding-inline-start: 32px;
	}

	.nb-menu .sub-menu a:hover {
		background: transparent;
	}

	.nb-layout,
	.nb-layout--start {
		grid-template-columns: minmax(0, 1fr);
	}

	.nb-layout--start .nb-sidebar {
		order: 0;
	}

	.nb-sidebar__inner {
		position: static;
	}

	.nb-footer__widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.nb-header .nb-container {
		flex-direction: column;
		text-align: center;
	}

	.nb-header__end {
		flex: none;
		justify-content: center;
		width: 100%;
	}

	.nb-branding .custom-logo {
		margin-inline: auto;
	}

	.nb-hero,
	.nb-feature,
	.nb-video,
	.nb-duo,
	.nb-gridblock {
		grid-template-columns: minmax(0, 1fr);
	}

	.nb-hero__nav {
		display: none;
	}

	.nb-hero__title {
		font-size: 19px;
	}

	.nb-overlay {
		padding: 60px 16px 16px;
	}

	.nb-carousel__track {
		grid-auto-columns: calc((100% - var(--nb-gap)) / 2);
	}

	.nb-gridblock__small,
	.nb-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nb-card--list {
		grid-template-columns: 200px minmax(0, 1fr);
	}

	.nb-card--list .nb-excerpt {
		display: none;
	}

	.nb-single__title {
		font-size: 24px;
	}

	.entry-content {
		font-size: 16.5px;
	}

	.nb-block__search input {
		width: 140px;
	}
}

@media (max-width: 560px) {
	.nb-topbar .nb-container {
		justify-content: center;
		padding-block: 6px;
	}

	.nb-newsletter {
		display: none;
	}

	.nb-ticker__follow span {
		display: none;
	}

	.nb-columns,
	.nb-footer__widgets,
	.nb-grid-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.nb-carousel__track {
		grid-auto-columns: 82%;
	}

	.nb-video__grid,
	.nb-duo__small,
	.nb-gridblock__small,
	.nb-grid-3 {
		gap: 14px;
	}

	.nb-card--list,
	.nb-feature__list .nb-card--row {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 12px;
	}

	.nb-card--list .nb-card__title {
		font-size: 15px;
	}

	.nb-card--list .nb-badge,
	.nb-card--list .nb-meta__item:first-child {
		display: none;
	}

	.nb-block__search {
		display: none;
	}

	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.nb-ticker__list.is-running {
		animation: none;
	}

	.nb-ticker__track {
		overflow-x: auto;
	}
}

/* ==========================================================================
   14. Print
   ========================================================================== */

@media print {
	.nb-topbar,
	.nb-nav,
	.nb-ticker,
	.nb-header__end,
	.nb-sidebar,
	.nb-share,
	.nb-related,
	.nb-comments,
	.post-navigation,
	.nb-footer,
	.nb-totop,
	.nb-breadcrumb {
		display: none !important;
	}

	.nb-layout {
		display: block;
	}

	.entry-content a {
		color: inherit;
	}
}
