/*
Theme Name: RavixAds
Theme URI: https://ravixskool.com/
Author: Ravix
Description: A fast, clean magazine and blog theme built for Google AdSense. Includes ready ad slots (header, in-article, after content, between posts, sidebar, footer), an AdSense Auto Ads switch, an ads.txt manager, dark mode, reading time, breadcrumbs, Article schema and related posts. No jQuery, no page builder required.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.8
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: ravixads
Tags: blog, news, two-columns, right-sidebar, grid-layout, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, theme-options
*/

:root {
	--rx-accent: #2d53fe;
	--rx-text: #494949;
	--rx-heading: #161616;
	--rx-muted: #989898;
	--rx-bg: #ffffff;
	--rx-soft: #f6f6f8;
	--rx-border: #ececec;
	--rx-hero: #191919;
	--rx-font-ui: "Roboto", Arial, sans-serif;
	--rx-font-body: "PT Serif", Georgia, serif;
	--rx-wrap: 1180px;
	--rx-radius: 4px;
}

html[data-theme="dark"] {
	--rx-text: #c9c9cc;
	--rx-heading: #f2f2f3;
	--rx-muted: #8d8d93;
	--rx-bg: #151517;
	--rx-soft: #1e1e21;
	--rx-border: #2b2b30;
	--rx-hero: #0d0d0e;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--rx-bg);
	color: var(--rx-text);
	font-family: var(--rx-font-ui);
	font-size: var(--rx-size-base, 15px);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--rx-heading); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--rx-accent); }

h1, h2, h3, h4, h5, h6 {
	color: var(--rx-heading);
	font-family: var(--rx-font-heading, var(--rx-font-ui));
	font-weight: var(--rx-heading-w, 700);
	line-height: 1.3;
	margin: 0 0 .6em;
}

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

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	background: var(--rx-bg); color: var(--rx-accent); padding: 12px 18px; left: 8px; top: 8px;
}

.rx-wrap { max-width: var(--rx-wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.rx-header {
	background: var(--rx-header-bg, var(--rx-bg));
	border-bottom: 1px solid var(--rx-border);
	position: relative; z-index: 50;
}
.rx-sticky-header .rx-header { position: sticky; top: 0; }
.admin-bar.rx-sticky-header .rx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.rx-sticky-header .rx-header { top: 0; position: relative; } }

.rx-header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.rx-logo { flex-shrink: 0; display: flex; align-items: center; }
.rx-logo img { max-height: var(--rx-logo-h, 44px); width: auto; display: block; }
.rx-logo .rx-logo-dark, .rx-logo .rx-logo-mobile { display: none; }
html[data-theme="dark"] .rx-logo.has-dark .rx-logo-main { display: none; }
html[data-theme="dark"] .rx-logo.has-dark .rx-logo-dark { display: block; }
.rx-site-title { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.5px; line-height: 1; font-family: var(--rx-font-heading, var(--rx-font-ui)); }
.rx-site-title a, .rx-site-title a:hover { color: var(--rx-header-text, var(--rx-heading)); }

.rx-nav { flex: 1; }
.rx-nav ul { list-style: none; margin: 0; padding: 0; }
.rx-nav > ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.rx-nav li { position: relative; }
.rx-nav a { display: block; font-size: var(--rx-size-nav, 14px); font-weight: 500; color: var(--rx-nav, var(--rx-header-text, var(--rx-heading))); line-height: 76px; }
.rx-nav a:hover, .rx-nav .current-menu-item > a, .rx-nav .current-menu-ancestor > a { color: var(--rx-nav-hover, var(--rx-accent)); }
.rx-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; vertical-align: 3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.rx-nav .sub-menu {
	position: absolute; left: -18px; top: 100%; min-width: 220px; padding: 10px 0;
	background: var(--rx-bg); border: 1px solid var(--rx-border); box-shadow: 0 10px 30px rgba(0,0,0,.08);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 60;
}
.rx-nav .sub-menu .sub-menu { left: 100%; top: -11px; }
.rx-nav li:hover > .sub-menu, .rx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rx-nav .sub-menu a { line-height: 1.5; padding: 8px 20px; font-weight: 400; }

.rx-header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rx-social { display: flex; gap: 2px; margin-right: 6px; }
.rx-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border: 0; background: none; cursor: pointer;
	color: var(--rx-header-text, var(--rx-heading)); border-radius: 50%; padding: 0;
}
.rx-icon-btn:hover { color: var(--rx-accent); background: var(--rx-soft); }
.rx-icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.rx-social .rx-icon-btn svg { width: 14px; height: 14px; }
.rx-menu-toggle { display: none; }

.rx-icon-moon { display: block; }
.rx-icon-sun { display: none; }
html[data-theme="dark"] .rx-icon-moon { display: none; }
html[data-theme="dark"] .rx-icon-sun { display: block; }

/* Search overlay */
.rx-search-panel {
	display: none; position: absolute; left: 0; right: 0; top: 100%;
	background: var(--rx-bg); border-bottom: 1px solid var(--rx-border); padding: 22px 0;
	box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.rx-search-panel.is-open { display: block; }

.rx-search-form { display: flex; gap: 8px; }
.rx-search-form input[type="search"] {
	flex: 1; padding: 12px 16px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius);
	background: var(--rx-bg); min-width: 0;
}
.rx-search-form input[type="search"]:focus { outline: none; border-color: var(--rx-accent); }

.rx-btn, .rx-search-form button, input[type="submit"], .wp-block-button__link {
	display: inline-block; border: 0; cursor: pointer; border-radius: var(--rx-radius);
	background: var(--rx-accent); color: #fff; font-weight: 500; font-size: 14px; padding: 12px 22px;
}
.rx-btn:hover, .rx-search-form button:hover, input[type="submit"]:hover { color: #fff; filter: brightness(.92); }

/* ---------- Layout ---------- */
.rx-main { padding: 50px 0 60px; }
.rx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; }
.rx-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.rx-layout.no-sidebar .rx-content { max-width: 800px; margin: 0 auto; width: 100%; }

.rx-section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--rx-border);
}
.rx-section-head h1, .rx-section-head h2 { font-size: 24px; margin: 0; }
.rx-section-head .rx-desc { color: var(--rx-muted); font-size: 14px; margin: 6px 0 0; }

/* ---------- Post cards ---------- */
.rx-cat {
	display: inline-block; font-size: 11px; font-weight: 500; text-transform: uppercase;
	letter-spacing: .6px; color: var(--rx-accent); line-height: 1.6;
}
.rx-cat a { color: var(--rx-cat, var(--rx-accent)); }
.rx-cat a + a::before { content: ", "; color: var(--rx-muted); }

.rx-meta {
	font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px;
	color: var(--rx-muted); line-height: 1.6;
}
.rx-meta a { color: var(--rx-muted); }
.rx-meta a:hover { color: var(--rx-accent); }
.rx-meta > span + span::before { content: "\00b7"; margin: 0 7px; }

.rx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 34px; }
.rx-grid > .rx-ad-slot, .rx-grid > .rx-feature { grid-column: 1 / -1; }

.rx-card-thumb {
	display: block; position: relative; overflow: hidden; border-radius: var(--rx-radius);
	aspect-ratio: 16 / 10; background: var(--rx-soft); margin-bottom: 18px;
}
.rx-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.rx-card:hover .rx-card-thumb img { transform: scale(1.04); }

.rx-card-title { font-size: 20px; line-height: 1.4; margin: 8px 0 10px; }
.rx-card-title a, .rx-bsmall-item .title, .rx-widget-posts .title { color: var(--rx-title, var(--rx-heading)); }
.rx-card-title a:hover, .rx-bsmall-item .title:hover, .rx-widget-posts .title:hover { color: var(--rx-accent); }
.rx-card-excerpt { font-size: 15px; line-height: 1.7; margin: 14px 0 0; }
.rx-card-excerpt p { margin: 0; }

.rx-read-more {
	display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500;
	border-bottom: 1px solid var(--rx-heading); line-height: 1.6;
}
.rx-read-more:hover { border-color: var(--rx-accent); }

/* Featured first post */
.rx-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
.rx-feature .rx-card-thumb { margin: 0; aspect-ratio: 4 / 3; }
.rx-feature .rx-card-title { font-size: 28px; }

/* List layout */
.rx-list .rx-card { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 30px; align-items: center; }
.rx-list .rx-card + .rx-card, .rx-list .rx-card + .rx-ad-slot, .rx-list .rx-ad-slot + .rx-card {
	margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rx-border);
}
.rx-list .rx-card-thumb { margin: 0; }
.rx-list .rx-card.no-thumb { grid-template-columns: 1fr; }

/* Pagination */
.rx-pagination { margin-top: 50px; }
.rx-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rx-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--rx-border); border-radius: var(--rx-radius); font-weight: 500; font-size: 14px;
}
.rx-pagination .page-numbers.current, .rx-pagination a.page-numbers:hover {
	background: var(--rx-accent); border-color: var(--rx-accent); color: #fff;
}

/* ---------- Single ---------- */
.rx-hero { background: var(--rx-hero); color: #fff; padding: 70px 0 64px; text-align: center; position: relative; }
.rx-hero.has-image { background-size: cover; background-position: center; }
.rx-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.rx-hero .rx-wrap { position: relative; max-width: 900px; }
.rx-hero .rx-cat a {
	background: #000; color: #fff; padding: 4px 10px; font-size: 10px; letter-spacing: .8px; border-radius: 2px;
	display: inline-block; margin: 0 2px;
}
html[data-theme="dark"] .rx-hero .rx-cat a { background: var(--rx-accent); }
.rx-hero .rx-cat a + a::before { content: none; }
.rx-hero .rx-cat a:hover { background: var(--rx-accent); }
.rx-hero h1 { color: #fff; font-size: var(--rx-size-title, 42px); line-height: 1.25; margin: 20px auto 18px; letter-spacing: -.4px; }
.rx-hero .rx-meta, .rx-hero .rx-meta a { color: rgba(255,255,255,.75); }
.rx-hero .rx-meta a:hover { color: #fff; }

.rx-breadcrumbs { font-size: 12px; color: var(--rx-muted); margin-bottom: 26px; }
.rx-breadcrumbs a { color: var(--rx-muted); }
.rx-breadcrumbs a:hover { color: var(--rx-accent); }
.rx-breadcrumbs .sep { margin: 0 6px; }
.rx-hero .rx-breadcrumbs { margin: 0 0 18px; }
.rx-hero .rx-breadcrumbs, .rx-hero .rx-breadcrumbs a { color: rgba(255,255,255,.6); }

.rx-featured-image { margin: 0 0 34px; }
.rx-featured-image img { width: 100%; display: block; border-radius: var(--rx-radius); }
.rx-featured-image figcaption { font-size: 13px; color: var(--rx-muted); text-align: center; margin-top: 8px; }

.rx-entry { font-family: var(--rx-font-body); font-size: var(--rx-size-content, 18px); line-height: 1.8; color: var(--rx-text); overflow-wrap: break-word; }
.rx-entry > * { margin-top: 0; margin-bottom: 1.4em; }
.rx-entry h2, .rx-entry h3, .rx-entry h4 { margin-top: 1.7em; margin-bottom: .7em; }
.rx-entry h2 { font-size: 27px; }
.rx-entry h3 { font-size: 22px; }
.rx-entry h4 { font-size: 19px; }
.rx-entry a { color: var(--rx-accent); text-decoration: underline; text-underline-offset: 3px; }
.rx-entry strong { color: var(--rx-heading); }
.rx-entry ul, .rx-entry ol { padding-left: 1.4em; }
.rx-entry li { margin-bottom: .5em; }
.rx-entry blockquote {
	margin-left: 0; margin-right: 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--rx-accent);
	font-style: italic; font-size: 21px; color: var(--rx-heading);
}
.rx-entry img { border-radius: var(--rx-radius); }
.rx-entry figcaption, .wp-caption-text { font-family: var(--rx-font-ui); font-size: 13px; color: var(--rx-muted); text-align: center; margin-top: 8px; }
.rx-entry table { width: 100%; border-collapse: collapse; font-family: var(--rx-font-ui); font-size: 15px; }
.rx-entry th, .rx-entry td { border: 1px solid var(--rx-border); padding: 10px 12px; text-align: left; }
.rx-entry th { background: var(--rx-soft); color: var(--rx-heading); }
.rx-entry pre { background: var(--rx-soft); padding: 18px; overflow-x: auto; font-size: 14px; border-radius: var(--rx-radius); }
.rx-entry code { font-size: .88em; background: var(--rx-soft); padding: 2px 5px; border-radius: 3px; }
.rx-entry pre code { padding: 0; background: none; }
.rx-entry .alignleft { float: left; margin: .3em 1.6em 1em 0; }
.rx-entry .alignright { float: right; margin: .3em 0 1em 1.6em; }
.rx-entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rx-entry::after { content: ""; display: table; clear: both; }

.rx-page-links { font-family: var(--rx-font-ui); font-size: 14px; font-weight: 500; }

.rx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.rx-tags a {
	font-size: 12px; font-weight: 500; padding: 5px 12px; border: 1px solid var(--rx-border); border-radius: 2px; color: var(--rx-text);
}
.rx-tags a:hover { border-color: var(--rx-accent); color: var(--rx-accent); }

.rx-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--rx-border); }
.rx-share-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--rx-heading); margin-right: 6px; }
.rx-share a {
	display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; padding: 7px 14px;
	background: var(--rx-soft); border-radius: var(--rx-radius); color: var(--rx-heading);
}
.rx-share a:hover { background: var(--rx-accent); color: #fff; }
.rx-share svg { width: 13px; height: 13px; fill: currentColor; }

.rx-author-box { display: flex; gap: 22px; margin-top: 40px; padding: 28px; background: var(--rx-soft); border-radius: var(--rx-radius); }
.rx-author-box img { border-radius: 50%; flex-shrink: 0; width: 80px; height: 80px; }
.rx-author-box h3 { font-size: 17px; margin: 0 0 6px; }
.rx-author-box p { margin: 0; font-size: 14px; line-height: 1.7; }

.rx-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; padding: 26px 0; border-top: 1px solid var(--rx-border); border-bottom: 1px solid var(--rx-border); }
.rx-post-nav .label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; color: var(--rx-muted); margin-bottom: 4px; }
.rx-post-nav a { font-weight: 700; font-size: 15px; line-height: 1.45; display: block; }
.rx-post-nav .next { text-align: right; }

.rx-related { margin-top: 50px; }
.rx-related h2 { font-size: 21px; }
.rx-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rx-related .rx-card-thumb { margin-bottom: 12px; }
.rx-related .rx-card-title { font-size: 15px; margin: 4px 0 0; }

/* ---------- Comments ---------- */
.rx-comments { margin-top: 50px; }
.rx-comments h2, .comment-reply-title { font-size: 21px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--rx-border); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--rx-heading); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; margin: 4px 0 10px 60px; }
.comment-metadata a { color: var(--rx-muted); }
.comment-content { margin-left: 60px; }
.reply { margin-left: 60px; font-size: 13px; font-weight: 500; }
.comment-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--rx-heading); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius); background: var(--rx-bg);
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- Sidebar & widgets ---------- */
.rx-sidebar .widget { margin-bottom: 44px; font-size: 14px; }
.rx-sidebar.is-sticky .rx-sidebar-inner { position: sticky; top: 100px; }
.widget-title, .rx-sidebar .wp-block-heading {
	font-size: 19px; margin: 0 0 22px; padding-bottom: 12px; position: relative;
	color: var(--rx-widget-title, var(--rx-heading));
}
.widget-title::after, .rx-sidebar .wp-block-heading::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--rx-accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--rx-border); }
.widget li:last-child { border-bottom: 0; }
.widget select { width: 100%; padding: 10px; border: 1px solid var(--rx-border); background: var(--rx-bg); }

.rx-widget-posts li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.rx-widget-posts .thumb { flex: 0 0 86px; aspect-ratio: 1; border-radius: var(--rx-radius); overflow: hidden; background: var(--rx-soft); }
.rx-widget-posts .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-widget-posts .title { font-weight: 700; font-size: 14px; line-height: 1.45; display: block; margin: 2px 0 6px; }

/* ---------- Ads ---------- */
.rx-ad-slot { text-align: center; margin: 0 auto 40px; max-width: 100%; overflow: hidden; clear: both; }
.rx-ad-slot.rx-ad-header { margin: 26px auto 0; }
.rx-ad-slot.rx-ad-in-content, .rx-ad-slot.rx-ad-before-content, .rx-ad-slot.rx-ad-after-content { margin: 34px auto; }
.rx-ad-slot.rx-ad-footer { margin: 0 auto 40px; }
.rx-ad-slot.rx-ad-sidebar { margin: 0 auto 44px; }
.rx-ad-label {
	display: block; font-family: var(--rx-font-ui); font-size: 10px; letter-spacing: 1px;
	text-transform: uppercase; color: var(--rx-muted); margin-bottom: 6px; line-height: 1.4;
}
.rx-ad-header ins.adsbygoogle, .rx-ad-in-content ins.adsbygoogle { min-height: 100px; }
.rx-ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* ---------- Footer ---------- */
.rx-footer { background: var(--rx-footer-bg, var(--rx-soft)); color: var(--rx-footer-text, var(--rx-text)); padding: 60px 0 0; margin-top: 20px; font-size: 14px; }
.rx-footer.no-widgets { padding-top: 0; }
.rx-footer-widgets { display: grid; grid-template-columns: repeat(var(--rx-footer-cols, 3), minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; }
.rx-footer-dark .rx-footer { background: var(--rx-footer-bg, #141416); color: var(--rx-footer-text, #a9a9b0); --rx-border: #2a2a30; }
.rx-footer-dark .rx-footer a, .rx-footer-dark .rx-footer .widget-title, .rx-footer-dark .rx-footer h2, .rx-footer-dark .rx-footer h3 { color: #fff; }
.rx-footer-dark .rx-footer a:hover { color: var(--rx-accent); }
.rx-footer-dark .rx-footer .rx-footer-bottom p { color: #8b8b93; }
.rx-footer-social { display: flex; gap: 2px; }
.rx-footer .rx-icon-btn { color: inherit; }
.rx-footer-wide { padding: 50px 0; border-top: 1px solid var(--rx-border); }
.rx-footer-wide .widget:last-child { margin-bottom: 0; }
.rx-footer .widget { margin-bottom: 20px; }
.rx-footer-bottom {
	border-top: 1px solid var(--rx-border); padding: 24px 0;
	display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.rx-footer-bottom p { margin: 0; color: var(--rx-muted); font-size: 13px; }
.rx-footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rx-footer-menu a { font-size: 13px; font-weight: 500; }

.rx-back-top {
	position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; border: 0;
	background: var(--rx-accent); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: all .25s; z-index: 40;
	display: flex; align-items: center; justify-content: center;
}
.rx-back-top.is-visible { opacity: 1; visibility: visible; }
.rx-back-top svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Misc ---------- */
.rx-404 { text-align: center; padding: 40px 0; }
.rx-404 .big { font-size: 110px; font-weight: 700; color: var(--rx-accent); line-height: 1; margin: 0 0 10px; }
.rx-404 .rx-search-form { max-width: 480px; margin: 26px auto 0; }

.rx-no-results .rx-search-form { max-width: 480px; margin-top: 20px; }

.sticky .rx-card-title::before {
	content: "Featured"; display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .6px;
	background: var(--rx-accent); color: #fff; padding: 2px 8px; border-radius: 2px; margin-right: 8px; vertical-align: 4px;
}
.bypostauthor > .comment-body .fn::after { content: " \2022 Author"; color: var(--rx-accent); font-size: 12px; }
.gallery-caption { font-size: 13px; }
.alignwide, .alignfull { max-width: 100%; }

/* ---------- Top bar ---------- */
.rx-topbar { background: var(--rx-hero); color: rgba(255,255,255,.75); font-size: 12px; }
.rx-topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.rx-topbar-date { font-weight: 500; color: #fff; white-space: nowrap; }
.rx-topbar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-topbar-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.rx-topbar a { color: rgba(255,255,255,.85); }
.rx-topbar a:hover { color: #fff; }
.rx-topbar .rx-social { margin: 0 0 0 auto; }
.rx-topbar .rx-icon-btn { color: rgba(255,255,255,.85); width: 30px; height: 30px; }
.rx-topbar .rx-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Centered header ---------- */
.rx-header-centered .rx-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 96px; }
.rx-header-centered .rx-logo { justify-content: center; }
.rx-header-centered .rx-header-left { display: flex; align-items: center; }
.rx-header-centered .rx-header-left .rx-social { margin: 0; }
.rx-header-centered .rx-header-tools { justify-content: flex-end; }
.rx-header-centered .rx-nav-row { border-top: 1px solid var(--rx-border); }
.rx-header-centered .rx-nav > ul { justify-content: center; gap: 4px 30px; }
.rx-header-centered .rx-nav a { line-height: 56px; }
.rx-header-centered .rx-logo img { max-height: calc(var(--rx-logo-h, 44px) * 1.3); }

/* ---------- Left sidebar ---------- */
.rx-sidebar-left .rx-layout { grid-template-columns: 320px minmax(0, 1fr); }
.rx-sidebar-left .rx-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.rx-sidebar-left .rx-sidebar { order: -1; }

/* ---------- Classic listing ---------- */
.rx-classic .rx-card + .rx-card, .rx-classic .rx-ad-slot + .rx-card { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--rx-border); }
.rx-classic .rx-card-thumb { aspect-ratio: 16 / 9; margin-bottom: 24px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); }
.rx-classic .rx-card-title { font-size: 30px; line-height: 1.3; }
.rx-classic .rx-card-excerpt { font-size: 16px; }

/* ---------- Classic single header ---------- */
.rx-single-classic { padding-top: 46px; }
.rx-single-classic .rx-title { font-size: var(--rx-size-title, 42px); line-height: 1.25; margin: 14px 0 16px; }
.rx-single-classic .rx-featured-image { margin-top: 26px; }
.rx-single-head { margin-bottom: 30px; }

/* ---------- Homepage sections ---------- */
.rx-home-top { padding-top: 40px; }
.rx-home-top .rx-block { margin-bottom: 40px; }
.rx-cta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px; }
.rx-cta-box {
	position: relative; display: flex; align-items: center; justify-content: center; min-height: 150px; padding: 20px;
	border-radius: var(--rx-radius); overflow: hidden; background: var(--rx-hero); text-align: center;
}
.rx-cta-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rx-cta-box::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); transition: background .3s; }
.rx-cta-box:hover img { transform: scale(1.05); }
.rx-cta-box:hover::after { background: rgba(0,0,0,.55); }
.rx-cta-title {
	position: relative; z-index: 1; color: #fff; font-family: var(--rx-font-heading, var(--rx-font-ui)); font-weight: 700; font-size: 15px;
	text-transform: uppercase; letter-spacing: 1.5px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.7);
}
.rx-home-subscribe { margin: 0 0 40px; }
.rx-home-subscribe .rx-newsletter.is-boxed { padding: 44px 30px; }
.rx-home-subscribe .rx-newsletter-form { flex-direction: row; max-width: 560px; }
.rx-home-subscribe .rx-newsletter-form .rx-btn { width: auto; flex-shrink: 0; }
.rx-home-subscribe .rx-newsletter-form input[type="email"] { text-align: left; }
.rx-home-widgets .rx-block, .rx-home-widgets .widget { margin-bottom: 60px; }
.rx-home-lower { padding-top: 0; }

/* ---------- Load more / older-newer ---------- */
.rx-load-more-wrap { text-align: center; margin-top: 50px; }
.rx-load-more { min-width: 180px; }
.rx-load-more[disabled] { opacity: .6; cursor: wait; }
.rx-older-newer { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; }
.rx-older-newer a { font-weight: 500; font-size: 14px; border: 1px solid var(--rx-border); padding: 10px 18px; border-radius: var(--rx-radius); }
.rx-older-newer a:hover { border-color: var(--rx-accent); }

/* ---------- Pinterest button ---------- */
.rx-pin-wrap { position: relative; display: inline-block; max-width: 100%; }
.rx-pin-wrap img { display: block; }
.rx-pin-btn {
	position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
	background: #e60023; color: #fff !important; font-family: var(--rx-font-ui); font-size: 13px; font-weight: 700;
	padding: 7px 12px; border-radius: 20px; text-decoration: none !important; opacity: 0; transition: opacity .2s;
}
.rx-pin-btn svg { width: 14px; height: 14px; fill: currentColor; }
.rx-pin-wrap:hover .rx-pin-btn, .rx-pin-btn:focus { opacity: 1; }
@media (hover: none) { .rx-pin-btn { opacity: 1; } }

/* ---------- Cookie notice ---------- */
.rx-cookie {
	position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90; max-width: 720px; margin: 0 auto;
	display: none; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 6px;
	background: var(--rx-hero); color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.6; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.rx-cookie.is-visible { display: flex; }
.rx-cookie p { margin: 0; flex: 1; }
.rx-cookie a { color: #fff; text-decoration: underline; }
.rx-cookie .rx-btn { flex-shrink: 0; padding: 9px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.rx-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
	.rx-social { display: none; }
}

@media (max-width: 900px) {
	.rx-menu-toggle { display: inline-flex; }
	.rx-header-inner { gap: 12px; min-height: 64px; }
	.rx-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rx-bg);
		border-bottom: 1px solid var(--rx-border); padding: 10px 24px 18px; max-height: 75vh; overflow-y: auto;
		box-shadow: 0 10px 30px rgba(0,0,0,.06);
	}
	.rx-nav.is-open { display: block; }
	.rx-nav > ul { display: block; }
	.rx-nav a { line-height: 1.5; padding: 11px 0; border-bottom: 1px solid var(--rx-border); }
	.rx-nav .sub-menu, .rx-nav .sub-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none;
		padding: 0 0 0 16px; min-width: 0;
	}
	.rx-nav .sub-menu a { padding: 9px 0; }
	.rx-layout { grid-template-columns: minmax(0, 1fr); }
	.rx-sidebar.is-sticky .rx-sidebar-inner { position: static; }
	.rx-footer-widgets { grid-template-columns: 1fr 1fr; }
	.rx-hero h1 { font-size: 34px; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.rx-wrap { padding: 0 16px; }
	.rx-main { padding: 32px 0 44px; }
	.rx-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.rx-feature { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.rx-feature .rx-card-title { font-size: 23px; }
	.rx-list .rx-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rx-hero { padding: 46px 0 42px; }
	.rx-hero h1 { font-size: 27px; }
	.rx-entry { font-size: 17px; }
	.rx-entry h2 { font-size: 23px; }
	.rx-related-grid { grid-template-columns: minmax(0, 1fr); }
	.rx-post-nav { grid-template-columns: 1fr; }
	.rx-post-nav .next { text-align: left; }
	.rx-footer-widgets { grid-template-columns: 1fr; }
	.rx-author-box { flex-direction: column; }
	.rx-footer-bottom { flex-direction: column; align-items: flex-start; }
	.comment-list .children { padding-left: 16px; }
}

@media (max-width: 900px) {
	.rx-header-centered .rx-header-inner { display: flex; min-height: 64px; }
	.rx-header-centered .rx-header-left { display: none; }
	.rx-header-centered .rx-logo { justify-content: flex-start; }
	.rx-header-centered .rx-header-tools { margin-left: auto; }
	.rx-header-centered .rx-nav-row { border-top: 0; }
	.rx-header-centered .rx-nav a { line-height: 1.5; }
	.rx-sidebar-left .rx-layout { grid-template-columns: minmax(0, 1fr); }
	.rx-sidebar-left .rx-sidebar { order: 0; }
	.rx-topbar-text, .rx-topbar-menu { display: none; }
	.rx-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.rx-cta-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.rx-logo.has-mobile .rx-logo-main, .rx-logo.has-mobile .rx-logo-dark { display: none !important; }
	.rx-logo.has-mobile .rx-logo-mobile { display: block; }
	.rx-cta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.rx-cta-box { min-height: 110px; }
	.rx-cta-box:last-child:nth-child(odd) { grid-column: auto; }
	.rx-home-subscribe .rx-newsletter-form { flex-direction: column; }
	.rx-home-subscribe .rx-newsletter-form .rx-btn { width: 100%; }
	.rx-classic .rx-card-title { font-size: 23px; }
	.rx-single-classic .rx-title { font-size: 28px; }
	.rx-cookie { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
	.rx-home-top { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.rx-header, .rx-sidebar, .rx-footer, .rx-ad-slot, .rx-share, .rx-related, .rx-comments, .rx-back-top { display: none !important; }
	.rx-layout { display: block; }
	.rx-hero { background: none; color: #000; padding: 0; }
	.rx-hero h1 { color: #000; }
}
