/* ==========================================================================
   FX4BIZ — GeneratePress-inspired layout
   Colors from archived fx4biz.com (#11468f navy)
   ========================================================================== */

:root {
	--fx-navy: #11468f;
	--fx-navy-deep: #2f4468;
	--fx-text: #212121;
	--fx-muted: #878787;
	--fx-link: #11468f;
	--fx-link-hover: #35343a;
	--fx-base: #fafafa;
	--fx-white: #ffffff;
	--fx-container: 1400px;
	--fx-nav-height: 65px;
	--fx-font: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--lucky-setting-container-width: 1400px;
	--lucky-setting-header-background: #11468f;
	--lucky-setting-header-text-color: #ffffff;
	--lucky-setting-header-nav-color: #ffffff;
	--lucky-setting-header-nav-hover-color: #ffffff;
	--lucky-setting-heading-color: #2f4468;
	--lucky-setting-content-link-color: #11468f;
	--lucky-setting-footer-background: #2f4468;
	--lucky-setting-footer-text-color: #2f4468;
	--lucky-setting-footer-link-color: #2f4468;
	--lucky-setting-footer-link-hover-color: #35343a;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--fx-font);
	font-size: 19px;
	line-height: 1.7;
	color: var(--fx-text);
	background: var(--fx-base);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--fx-link);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--fx-link-hover);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--fx-navy-deep);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }

.screen-reader-text,
.skip-link {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
	position: fixed;
	left: 10px;
	top: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 16px;
	background: var(--fx-navy);
	color: #fff;
}

.grid-container {
	max-width: var(--fx-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ==========================================================================
   Navigation (desktop)
   ========================================================================== */

.main-navigation {
	background: var(--lucky-setting-header-background, var(--fx-navy));
	position: relative;
	z-index: 500;
	width: 100%;
}

.main-navigation.is-sticky {
	position: sticky;
	top: 0;
}

.main-navigation .inside-navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: var(--fx-nav-height);
	padding: 0 50px;
	position: relative;
}

.navigation-branding {
	margin-right: auto;
	display: flex;
	align-items: center;
}

.main-title {
	margin: 0;
	font-size: 25px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: var(--fx-nav-height);
}

.main-title a {
	color: var(--lucky-setting-header-text-color, #fff);
	display: inline-flex;
	align-items: center;
}

.main-title a:hover {
	color: var(--lucky-setting-header-text-color, #fff);
}

.navigation-branding .site-description {
	display: none;
	margin-left: 12px;
	color: var(--lucky-setting-header-nav-color, #fff);
	font-size: 13px;
	font-weight: 400;
	opacity: 0.85;
	line-height: 1.3;
}

@media (min-width: 1025px) {
	.navigation-branding .site-description {
		display: inline;
	}
}

.main-title .custom-logo {
	height: 48px;
	width: auto;
	display: block;
}

.main-nav {
	display: flex;
}

.main-nav > ul,
.main-nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav .menu > li {
	position: relative;
}

.main-nav .menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--lucky-setting-header-nav-color, #fff);
	padding: 0 16px;
	line-height: var(--fx-nav-height);
	font-size: 16px;
	font-weight: 400;
	white-space: nowrap;
}

.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-parent > a {
	color: var(--lucky-setting-header-nav-hover-color, #fff);
	background: transparent;
}

.dropdown-menu-toggle {
	display: inline-flex;
	align-items: center;
	margin-left: 4px;
}

.dropdown-menu-toggle svg {
	width: 0.7em;
	height: 0.7em;
}

.main-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--lucky-setting-header-background, var(--fx-navy));
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu,
.main-nav .menu > li.sfHover > .sub-menu {
	display: block;
}

.main-nav .sub-menu a {
	display: block;
	color: #fff;
	padding: 10px 20px;
	font-size: 15px;
	line-height: 1.4;
	white-space: normal;
}

.main-nav .sub-menu a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.menu-bar-items {
	display: flex;
	align-items: center;
	margin-left: 8px;
	position: relative;
	z-index: 30;
}

.menu-bar-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--lucky-setting-header-nav-color, #fff);
	width: 44px;
	height: var(--fx-nav-height);
	font-size: 18px;
	position: relative;
	z-index: 31;
}

.menu-bar-item .icon-search-close {
	display: none;
}

.menu-bar-item.search-item.active .icon-search-open {
	display: none;
}

.menu-bar-item.search-item.active .icon-search-close {
	display: block;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	color: var(--lucky-setting-header-nav-color, #fff);
	cursor: pointer;
	padding: 0 12px;
	line-height: var(--fx-nav-height);
	font-family: inherit;
	font-size: 16px;
	position: relative;
	z-index: 30;
}

.menu-toggle .icon-bars {
	display: block;
}

.menu-toggle .icon-close {
	display: none;
}

.menu-toggle .gp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	width: 1em;
	height: 1em;
}

.menu-toggle .gp-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Navigation search overlay — leave room for close (X) control */
.navigation-search {
	position: absolute;
	left: -99999px;
	pointer-events: none;
	visibility: hidden;
	z-index: 20;
	width: 100%;
	top: 0;
	opacity: 0;
	transition: opacity 100ms ease-in-out;
}

.navigation-search.nav-search-active {
	left: 0;
	right: 0;
	pointer-events: auto;
	visibility: visible;
	opacity: 1;
}

.navigation-search input[type="search"] {
	outline: 0;
	border: 0;
	width: 100%;
	height: var(--fx-nav-height);
	padding: 0 56px 0 24px;
	font-size: 18px;
	font-family: inherit;
	color: #fff;
	background: var(--lucky-setting-header-background, var(--fx-navy));
	border-radius: 0;
	-webkit-appearance: none;
}

.navigation-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Site layout
   ========================================================================== */

.site.grid-container {
	padding-top: 20px;
	padding-bottom: 40px;
}

.site-content {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0;
}

.content-area {
	width: 100%;
}

body.right-sidebar .content-area {
	width: 70%;
	padding-right: 20px;
}

body.right-sidebar .is-right-sidebar {
	width: 30%;
}

.site-main {
	width: 100%;
}

/* Page header / H1 on listings */
.page-header {
	margin: 0 0 20px 20px;
	padding: 20px 0;
	background: transparent;
}

.page-header .page-title {
	font-size: 1.5em;
	margin: 0;
	color: var(--fx-navy-deep);
}

.author-header__inner {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.author-header__avatar img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 4px;
}

.author-header__bio,
.author-header__stats {
	margin: 8px 0 0;
	color: var(--fx-muted);
	font-size: 16px;
}

/* ==========================================================================
   3-column post grid (homepage / archives)
   ========================================================================== */

.generate-columns-container {
	display: flex;
	flex-wrap: wrap;
	margin-left: -20px;
	width: calc(100% + 20px);
}

.generate-columns-container > .grid-sizer {
	display: none;
}

.generate-columns {
	margin-bottom: 20px;
	padding-left: 20px;
	width: 33.333%;
}

.generate-columns.grid-50 {
	width: 50%;
}

.inside-article {
	background: var(--fx-white);
	padding: 50px;
	height: 100%;
	border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.entry-header {
	margin-bottom: 16px;
}

.entry-title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
}

.entry-title a {
	color: var(--fx-navy-deep);
}

.entry-title a:hover {
	color: var(--fx-link-hover);
}

.post-image {
	margin: 0 0 16px;
}

.post-image a {
	display: block;
}

.post-image img,
.resize-featured-image .post-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

.entry-summary {
	color: var(--fx-text);
	font-size: 16px;
	line-height: 1.65;
}

.entry-summary p {
	margin: 0;
}

.entry-summary .read-more {
	color: var(--fx-link);
	font-weight: 600;
	white-space: nowrap;
}

/* Pagination */
.paging-navigation {
	background: var(--fx-white);
	padding: 20px;
	margin: 0 0 0 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.paging-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.paging-navigation a,
.paging-navigation .page-numbers {
	color: var(--fx-navy-deep);
	padding: 4px 8px;
}

.paging-navigation .current {
	font-weight: 700;
}

/* ==========================================================================
   Single / page content
   ========================================================================== */

body.right-sidebar .inside-article,
body.right-sidebar .comments-area {
	padding: 50px;
}

body.single .entry-title,
body.page .entry-title {
	font-size: 40px;
	margin-bottom: 24px;
}

.entry-content {
	font-size: 19px;
	line-height: 1.75;
	color: var(--fx-text);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.25em;
}

.entry-content a {
	color: var(--fx-link);
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.4em;
}

.entry-content .post-image,
.entry-content figure {
	margin: 0 0 1.5em;
}

.entry-content figure img {
	display: block;
	margin: 0 auto;
}

.entry-content table,
.entry-content .wp-block-table table,
.comment-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px solid #cfd4dc;
	margin: 0 0 1.5em;
	background: #fff;
	table-layout: auto;
}

.entry-content .wp-block-table {
	margin: 0 0 1.5em;
	overflow-x: auto;
	width: 100%;
}

.entry-content .wp-block-table table {
	margin: 0;
}

.entry-content table td,
.entry-content table th,
.entry-content .wp-block-table td,
.entry-content .wp-block-table th,
.comment-content table td,
.comment-content table th {
	border: 1px solid #cfd4dc;
	padding: 12px 14px;
	vertical-align: top;
	text-align: left;
	word-break: break-word;
}

.entry-content table th,
.entry-content .wp-block-table th {
	background: #f3f4f6;
	font-weight: 600;
	color: var(--fx-navy-deep);
}

.entry-content table tr:nth-child(even) td {
	background: #fafafa;
}

.entry-content figure.wp-block-table {
	margin: 0 0 1.5em;
}

.lucky-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.5em;
}

.lucky-table-scroll table {
	margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

/* Easy TOC style box (plugin or manual) */
#ez-toc-container,
.ez-toc-container {
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	padding: 20px 24px;
	margin: 0 0 1.5em;
}

#ez-toc-container .ez-toc-title {
	margin: 0 0 12px;
	font-weight: 600;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.is-right-sidebar .inside-right-sidebar {
	padding-left: 0;
	position: sticky;
	top: calc(var(--fx-nav-height) + 16px);
}

.sidebar .widget {
	background: #fff;
	padding: 40px 36px;
	margin-bottom: 20px;
	border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.sidebar .widget-title {
	margin: 0 0 14px;
	color: #111;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.sidebar .widget a {
	color: var(--fx-link);
}

.sidebar .widget a:hover {
	color: var(--fx-link-hover);
}

.sidebar .widget img {
	display: block;
	margin: 12px auto;
	max-width: 100%;
	height: auto;
}

.sidebar .widget p {
	margin: 0 0 1em;
	font-size: 15px;
	line-height: 1.65;
	color: var(--fx-text);
}

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

.sidebar .widget li {
	margin-bottom: 8px;
}

/* Related articles — numbered title links only */
.fx4biz-related-list {
	margin: 0;
	padding: 0 0 0 1.25em;
	list-style: decimal;
}

.fx4biz-related-list li {
	margin: 0 0 10px;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--fx-link);
}

.fx4biz-related-list a {
	color: var(--fx-link);
	text-decoration: none;
	font-weight: 400;
}

.fx4biz-related-list a:hover {
	color: var(--fx-link-hover);
	text-decoration: underline;
}

.fx4biz-related-empty {
	margin: 0;
	font-size: 14px;
	color: var(--fx-muted);
}

/* About Me block */
.widget_fx4biz_about .fx4biz-about-photo {
	margin: 12px 0 16px;
	padding: 0;
}

.widget_fx4biz_about .fx4biz-about-photo img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0;
	object-fit: cover;
}

.widget_fx4biz_about .fx4biz-about-more {
	margin-bottom: 0;
}

.widget_fx4biz_about .fx4biz-about-more a {
	font-weight: 400;
}

/* ==========================================================================
   Footer — FX4BIZ / GeneratePress style
   ========================================================================== */

.site-footer {
	margin-top: 20px;
}

.footer-widgets {
	background: var(--lucky-setting-footer-background, var(--fx-navy-deep));
	color: #fff;
	padding: 40px 0;
}

.footer-widgets a {
	color: #fff;
}

.site-info {
	background: var(--fx-white);
	color: var(--lucky-setting-footer-text-color, var(--fx-navy-deep));
	border-top: 1px solid #e5e5e5;
}

.inside-site-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 20px;
}

/* Menu on the right, copyright on the left (footer-bar-align-right) */
.footer-bar-align-right .inside-site-info {
	flex-direction: row-reverse;
}

.footer-bar {
	width: auto;
}

.footer-bar .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bar a {
	color: var(--lucky-setting-footer-link-color, var(--fx-navy-deep));
	font-size: 14px;
}

.footer-bar a:hover {
	color: var(--lucky-setting-footer-link-hover-color, var(--fx-link-hover));
}

.copyright-bar {
	flex: 1 1 280px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--lucky-setting-footer-text-color, var(--fx-navy-deep));
}

.copyright-bar a {
	color: var(--lucky-setting-footer-link-color, var(--fx-navy-deep));
}

/* ==========================================================================
   Mobile off-canvas menu (fullscreen navy canvas)
   ========================================================================== */

@media (max-width: 768px) {
	.main-navigation .inside-navigation {
		padding: 0 10px;
		justify-content: space-between;
		position: relative;
	}

	.menu-toggle {
		display: inline-flex;
		order: 3;
		flex-shrink: 0;
	}

	.navigation-branding {
		order: 1;
		margin-right: 0;
		min-width: 0;
	}

	.menu-bar-items {
		order: 2;
		margin-left: auto;
		flex-shrink: 0;
	}

	.navigation-search input[type="search"] {
		padding-right: 100px;
	}

	.main-nav {
		display: none;
	}

	.main-navigation.toggled {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		background: var(--lucky-setting-header-background, var(--fx-navy));
		overflow-y: auto;
		z-index: 9999;
	}

	.main-navigation.toggled .inside-navigation {
		display: flex;
		flex-wrap: wrap;
		align-content: flex-start;
		align-items: center;
		min-height: 100%;
		padding: 0 18px 40px;
	}

	.main-navigation.toggled .navigation-branding {
		width: auto;
		order: 1;
	}

	.main-navigation.toggled .main-title a {
		display: inline-flex;
		padding: 6px 10px;
		background: rgba(0, 0, 0, 0.18);
	}

	.main-navigation.toggled .menu-bar-items {
		order: 2;
		margin-left: auto;
	}

	.main-navigation.toggled .menu-toggle {
		order: 3;
	}

	.main-navigation.toggled .menu-toggle .icon-bars {
		display: none !important;
	}

	.main-navigation.toggled .menu-toggle .icon-close {
		display: block !important;
	}

	.main-navigation.toggled .main-nav {
		display: block;
		width: 100%;
		order: 4;
		margin-top: 12px;
		flex: 1 0 100%;
	}

	.main-navigation.toggled .main-nav > ul,
	.main-navigation.toggled .main-nav .menu {
		display: block;
		width: 100%;
	}

	.main-navigation.toggled .main-nav .menu > li {
		border-bottom: 0;
	}

	.main-navigation.toggled .main-nav .menu > li > a {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 18px 4px;
		line-height: 1.4;
		font-size: 20px;
		width: 100%;
		white-space: normal;
	}

	.main-navigation.toggled .dropdown-menu-toggle {
		margin-left: auto;
		padding-left: 12px;
	}

	.main-navigation.toggled .main-nav .sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		padding: 0 0 8px 12px;
		min-width: 0;
		background: transparent;
	}

	.main-navigation.toggled .main-nav .menu > li.is-open > .sub-menu {
		display: block;
	}

	.main-navigation.toggled .main-nav .sub-menu a {
		padding: 12px 4px;
		font-size: 17px;
		opacity: 0.92;
	}

	.navigation-search.nav-search-active {
		z-index: 25;
	}

	.main-navigation.toggled .navigation-search {
		order: 5;
		flex: 1 0 100%;
		width: 100%;
		position: relative;
		left: auto;
		right: auto;
		margin-top: 12px;
	}

	.main-navigation.toggled .navigation-search.nav-search-active {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		position: relative;
		left: auto;
	}

	.main-navigation.toggled .navigation-search input[type="search"] {
		padding-right: 24px;
		background: rgba(0, 0, 0, 0.2);
	}

	body.menu-open {
		overflow: hidden;
	}

	body.right-sidebar .content-area,
	body.right-sidebar .is-right-sidebar {
		width: 100%;
		padding-right: 0;
	}

	.is-right-sidebar .inside-right-sidebar {
		position: static;
		top: auto;
		margin-top: 20px;
	}

	.sidebar .widget {
		padding: 28px 22px;
	}

	.generate-columns,
	.generate-columns.grid-50 {
		width: 100%;
	}

	.generate-columns-container {
		margin-left: 0;
		width: 100%;
	}

	.generate-columns {
		padding-left: 0;
	}

	.page-header {
		margin-left: 0;
	}

	.paging-navigation {
		margin-left: 0;
	}

	.inside-article,
	.sidebar .widget,
	body.right-sidebar .inside-article {
		padding: 30px;
	}

	h1,
	body.single .entry-title,
	body.page .entry-title {
		font-size: 28px;
	}

	h2 {
		font-size: 24px;
	}

	.author-header__inner {
		flex-direction: column;
	}

	/* Footer — stacked, left-aligned on mobile */
	.footer-bar-align-right .inside-site-info,
	.inside-site-info {
		flex-direction: column !important;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 16px;
		padding: 24px 16px;
	}

	.footer-bar {
		width: 100%;
		order: 1;
	}

	.footer-bar .menu {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 12px;
	}

	.footer-bar .menu > li {
		width: auto;
	}

	.footer-bar a {
		font-size: 15px;
		line-height: 1.4;
	}

	.copyright-bar {
		order: 2;
		flex: none;
		width: 100%;
		font-size: 13px;
		line-height: 1.65;
		word-break: break-word;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.generate-columns {
		width: 50%;
	}

	.main-navigation .inside-navigation {
		padding: 0 24px;
	}

	.main-nav .menu > li > a {
		padding: 0 10px;
		font-size: 15px;
	}
}

.button,
.wp-block-button .wp-block-button__link,
a.button {
	display: inline-block;
	padding: 15px 25px;
	background: var(--fx-navy);
	color: #fff !important;
	font-size: 15px;
	border: 0;
	cursor: pointer;
}

.button:hover,
a.button:hover {
	background: var(--fx-link-hover);
	color: #fff !important;
}
