/* RavixAds blocks */

.rx-block { margin: 0 0 60px; font-family: var(--rx-font-ui, Roboto, Arial, sans-serif); }
.rx-block:last-child { margin-bottom: 0; }
.rx-block .rx-card-excerpt { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--rx-text); }
.rx-block .rx-card-title { font-size: 19px; margin: 8px 0 8px; }
.rx-block-empty { padding: 16px; background: var(--rx-soft); border: 1px dashed var(--rx-border); font-size: 13px; color: var(--rx-muted); margin: 0; }

.rx-block-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--rx-border);
}
.rx-block-title { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.3; color: var(--rx-heading); }
.rx-view-all { font-size: 12px; font-weight: 500; color: var(--rx-muted); white-space: nowrap; text-decoration: none; }
.rx-view-all::after { content: " \2192"; }
.rx-view-all:hover { color: var(--rx-accent); }

.rx-block a { text-decoration: none; }

/* Grids */
.rx-bgrid { display: grid; gap: 40px 30px; }
.rx-bgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rx-bgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 26px; }
.rx-bgrid--3 .rx-card-title { font-size: 17px; }

/* News grid */
.rx-news { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.rx-news-main .rx-card-title { font-size: 23px; }
.rx-news-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.rx-card--mini .rx-card-thumb { margin-bottom: 10px; }
.rx-card--mini .rx-card-title { font-size: 15px; line-height: 1.45; margin: 0; }

/* List */
.rx-blist .rx-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; }
.rx-blist .rx-card.no-thumb { grid-template-columns: minmax(0, 1fr); }
.rx-blist .rx-card + .rx-card { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--rx-border); }
.rx-blist .rx-card-thumb { margin: 0; }

/* Classic */
.rx-bclassic .rx-card + .rx-card { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--rx-border); }
.rx-bclassic .rx-card-thumb { aspect-ratio: 16 / 9; margin-bottom: 24px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); }
.rx-bclassic .rx-card-title { font-size: 28px; line-height: 1.3; }
.rx-bclassic .rx-card-excerpt { font-size: 15px; }
.rx-older { text-align: center; margin: 40px 0 0; }

/* Small (sidebar) */
.rx-bsmall { list-style: none; margin: 0; padding: 0; }
.rx-bsmall-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rx-border); }
.rx-bsmall-item:first-child { padding-top: 0; }
.rx-bsmall-item:last-child { border-bottom: 0; }
.rx-bsmall-item .thumb { flex: 0 0 86px; aspect-ratio: 1; border-radius: var(--rx-radius, 4px); overflow: hidden; background: var(--rx-soft); }
.rx-bsmall-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-bsmall-item .title { display: block; font-weight: 700; font-size: 14px; line-height: 1.45; margin: 2px 0 6px; color: var(--rx-heading); }
.rx-bsmall-item .title:hover { color: var(--rx-accent); }
.rx-bsmall.is-big .rx-bsmall-item { display: block; padding: 0 0 24px; margin-bottom: 24px; }
.rx-bsmall.is-big .thumb { display: block; aspect-ratio: 4 / 3; margin-bottom: 14px; }
.rx-bsmall.is-big .title { font-size: 16px; }

/* Featured grid (overlay tiles) */
.rx-fgrid { display: grid; gap: 6px; }
.rx-fgrid--1-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; }
.rx-fgrid--1-4 .is-big { grid-row: 1 / 3; }
.rx-fgrid--1-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 250px 250px; }
.rx-fgrid--1-2 .is-big { grid-row: 1 / 3; }
.rx-fgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 380px; }

.rx-tile, .rx-slide { position: relative; overflow: hidden; background: var(--rx-hero, #191919); border-radius: var(--rx-radius, 4px); }
.rx-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rx-tile:hover .rx-tile-img { transform: scale(1.05); }
.rx-tile::after, .rx-slide::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
}
.rx-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 2; color: #fff; }
.rx-tile-body .rx-cat a {
	background: var(--rx-accent); color: #fff; padding: 3px 9px; border-radius: 2px; font-size: 10px; letter-spacing: .8px; display: inline-block;
}
.rx-tile-body .rx-cat a + a::before { content: none; }
.rx-tile-title { font-size: 17px; line-height: 1.35; margin: 10px 0 6px; color: #fff; }
.rx-tile.is-big .rx-tile-title { font-size: 30px; }
.rx-tile-title a { color: #fff; }
.rx-tile-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rx-tile-link { position: absolute; inset: 0; z-index: 1; }
.rx-tile::after, .rx-slide::after { z-index: 1; }
.rx-tile-body { pointer-events: none; }
.rx-tile-body a { pointer-events: auto; }
.rx-tile-body .rx-meta, .rx-tile-body .rx-meta a { color: rgba(255,255,255,.8); }

/* Slider */
.rx-slider { position: relative; height: var(--rx-slider-h, 520px); border-radius: var(--rx-radius, 4px); overflow: hidden; background: var(--rx-hero, #191919); }
.rx-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.rx-slides::-webkit-scrollbar { display: none; }
.rx-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; border-radius: 0; }
.rx-slide .rx-tile-body { max-width: 760px; left: 50%; transform: translateX(-50%); text-align: center; padding: 0 30px 70px; }
.rx-slide .rx-tile-title { font-size: 40px; line-height: 1.2; margin: 16px 0 12px; }
.rx-tile-excerpt { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); }
.rx-slider-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px);
}
.rx-slider-btn:hover { background: var(--rx-accent); }
.rx-slider-btn.prev { left: 20px; }
.rx-slider-btn.next { right: 20px; }
.rx-slider-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.rx-slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); transition: all .3s; }
.rx-slider-dots span.is-active { background: #fff; width: 24px; border-radius: 4px; }

/* Ad */
.rx-ad-block { margin: 0 auto; }
.rx-ad-placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 100px; padding: 20px;
	background: var(--rx-soft); border: 1px dashed var(--rx-border); text-align: center; font-size: 13px; color: var(--rx-muted);
}
.rx-ad-placeholder strong { color: var(--rx-heading); font-size: 14px; }

/* Newsletter */
.rx-newsletter { text-align: center; }
.rx-newsletter.is-boxed { background: var(--rx-soft); padding: 34px 28px; border-radius: var(--rx-radius, 4px); }
.rx-newsletter-title { font-size: 21px; margin: 0 0 10px; }
.rx-newsletter-title::after { content: ""; display: block; width: 28px; height: 2px; background: var(--rx-heading); margin: 12px auto 0; }
.rx-newsletter-text { font-size: 14px; margin: 0 0 20px; color: var(--rx-text); }
.rx-newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 auto; }
.rx-newsletter-form input[type="email"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--rx-border); border-radius: var(--rx-radius, 4px);
	background: var(--rx-bg); text-align: center; font-size: 14px;
}
.rx-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--rx-accent); }
.rx-newsletter-form .rx-btn { width: 100%; }
.rx-newsletter-note { font-size: 12px; color: var(--rx-muted); margin: 12px 0 0; }

/* Social follow */
.rx-follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rx-follow-item {
	display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--rx-radius, 4px);
	color: #fff; font-size: 13px; font-weight: 500; background: #333;
}
.rx-follow-item:hover { color: #fff; filter: brightness(1.1); }
.rx-follow-item svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.rx-follow--facebook { background: #3b5998; }
.rx-follow--x { background: #111; }
.rx-follow--instagram { background: #c13584; }
.rx-follow--youtube { background: #e62117; }
.rx-follow--pinterest { background: #cb2027; }
.rx-follow--linkedin { background: #0a66c2; }
.rx-follow--tiktok { background: #010101; }
.rx-follow--telegram { background: #229ed9; }
.rx-follow--whatsapp { background: #25d366; }
.rx-follow--reddit { background: #ff4500; }
.rx-follow--vimeo { background: #1ab7ea; }
.rx-follow--twitch { background: #9146ff; }
.rx-follow--soundcloud { background: #ff5500; }
.rx-follow-item .count { font-weight: 700; }
.rx-follow-item .count-label { opacity: .85; font-weight: 400; }
.rx-follow-style--icons { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-follow-style--icons .rx-follow-item { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.rx-follow-style--icons .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* About */
.rx-about { text-align: center; }
.rx-about-img { display: block; width: 100%; height: auto; margin: 0 auto 16px; border-radius: var(--rx-radius, 4px); }
.rx-about.is-round .rx-about-img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
.rx-about-name { font-weight: 700; font-size: 17px; color: var(--rx-heading); margin: 0 0 8px; }
.rx-about-text { font-size: 14px; line-height: 1.7; margin: 0; }
.rx-about .rx-read-more { margin-top: 14px; }

/* Homepage template */
.rx-home { padding: 50px 0 60px; }
.rx-home .wp-block-columns { gap: 50px; margin-bottom: 60px; }
.rx-home .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.rx-home .alignfull.rx-block--slider .rx-slider { border-radius: 0; }

/* Blocks in the sidebar keep sidebar spacing */
.rx-sidebar .rx-block { margin-bottom: 44px; }
.rx-sidebar .rx-block-title, .rx-sidebar .rx-newsletter-title { font-size: 19px; }
.rx-sidebar .rx-bgrid--2, .rx-sidebar .rx-bgrid--3, .rx-sidebar .rx-news, .rx-sidebar .rx-news-side { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1000px) {
	.rx-bgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rx-news { grid-template-columns: minmax(0, 1fr); }
	.rx-fgrid--1-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 210px 210px; }
	.rx-fgrid--1-4 .is-big { grid-row: auto; grid-column: 1 / -1; }
	.rx-slide .rx-tile-title { font-size: 32px; }
}

@media (max-width: 640px) {
	.rx-block { margin-bottom: 44px; }
	.rx-bgrid--2, .rx-bgrid--3 { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.rx-news-side { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
	.rx-blist .rx-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.rx-bclassic .rx-card-title { font-size: 23px; }
	.rx-fgrid--1-4, .rx-fgrid--1-2, .rx-fgrid--3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 240px; }
	.rx-fgrid .is-big { grid-row: auto; grid-column: auto; }
	.rx-tile.is-big .rx-tile-title { font-size: 22px; }
	.rx-slider { height: min(var(--rx-slider-h, 520px), 440px); }
	.rx-slide .rx-tile-body { padding: 0 20px 56px; }
	.rx-slide .rx-tile-title { font-size: 24px; }
	.rx-tile-excerpt { display: none; }
	.rx-slider-btn { display: none; }
	.rx-home { padding: 30px 0 44px; }
}
