/**
 * ReyBlock Main Stylesheet & Design System
 * Zero-bloat, modern CSS Variables architecture
 *
 * @package ReyBlock
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
	/* Colors */
	--rb-palette-primary: #3b82f6;
	--rb-palette-secondary: #1d4ed8;
	--rb-color-heading: #0f172a;
	--rb-color-text: #475569;
	--rb-color-background: #ffffff;
	--rb-color-surface: #f8fafc;
	--rb-color-bg-alt: #f8fafc;
	--rb-color-border: #e2e8f0;
	--rb-color-muted: #94a3b8;

	/* Layout & Typography */
	--rb-container-width: 1200px;
	--rb-container-padding: 24px;
	--rb-font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	--rb-font-body: var(--rb-font-base);
	--rb-font-heading: var(--rb-font-base);
	--rb-font-nav: var(--rb-font-base);
	--rb-font-base-size: 16px;
	--rb-line-height: 1.6;


	/* Elevation & Radius */
	--rb-radius-sm: 6px;
	--rb-radius-md: 10px;
	--rb-radius-lg: 16px;
	--rb-radius-full: 9999px;
	--rb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--rb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--rb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
	--rb-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

	/* Transitions */
	--rb-transition-fast: 0.15s ease;
	--rb-transition-normal: 0.25s ease;
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-family: var(--rb-font-base);
	font-size: var(--rb-font-base-size);
	line-height: var(--rb-line-height);
	color: var(--rb-color-text);
	background-color: var(--rb-color-background);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--rb-color-background);
	color: var(--rb-color-text);
	overflow-x: hidden;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--rb-color-heading);
	font-weight: 700;
	line-height: 1.25;
	margin-top: 0;
	margin-bottom: 0.75rem;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}

.entry-title,
.entry-title a,
.rb-card-title,
.rb-card-title a,
.page-title,
.wp-block-heading,
.widget-title,
.rb-related-title {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}

/* Clearfix for Floated Elements & Content Containers */
.clear::before,
.clear::after,
.clearfix::before,
.clearfix::after,
.entry-content::before,
.entry-content::after,
.entry-summary::before,
.entry-summary::after,
.page-content::before,
.page-content::after,
.comment-content::before,
.comment-content::after,
.site-content::before,
.site-content::after,
.rb-site-main::before,
.rb-site-main::after,
.rb-prose::before,
.rb-prose::after,
.rb-post-card::before,
.rb-post-card::after,
.site-header::before,
.site-header::after,
.site-footer::before,
.site-footer::after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear::after,
.clearfix::after,
.entry-content::after,
.entry-summary::after,
.page-content::after,
.comment-content::after,
.site-content::after,
.rb-site-main::after,
.rb-prose::after,
.rb-post-card::after,
.site-header::after,
.site-footer::after {
	clear: both;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
	max-width: 100%;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
	max-width: 100%;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Captions & Galleries */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
	clear: both;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	height: auto;
}

.wp-caption .wp-caption-text,
.gallery-caption {
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0.5em 0 0;
	padding: 0;
	text-align: center;
	color: var(--rb-color-muted, #64748b);
	font-style: italic;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Sticky Post */
.sticky {
	display: block;
}

article.sticky {
	position: relative;
	border: 1px solid var(--rb-palette-primary, #2563eb);
	border-radius: var(--rb-radius-md, 8px);
}

.entry-content,
.entry-summary,
.page-content,
.comment-content,
.site-content,
.rb-site-main,
.rb-prose,
.rb-card-content,
.rb-post-card,
.widget-area,
article {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

a {
	color: var(--rb-palette-primary);
	text-decoration: none;
	transition: color var(--rb-transition-fast);
}

a:hover, a:focus {
	color: var(--rb-palette-secondary);
}

/* Global Accessible Keyboard Focus Highlighting */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
	outline: 2px solid var(--rb-palette-primary);
	outline-offset: 2px;
}

.rb-nav-menu a:focus,
.rb-mobile-menu-list a:focus,
.rb-icon-btn:focus,
.rb-btn:focus,
.wp-block-button__link:focus,
input[type="submit"]:focus,
button[type="submit"]:focus {
	outline: 2px solid var(--rb-palette-primary);
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* 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: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	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;
}

/* Container */
.rb-container {
	width: 100%;
	max-width: var(--rb-container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rb-container-padding);
	padding-right: var(--rb-container-padding);
}

/* ==========================================================================
   3. Header Builder Rows & Elements
   ========================================================================== */
.site-header {
	background-color: var(--rb-color-background);
	border-bottom: 1px solid var(--rb-color-border);
	position: relative;
	z-index: 100;
	transition: all var(--rb-transition-normal);
}

.site-header.rb-header-sticky.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: var(--rb-shadow-md);
	animation: fbSlideDown 0.3s ease;
}

@keyframes fbSlideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* Header Rows */
.rb-header-row {
	display: flex;
	align-items: center;
	width: 100%;
}

.rb-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

/* Top Bar */
.rb-header-top-bar {
	background-color: var(--rb-color-surface);
	border-bottom: 1px solid var(--rb-color-border);
	font-size: 0.875rem;
	padding-top: 6px;
	padding-bottom: 6px;
}

.rb-top-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1rem;
}

/* Main Bar */
.rb-header-main-bar {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.rb-header-col {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Logo */
.site-branding {
	display: flex;
	flex-direction: column;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.2;
}

.site-title a {
	color: var(--rb-color-heading);
}

.site-description {
	font-size: 0.8125rem;
	color: var(--rb-color-muted);
	margin: 0;
}

.custom-logo-link img {
	max-height: 50px;
	width: auto;
}

/* Navigation Menu */
.main-navigation .rb-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.5rem;
}

.rb-nav-menu li {
	position: relative;
}

.rb-nav-menu a {
	display: block;
	padding: 0.5rem 0.875rem;
	font-weight: 500;
	color: var(--rb-color-heading);
	border-radius: var(--rb-radius-sm);
	transition: all var(--rb-transition-fast);
}

.rb-nav-menu a:hover,
.rb-nav-menu li.current-menu-item > a {
	color: var(--rb-palette-primary);
	background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menus */
.rb-nav-menu ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background-color: var(--rb-color-background);
	border: 1px solid var(--rb-color-border);
	border-radius: var(--rb-radius-md);
	box-shadow: var(--rb-shadow-lg);
	list-style: none;
	padding: 0.5rem 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--rb-transition-fast);
	z-index: 1000;
}

.rb-nav-menu li:hover > ul,
.rb-nav-menu li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rb-nav-menu ul a {
	padding: 0.5rem 1.25rem;
	font-size: 0.9375rem;
}

/* Header Actions */
.rb-header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.rb-icon-btn {
	background: none;
	border: none;
	color: var(--rb-color-heading);
	cursor: pointer;
	padding: 8px;
	border-radius: var(--rb-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--rb-transition-fast);
}

.rb-icon-btn:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--rb-palette-primary);
}

.rb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.625rem 1.25rem;
	border-radius: var(--rb-radius-sm);
	transition: all var(--rb-transition-fast);
	cursor: pointer;
	border: 1px solid transparent;
}

.rb-btn-primary {
	background-color: var(--rb-palette-primary);
	color: #ffffff;
}

.rb-btn-primary:hover {
	background-color: var(--rb-palette-secondary);
	color: #ffffff;
	box-shadow: var(--rb-shadow-md);
}

/* Hamburger Toggle */
.rb-menu-toggle {
	display: none;
}

.rb-hamburger-box {
	width: 22px;
	height: 16px;
	display: inline-block;
	position: relative;
}

.rb-hamburger-inner,
.rb-hamburger-inner::before,
.rb-hamburger-inner::after {
	width: 22px;
	height: 2px;
	background-color: currentColor;
	border-radius: 2px;
	position: absolute;
	transition: transform 0.2s ease;
}

.rb-hamburger-inner {
	top: 50%;
	transform: translateY(-50%);
}

.rb-hamburger-inner::before {
	content: '';
	top: -6px;
}

.rb-hamburger-inner::after {
	content: '';
	bottom: -6px;
}

/* ==========================================================================
   4. Mobile Off-Canvas Drawer & Modals
   ========================================================================== */
.rb-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rb-mobile-drawer.is-active {
	visibility: visible;
	opacity: 1;
}

.rb-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
}

.rb-drawer-panel {
	position: relative;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background-color: var(--rb-color-background);
	box-shadow: var(--rb-shadow-xl);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1;
}

.rb-mobile-drawer.is-active .rb-drawer-panel {
	transform: translateX(0);
}

.rb-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem;
	border-bottom: 1px solid var(--rb-color-border);
}

.rb-drawer-logo {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--rb-color-heading);
}

.rb-drawer-body {
	padding: 1.25rem;
	overflow-y: auto;
}

.rb-mobile-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rb-mobile-menu-list a {
	display: block;
	padding: 0.75rem 0;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--rb-color-heading);
	border-bottom: 1px solid var(--rb-color-border);
}

/* Search Modal */
.rb-search-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: all 0.25s ease;
}

.rb-search-modal.is-active {
	visibility: visible;
	opacity: 1;
}

.rb-search-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(6px);
}

.rb-search-box {
	position: relative;
	width: 90%;
	max-width: 600px;
	background: var(--rb-color-background);
	border-radius: var(--rb-radius-lg);
	padding: 2.5rem;
	box-shadow: var(--rb-shadow-xl);
	z-index: 1;
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

.rb-search-modal.is-active .rb-search-box {
	transform: scale(1);
}

.rb-search-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}

.rb-search-box .search-field,
.rb-404-search .search-field {
	width: 100%;
	padding: 1rem 1.25rem;
	font-size: 1.25rem;
	border: 2px solid var(--rb-color-border);
	border-radius: var(--rb-radius-md);
	transition: border-color var(--rb-transition-fast);
}

.rb-search-box .search-field:focus,
.rb-404-search .search-field:focus {
	border-color: var(--rb-palette-primary);
}

/* Search Form Layout */
.rb-search-form-wrap form {
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 100%;
}

.rb-search-form-wrap form label {
	flex-grow: 1;
	margin: 0;
	width: 100%;
}

/* Search Submit Button Styling */
.rb-search-form-wrap .search-submit {
	background: var(--rb-palette-primary);
	color: #ffffff;
	border: none;
	border-radius: var(--rb-radius-md);
	padding: 0 1.75rem;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--rb-transition-fast), transform var(--rb-transition-fast);
}

/* Hover and Focus States */
.rb-search-form-wrap .search-submit:hover,
.rb-search-form-wrap .search-submit:focus {
	background: var(--rb-palette-secondary);
}

/* Click Animation */
.rb-search-form-wrap .search-submit:active {
	transform: scale(0.97);
}

/* Mobile Search Layout (Stacked) */
@media (max-width: 768px) {
	.rb-search-form-wrap form {
		flex-direction: column;
	}
	
	.rb-search-form-wrap .search-submit {
		padding: 1rem 1.75rem; /* Ensure button has proper height when stacked */
		width: 100%;
	}
}

/* ==========================================================================
   5. Main Content Layout & Sidebar
   ========================================================================== */
.rb-main-wrapper {
	display: grid;
	gap: 2.5rem;
	padding-top: 3.5rem;
	padding-bottom: 4rem;
	width: 100%;
	box-sizing: border-box;
}

/* Page Structure Classes */
.rb-structure-normal {
	grid-template-columns: 1fr;
	max-width: var(--rb-container-width, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.rb-structure-narrow {
	grid-template-columns: 1fr;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.rb-structure-full-width,
.rb-main-wrapper.rb-container-fluid {
	grid-template-columns: 1fr;
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.rb-structure-full-width .rb-content-area,
.rb-structure-full-width .entry-content {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.rb-structure-full-width .entry-content > * {
	max-width: 100%;
}

/* In full-width structure, completely unbox the article */
.rb-structure-full-width .rb-content-area article,
.rb-structure-full-width.rb-content-boxed .rb-content-area article,
.rb-structure-full-width .rb-single-page {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	max-width: 100% !important;
	width: 100% !important;
}

.rb-structure-full-width .entry-header {
	max-width: var(--rb-container-width, 1200px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rb-container-padding, 24px);
	padding-right: var(--rb-container-padding, 24px);
}

.rb-sidebar-right {
	grid-template-columns: 1fr 320px;
}

.rb-sidebar-left {
	grid-template-columns: 320px 1fr;
}

.rb-sidebar-left .rb-content-area {
	order: 2;
}

.rb-sidebar-left .rb-sidebar {
	order: 1;
}

.rb-sidebar-none:not(.rb-structure-full-width):not(.rb-structure-narrow) {
	grid-template-columns: 1fr;
	max-width: var(--rb-container-width, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* Vertical Spacing: Disabled (0px Padding for flush full page widgets & heroes) */
.rb-no-vertical-spacing,
.rb-no-vertical-spacing.rb-main-wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	gap: 0 !important;
}

.rb-no-vertical-spacing .site-main,
.rb-no-vertical-spacing .rb-content-area article,
.rb-no-vertical-spacing .entry-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Content Area Style: Boxed (applies when not full-width) */
.rb-content-boxed:not(.rb-structure-full-width) .rb-content-area article {
	background: var(--rb-color-surface, #ffffff);
	border: 1px solid var(--rb-color-border, #e2e8f0);
	border-radius: var(--rb-radius-lg, 16px);
	padding: 2.5rem;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Gutenberg Alignments: Alignwide & Alignfull */
.alignwide {
	max-width: min(calc(100vw - 48px), 1400px);
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.rb-structure-full-width .alignfull,
.rb-structure-full-width .entry-content > .alignfull,
.rb-structure-full-width .entry-content > .wp-block-group.alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Sidebar Widgets */
.rb-sidebar .widget {
	background: var(--rb-color-surface);
	border: 1px solid var(--rb-color-border);
	border-radius: var(--rb-radius-md);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.15rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--rb-palette-primary);
	margin-bottom: 1.25rem;
}

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

.widget li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--rb-color-border);
}

.widget li:last-child {
	border-bottom: none;
}

/* ==========================================================================
   6. Blog Posts Loop & Card System
   ========================================================================== */
.rb-posts-loop.rb-loop-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.rb-posts-loop.rb-loop-classic {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* Post Card */
.rb-post-card {
	background: var(--rb-color-background);
	border: 1px solid var(--rb-color-border);
	border-radius: var(--rb-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--rb-transition-fast), box-shadow var(--rb-transition-fast), border-color var(--rb-transition-fast);
}

.rb-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rb-shadow-lg);
	border-color: rgba(59, 130, 246, 0.3);
}

.rb-card-media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--rb-color-surface);
}

.rb-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rb-post-card:hover .rb-card-img {
	transform: scale(1.04);
}

.rb-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.rb-card-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8125rem;
	margin-bottom: 0.75rem;
}

.rb-card-category a {
	background-color: rgba(59, 130, 246, 0.1);
	color: var(--rb-palette-primary);
	padding: 3px 10px;
	border-radius: var(--rb-radius-full);
	font-weight: 600;
}

.rb-card-title {
	font-size: 1.35rem;
	line-height: 1.35;
	margin-bottom: 0.75rem;
}

.rb-card-title a {
	color: var(--rb-color-heading);
}

.rb-card-title a:hover {
	color: var(--rb-palette-primary);
}

.rb-card-excerpt {
	font-size: 0.9375rem;
	color: var(--rb-color-text);
	flex-grow: 1;
	margin-bottom: 1.25rem;
}

.rb-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid var(--rb-color-border);
}

.rb-card-author-info {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

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

.rb-author-details {
	display: flex;
	flex-direction: column;
	font-size: 0.75rem;
}

.rb-author-name {
	font-weight: 600;
	color: var(--rb-color-heading);
}

.rb-card-date {
	color: var(--rb-color-muted);
}

.rb-read-more {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: var(--rb-color-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rb-palette-primary);
	transition: all var(--rb-transition-fast);
}

.rb-post-card:hover .rb-read-more {
	background-color: var(--rb-palette-primary);
	color: #ffffff;
}

/* Pagination */
.pagination, .navigation.pagination {
	margin-top: 3rem;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: var(--rb-radius-sm);
	border: 1px solid var(--rb-color-border);
	font-weight: 600;
	color: var(--rb-color-heading);
	transition: all var(--rb-transition-fast);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background-color: var(--rb-palette-primary);
	border-color: var(--rb-palette-primary);
	color: #ffffff;
}

/* ==========================================================================
   7. Single Post & Prose Typography
   ========================================================================== */
.rb-single-post .entry-header {
	margin-bottom: 2rem;
}

.rb-single-post .entry-title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-size: 0.875rem;
	color: var(--rb-color-muted);
}

.rb-icon {
	vertical-align: -2px;
	margin-right: 4px;
}

.single-featured-image {
	margin-bottom: 2.5rem;
	border-radius: var(--rb-radius-lg);
	overflow: hidden;
}

.rb-prose {
	font-size: 1.125rem;
	line-height: 1.8;
}

.rb-prose h2, .rb-prose h3 {
	margin-top: 2rem;
}

.rb-prose blockquote {
	border-left: 4px solid var(--rb-palette-primary);
	margin-left: 0;
	padding-left: 1.5rem;
	font-style: italic;
	color: var(--rb-color-heading);
}

.rb-prose pre, .rb-prose code {
	background: var(--rb-color-surface);
	border-radius: var(--rb-radius-sm);
	padding: 0.2rem 0.4rem;
	font-size: 0.9em;
}

.rb-prose pre {
	padding: 1.25rem;
	overflow-x: auto;
}

/* Post Navigation */
.post-navigation {
	border-top: 1px solid var(--rb-color-border);
	border-bottom: 1px solid var(--rb-color-border);
	padding: 1.5rem 0;
	margin: 3rem 0;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
}

.nav-subtitle {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rb-color-muted);
}

.nav-title {
	font-weight: 600;
	color: var(--rb-color-heading);
}

/* Comments Section */
.rb-comments-wrapper {
	margin-top: 4rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--rb-color-border);
}

.comments-title {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

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

.comment-body {
	background: var(--rb-color-surface);
	border-radius: var(--rb-radius-md);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--rb-color-border);
	border-radius: var(--rb-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--rb-palette-primary);
}

.form-submit input[type="submit"] {
	background: var(--rb-palette-primary);
	color: #ffffff;
	border: none;
	padding: 0.75rem 1.75rem;
	font-weight: 600;
	border-radius: var(--rb-radius-sm);
	cursor: pointer;
	transition: background var(--rb-transition-fast);
}

.form-submit input[type="submit"]:hover {
	background: var(--rb-palette-secondary);
}

/* ==========================================================================
   8. Footer Rows & Back to Top
   ========================================================================== */
.site-footer {
	background-color: var(--rb-color-surface);
	border-top: 1px solid var(--rb-color-border);
	color: var(--rb-color-text);
}

.rb-footer-widgets {
	padding-top: 4rem;
	padding-bottom: 3rem;
}

.rb-footer-grid {
	display: grid;
	gap: 2.5rem;
}

.rb-footer-cols-1 .rb-footer-grid { grid-template-columns: 1fr; }
.rb-footer-cols-2 .rb-footer-grid { grid-template-columns: repeat(2, 1fr); }
.rb-footer-cols-3 .rb-footer-grid { grid-template-columns: repeat(3, 1fr); }
.rb-footer-cols-4 .rb-footer-grid { grid-template-columns: repeat(4, 1fr); }

.rb-footer-bottom-bar {
	border-top: 1px solid var(--rb-color-border);
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	font-size: 0.875rem;
}

.rb-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rb-footer-menu-list {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 1.5rem;
}

/* Back to Top Button */
.rb-back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--rb-palette-primary);
	color: #ffffff;
	border: none;
	box-shadow: var(--rb-shadow-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: all var(--rb-transition-normal);
	z-index: 999;
}

.rb-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rb-back-to-top:hover {
	background-color: var(--rb-palette-secondary);
	transform: translateY(-3px);
}

/* ==========================================================================
   9. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
	.main-navigation {
		display: none;
	}

	.rb-menu-toggle {
		display: flex;
	}

	.rb-sidebar-right,
	.rb-sidebar-left {
		grid-template-columns: 1fr;
	}

	.rb-footer-cols-3 .rb-footer-grid,
	.rb-footer-cols-4 .rb-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.rb-posts-loop.rb-loop-grid {
		grid-template-columns: 1fr;
	}

	.rb-footer-cols-2 .rb-footer-grid,
	.rb-footer-cols-3 .rb-footer-grid,
	.rb-footer-cols-4 .rb-footer-grid {
		grid-template-columns: 1fr;
	}

	.rb-footer-bottom-inner {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.rb-single-post .entry-title {
		font-size: 1.85rem;
	}
}

/* ==========================================================================
   Advanced Header — Transparent, Sticky Shrink, Overlay
   ========================================================================== */

/* Transparent header: bg transparent, text white until scrolled */
.rb-header-transparent:not(.is-scrolled) {
	background-color: transparent !important;
	border-bottom-color: transparent !important;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 999;
}

.rb-header-transparent:not(.is-scrolled) .site-title a,
.rb-header-transparent:not(.is-scrolled) .rb-nav-menu a,
.rb-header-transparent:not(.is-scrolled) .rb-icon-btn {
	color: #ffffff;
}

.rb-header-transparent:not(.is-scrolled) .rb-hamburger-inner,
.rb-header-transparent:not(.is-scrolled) .rb-hamburger-inner::before,
.rb-header-transparent:not(.is-scrolled) .rb-hamburger-inner::after {
	background-color: #ffffff;
}

/* Smooth transition when scrolled state applied */
.site-header {
	transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Sticky scrolled state */
.site-header.is-sticky {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: var(--rb-color-background);
	box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Shrink on scroll: reduce main bar padding and logo size */
.site-header.is-shrunk .rb-header-main-bar {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.site-header.is-shrunk .site-branding img,
.site-header.is-shrunk .custom-logo {
	max-height: 36px;
	transition: max-height 0.3s ease;
}

.site-header.is-scrolled {
	background-color: var(--rb-color-background);
	box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Footer social icons */
.rb-footer-social {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-wrap: wrap;
}

.rb-footer-social-link {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(255,255,255,0.1);
	color: currentColor;
	text-decoration: none;
	transition: all var(--rb-transition-fast);
}

.rb-footer-social-link:hover {
	background-color: var(--rb-palette-primary);
	color: #ffffff;
	transform: translateY(-2px);
}

/* Pre-footer CTA strip */
.rb-pre-footer {
	background-color: var(--rb-palette-primary);
	color: #ffffff;
	text-align: center;
	padding: 2.5rem 1.5rem;
}

.rb-pre-footer-title {
	font-size: clamp(1.4rem, 3vw, 2rem);
	margin: 0 0 1rem;
	color: #ffffff;
}

.rb-pre-footer-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #ffffff;
	color: var(--rb-palette-primary);
	padding: 0.75rem 2rem;
	border-radius: var(--rb-radius-md);
	font-weight: 700;
	text-decoration: none;
	transition: all var(--rb-transition-fast);
}

.rb-pre-footer-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Block Styles (Modern Card Quote, Gradient Button, Boxed Group)
   ========================================================================== */
.is-style-reyblock-modern-quote {
	padding: 1.5rem;
	background: var(--rb-color-bg-alt, #f8fafc);
	border-left: 4px solid var(--rb-palette-primary, #2563eb);
	border-radius: var(--rb-radius-md, 8px);
}

.is-style-reyblock-gradient .wp-block-button__link {
	background: linear-gradient(135deg, var(--rb-palette-primary, #2563eb) 0%, #7c3aed 100%) !important;
	color: #ffffff !important;
	border: none !important;
}

.is-style-reyblock-boxed {
	padding: 2rem;
	background: var(--rb-color-surface, #ffffff);
	border-radius: var(--rb-radius-lg, 12px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
	border: 1px solid var(--rb-color-border, #e2e8f0);
}
