/*
Theme Name: Ravina Health
Theme URI: https://www.ravinahospital.com/
Author: Ravina Hospital web team
Description: Light, fast, accessible multispeciality-hospital theme (v1.1 design refresh) for Ravina Hospital, Maduravoyal, Chennai. Horizontal header menu with dropdowns and a mega menu, sticky header, mobile off-canvas navigation and quick-action bar. Designed for Elementor / Elementor Pro (Theme Builder locations supported) together with the Ravina Hospital Core plugin.
Version: 1.1.1
Requires at least: 6.0
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: ravina-health
Tags: medical, light, custom-menu, custom-logo, featured-images, accessibility-ready
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff") format("woff"); }

:root {
	--rv-primary: #251170; --rv-primary-600: #3a2a93; --rv-primary-050: #f1effa;
	--rv-accent: #e47919; --rv-accent-050: #fff4ea; --rv-accent-ink: #1a0b57;
	--rv-blue: #1c6dd0; --rv-red: #c62828; --rv-red-050: #fdecec;
	--rv-text: #1f2433; --rv-muted: #5b6275; --rv-soft: #f4f6fb; --rv-border: #e3e7ef;
	--rv-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--rv-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--rv-header-h: 62px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--rv-font-body); font-size: 16px; line-height: 1.65; color: var(--rv-text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--rv-blue); }
a:hover { color: var(--rv-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--rv-font-head); color: var(--rv-primary); line-height: 1.25; }
:focus-visible { outline: 3px solid #f6a04d; outline-offset: 2px; border-radius: 4px; }
.rv-container { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.rv-skip { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--rv-primary); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.rv-skip:focus { top: 12px; color: #fff; }
.rv-main { display: block; outline: none; }
.rv-main > .elementor { overflow-x: clip; }

/* ---------- Top bar (indigo) ---------- */
.rv-topbar { background: linear-gradient(90deg, #1b0b5a 0%, #251170 55%, #2f1a86 100%); color: rgba(255, 255, 255, .86); font-size: .84rem; position: relative; z-index: 901; }
.rv-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.rv-topbar ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; }
.rv-topbar a { color: #fff; text-decoration: none; }
.rv-topbar a:hover { color: #ffc58f; }
.rv-topbar i { margin-right: 6px; color: #f6a04d; }
.rv-topbar-info li + li { position: relative; }
.rv-topbar-info li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255, 255, 255, .22); }
.rv-top-em { display: inline-flex; align-items: center; gap: 6px; background: #d32f2f; color: #fff !important; padding: 5px 14px 5px 12px; border-radius: 999px; font-weight: 500; box-shadow: 0 4px 14px rgba(211, 47, 47, .35); }
.rv-top-em:hover { background: #b71c1c; color: #fff !important; }
.rv-top-em i { color: #fff !important; margin-right: 0 !important; }
.rv-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; position: relative; flex: 0 0 auto; }
.rv-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; animation: rv-pulse 1.6s ease-out infinite; }
@keyframes rv-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.rv-topbar .fa-whatsapp { font-size: 1.2rem; color: #4ade80 !important; margin: 0 !important; }

/* ---------- Header: logo row + full-width menu bar ---------- */
.rv-header { --rv-brandrow: 100px; position: sticky; top: calc(-1 * var(--rv-brandrow)); z-index: 900; background: #fff; transition: box-shadow .25s; }
.admin-bar .rv-header { top: calc(32px - var(--rv-brandrow)); }
.rv-header.is-scrolled { box-shadow: 0 12px 34px rgba(23, 20, 66, .16); }
.rv-header .rv-container, .rv-topbar .rv-container { max-width: 1320px; }
.rv-header-in { display: flex; align-items: center; gap: 24px; min-height: var(--rv-brandrow); }
.rv-brand { flex: 0 0 auto; }
.rv-brand a { display: block; }
.rv-brand img, .rv-brand .custom-logo { display: block; height: 74px; width: auto; }
.rv-binfo-wrap { display: flex; align-items: center; margin-left: auto; }
.rv-binfo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rv-primary); padding: 0 24px; }
.rv-binfo + .rv-binfo { border-left: 1px solid #e7e4f4; }
.rv-binfo-ico { width: 46px; height: 46px; border-radius: 50%; background: #f1effa; color: var(--rv-primary); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto; transition: background .2s, color .2s; }
.rv-binfo:hover .rv-binfo-ico { background: var(--rv-primary); color: #fff; }
.rv-binfo--em .rv-binfo-ico { background: #fdecec; color: #d32f2f; }
.rv-binfo--em:hover .rv-binfo-ico { background: #d32f2f; color: #fff; }
.rv-binfo--em strong { color: #c62828; }
.rv-binfo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.rv-binfo-txt small { font-size: .76rem; color: var(--rv-muted); text-transform: uppercase; letter-spacing: .06em; }
.rv-binfo-txt strong { font-family: var(--rv-font-head); font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.rv-header-cta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.rv-header-book { padding: 14px 24px; font-size: .95rem; box-shadow: 0 10px 24px rgba(228, 121, 25, .28); }

/* Menu bar */
.rv-navrow { background: linear-gradient(90deg, #1b0b5a 0%, #251170 50%, #2f1a86 100%); position: relative; }
.rv-navrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--rv-accent), #f6b26b 50%, var(--rv-accent)); }
.rv-navrow-in { display: flex; align-items: stretch; position: relative; }
.rv-nav { flex: 1 1 auto; display: flex; }
.rv-nav-head, .rv-nav-mobile-cta { display: none; }
.rv-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; justify-content: space-between; width: 100%; }
.rv-menu > li { position: relative; display: flex; align-items: center; }
.rv-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 19px 14px 20px; font-family: var(--rv-font-head); font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .92); text-decoration: none; white-space: nowrap; position: relative; transition: color .2s, background .2s; }
.rv-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px 3px 0 0; background: #ffc58f; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.rv-menu > li:hover > a, .rv-menu > li:focus-within > a { color: #fff; background: rgba(255, 255, 255, .07); }
.rv-menu > li.current-menu-item > a, .rv-menu > li.current-menu-ancestor > a, .rv-menu > li.current-page-ancestor > a { color: #ffc58f; }
.rv-menu > li:hover > a::after, .rv-menu > li.current-menu-item > a::after, .rv-menu > li.current-menu-ancestor > a::after, .rv-menu > li.current-page-ancestor > a::after { transform: scaleX(1); }
.rv-sub-toggle { border: 0; background: transparent; color: rgba(255, 255, 255, .6); padding: 4px 10px 4px 0; margin-left: -12px; cursor: pointer; font-size: .66rem; display: inline-flex; align-items: center; align-self: stretch; }
.rv-menu > li:hover > .rv-sub-toggle, .rv-menu > li.is-open > .rv-sub-toggle { color: #ffc58f; background: rgba(255, 255, 255, .07); }
.rv-menu > li:hover > .rv-sub-toggle i, .rv-menu > li.is-open > .rv-sub-toggle i { transform: rotate(180deg); }
.rv-sub-toggle i { transition: transform .2s; }
.rv-navbook { display: none; align-items: center; gap: 8px; margin: 9px 0 12px 14px; padding: 0 18px; border-radius: 999px; background: var(--rv-accent); color: var(--rv-accent-ink); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.rv-navbook:hover { background: #f08a2c; color: var(--rv-accent-ink); }
.rv-header.is-scrolled .rv-navbook { display: inline-flex; }

/* Dropdowns */
.rv-menu .sub-menu {
	list-style: none; margin: 0; padding: 12px; position: absolute; top: 100%; left: 0; min-width: 290px;
	background: #fff; border: 1px solid rgba(37, 17, 112, .08); border-top: 0; border-radius: 0 0 18px 18px;
	box-shadow: 0 30px 70px rgba(23, 20, 66, .2), 0 2px 6px rgba(23, 20, 66, .05);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 50;
}
.rv-menu > li:hover > .sub-menu, .rv-menu > li:focus-within > .sub-menu, .rv-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.rv-menu .sub-menu li { position: relative; }
.rv-menu .sub-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 34px 10px 14px; border-radius: 10px; color: #2b2f40; text-decoration: none; font-size: .93rem; line-height: 1.35; position: relative; transition: background .18s, color .18s, padding .18s; }
.rv-menu .sub-menu a::after { content: "\f054"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: .62rem; position: absolute; right: 14px; top: 50%; transform: translate(-6px, -50%); opacity: 0; color: var(--rv-accent); transition: opacity .18s, transform .18s; }
.rv-menu .sub-menu a:hover, .rv-menu .sub-menu a:focus, .rv-menu .sub-menu .current-menu-item > a { background: linear-gradient(90deg, #f1effa, #fbfaff); color: var(--rv-primary); padding-left: 18px; }
.rv-menu .sub-menu a:hover::after, .rv-menu .sub-menu a:focus::after, .rv-menu .sub-menu .current-menu-item > a::after { opacity: 1; transform: translate(0, -50%); }
.rv-menu > li:last-child > .sub-menu, .rv-menu > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }

/* Mega menu (Specialities): spans the full menu bar */
@media (min-width: 1181px) { .rv-menu > li.rv-mega { position: static; } }
.rv-menu > li.rv-mega > .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; left: 0; right: 0; width: auto; padding: 22px 312px 22px 22px; min-height: 340px; }
.rv-menu > li.rv-mega > .sub-menu > li > a { padding-left: 10px; }
.rv-menu > li.rv-mega > .sub-menu > li > a:hover { padding-left: 12px; }
.rv-mi { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: .92rem; background: #f1effa; color: var(--rv-primary); transition: background .18s, color .18s; }
.rv-menu .sub-menu li:nth-child(3n+2) .rv-mi { background: #fff4ea; color: #b5560b; }
.rv-menu .sub-menu li:nth-child(3n+3) .rv-mi { background: #eaf3fd; color: var(--rv-blue); }
.rv-menu .sub-menu a:hover .rv-mi { background: var(--rv-primary) !important; color: #fff !important; }
.rv-mega-promo { position: absolute !important; top: 16px; right: 16px; bottom: 16px; width: 272px; border-radius: 16px; padding: 24px 22px; color: #fff; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
	background: radial-gradient(220px 160px at 100% 0%, rgba(228, 121, 25, .55), transparent 70%), linear-gradient(160deg, #2f1a86 0%, #1b0b5a 100%); }
.rv-mega-promo::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .06); }
.rv-mega-promo-ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #ffc58f; }
.rv-mega-promo strong { font-family: var(--rv-font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.3; color: #fff; }
.rv-mega-promo span { font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.rv-menu .sub-menu .rv-mega-promo a { padding: 10px 14px; margin-top: auto; justify-content: center; color: var(--rv-accent-ink) !important; background: var(--rv-accent); border-radius: 999px; }
.rv-menu .sub-menu .rv-mega-promo a::after { display: none; }
.rv-menu .sub-menu .rv-mega-promo a.rv-mega-call { margin-top: 0; background: rgba(255, 255, 255, .1); color: #fff !important; font-weight: 600; }
.rv-menu .sub-menu .rv-mega-promo a:hover { padding-left: 14px; filter: brightness(1.06); }

@media (min-width: 1181px) { .rv-top-em-li { display: none !important; } }
@media (min-width: 1181px) and (max-width: 1320px) {
	.rv-binfo--loc { display: none; }
	.rv-menu > li > a { padding-left: 10px; padding-right: 10px; font-size: .9rem; }
	.rv-menu > li > a::after { left: 10px; right: 10px; }
}
.rv-burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--rv-primary); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.rv-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.rv-burger span:nth-child(2) { width: 14px; margin-left: 6px; background: #f6a04d; }

/* Generic buttons (also in plugin css) */
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none !important; border: 2px solid transparent; cursor: pointer; font-family: var(--rv-font-body); transition: background .2s, transform .2s, box-shadow .2s; }
.rv-btn.rv-btn-accent { background: var(--rv-accent); color: var(--rv-accent-ink) !important; }
.rv-btn.rv-btn-accent:hover { background: #f08a2c; box-shadow: 0 8px 20px rgba(228, 121, 25, .3); }
.rv-btn.rv-btn-primary { background: var(--rv-primary); color: #fff !important; }
.rv-btn.rv-btn-light { background: #fff; color: var(--rv-primary) !important; border-color: var(--rv-border); }
.rv-btn.rv-btn-em { background: var(--rv-red); color: #fff !important; }
.rv-btn.rv-btn-em:hover { background: #a91f1f; }

/* ---------- Mobile navigation ---------- */
@media (max-width: 1180px) {
	.rv-burger { display: inline-flex; }
	.rv-header { --rv-brandrow: 76px; top: 0; }
	.admin-bar .rv-header { top: 32px; }
	.rv-binfo-wrap, .rv-navbook, .rv-header.is-scrolled .rv-navbook { display: none !important; }
	.rv-header-cta { margin-left: auto; }
	.rv-brand img, .rv-brand .custom-logo { height: 58px; }
	.rv-navrow { background: none; height: 0; }
	.rv-navrow::after { display: none; }
	.rv-navrow-in { padding: 0; }
	.rv-menu { width: auto; justify-content: flex-start; }
	.rv-menu > li > a { color: var(--rv-text); background: none !important; }
	.rv-menu > li.current-menu-item > a, .rv-menu > li:hover > a { color: var(--rv-primary); }
	.rv-sub-toggle { color: var(--rv-muted); background: none !important; align-self: auto; }
	.rv-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; z-index: 1001; flex-direction: column; justify-content: flex-start;
		transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; box-shadow: -20px 0 60px rgba(23, 20, 66, .18); padding-bottom: 24px;
	}
	.rv-nav-open .rv-nav { transform: translateX(0); }
	.rv-nav-open { overflow: hidden; }
	.rv-header { backdrop-filter: none; background: #fff; }
	.rv-nav-overlay { position: fixed; inset: 0; background: rgba(31, 36, 51, .35); z-index: 899; }
	.rv-nav-overlay[hidden] { display: none; }
	.rv-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rv-border); }
	.rv-nav-head img { height: 52px; width: auto; }
	.rv-nav-close { border: 0; background: var(--rv-soft); width: 42px; height: 42px; border-radius: 12px; font-size: 20px; color: var(--rv-primary); cursor: pointer; }
	.rv-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px; }
	.rv-menu > li { flex-wrap: wrap; border-bottom: 1px solid #eef0f5; }
	.rv-menu > li > a { padding: 14px 10px; flex: 1; font-size: 1rem; }
	.rv-menu > li > a::after { display: none; }
	.rv-sub-toggle { margin: 0; width: 44px; height: 44px; justify-content: center; font-size: .85rem; }
	.rv-menu .sub-menu, .rv-menu > li.rv-mega > .sub-menu { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 12px; background: var(--rv-soft); padding: 6px; margin: 0 0 10px; grid-template-columns: 1fr; }
	.rv-menu .sub-menu::before { display: none; }
	.rv-menu > li:hover > .sub-menu { display: none; }
	.rv-menu > li.is-open > .sub-menu, .rv-menu > li.rv-mega.is-open > .sub-menu { display: block; transform: none; }
	.rv-nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
	.rv-mega-promo { display: none !important; }
	.rv-menu > li.rv-mega > .sub-menu { padding: 6px; min-height: 0; }
	.rv-menu > li > a { font-family: var(--rv-font-head); }
	.rv-menu .sub-menu a { padding: 10px 12px; }
	.rv-menu .sub-menu a::after { display: none; }
	.rv-mi { flex-basis: 30px; width: 30px; height: 30px; font-size: .82rem; }
	.rv-nav-head { background: linear-gradient(120deg, #f1effa, #fff4ea); }
	.rv-header-book span { display: none; }
	.rv-header-book { padding: 12px 14px; }
}
@media (max-width: 782px) { .admin-bar .rv-header { top: 46px; } }
body { overflow-x: clip; }
@media (max-width: 600px) { .admin-bar .rv-header { top: 0; } }

/* ---------- Templates ---------- */
.rv-hero--compact { padding: 32px 0 44px !important; }
.rv-hero--compact h1 { margin-top: 10px; }
.rv-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 16px 0 0; color: var(--rv-muted); font-size: .92rem; }
.rv-meta i { color: var(--rv-accent); margin-right: 4px; }
.rv-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.rv-article-img { margin: 0 0 28px; }
.rv-article-img img { border-radius: 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rv-entry h2 { font-size: 1.55rem; margin: 1.6em 0 .6em; }
.rv-entry h2::after { display: none !important; }
.rv-entry h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; color: var(--rv-primary); }
.rv-entry ul, .rv-entry ol { padding-left: 1.3em; }
.rv-entry li { margin: .35em 0; }
.rv-answer { background: var(--rv-primary-050); border-left: 4px solid var(--rv-accent); padding: 16px 20px !important; border-radius: 0 12px 12px 0; font-size: 1.04rem; }
.rv-entry .rv-faq-sec { padding: 24px 0 0; background: none; }
.rv-entry .rv-faq-sec .rv-container { padding: 0; }
.rv-sidebar { position: sticky; top: calc(var(--rv-header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.rv-sidebar h2 { font-size: 1.15rem; margin: 0 0 10px; }
.rv-sidebar h2::after { display: none !important; }
.rv-side-cta { background: linear-gradient(160deg, #f1effa, #fff4ea) !important; }
.rv-side-cta .rv-btn { width: 100%; margin-top: 10px; }
.rv-side-links { list-style: none; margin: 0; padding: 0; }
.rv-side-links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rv-border); text-decoration: none; color: var(--rv-text); }
.rv-side-links a:hover { color: var(--rv-primary); }
.rv-doc-hero { display: flex; gap: 32px; align-items: center; margin-top: 10px; }
.rv-doc-photo--lg { width: 180px !important; height: 180px !important; font-size: 3rem !important; margin: 0 !important; }
.rv-doc-hero h1 { margin: 0 0 6px; }
.rv-doc-hero .rv-links { margin: 12px 0; }
.rv-dl { margin: 0; }
.rv-dl dt { font-weight: 600; color: var(--rv-primary); font-size: .9rem; margin-top: 10px; }
.rv-dl dd { margin: 2px 0 0; color: var(--rv-muted); }
.rv-postcard-title { font-size: 1.12rem; margin: 0; }
.rv-postcard-title::after { display: none !important; }
.rv-postcard-title a { color: var(--rv-text); text-decoration: none; }
.rv-pagination { margin-top: 32px; }
.rv-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--rv-border); background: #fff; text-decoration: none; color: var(--rv-primary); }
.rv-pagination .current { background: var(--rv-primary); color: #fff; }
.rv-search { display: flex; gap: 10px; max-width: 640px; margin-bottom: 28px; }
.rv-search input { flex: 1; padding: 13px 16px; border: 1px solid #cfd5e2; border-radius: 999px; font: inherit; }
.rv-404-ql { margin: 10px 0 40px; }
.rv-404-ql .rv-quick { margin-top: 0; }

/* ---------- Emergency strip + footer (deep indigo) ---------- */
.rv-em-strip { background: linear-gradient(100deg, #b71c1c 0%, #d32f2f 55%, #e2552a 100%); position: relative; overflow: hidden; }
.rv-em-strip::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M12 8h4v4h4v4h-4v4h-4v-4H8v-4h4z' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E"); }
.rv-em-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; position: relative; }
.rv-em-text { display: flex; align-items: center; gap: 18px; }
.rv-em-text .rv-ico { background: #fff; color: #d32f2f; margin: 0; width: 58px; height: 58px; border-radius: 50%; font-size: 24px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .15); }
.rv-em-text strong { display: block; color: #fff; font-family: var(--rv-font-head); font-weight: 700; font-size: 1.3rem; }
.rv-em-text span { color: rgba(255, 255, 255, .88); }
.rv-em-strip .rv-btn-em { background: #fff; color: #c62828 !important; font-size: 1.15rem; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.rv-em-strip .rv-btn-em:hover { background: #fff4f4; }
.rv-footer { background: #170a4a; background-image: radial-gradient(700px 300px at 100% 0%, rgba(228, 121, 25, .14), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(58, 42, 147, .55), transparent 70%); color: rgba(255, 255, 255, .78); position: relative; }
.rv-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-top: 68px; padding-bottom: 48px; }
.rv-fbrand .rv-logo, .rv-fbrand .custom-logo-link { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.rv-fbrand img { height: 64px; width: auto; display: block; }
.rv-fbrand p { color: rgba(255, 255, 255, .72); margin: 18px 0; font-size: .95rem; line-height: 1.7; }
.rv-fhead { font-size: 1.05rem; font-weight: 500; margin: 6px 0 20px; color: #fff; position: relative; padding-bottom: 12px; }
.rv-fhead::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--rv-accent); }
.rv-fcol ul { list-style: none; margin: 0; padding: 0; }
.rv-fcol li { margin: 0 0 10px; font-size: .94rem; }
.rv-fcol a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .18s, padding .18s; }
.rv-fcol:not(.rv-fbrand) li a:hover { color: #ffc58f; padding-left: 4px; }
.rv-flink-all { color: #ffc58f !important; font-weight: 600; }
.rv-fcontact li { display: flex; gap: 12px; align-items: flex-start; }
.rv-fcontact i { color: var(--rv-accent); margin-top: 5px; width: 16px; }
.rv-fcontact a:hover { color: #fff; }
.rv-social { display: flex !important; gap: 10px; margin-top: 18px !important; }
.rv-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; color: #fff; }
.rv-social a:hover { background: var(--rv-accent); border-color: var(--rv-accent); color: var(--rv-accent-ink); }
.rv-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); }
.rv-fb-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.rv-fb-in p { margin: 0; max-width: 760px; }
.rv-fmenu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.rv-fmenu a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.rv-fmenu a:hover { color: #fff; text-decoration: underline; }

/* Mobile quick-action bar */
.rv-mobilebar { display: none; }
@media (max-width: 767px) {
	.rv-hide-sm { display: none !important; }
	.rv-topbar-in { justify-content: center; }
	.rv-topbar-info { display: none !important; }
	:root { --rv-header-h: 70px; }
	.rv-article-grid { grid-template-columns: 1fr; }
	.rv-sidebar { position: static; }
	.rv-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 48px; }
	.rv-em-text strong { font-size: 1.1rem; }
	.rv-brand img, .rv-brand .custom-logo { height: 50px; }
	.rv-header { --rv-brandrow: 68px; }
	.rv-fbrand { grid-column: 1 / -1; }
	.rv-doc-hero { flex-direction: column; align-items: flex-start; }
	.rv-mobilebar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: #fff; border-top: 1px solid var(--rv-border); box-shadow: 0 -8px 24px rgba(23, 20, 66, .08); padding-bottom: env(safe-area-inset-bottom); }
	.rv-mobilebar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; font-size: .74rem; font-weight: 600; color: var(--rv-primary); text-decoration: none; }
	.rv-mobilebar i { font-size: 1.15rem; }
	.rv-mobilebar .rv-mb-em { color: var(--rv-red); }
	.rv-mobilebar .rv-mb-book { background: var(--rv-accent); color: var(--rv-accent-ink); }
	body { padding-bottom: 62px; }
	.rv-chat { bottom: 76px !important; right: 14px !important; }
	.rv-consent-bar { bottom: 74px !important; left: 10px; right: 10px; flex-direction: column; align-items: stretch; }
}
@media print {
	.rv-topbar, .rv-header, .rv-em-strip, .rv-footer, .rv-mobilebar, .rv-chat, .rv-sidebar { display: none !important; }
}

.rv-nav-open .rv-header { z-index: 1002; }
