/* =====================================================================
   Rojgar Mitra theme — loaded AFTER bootstrap.min.css + app.css/dashboard.css
   Overrides Bootstrap's CSS variables (bg/text/border utilities read these
   at runtime) plus hand-written overrides for the precompiled component
   states (button hover/focus, badges, pagination, etc.) that the CDN build
   does not derive from --bs-primary dynamically.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
	--rm-primary: #1f305d;
	--rm-primary-rgb: 13, 148, 136;
	--rm-primary-dark: #4a6ac2;
	--rm-primary-light: #1f305d;
	--rm-dark: #131a23;
	--rm-dark-2: #1c2733;
	--rm-accent: #F89812;
	--rm-accent-rgb: 245, 158, 11;
	--rm-accent-dark: rgb(180, 97, 1);

	--bs-primary: var(--rm-primary);
	--bs-primary-rgb: var(--rm-primary-rgb);
	--bs-link-color: var(--rm-primary);
	--bs-link-color-rgb: var(--rm-primary-rgb);
	--bs-link-hover-color: var(--rm-primary-dark);
	--bs-link-hover-color-rgb: 15, 118, 110;
}

body, .btn, .form-control, .form-select, input, textarea, select {
	font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .rm-brand-word {
	font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* ---- links & text ---- */
a { color: var(--rm-primary); }
a:hover { color: var(--rm-primary-dark); }
.text-primary { color: var(--rm-primary) !important; }

/* ---- buttons ----
   Every button on the public site gets the same rounded-pill shape; the
   hover-lift (transform) is already applied globally to .btn further down.
   Scoped away from .dashboard-body so admin/dashboard buttons are untouched. */
body:not(.dashboard-body) .btn {
	border-radius: 50px;
}
@media (max-width: 575.98px) {
	body:not(.dashboard-body) .btn { font-size: .85rem; padding: .45rem 1rem; }
	body:not(.dashboard-body) .btn-lg { font-size: .92rem; padding: .55rem 1.3rem; }
	body:not(.dashboard-body) .btn-sm { font-size: .78rem; }
}
.btn-primary {
	--bs-btn-bg: var(--rm-primary);
	--bs-btn-border-color: var(--rm-primary);
	--bs-btn-hover-bg: var(--rm-primary-dark);
	--bs-btn-hover-border-color: var(--rm-primary-dark);
	--bs-btn-active-bg: var(--rm-primary-dark);
	--bs-btn-active-border-color: var(--rm-primary-dark);
	--bs-btn-disabled-bg: var(--rm-primary);
	--bs-btn-disabled-border-color: var(--rm-primary);
	--bs-btn-focus-shadow-rgb: var(--rm-primary-rgb);
}
.btn-outline-primary {
	--bs-btn-color: var(--rm-primary);
	--bs-btn-border-color: var(--rm-primary);
	--bs-btn-hover-bg: var(--rm-primary);
	--bs-btn-hover-border-color: var(--rm-primary);
	--bs-btn-active-bg: var(--rm-primary);
	--bs-btn-active-border-color: var(--rm-primary);
	--bs-btn-focus-shadow-rgb: var(--rm-primary-rgb);
}
.btn-accent, .btn-warning {
	--bs-btn-bg: var(--rm-accent);
	--bs-btn-border-color: var(--rm-accent);
	--bs-btn-hover-bg: var(--rm-accent-dark);
	--bs-btn-hover-border-color: var(--rm-accent-dark);
	--bs-btn-active-bg: var(--rm-accent-dark);
	--bs-btn-active-border-color: var(--rm-accent-dark);
	color: #1b1204;
	--bs-btn-color: #1b1204;
	--bs-btn-hover-color: #1b1204;
}

/* ---- badges & tags ---- */
.badge.bg-primary { background-color: var(--rm-primary) !important; }
.badge.bg-warning { color: #1b1204 !important; }

/* ---- forms ---- */
.form-control:focus, .form-select:focus {
	border-color: var(--rm-primary-light);
	box-shadow: 0 0 0 .25rem rgba(var(--rm-primary-rgb), .15);
}
.form-check-input:checked {
	background-color: var(--rm-primary);
	border-color: var(--rm-primary);
}
.form-check-input:focus {
	box-shadow: 0 0 0 .25rem rgba(var(--rm-primary-rgb), .15);
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: var(--rm-primary-light) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--rm-primary) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: rgba(var(--rm-primary-rgb), .12) !important;
	border-color: rgba(var(--rm-primary-rgb), .3) !important;
	color: var(--rm-primary-dark) !important;
}

/* ---- make select2 match Bootstrap's .form-select sizing exactly (default
   select2 skin renders ~28px tall, noticeably smaller than form inputs) ---- */
.select2-container--default .select2-selection--single {
	height: calc(1.5em + .75rem + 2px) !important;
	border: 1px solid #ced4da !important;
	border-radius: .375rem !important;
	display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: normal !important;
	padding: 0 2rem 0 .75rem !important;
	color: #212529;
	font-size: 1rem;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #6c757d; }
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important; top: 0 !important; right: .5rem;
}
.select2-dropdown {
	border-color: #ced4da; border-radius: .5rem; overflow: hidden;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}
.select2-search--dropdown .select2-search__field {
	border-radius: .375rem; border: 1px solid #ced4da; padding: .4rem .6rem;
}
.select2-container--default .select2-results__option { padding: 8px 12px; }

/* ---- category select with a leading icon (registration wizard) ---- */
.rm-category-select { position: relative; }
.rm-category-select-icon {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	color: var(--rm-primary); font-size: 1.05rem; z-index: 2; pointer-events: none;
}
.rm-category-select select.rm-select2 { padding-left: 2.4rem; }
.rm-category-select .select2-selection__rendered { padding-left: 2.4rem !important; }

/* ---- navs / tabs / pagination ---- */
.nav-tabs .nav-link.active { color: var(--rm-primary); border-bottom-color: var(--rm-primary); font-weight: 600; }
.nav-pills .nav-link.active { background-color: var(--rm-primary); }
.page-item.active .page-link { background-color: var(--rm-primary); border-color: var(--rm-primary); }
.page-link { color: var(--rm-primary); }
.page-link:hover { color: var(--rm-primary-dark); }
.dropdown-item.active, .dropdown-item:active { background-color: var(--rm-primary); }

/* ---- sidebar / dashboard chrome ---- */
.rm-sidebar { background: var(--rm-dark); }
.rm-sidebar .nav-link:hover, .rm-sidebar .nav-link.active { background: rgba(var(--rm-primary-rgb), .25); border-right-color: var(--rm-primary-light); color: #fff; }
.rm-sidebar .nav-link.active i { color: var(--rm-primary-light); }

/* =====================================================================
   NAVBAR — glass navbar, animated stepped hamburger, pill actions
   ===================================================================== */
/* ---- minimal navbar (logo + single CTA only, used on landing/register flows) ---- */
.rm-minimal-navbar-cta { padding: .5rem 1.4rem; }

.rm-custom-navbar {
	/* No backdrop-filter here: it creates a new CSS containing block for
	   fixed-position descendants, which breaks the offcanvas nav's
	   fixed positioning since it's nested inside this element. The bg is
	   already 96% opaque so the frosted-glass effect isn't missed. */
	background: rgba(255, 255, 255, 0.96) !important;
	border-bottom: 1px solid rgba(31, 48, 93, 0.08);
	box-shadow: 0 4px 20px -2px rgba(19, 26, 35, 0.05);
	padding: 0.65rem 0;
	transition: all 0.3s ease;
}

.rm-nav-brand img { max-height: 52px; width: auto; object-fit: contain; transition: transform 0.25s ease; }
.rm-nav-brand:hover img { transform: scale(1.02); }

.rm-nav-menu { gap: 0.35rem; }
.rm-nav-link {
	font-weight: 500;
	font-size: 0.76rem;
	color: var(--rm-dark-2) !important;
	padding: 0.55rem 0.95rem !important;
	border-radius: 8px;
	position: relative;
	transition: all 0.25s ease;
}
.rm-nav-link::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 0%;
	height: 2.5px;
	background: var(--rm-accent);
	border-radius: 4px;
	transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.rm-nav-link:hover { color: var(--rm-primary) !important; background-color: rgba(31, 48, 93, 0.04); }
.rm-nav-link:hover::after { width: 24px; }

/* ---- stepped hamburger ---- */
.rm-nav-toggler {
	border: 1px solid rgba(31, 48, 93, 0.15) !important;
	border-radius: 10px !important;
	padding: 7px 9px !important;
	outline: none !important;
	box-shadow: none !important;
	background: #ffffff;
	transition: all 0.25s ease;
}
.rm-nav-toggler:hover { border-color: var(--rm-primary) !important; background: rgba(31, 48, 93, 0.03); }
.rm-nav-hamburger-box {
	width: 24px; height: 18px;
	display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
	position: relative;
}
.rm-nav-line {
	display: block; height: 2.5px;
	background-color: var(--rm-primary);
	border-radius: 3px;
	transition: all 0.32s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
.rm-nav-line-1 { width: 14px; }
.rm-nav-line-2 { width: 19px; }
.rm-nav-line-3 { width: 24px; }
.rm-nav-toggler:hover .rm-nav-line-1,
.rm-nav-toggler:hover .rm-nav-line-2 { width: 24px; background-color: var(--rm-accent); }
.rm-nav-toggler[aria-expanded="true"] .rm-nav-line-1 { width: 22px; transform: translateY(7.5px) rotate(45deg); background-color: var(--rm-primary); }
.rm-nav-toggler[aria-expanded="true"] .rm-nav-line-2 { opacity: 0; transform: translateX(10px); }
.rm-nav-toggler[aria-expanded="true"] .rm-nav-line-3 { width: 22px; transform: translateY(-8px) rotate(-45deg); background-color: var(--rm-primary); }

/* ---- login button + dropdown ---- */
.rm-btn-login {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--rm-primary) !important;
	border: 1.5px solid var(--rm-primary) !important;
	background: transparent !important;
	font-size: 0.88rem; font-weight: 600;
	padding: 0.45rem 1.1rem;
	border-radius: 50px;
	transition: all 0.25s ease;
}
.rm-btn-login:hover, .rm-btn-login[aria-expanded="true"] {
	background: var(--rm-primary) !important; color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(31, 48, 93, 0.25); transform: translateY(-1px);
}
.rm-nav-dropdown-menu {
	border: 1px solid rgba(31, 48, 93, 0.1);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(19, 26, 35, 0.12);
	padding: 0.5rem;
	min-width: 200px;
	animation: rmDropFade 0.25s ease forwards;
}
.rm-nav-dropdown-item {
	font-size: 0.88rem; font-weight: 500; color: var(--rm-dark-2);
	padding: 0.55rem 0.85rem; border-radius: 8px;
	display: flex; align-items: center; gap: 8px;
	transition: all 0.2s ease;
}
.rm-nav-dropdown-item i { color: var(--rm-accent); font-size: 0.95rem; }
.rm-nav-dropdown-item:hover { background: rgba(31, 48, 93, 0.06); color: var(--rm-primary); transform: translateX(3px); }
.rm-admin-item:hover { background: rgba(226, 155, 60, 0.1); color: var(--rm-accent-dark); }

/* ---- register buttons ---- */
.rm-btn-primary {
	background-color: var(--rm-primary) !important;
	border: 1.5px solid var(--rm-primary) !important;
	color: #ffffff !important;
	font-size: 0.88rem; font-weight: 600;
	padding: 0.45rem 1.15rem; border-radius: 50px;
	position: relative; overflow: hidden;
	transition: all 0.25s ease;
}
.rm-btn-primary:hover {
	background-color: var(--rm-primary-dark) !important; border-color: var(--rm-primary-dark) !important;
	box-shadow: 0 6px 16px rgba(31, 48, 93, 0.3); transform: translateY(-1px);
}
.rm-btn-outline {
	background: transparent !important;
	border: 1.5px solid var(--rm-dark-2) !important;
	color: var(--rm-dark-2) !important;
	font-size: 0.88rem; font-weight: 600;
	padding: 0.45rem 1.15rem; border-radius: 50px;
	transition: all 0.25s ease;
}
.rm-btn-outline:hover {
	background-color: var(--rm-dark-2) !important; color: #ffffff !important; border-color: var(--rm-dark-2) !important;
	box-shadow: 0 5px 14px rgba(19, 26, 35, 0.2); transform: translateY(-1px);
}

@keyframes rmDropFade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---- mobile off-canvas menu (slides in from the right) ---- */
.offcanvas-backdrop.show { background-color: rgba(19, 26, 35, .55); }

@media (max-width: 1199.98px) {
	.rm-nav-offcanvas {
		--bs-offcanvas-width: min(320px, 85vw);
		--bs-offcanvas-transition: transform .4s cubic-bezier(.22, 1, .36, 1);
		box-shadow: -12px 0 34px rgba(19, 26, 35, .18);
	}
	.rm-nav-offcanvas-header {
		border-bottom: 1px solid rgba(31, 48, 93, 0.08);
		padding: 1rem 1.25rem;
	}
	.rm-nav-offcanvas-body { padding: 1.25rem; }
	.rm-nav-menu { margin-bottom: 1rem; gap: 0.2rem; }
	.rm-nav-link { font-size: .88rem; padding: 0.6rem 0.85rem !important; }
	.rm-nav-actions {
		flex-direction: column; align-items: stretch !important; width: 100%;
		padding-top: 0.75rem; border-top: 1px solid rgba(0,0,0,0.06);
	}
	.rm-nav-actions .dropdown, .rm-btn-login, .rm-btn-primary, .rm-btn-outline {
		width: 100%; justify-content: center; text-align: center;
	}
}

@media (max-width: 575.98px) {
	.rm-nav-brand img { max-height: 40px; }
	.rm-nav-link { font-size: .85rem; }
	.rm-nav-offcanvas { --bs-offcanvas-width: min(300px, 88vw); }
	.rm-nav-offcanvas-header { padding: .85rem 1rem; }
	.rm-nav-offcanvas-body { padding: 1rem; }
}

/* =====================================================================
   INNER-PAGE HEADER — breadcrumb banner (About, How It Works, Categories, ...)
   ===================================================================== */
.rm-page-header {
	position: relative;
	overflow: hidden;
	background: var(--rm-dark) url('../img/page-header-bg.png') no-repeat center 30% / cover;
	padding: clamp(52px, 8vw, 84px) 0;
}
.rm-page-header::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(125deg, rgba(19, 26, 35, .9) 0%, rgba(31, 48, 93, .85) 60%, rgba(74, 106, 194, .75) 100%);
}
.rm-page-header .container { position: relative; z-index: 1; }
.rm-page-breadcrumb {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	color: rgba(255, 255, 255, .85);
	font-size: .82rem; font-weight: 600;
	padding: 7px 16px; border-radius: 50px;
	margin-bottom: 18px;
	backdrop-filter: blur(6px);
}
.rm-page-breadcrumb a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease; }
.rm-page-breadcrumb a:hover { color: var(--rm-accent); }
.rm-page-breadcrumb-sep { font-size: .65rem; color: rgba(255, 255, 255, .45); }
.rm-page-breadcrumb span { color: var(--rm-accent); font-weight: 700; }
.rm-page-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.rm-page-subtitle { color: rgba(255, 255, 255, .78); max-width: 640px; margin: 0 auto; }

/* =====================================================================
   HERO SECTION — textured brand background image, team photo, compact height
   ===================================================================== */
.hero-section {
	position: relative;
	overflow: hidden;
	background: var(--rm-dark) url('../img/hero-bg.png') no-repeat center center / cover;
	padding: clamp(32px, 5vw, 56px) 0 56px;
}
.hero-section .container { position: relative; z-index: 1; }

.rm-hero-content { max-width: 780px; }

.rm-hero-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	color: #fff; font-size: .82rem; font-weight: 600;
	padding: 8px 16px; border-radius: 50px;
	backdrop-filter: blur(6px);
	margin-bottom: 22px;
}
.rm-hero-badge i { color: var(--rm-accent); }

.rm-hero-title { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.18; color: #fff; margin-bottom: 18px; }
.rm-hero-highlight { color: var(--rm-accent); }
.rm-hero-lead { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 560px; }
.rm-hero-btn { border-radius: 50px; font-size: 1rem; padding: 12px 28px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

.rm-hero-stats { display: flex; align-items: stretch; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.rm-hero-stat {
	display: flex; align-items: center; gap: 12px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 16px;
	padding: 12px 20px;
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, border-color .3s ease;
}
.rm-hero-stat:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, .12);
	border-color: rgba(var(--rm-accent-rgb), .4);
}
.rm-hero-stat-icon {
	width: 42px; height: 42px; border-radius: 50%;
	background: rgba(var(--rm-accent-rgb), .18);
	color: var(--rm-accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.15rem; flex-shrink: 0;
}
.rm-hero-stat-text { display: flex; flex-direction: column; text-align: left; }
.rm-hero-stat-text strong { color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.rm-hero-stat-text span { color: rgba(255, 255, 255, .65); font-size: .75rem; margin-top: 3px; white-space: nowrap; }

.rm-hero-photo-wrap {
	position: relative;
	z-index: 1;
	margin-top: clamp(24px, 4vw, 36px);
	line-height: 0;
	text-align: center;
}
.rm-hero-photo {
	width: auto;
	max-width: 100%;
	max-height: clamp(320px, 44vw, 480px);
	display: inline-block;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
}

@media (max-width: 575.98px) {
	.rm-hero-badge { font-size: .74rem; padding: 6px 12px; }
	.rm-hero-title { font-size: 1.6rem; margin-bottom: 12px; }
	.rm-hero-lead { font-size: .92rem; }
	.rm-hero-btn { width: 100%; justify-content: center; }
	.rm-hero-stats { gap: 10px; }
	.rm-hero-stat { padding: 10px 14px; gap: 10px; }
	.rm-hero-stat-icon { width: 36px; height: 36px; font-size: 1rem; }
	.rm-hero-stat-text strong { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: no-preference) {
	/* .rm-hero-photo { animation: rmFloat 5s ease-in-out infinite; } */
	.rm-hero-stat-icon { animation: rmFloat 3.2s ease-in-out infinite; }
	.rm-hero-stat:nth-child(2) .rm-hero-stat-icon { animation-delay: .3s; }
	.rm-hero-stat:nth-child(3) .rm-hero-stat-icon { animation-delay: .6s; }
}
/* =====================================================================
   HOME PAGE SECTIONS — eyebrow badges, accented cards, timeline, stats, CTA
   ===================================================================== */
.rm-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(var(--rm-primary-rgb), .08);
	border: 1px solid rgba(var(--rm-primary-rgb), .18);
	color: var(--rm-primary); font-size: .78rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em;
	padding: 7px 16px; border-radius: 50px;
	margin-bottom: 14px;
}
.rm-eyebrow i { color: var(--rm-accent); }
.rm-eyebrow-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }

/* ---- feature / category cards: gradient icon + sliding top accent ---- */
.category-card, .feature-card {
	position: relative;
	overflow: hidden;
	background: #fff;
}
.category-card::before, .feature-card::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--rm-primary) 0%, var(--rm-accent) 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.category-card:hover::before, .feature-card:hover::before { transform: scaleX(1); }

.category-card .icon-circle, .feature-card .icon-circle {
	width: 64px; height: 64px; font-size: 1.6rem;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .14) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
}
/* ---- popular category tiles (icon left, name/count right) ---- */
.rm-category-tile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 1px solid rgba(31, 48, 93, .06);
	border-radius: 22px;
	padding: 22px;
	height: 100%;
	text-align: left;
	box-shadow: 0 10px 30px rgba(19, 26, 35, .05);
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
}
.rm-category-tile:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(19, 26, 35, .12);
	border-color: rgba(var(--rm-primary-rgb), .18);
}
.rm-category-icon {
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	width: 60px; height: 60px;
	font-size: 1.6rem;
	color: var(--rm-accent);
	border: 2px solid rgba(var(--rm-accent-rgb), .35);
	border-radius: 50%;
	transition: color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.rm-category-tile:hover .rm-category-icon {
	color: #fff;
	background: var(--rm-accent);
	border-color: var(--rm-accent);
	transform: scale(1.08) rotate(-6deg);
}
.rm-category-info { min-width: 0; }
.rm-category-name { font-size: 1.02rem; font-weight: 700; color: var(--rm-dark-2); margin-bottom: 4px; }
.rm-category-desc { font-size: .82rem; color: #8a93a3; margin-bottom: 0; line-height: 1.4; }

@media (max-width: 575.98px) {
	.rm-category-tile { padding: 16px; gap: 12px; border-radius: 18px; }
	.rm-category-icon { width: 48px; height: 48px; font-size: 1.3rem; }
	.rm-category-name { font-size: .9rem; }
	.rm-category-desc { font-size: .76rem; }
}

/* ---- about section: plain eyebrow, numbered list, photo panel ---- */
.rm-eyebrow-plain {
	display: inline-block;
	color: var(--rm-accent);
	font-size: .8rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .12em;
	margin-bottom: 10px;
}

.rm-about-item {
	display: flex; align-items: flex-start; gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(31, 48, 93, .08);
	transition: transform .3s ease;
}
.rm-about-item:last-child { border-bottom: none; }
.rm-about-item:hover { transform: translateX(4px); }
.rm-about-item-icon {
	flex-shrink: 0;
	width: 54px; height: 54px; border-radius: 14px;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .12) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.35rem;
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, color .3s ease;
}
.rm-about-item:hover .rm-about-item-icon { background: var(--rm-primary); color: #fff; transform: scale(1.08) rotate(-6deg); }
.rm-about-item-text { flex: 1; text-align: left; }
.rm-about-item-text h6 { font-weight: 700; color: var(--rm-dark-2); margin-bottom: 4px; }
.rm-about-item-text p { color: #6b7382; font-size: .88rem; margin-bottom: 0; }
.rm-about-item-num {
	flex-shrink: 0;
	font-size: .78rem; font-weight: 700; color: #b7bfcc;
	border: 1px solid rgba(31, 48, 93, .12);
	border-radius: 50%;
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
}

.rm-about-visual { position: relative; max-width: 440px; margin: 0 auto; }
.rm-about-blob {
	position: absolute;
	inset: 24px -18px -18px 24px;
	background: linear-gradient(135deg, var(--rm-accent) 0%, var(--rm-accent-dark) 100%);
	border-radius: 32px 32px 32px 120px;
	z-index: 0;
	display: block;
}
.rm-about-photo {
	position: relative; z-index: 1;
	width: 100%;
	/* aspect-ratio: 4 / 5; */
	object-fit: cover;
	object-position: top center;
	background: linear-gradient(150deg, var(--rm-dark) 0%, var(--rm-dark-2) 100%);
	border-radius: 28px;
	display: block;
	box-shadow: 0 20px 45px rgba(19, 26, 35, .18);
}
.rm-about-badge {
	position: absolute; z-index: 2;
	bottom: 24px; right: -14px;
	display: flex; align-items: center; gap: 10px;
	background: var(--rm-dark-2);
	color: #fff;
	padding: 8px 16px 8px 8px;
	border-radius: 50px;
	box-shadow: 0 12px 28px rgba(19, 26, 35, .28);
}
.rm-about-badge-icon {
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--rm-accent); color: #1b1204;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.1rem; flex-shrink: 0;
}
.rm-about-badge-text { font-size: .76rem; line-height: 1.25; text-align: left; white-space: nowrap; }
.rm-about-badge-text strong { display: block; font-size: .95rem; font-weight: 800; }

@media (max-width: 991.98px) {
	.rm-about-visual { margin-top: 8px; }
}
@media (max-width: 575.98px) {
	.rm-about-item { gap: 12px; padding: 14px 0; }
	.rm-about-item-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
	.rm-about-badge { padding: 7px 14px 7px 7px; right: 4px; }
	.rm-about-badge-icon { width: 30px; height: 30px; font-size: .95rem; }
	.rm-about-badge-text { font-size: .68rem; }
}

@media (prefers-reduced-motion: no-preference) {
	.rm-about-badge { animation: rmFloat 4s ease-in-out infinite; }
}

/* ---- work process: dark card, solid accent circles, ghost numbers, curved connectors ---- */
.rm-process-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, var(--rm-dark) 0%, var(--rm-dark-2) 100%);
	border-radius: 28px;
	padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 48px);
}
.rm-process-card::before {
	content: '';
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: .3;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 75%);
}
.rm-process-card .container,
.rm-process-card .rm-eyebrow-plain,
.rm-process-card .rm-steps { position: relative; z-index: 1; }
.rm-process-title { color: #fff; margin-bottom: 0; }

.rm-steps { position: relative; margin-top: 12px; }
.rm-step-card { position: relative; height: 100%; text-align: center; padding-top: 30px; }
.rm-step-ghost {
	position: absolute; top: -14px; left: 50%; transform: translateX(-58%);
	font-size: 3.2rem; font-weight: 800; color: rgba(255, 255, 255, .08);
	line-height: 1; pointer-events: none; z-index: 0;
}
.rm-step-icon {
	position: relative; z-index: 1;
	width: 72px; height: 72px; margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--rm-accent);
	color: #1b1204;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem;
	box-shadow: 0 10px 24px rgba(var(--rm-accent-rgb), .35);
	transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.rm-step-card:hover .rm-step-icon { transform: scale(1.1) rotate(-6deg); }
.rm-step-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.rm-step-desc { color: rgba(255, 255, 255, .62); font-size: .88rem; margin-bottom: 0; }

@media (min-width: 768px) {
	.rm-step-card:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 6px; left: calc(50% + 52px); width: calc(100% - 60px); height: 50px;
		background-repeat: no-repeat;
		background-size: contain;
		background-position: center;
		pointer-events: none;
	}
	.rm-step-card:nth-child(odd):not(:last-child)::after {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath d='M4 8 C 50 8, 60 42, 114 42' fill='none' stroke='%23F89812' stroke-width='2.5' stroke-dasharray='6 6' stroke-linecap='round'/%3E%3Cpath d='M104 34 L114 42 L102 45' fill='none' stroke='%23F89812' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}
	.rm-step-card:nth-child(even):not(:last-child)::after {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath d='M4 42 C 50 42, 60 8, 114 8' fill='none' stroke='%23F89812' stroke-width='2.5' stroke-dasharray='6 6' stroke-linecap='round'/%3E%3Cpath d='M104 16 L114 8 L102 5' fill='none' stroke='%23F89812' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	}
}
@media (max-width: 575.98px) {
	.rm-step-ghost { font-size: 2.4rem; }
	.rm-step-icon { width: 60px; height: 60px; font-size: 1.35rem; }
}

/* ---- contractor / labour info cards ---- */
.rm-info-card {
	background: #fff;
	border-radius: 20px;
	padding: 44px 40px;
	height: 100%;
	box-shadow: 0 10px 30px rgba(19, 26, 35, .06);
	border: 1px solid rgba(31, 48, 93, .06);
	position: relative;
	overflow: hidden;
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease;
}
.rm-info-card::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 5px;
	background: linear-gradient(90deg, var(--rm-primary) 0%, var(--rm-accent) 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.rm-info-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(19, 26, 35, .12);
	border-color: rgba(var(--rm-primary-rgb), .16);
}
.rm-info-card:hover::before { transform: scaleX(1); }
.rm-info-card .icon-circle {
	width: 74px; height: 74px; font-size: 2rem; margin-bottom: 18px;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .14) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, color .3s ease;
}
.rm-info-card:hover .icon-circle { background: var(--rm-primary); color: #fff; transform: scale(1.1) rotate(-6deg); }
.rm-info-list { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; }
.rm-info-list li {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: .9rem; color: #6b7382; padding: 6px 0;
}
.rm-info-list li i { color: var(--rm-accent); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.rm-info-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; font-size: .88rem; color: var(--rm-primary);
	text-decoration: none;
	padding: 8px 16px; border-radius: 50px;
	background: rgba(var(--rm-primary-rgb), .07);
	transition: background-color .25s ease, color .25s ease;
}
.rm-info-link i { transition: transform .25s ease; }
.rm-info-link:hover { background: var(--rm-primary); color: #fff; }
.rm-info-link:hover i { transform: translateX(4px); }

/* ---- stats ---- */
.stat-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, var(--rm-dark) 0%, var(--rm-dark-2) 100%);
	border-radius: 16px;
}
.stat-card::before {
	content: '';
	position: absolute; top: -30px; right: -30px; width: 120px; height: 120px;
	background: radial-gradient(circle, rgba(var(--rm-accent-rgb), .22) 0%, transparent 70%);
}
.stat-card .stat-icon {
	width: 52px; height: 52px; border-radius: 50%;
	background: rgba(var(--rm-accent-rgb), .16); color: var(--rm-accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.3rem; margin: 0 auto 14px;
}
.stat-card .num { color: var(--rm-accent); }

/* ---- CTA ---- */
.cta-section {
	position: relative;
	overflow: hidden;
	background: var(--rm-dark) url('../img/bgsa.png') no-repeat center center / cover;
	padding: clamp(56px, 8vw, 92px) 0;
}
/* color overlay so text stays readable over the background photo/texture */
.cta-section::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(125deg, rgba(19, 26, 35, .88) 0%, rgba(31, 48, 93, .82) 55%, rgba(74, 106, 194, .78) 100%);
}
.cta-section::after {
	content: '';
	position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--rm-accent-rgb), .3) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .btn { border-radius: 50px; padding: 12px 30px; font-weight: 600; }

/* ---- standalone pages (login / register): no navbar or footer ---- */
.rm-standalone-section {
	padding-top: clamp(48px, 8vw, 72px);
	padding-bottom: clamp(48px, 8vw, 72px);
	min-height: 100vh;
	background: linear-gradient(180deg, #eef1fa 0%, #ffffff 45%);
}
.rm-standalone-brand { display: inline-flex; transition: transform .25s ease; }
.rm-standalone-brand:hover { transform: scale(1.03); }
.rm-standalone-brand img, .rm-standalone-brand .rm-brand-mark { max-height: 48px; width: auto; }

/* ---- auth (login) card ---- */
.rm-auth-card { border-radius: 20px; overflow: hidden; }
.rm-auth-icon {
	width: 68px; height: 68px; border-radius: 50%;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .14) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.8rem;
}
.rm-auth-switch { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rm-auth-switch a {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .8rem; font-weight: 600; color: var(--rm-dark-2);
	background: rgba(31, 48, 93, .06);
	padding: 6px 14px; border-radius: 50px;
	text-decoration: none;
	transition: all .2s ease;
}
.rm-auth-switch a:hover { background: var(--rm-primary); color: #fff; }

.rm-auth-cta-group {
	display: flex; flex-direction: column; gap: 10px;
	margin-top: 24px; padding-top: 20px;
	border-top: 1px solid rgba(31, 48, 93, .08);
}
.rm-auth-cta {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px;
	border: 1px solid rgba(31, 48, 93, .12);
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	transition: all .2s ease;
}
.rm-auth-cta:hover {
	border-color: var(--rm-primary);
	background: rgba(var(--rm-primary-rgb), .05);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(31, 48, 93, .08);
}
.rm-auth-cta-icon {
	flex: none; width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .14) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
	font-size: 1.05rem;
}
.rm-auth-cta-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.rm-auth-cta-question { font-size: .76rem; color: var(--rm-dark-2); opacity: .7; }
.rm-auth-cta-action { font-size: .92rem; font-weight: 700; color: var(--rm-primary); }
.rm-auth-cta-arrow { color: var(--rm-primary); transition: transform .2s ease; }
.rm-auth-cta:hover .rm-auth-cta-arrow { transform: translateX(4px); }

/* ---- registration card ---- */
.rm-reg-icon {
	width: 68px; height: 68px; border-radius: 50%;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .14) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.8rem;
}
.rm-reg-card { border-radius: 20px; overflow: hidden; }
.rm-reg-section-label {
	color: var(--rm-primary); font-size: .78rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
	margin: 28px 0 14px; padding-bottom: 8px;
	border-bottom: 1px solid rgba(31, 48, 93, .1);
}
.rm-reg-section-label:first-of-type { margin-top: 0; }
.rm-reg-hint {
	display: flex; align-items: center; gap: 8px;
	font-size: .82rem; color: #6b7382;
	background: rgba(var(--rm-primary-rgb), .06);
	border-radius: 10px; padding: 10px 14px;
	margin: 20px 0 0;
}
.rm-reg-hint i { color: var(--rm-primary); }

/* ---- registration modal ---- */
.rm-reg-modal { border: none; border-radius: 22px; overflow: hidden; }
.rm-reg-modal .modal-title { font-weight: 700; color: var(--rm-dark-2); }
.rm-reg-modal .rm-wizard-progress { max-width: 320px; }

/* ---- multi-step registration wizard ---- */
.rm-wizard-progress {
	display: flex; align-items: flex-start; justify-content: center;
	max-width: 480px; margin: 0 auto 32px;
}
.rm-wizard-dot { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.rm-wizard-dot-circle {
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #fff; border: 2px solid rgba(31, 48, 93, .15);
	color: #b7bfcc; font-weight: 700; font-size: .95rem;
	position: relative; z-index: 1;
	transition: all .3s ease;
}
.rm-wizard-dot-label { font-size: .74rem; font-weight: 600; color: #b7bfcc; text-align: center; transition: color .3s ease; }
.rm-wizard-dot:not(:last-child)::after {
	content: '';
	position: absolute; top: 19px; left: 50%; width: 100%; height: 2px;
	background: rgba(31, 48, 93, .12); z-index: 0;
}
.rm-wizard-dot.active .rm-wizard-dot-circle { background: var(--rm-primary); border-color: var(--rm-primary); color: #fff; }
.rm-wizard-dot.active .rm-wizard-dot-label { color: var(--rm-primary); }
.rm-wizard-dot.done .rm-wizard-dot-circle { background: var(--rm-accent); border-color: var(--rm-accent); color: #fff; }
.rm-wizard-dot.done:not(:last-child)::after { background: var(--rm-accent); }
.rm-wizard-dot.done .rm-wizard-dot-label { color: var(--rm-dark-2); }

.rm-wizard-step { display: none; }
.rm-wizard-step.rm-wizard-step-active { display: block; animation: rmWizardFade .35s ease; }
@keyframes rmWizardFade {
	from { opacity: 0; transform: translateX(14px); }
	to { opacity: 1; transform: translateX(0); }
}

.rm-wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.rm-wizard-nav .btn { min-width: 130px; }

@media (max-width: 575.98px) {
	.rm-wizard-dot-circle { width: 32px; height: 32px; font-size: .82rem; }
	.rm-wizard-dot-label { font-size: .62rem; }
	.rm-wizard-dot:not(:last-child)::after { top: 15px; }
	/* Stack nav buttons full-width instead of squeezing them side-by-side,
	   so a longer label (e.g. "Submit Registration") never wraps to 2 lines. */
	.rm-wizard-nav { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
	.rm-wizard-nav .btn { width: 100%; min-width: 0; flex: none; font-size: .88rem; white-space: nowrap; }
}

/* ---- policy pages (terms / privacy) ---- */
.rm-policy-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
	padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 40px);
	box-shadow: 0 10px 30px rgba(19, 26, 35, .06);
	border: 1px solid rgba(31, 48, 93, .06);
}
.rm-policy-card::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 5px;
	background: linear-gradient(90deg, var(--rm-primary) 0%, var(--rm-accent) 100%);
}
.rm-policy-icon {
	width: 64px; height: 64px; border-radius: 50%;
	background: linear-gradient(135deg, rgba(var(--rm-primary-rgb), .14) 0%, rgba(var(--rm-accent-rgb), .16) 100%);
	color: var(--rm-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem;
	margin-bottom: 22px;
}
.rm-policy-content h1, .rm-policy-content h2, .rm-policy-content h3, .rm-policy-content h4 {
	color: var(--rm-dark-2); font-weight: 700; margin-top: 28px; margin-bottom: 12px;
}
.rm-policy-content > h1:first-child, .rm-policy-content > h2:first-child,
.rm-policy-content > h3:first-child, .rm-policy-content > h4:first-child { margin-top: 0; }
.rm-policy-content p { color: #5c6470; line-height: 1.75; margin-bottom: 16px; }
.rm-policy-content ul, .rm-policy-content ol { color: #5c6470; line-height: 1.75; margin-bottom: 16px; padding-left: 1.25rem; }
.rm-policy-content li { margin-bottom: 6px; }
.rm-policy-content a { color: var(--rm-primary); font-weight: 600; }
.rm-policy-content strong { color: var(--rm-dark-2); }

@media (max-width: 575.98px) {
	.rm-policy-icon { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 16px; }
}

footer.site-footer {
	background: var(--rm-dark);
	position: relative;
	overflow: hidden;
}
footer.site-footer::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--rm-primary) 0%, var(--rm-accent) 100%);
}
footer.site-footer a:hover { color: var(--rm-accent); }
footer.site-footer h5 {
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 20px;
}
footer.site-footer h5::after {
	content: '';
	position: absolute; left: 0; bottom: 0; width: 30px; height: 2px;
	background: var(--rm-accent);
}
footer.site-footer .rm-footer-text { color: #9aa4b2; font-size: .9rem; }
footer.site-footer ul a { transition: color .2s ease, padding-left .2s ease; }
footer.site-footer ul a:hover { padding-left: 4px; }

footer.site-footer .rm-footer-links { margin: 0; padding: 0; }
footer.site-footer .rm-footer-links li { margin-bottom: 12px; }
footer.site-footer .rm-footer-links li:last-child { margin-bottom: 0; }
footer.site-footer .rm-footer-links a {
	display: inline-flex; align-items: center; gap: 10px;
	padding-left: 0;
}
footer.site-footer .rm-footer-links a::before {
	content: '';
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--rm-accent);
	flex-shrink: 0;
	transition: transform .2s ease;
}
footer.site-footer .rm-footer-links a:hover { padding-left: 0; }
footer.site-footer .rm-footer-links a:hover::before { transform: scale(1.4); }

.rm-footer-brand .rm-brand-mark { width: 52px; height: 52px; }
.rm-footer-brand .rm-brand-mark svg { width: 28px; height: 28px; }
.rm-footer-brand img { max-height: 120px; width: auto; }

.rm-footer-social { display: flex; gap: 10px; }
.rm-footer-social a {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	color: #fff; font-size: 1rem;
	transition: all .25s ease;
}
.rm-footer-social a:hover {
	background: var(--rm-accent); border-color: var(--rm-accent); color: #1b1204;
	transform: translateY(-3px);
}

.rm-footer-divider { border-color: rgba(255, 255, 255, .1); margin-bottom: 18px; }
.rm-footer-bottom {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px;
}
.rm-footer-bottom-brand { display: flex; align-items: center; gap: 10px; }
.rm-footer-bottom-brand .rm-brand-mark { width: 30px; height: 30px; }
.rm-footer-bottom-brand .rm-brand-mark svg { width: 16px; height: 16px; }
.rm-footer-bottom-brand img { max-height: 30px; width: auto; }
.rm-footer-bottom-brand span { color: #9aa4b2; font-size: .82rem; }
.rm-footer-credit { color: #9aa4b2; font-size: .82rem; }
.rm-footer-credit strong { color: var(--rm-accent); font-weight: 700; }

@media (max-width: 575.98px) {
	.rm-footer-bottom { flex-direction: column; text-align: center; }
}

.rm-avatar-fallback { background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-dark) 100%); }

/* ---- admin portal: welcome banner / quick actions / section headings ---- */
.rm-welcome-banner {
	background: linear-gradient(120deg, var(--rm-dark) 0%, var(--rm-dark-2) 55%, var(--rm-primary-dark) 130%);
	border-radius: 16px;
	padding: 26px 28px;
	position: relative;
	overflow: hidden;
}
.rm-welcome-banner::after {
	content: '';
	position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
	background: radial-gradient(circle, rgba(var(--rm-accent-rgb), .28) 0%, transparent 70%);
}
.rm-welcome-banner .wave { display: inline-block; transform-origin: 70% 70%; }

.rm-quick-action {
	display: flex; align-items: center; gap: 12px;
	background: #fff; border: 1px solid #eef0f4; border-radius: 12px;
	padding: 14px 16px; height: 100%; color: inherit;
}
.rm-quick-action i { font-size: 1.4rem; color: var(--rm-primary); }
.rm-quick-action:hover { box-shadow: 0 12px 22px rgba(18,38,63,.1); border-color: rgba(var(--rm-primary-rgb),.3); }

@media (prefers-reduced-motion: no-preference) {
	.rm-welcome-banner .wave { animation: rmWave 2.4s ease-in-out infinite; }
	.rm-quick-action { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease; }
	.rm-quick-action:hover { transform: translateY(-4px); }
	@keyframes rmWave {
		0%, 100% { transform: rotate(0deg); }
		15% { transform: rotate(18deg); }
		30% { transform: rotate(-10deg); }
		45% { transform: rotate(18deg); }
		60% { transform: rotate(0deg); }
	}
}

.rm-section-heading {
	font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: #8a93a3; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px;
}
.rm-section-heading::after { content: ''; flex: 1; height: 1px; background: #e9ecef; }

/* ---- breadcrumb / topbar meta ---- */
.rm-breadcrumb { font-size: .78rem; color: #8a93a3; }
.rm-breadcrumb a { color: #8a93a3; text-decoration: none; }
.rm-breadcrumb a:hover { color: var(--rm-primary); }
.rm-clock { font-size: .78rem; color: #8a93a3; }

/* ---- brand mark (see layouts/_brand.php) ---- */
.rm-brand-mark {
	width: 40px; height: 40px; border-radius: 11px;
	background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-dark) 100%);
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff; box-shadow: 0 4px 10px rgba(var(--rm-primary-rgb), .35);
	flex-shrink: 0;
}
.rm-brand-mark svg { width: 22px; height: 22px; }
.rm-sidebar .rm-brand-mark { width: 34px; height: 34px; }
.rm-sidebar .rm-brand-mark svg { width: 18px; height: 18px; }
.rm-brand-word { color: var(--rm-dark); }
.rm-sidebar .rm-brand-word { color: #fff; }

/* ---- toast alerts ---- */
#rmToastContainer { z-index: 2000; }
.toast { font-family: 'Plus Jakarta Sans', sans-serif; box-shadow: 0 10px 26px rgba(0,0,0,.14); }

/* =====================================================================
   Animations — card hover lift, icon motion, scroll reveal.
   Wrapped in prefers-reduced-motion so it never fights accessibility prefs.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

	/* ---- card hover lift (applies to every card-shaped surface) ---- */
	.card, .category-card, .feature-card, .stat-tile, .stat-card, .auth-card .card, .reg-card .card {
		transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, border-color .28s ease;
	}
	.card:hover, .category-card:hover, .feature-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 16px 32px rgba(18, 38, 63, .12);
	}
	.stat-tile { transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease; }
	.stat-tile:hover {
		transform: translateY(-6px) scale(1.015);
		box-shadow: 0 18px 30px rgba(0,0,0,.22);
	}
	.stat-card { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
	.stat-card:hover { transform: translateY(-6px) scale(1.03); }

	/* ---- icon motion ---- */
	.icon-circle { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background-color .3s ease; }
	.category-card:hover .icon-circle,
	.feature-card:hover .icon-circle {
		transform: scale(1.18) rotate(-8deg);
		background: var(--rm-primary);
		color: #fff;
	}
	.stat-tile .stat-icon { display: inline-block; animation: rmFloat 3.2s ease-in-out infinite; }
	.stat-tile:nth-child(2n) .stat-icon { animation-delay: .4s; }
	.stat-tile:nth-child(3n) .stat-icon { animation-delay: .8s; }

	#rmNotifCount:not(.d-none) { animation: rmPulseRing 1.8s ease-out infinite; }
	#rmNotifBell:has(#rmNotifCount:not(.d-none)) i { animation: rmRing 2.4s ease-in-out infinite; }

	.rm-brand-mark { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
	.navbar-brand:hover .rm-brand-mark, .rm-sidebar .brand a:hover .rm-brand-mark {
		transform: scale(1.08) rotate(-6deg);
	}

	.rm-sidebar .nav-link { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
	.rm-sidebar .nav-link:hover { transform: translateX(4px); }
	.rm-sidebar .nav-link i { transition: transform .25s ease; }
	.rm-sidebar .nav-link:hover i { transform: scale(1.15); }

	.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
	.btn:hover { transform: translateY(-2px); }
	.btn:active { transform: translateY(0); }

	/* ---- scroll reveal (paired with the tiny IntersectionObserver in app.js) ---- */
	.rm-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
		transition-delay: calc(var(--rm-delay, 0) * 1ms);
	}
	.rm-reveal.rm-in { opacity: 1; transform: translateY(0); }

	/* ---- entrance pop for dashboard stat tiles on page load ---- */
	.stat-tile { animation: rmPopIn .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--rm-delay, 0) * 1ms); }

	@keyframes rmFloat {
		0%, 100% { transform: translateY(0); }
		50% { transform: translateY(-4px); }
	}
	@keyframes rmPopIn {
		0% { opacity: 0; transform: translateY(14px) scale(.94); }
		100% { opacity: 1; transform: translateY(0) scale(1); }
	}
	@keyframes rmPulseRing {
		0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, .5); }
		70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
		100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
	}
	@keyframes rmRing {
		0%, 100% { transform: rotate(0); }
		4% { transform: rotate(14deg); }
		8% { transform: rotate(-12deg); }
		12% { transform: rotate(8deg); }
		16% { transform: rotate(-6deg); }
		20% { transform: rotate(0); }
	}
}
