/*!
Theme Name: Modern Blog
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: A clean and modern blog theme
Version: 2.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: modern-blog
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design System
# Base Styles
# Layout
# Components
  - Header
  - Navigation
  - Posts
  - Comments
  - Widgets
  - Footer
# Utilities
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Design System - Pro Finance Theme (Navy + Gold)
--------------------------------------------------------------*/
:root {
	/* Colors - Professional Finance Theme */
	--color-primary: #1e3a5f;
	/* Dark Navy */
	--color-primary-dark: #0f2744;
	/* Deeper Navy */
	--color-primary-light: #2d5a87;
	/* Lighter Navy */

	--color-accent: #c9a227;
	/* Gold accent */
	--color-accent-light: #d4b84a;
	/* Light Gold */
	--color-accent-dark: #a68b1f;
	/* Dark Gold */

	--color-text: #1a1a2e;
	/* Deep dark text */
	--color-text-light: #4a5568;
	--color-text-lighter: #718096;

	--color-bg: #ffffff;
	--color-bg-secondary: #f8fafc;
	--color-bg-tertiary: #f1f5f9;

	--color-border: #e2e8f0;
	--color-border-light: #edf2f7;

	--color-success: #059669;
	/* Finance green */
	--color-warning: #d97706;
	--color-error: #dc2626;

	/* Typography - Professional fonts */
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Playfair Display", Georgia, Cambria, "Times New Roman", Times, serif;
	--font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-lg: 1.125rem;
	--text-xl: 1.25rem;
	--text-2xl: 1.5rem;
	--text-3xl: 1.875rem;
	--text-4xl: 2.25rem;

	/* Spacing */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	--space-20: 5rem;

	/* Layout */
	--container-width: 1200px;
	--content-width: 800px;
	--sidebar-width: 300px;

	/* Borders */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;

	/* Shadows - Softer, more professional */
	--shadow-sm: 0 1px 2px 0 rgba(30, 58, 95, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(30, 58, 95, 0.08), 0 2px 4px -1px rgba(30, 58, 95, 0.04);
	--shadow-lg: 0 10px 15px -3px rgba(30, 58, 95, 0.08), 0 4px 6px -2px rgba(30, 58, 95, 0.04);
	--shadow-xl: 0 20px 25px -5px rgba(30, 58, 95, 0.1), 0 10px 10px -5px rgba(30, 58, 95, 0.04);

	/* Transitions */
	--transition-fast: 150ms ease-in-out;
	--transition-base: 200ms ease-in-out;
	--transition-slow: 300ms ease-in-out;
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: 1.7;
	color: var(--color-text);
	background-color: var(--color-bg-secondary);
	margin: 0;
	padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.3;
	margin-top: var(--space-8);
	margin-bottom: var(--space-4);
	color: var(--color-text);
}

h1 {
	font-size: var(--text-4xl);
}

h2 {
	font-size: var(--text-3xl);
}

h3 {
	font-size: var(--text-2xl);
}

h4 {
	font-size: var(--text-xl);
}

h5 {
	font-size: var(--text-lg);
}

h6 {
	font-size: var(--text-base);
}

p {
	margin-bottom: var(--space-6);
	line-height: 1.8;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

strong,
b {
	font-weight: 700;
}

em,
i {
	font-style: italic;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-md);
}

hr {
	border: 0;
	height: 1px;
	background: var(--color-border);
	margin: var(--space-8) 0;
}

/* Lists */
ul,
ol {
	margin: 0 0 var(--space-6) var(--space-8);
	padding: 0;
}

li {
	margin-bottom: var(--space-2);
	line-height: 1.7;
}

/* Code */
code,
kbd,
pre,
samp {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

code {
	background: var(--color-bg-tertiary);
	padding: 0.2em 0.4em;
	border-radius: var(--radius-sm);
	color: #e83e8c;
}

pre {
	background: var(--color-text);
	color: #fff;
	padding: var(--space-6);
	border-radius: var(--radius-md);
	overflow-x: auto;
	margin-bottom: var(--space-6);
	line-height: 1.6;
}

pre code {
	background: transparent;
	padding: 0;
	color: inherit;
	font-size: var(--text-sm);
}

/* Blockquote */
blockquote {
	border-left: 4px solid var(--color-primary);
	padding-left: var(--space-6);
	margin: var(--space-8) 0;
	font-style: italic;
	color: var(--color-text-light);
	font-size: var(--text-lg);
}

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

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--space-8);
	font-size: var(--text-sm);
}

th,
td {
	padding: var(--space-3) var(--space-4);
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}

th {
	font-weight: 700;
	background: var(--color-bg-tertiary);
	color: var(--color-text);
}

/* Forms */
button,
input,
select,
textarea {
	font-family: inherit;
	font-size: var(--text-base);
	line-height: 1.5;
	margin: 0;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: var(--space-3) var(--space-6);
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 600;
	transition: all var(--transition-base);
	display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-bg);
	color: var(--color-text);
	transition: all var(--transition-base);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

#content {
	flex: 1;
}

/* Clean Flexbox Layout - Mobile First */
.site-content {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: var(--space-8) var(--space-6);
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	width: 100%;
	box-sizing: border-box;
}

.site-main {
	width: 100%;
	order: 1;
}

.widget-area,
#secondary {
	width: 100%;
	order: 2;
}

/* Desktop Layout - Sidebar on Right */
@media screen and (min-width: 768px) {
	.site-content {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--space-8);
	}

	.site-main,
	#primary.site-main {
		flex: 1;
		min-width: 0;
		/* Prevent flex overflow */
		order: 1;
	}

	.widget-area,
	#secondary.widget-area,
	aside#secondary {
		flex: 0 0 300px;
		width: 300px;
		order: 2;
		position: sticky;
		top: 100px;
		align-self: start;
	}
}

.site-main {
	background: transparent;
}

/*--------------------------------------------------------------
# Components - Header
--------------------------------------------------------------*/
.site-header {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	padding: var(--space-6) 0;
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: var(--shadow-sm);
}

.site-header>div {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-6);
}

.site-branding {
	text-align: center;
	margin-bottom: var(--space-4);
}

.site-title {
	margin: 0;
	font-size: var(--text-3xl);
	font-weight: 800;
	line-height: 1.2;
	display: none;
	/* Hide to avoid duplication with logo */
}

.site-title a {
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-base);
}

.site-title a:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.site-description {
	margin: var(--space-2) 0 0;
	font-size: var(--text-base);
	color: var(--color-text-light);
	font-weight: 400;
}

.custom-logo-link {
	display: inline-block;
	margin-bottom: var(--space-3);
}

.custom-logo {
	max-height: 80px;
	width: auto;
}

/*--------------------------------------------------------------
# Components - Navigation
--------------------------------------------------------------*/
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.main-navigation li {
	margin: 0;
	position: relative;
}

.main-navigation a {
	display: block;
	padding: var(--space-2) var(--space-4);
	color: var(--color-text);
	text-decoration: none;
	font-weight: 500;
	border-radius: var(--radius-md);
	transition: all var(--transition-base);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current_page_item a,
.main-navigation .current-menu-item a {
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
}

/* Dropdown menus */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-bg);
	box-shadow: var(--shadow-lg);
	border-radius: var(--radius-md);
	padding: var(--space-2);
	min-width: 200px;
	flex-direction: column;
	gap: 0;
}

.main-navigation ul ul a {
	padding: var(--space-3) var(--space-4);
}

.main-navigation li:hover>ul,
.main-navigation li.focus>ul {
	display: flex;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: var(--space-3) var(--space-5);
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 600;
	margin: 0 auto;
}

@media (max-width: 600px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		gap: 0;
		margin-top: var(--space-4);
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.main-navigation a {
		padding: var(--space-3) var(--space-4);
	}
}

/*--------------------------------------------------------------
# Components - Posts
--------------------------------------------------------------*/
.post,
.page {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	margin-bottom: var(--space-8);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-base);
}

.post:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.entry-header {
	margin-bottom: var(--space-6);
}

.entry-title {
	margin: 0 0 var(--space-3);
	font-size: var(--text-3xl);
	font-weight: 800;
	line-height: 1.2;
}

.entry-title a {
	color: var(--color-text);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.entry-meta {
	font-size: var(--text-sm);
	color: var(--color-text-light);
	display: flex;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.entry-meta a {
	color: var(--color-text-light);
}

.entry-meta a:hover {
	color: var(--color-primary);
}

.posted-on,
.byline,
.cat-links,
.tags-links,
.comments-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.posted-on::before {
	content: "📅";
}

.byline::before {
	content: "✍️";
}

.cat-links::before {
	content: "📁";
}

.tags-links::before {
	content: "🏷️";
}

.comments-link::before {
	content: "💬";
}

.entry-content,
.entry-summary {
	margin-top: var(--space-6);
	line-height: 1.8;
	font-size: var(--text-base);
}

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

.entry-content>*:last-child {
	margin-bottom: 0;
}

.post-thumbnail {
	margin-bottom: var(--space-6);
	border-radius: var(--radius-md);
	overflow: hidden;
	max-height: 400px;
}

.post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.post-thumbnail:hover img {
	transform: scale(1.05);
}

.entry-footer {
	margin-top: var(--space-6);
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-border);
	font-size: var(--text-sm);
	color: var(--color-text-light);
}

/* More link */
.more-link {
	display: inline-block;
	margin-top: var(--space-4);
	padding: var(--space-3) var(--space-6);
	background: var(--color-primary);
	color: #fff !important;
	border-radius: var(--radius-md);
	font-weight: 600;
	text-decoration: none !important;
	transition: all var(--transition-base);
}

.more-link:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* Sticky posts */
.sticky {
	border: 2px solid var(--color-primary);
	position: relative;
}

.sticky::before {
	content: "📌 Featured";
	position: absolute;
	top: var(--space-4);
	right: var(--space-4);
	background: var(--color-primary);
	color: #fff;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-md);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
}

/* Pagination */
.posts-navigation,
.post-navigation {
	margin: var(--space-8) 0;
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: var(--space-4);
}

.nav-previous,
.nav-next {
	flex: 1;
}

.nav-previous a,
.nav-next a {
	display: block;
	padding: var(--space-4) var(--space-6);
	background: var(--color-bg-tertiary);
	border-radius: var(--radius-md);
	transition: all var(--transition-base);
	text-align: center;
	font-weight: 600;
}

.nav-previous a:hover,
.nav-next a:hover {
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/*--------------------------------------------------------------
# Components - Comments
--------------------------------------------------------------*/
.comments-area {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: var(--space-8);
	margin-top: var(--space-8);
}

.comments-title,
.comment-reply-title {
	font-size: var(--text-2xl);
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-4);
	border-bottom: 2px solid var(--color-primary);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment {
	margin-bottom: var(--space-6);
	padding: var(--space-6);
	background: var(--color-bg-secondary);
	border-radius: var(--radius-md);
}

.comment-body {
	display: flex;
	gap: var(--space-4);
}

.comment-author {
	flex-shrink: 0;
}

.comment-author .avatar {
	border-radius: 50%;
	width: 48px;
	height: 48px;
}

.comment-content {
	flex: 1;
}

.comment-metadata {
	font-size: var(--text-sm);
	color: var(--color-text-light);
	margin-bottom: var(--space-3);
}

.comment-reply-link {
	font-size: var(--text-sm);
	color: var(--color-primary);
	font-weight: 600;
}

.comment-form {
	margin-top: var(--space-8);
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
	margin-bottom: var(--space-4);
}

.comment-form label {
	display: block;
	margin-bottom: var(--space-2);
	font-weight: 600;
	color: var(--color-text);
}

/*--------------------------------------------------------------
# Components - Page Header (Archive/Category Pages)
--------------------------------------------------------------*/
.page-header {
	margin-bottom: var(--space-6);
}

.page-header .page-title {
	margin: 0;
	font-size: var(--text-3xl);
	font-weight: 700;
	color: var(--color-text);
}

.page-header .archive-description {
	margin-top: var(--space-2);
	color: var(--color-text-light);
}

/*--------------------------------------------------------------
# Components - Widgets (Premium Styling)
--------------------------------------------------------------*/
.widget-area {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	position: sticky;
	top: calc(var(--space-12) + 80px);
	align-self: start;
	max-height: calc(100vh - var(--space-12) - 100px);
	overflow-y: auto;
}

.widget {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-base);
	border: 1px solid var(--color-border-light);
}

.widget:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

.widget-title,
.widget h2,
.widget_block h2,
section.widget_block h2,
.uagb-heading-text,
.wp-block-heading {
	font-size: var(--text-lg);
	margin: 0 0 var(--space-5);
	padding-bottom: var(--space-3);
	border-bottom: 3px solid var(--color-accent) !important;
	color: var(--color-primary) !important;
	font-weight: 700;
}

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

.widget li {
	margin-bottom: 0;
	padding: var(--space-3) var(--space-2);
	border-radius: var(--radius-sm);
	transition: all var(--transition-base);
}

.widget li:hover {
	background: var(--color-bg-secondary);
	padding-left: var(--space-3);
}

.widget li:last-child {
	margin-bottom: 0;
}

.widget a {
	color: var(--color-text);
	transition: all var(--transition-base);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
}

.widget a:hover {
	color: var(--color-primary);
	text-decoration: none;
}

/* Category widget - Premium badge style */
.widget_categories li {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.widget_categories a {
	flex: 1;
}

.widget_categories li::after {
	content: attr(data-count);
}

/* Style category counts in parentheses */
.widget_categories li a {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

/* Subscribe widget enhancement */
.widget_mc4wp_form_widget,
.widget_newsletter {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: #fff;
}

.widget_mc4wp_form_widget .widget-title,
.widget_newsletter .widget-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget_mc4wp_form_widget input[type="email"],
.widget_newsletter input[type="email"] {
	background: rgba(255, 255, 255, 0.95);
	border: none;
	margin-bottom: var(--space-3);
}

.widget_mc4wp_form_widget button,
.widget_newsletter button,
.widget_mc4wp_form_widget input[type="submit"],
.widget_newsletter input[type="submit"] {
	width: 100%;
	background: #fff;
	color: var(--color-primary);
	font-weight: 700;
	padding: var(--space-4);
}

.widget_mc4wp_form_widget button:hover,
.widget_newsletter button:hover,
.widget_mc4wp_form_widget input[type="submit"]:hover,
.widget_newsletter input[type="submit"]:hover {
	background: var(--color-bg-secondary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Search widget */
.widget_search form {
	display: flex;
	gap: var(--space-2);
}

.widget_search input[type="search"] {
	flex: 1;
}

.widget_search button {
	padding: var(--space-3) var(--space-5);
}

/* Recent posts widget */
.widget_recent_entries li {
	border-left: 3px solid transparent;
	transition: all var(--transition-base);
}

.widget_recent_entries li:hover {
	border-left-color: var(--color-primary);
}

.widget_recent_entries .post-date {
	display: block;
	font-size: var(--text-xs);
	color: var(--color-text-lighter);
	margin-top: var(--space-1);
}

/*--------------------------------------------------------------
# Components - Footer
--------------------------------------------------------------*/

.site-footer {
	background: var(--color-text);
	color: rgba(255, 255, 255, 0.8);
	padding: var(--space-12) 0 var(--space-6);
	margin-top: var(--space-16);
}

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

.site-footer a:hover {
	color: var(--color-primary-light);
}

.site-info {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-6);
	text-align: center;
	font-size: var(--text-sm);
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Screen reader text */
.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-color: var(--color-bg-tertiary);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: var(--text-sm);
	font-weight: 700;
	height: auto;
	left: var(--space-2);
	line-height: normal;
	padding: var(--space-4) var(--space-6);
	text-decoration: none;
	top: var(--space-2);
	width: auto;
	z-index: 100000;
}

/* Alignments */
.alignleft {
	float: left;
	margin-right: var(--space-6);
	margin-bottom: var(--space-4);
}

.alignright {
	float: right;
	margin-left: var(--space-6);
	margin-bottom: var(--space-4);
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--space-6);
}

/* WordPress Galleries */
.gallery {
	margin-bottom: var(--space-8);
	display: grid;
	gap: var(--space-4);
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-item img {
	border-radius: var(--radius-md);
	transition: transform var(--transition-base);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

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

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-caption {
	display: block;
	font-size: var(--text-sm);
	color: var(--color-text-light);
	margin-top: var(--space-2);
}

/* WordPress captions */
.wp-caption {
	margin-bottom: var(--space-6);
	max-width: 100%;
}

.wp-caption img {
	display: block;
	margin: 0 auto;
}

.wp-caption-text {
	text-align: center;
	font-size: var(--text-sm);
	color: var(--color-text-light);
	margin-top: var(--space-2);
	padding: 0 var(--space-4);
}

/* Infinite scroll */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

.infinity-end.neverending .site-footer {
	display: block;
}

/* Responsive tweaks */
@media (max-width: 768px) {
	:root {
		--text-4xl: 1.875rem;
		--text-3xl: 1.5rem;
		--text-2xl: 1.25rem;
	}

	.site-header {
		padding: var(--space-4) 0;
	}

	.site-branding {
		margin-bottom: var(--space-3);
	}

	.post,
	.page {
		padding: var(--space-6);
	}

	.comments-area {
		padding: var(--space-6);
	}

	.site-footer {
		padding: var(--space-8) 0 var(--space-4);
	}
}

/*--------------------------------------------------------------
# Spectra/UAGB Plugin Overrides - Pro Finance Theme
--------------------------------------------------------------*/
/* Force gold accent on ALL sidebar headings */
aside h2,
aside h3,
.widget-area h2,
.widget-area h3,
#secondary h2,
#secondary h3,
aside .uagb-heading-text,
aside .wp-block-heading,
section.widget_block h2,
.wp-block-uagb-advanced-heading h2,
.uagb-heading-text {
	border-bottom: 3px solid #c9a227 !important;
	color: #1e3a5f !important;
	padding-bottom: 0.75rem !important;
	margin-bottom: 1.25rem !important;
	font-weight: 700 !important;
}

/* Force navy on navigation hover */
.main-navigation a:hover,
.main-navigation a:focus {
	background: #1e3a5f !important;
	color: #fff !important;
}

/* Active menu with gold underline */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
	background: #1e3a5f !important;
	color: #fff !important;
	border-bottom: 2px solid #c9a227 !important;
}

/* Header border accent */
.site-header {
	border-bottom: 2px solid #1e3a5f !important;
}

/* Post titles with navy */
.entry-title a,
.entry-title {
	color: #1e3a5f !important;
}

.entry-title a:hover {
	color: #c9a227 !important;
}

/* Category/Tag links gold on hover */
.cat-links a:hover,
.tags-links a:hover {
	color: #c9a227 !important;
}