/*
Theme Name: RentalDesk
Theme URI: https://rentaldesk.co.ke/
Author: RentalDesk
Author URI: https://rentaldesk.co.ke/
Description: A RentalDesk WordPress blog theme matching the main RentalDesk marketing UI.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rentaldesk
*/

:root {
    --rd-accent: #51a200;
    --rd-accent-dark: #009d27;
    --rd-accent-soft: #89da38;
    --rd-primary-rgb: 81 162 0;
    --rd-primary-dark-rgb: 0 157 39;
    --rd-ink: #0f172a;
    --rd-muted: #475569;
    --rd-border: rgba(226, 232, 240, 0.95);
    --rd-surface: #ffffff;
    --rd-surface-soft: #f8fafc;
    --rd-shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
    --rd-shadow-card: 0 28px 78px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rd-ink);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% -8%, rgb(var(--rd-primary-rgb) / 0.14), transparent 42%),
        radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.12), transparent 38%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 56%, #f8fafc 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .rd-public-header {
    top: 32px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    line-height: 1.65;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rd-public-main {
    position: relative;
    isolation: isolate;
}

.rd-shell {
    width: min(72rem, calc(100% - clamp(1.5rem, 5vw, 3.5rem)));
    margin-inline: auto;
}

.rd-shell-wide {
    width: min(88rem, calc(100% - clamp(1.5rem, 5vw, 3.5rem)));
    margin-inline: auto;
}

.rd-section {
    padding: clamp(2.4rem, 5vw, 4.5rem) 0;
}

.rd-public-main :where(h1, h2, h3, h4) {
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: 0;
    text-wrap: balance;
}

.btn,
.wp-block-button__link,
.rd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    min-height: 2.88rem;
    padding: 0.64rem 1.22rem;
    border-radius: 999px;
    border: 1px solid var(--rd-border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--rd-ink);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover,
.wp-block-button__link:hover,
.rd-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.btn-primary,
.rd-button-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--rd-accent), var(--rd-accent-dark) 66%, var(--rd-accent-soft));
    box-shadow: 0 18px 46px rgb(var(--rd-primary-rgb) / 0.26);
}

.btn-ghost,
.rd-button-ghost {
    background: rgba(248, 250, 252, 0.92);
    color: var(--rd-ink);
    border-color: rgba(226, 232, 240, 0.85);
    box-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.rd-public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 0.7rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0));
}

.rd-public-header .rd-shell-wide {
    width: min(88rem, calc(100% - clamp(1.5rem, 5vw, 3.5rem)));
}

.rd-public-header a,
.rd-public-header a:where(:not(.wp-element-button)),
.rd-public-header .btn,
.rd-public-header .btn:where(:not(.wp-element-button)) {
    text-decoration: none !important;
}

.rd-public-header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.35rem);
    width: 100%;
    min-height: 4.7rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.65rem;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.rd-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: max-content;
    padding: 0.3rem 0.52rem;
    border-radius: 0.9rem;
    font-weight: 900;
}

.rd-public-brand:hover {
    background: rgb(var(--rd-primary-rgb) / 0.1);
}

.rd-public-brand,
.rd-footer-logo-link {
    text-decoration: none !important;
}

.rd-public-brand img {
    display: block;
    width: auto;
    max-width: 178px;
    max-height: 46px;
}

.rd-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--rd-accent), var(--rd-accent-dark));
}

.rd-desktop-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.rd-public-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.12rem, 0.8vw, 0.45rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-public-menu li {
    margin: 0;
}

.rd-public-menu a,
.rd-public-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    color: #334155;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 160ms ease;
}

.rd-public-menu a:hover,
.rd-public-menu .current-menu-item > a,
.rd-public-menu .current_page_item > a,
.rd-public-nav-link.is-active {
    color: var(--rd-accent-dark);
    background: rgb(var(--rd-primary-rgb) / 0.13);
    box-shadow: inset 0 0 0 1px rgb(var(--rd-primary-rgb) / 0.2);
    text-decoration: none !important;
}

.rd-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.26rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
}

.rd-header-actions .btn {
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
    text-decoration: none !important;
}

.rd-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.88rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    cursor: pointer;
}

.rd-mobile-panel {
    display: none;
    padding: 0.95rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.rd-mobile-panel[hidden] {
    display: none !important;
}

.rd-mobile-panel .rd-public-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.rd-mobile-panel .rd-public-menu a {
    justify-content: flex-start;
    width: 100%;
}

.rd-hero {
    position: relative;
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3.2rem);
    border-radius: 1.65rem;
    color: #fff;
    background: #020617;
    box-shadow: var(--rd-shadow-card);
}

.rd-hero::before,
.rd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rd-hero::before {
    opacity: 0.9;
    background:
        radial-gradient(circle at 10% 20%, rgb(var(--rd-primary-rgb) / 0.34), transparent 45%),
        radial-gradient(circle at 85% 10%, rgb(14 165 233 / 0.16), transparent 40%),
        radial-gradient(circle at 60% 90%, rgb(99 102 241 / 0.12), transparent 50%);
}

.rd-hero::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.62));
}

.rd-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.8rem);
}

.rd-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rd-kicker-pill {
    padding: 0.32rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.rd-hero h1 {
    margin: 0;
    max-width: 880px;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    line-height: 1;
    font-weight: 800;
}

.rd-hero p {
    max-width: 740px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.rd-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.rd-stat-card {
    min-height: 96px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.rd-stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rd-stat-card strong {
    display: block;
    margin-top: 0.45rem;
    color: #fff;
    font-size: 1rem;
}

.rd-landing-hero {
    position: relative;
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 1.9rem;
    background:
        radial-gradient(circle at 0% 15%, rgba(250, 204, 21, 0.17), transparent 27%),
        radial-gradient(circle at 93% 16%, rgb(var(--rd-primary-rgb) / 0.12), transparent 35%),
        linear-gradient(110deg, rgba(255, 253, 244, 0.98), rgba(240, 253, 244, 0.94) 46%, rgba(236, 253, 245, 0.95));
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rd-landing-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -32% 44%;
    height: 58%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 68%);
    pointer-events: none;
}

.rd-landing-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.86fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
    min-height: clamp(460px, 62vw, 615px);
    padding: clamp(2.2rem, 5vw, 3.6rem);
}

.rd-landing-copy {
    align-self: center;
    max-width: 690px;
}

.rd-landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    padding: 0.46rem 0.85rem;
    border: 1px solid rgb(var(--rd-primary-rgb) / 0.2);
    border-radius: 999px;
    background: rgb(var(--rd-primary-rgb) / 0.08);
    color: #005c32;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.15;
    text-transform: uppercase;
}

.rd-kicker-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: var(--rd-accent-dark);
    box-shadow: 0 0 0 5px rgb(var(--rd-primary-rgb) / 0.13);
}

.rd-landing-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #061619;
    font-size: clamp(3rem, 6.25vw, 5.35rem);
    font-weight: 800;
    line-height: 0.98;
}

.rd-landing-hero p {
    max-width: 690px;
    margin: 1.2rem 0 0;
    color: #42555a;
    font-size: clamp(1rem, 1.65vw, 1.18rem);
}

.rd-landing-subtitle {
    color: #005c32 !important;
    font-size: clamp(1.32rem, 2.5vw, 1.85rem) !important;
    font-weight: 900;
    line-height: 1.12 !important;
}

.rd-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.rd-hero-actions .btn {
    min-height: 3.35rem;
    padding-inline: 1.45rem;
}

.rd-landing-visual {
    position: relative;
    align-self: end;
    min-height: 360px;
}

.rd-landing-visual img {
    position: absolute;
    right: -1.4rem;
    bottom: -0.55rem;
    width: min(720px, 112%);
    max-width: none;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.55rem;
    background: #fff;
    box-shadow: 0 28px 78px rgba(15, 23, 42, 0.16);
}

.rd-floating-card {
    position: absolute;
    z-index: 2;
    width: min(250px, 48%);
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.rd-floating-card span {
    display: block;
    margin-bottom: 0.45rem;
    color: #005c32;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rd-floating-card strong {
    display: block;
    color: #16201f;
    font-size: 1.08rem;
    line-height: 1.15;
}

.rd-floating-card p {
    margin-top: 0.55rem;
    color: #56666b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.rd-floating-card-left {
    left: -0.7rem;
    bottom: 2rem;
}

.rd-floating-card-right {
    right: -1.1rem;
    top: 0.15rem;
}

.rd-section-heading {
    max-width: 780px;
    margin-bottom: 1.25rem;
}

.rd-section-heading span {
    display: block;
    color: var(--rd-accent-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rd-section-heading h2 {
    margin: 0.45rem 0 0;
    color: var(--rd-ink);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.rd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 320px);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    padding: clamp(2rem, 5vw, 4.2rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.rd-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.rd-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--rd-shadow-soft);
}

.rd-post-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border-radius: 1.15rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rd-post-card a,
.rd-post-card a:where(:not(.wp-element-button)),
.rd-sidebar a,
.rd-sidebar a:where(:not(.wp-element-button)),
.rd-pagination a,
.rd-pagination a:where(:not(.wp-element-button)),
.rd-post-nav a,
.rd-post-nav a:where(:not(.wp-element-button)) {
    text-decoration: none !important;
}

.rd-post-card:hover {
    transform: translateY(-3px);
    border-color: rgb(var(--rd-primary-rgb) / 0.26);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.rd-post-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1.95 / 1;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 12%, rgb(var(--rd-primary-rgb) / 0.2), transparent 34%),
        linear-gradient(135deg, rgb(var(--rd-primary-rgb) / 0.14), rgba(14, 165, 233, 0.12)),
        #f1f5f9;
}

.rd-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.rd-post-card:hover .rd-post-thumb img {
    transform: scale(1.035);
}

.rd-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.1rem;
    color: var(--rd-accent-dark);
}

.rd-post-placeholder-copy {
    position: absolute;
    left: 1.1rem;
    top: 1rem;
    z-index: 1;
    display: grid;
    gap: 0.18rem;
}

.rd-post-placeholder-copy span {
    color: #005c32;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rd-post-placeholder-copy strong {
    color: var(--rd-ink);
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 0.96rem;
    line-height: 1.15;
}

.rd-post-placeholder svg {
    width: min(64%, 250px);
    margin-top: 1.7rem;
    color: var(--rd-accent-dark);
    opacity: 0.92;
}

.rd-post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.18rem 1.25rem 1.25rem;
}

.rd-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--rd-accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rd-post-meta a {
    color: var(--rd-accent-dark);
}

.rd-post-title {
    margin: 0.75rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.32rem);
    line-height: 1.18;
    display: -webkit-box;
    min-height: 3.12em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rd-post-title a {
    color: var(--rd-ink);
    text-decoration: none !important;
}

.rd-post-title a:hover {
    color: var(--rd-accent-dark);
}

.rd-post-excerpt {
    margin: 0.75rem 0 0;
    color: var(--rd-muted);
    display: -webkit-box;
    min-height: 4.92em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rd-post-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.1rem;
}

.rd-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.42rem;
    padding: 0.54rem 0.88rem;
    border: 1px solid rgb(var(--rd-primary-rgb) / 0.2);
    border-radius: 999px;
    background: rgb(var(--rd-primary-rgb) / 0.1);
    color: var(--rd-accent-dark);
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.rd-read-link:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--rd-primary-rgb) / 0.32);
    background: rgb(var(--rd-primary-rgb) / 0.15);
}

.rd-sidebar {
    position: sticky;
    top: 7.4rem;
    display: grid;
    gap: 0.9rem;
}

.rd-side-panel {
    position: relative;
    border-radius: 1rem;
    padding: 1.12rem;
}

.rd-side-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgb(var(--rd-primary-rgb) / 0.05), transparent 42%);
}

.rd-side-panel h2,
.rd-side-panel h3 {
    position: relative;
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.2;
}

.rd-side-panel p {
    position: relative;
    margin: 0;
    color: var(--rd-muted);
    font-size: 0.94rem;
}

.rd-side-kicker {
    position: relative;
    margin-bottom: 0.42rem;
    color: var(--rd-accent-dark);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rd-search-form {
    position: relative;
    display: flex;
    gap: 0.45rem;
    margin-top: 1rem;
}

.rd-search-form input[type="search"] {
    min-width: 0;
    width: 100%;
    height: 2.7rem;
    padding: 0 0.9rem;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--rd-ink);
}

.rd-search-form button {
    border: 0;
    cursor: pointer;
}

.rd-category-list,
.rd-recent-list {
    position: relative;
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-category-list a,
.rd-recent-list a {
    display: block;
    padding: 0.58rem 0.7rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.8rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
}

.rd-category-list a:hover,
.rd-recent-list a:hover {
    color: var(--rd-accent-dark);
    border-color: rgb(var(--rd-primary-rgb) / 0.25);
    background: rgb(var(--rd-primary-rgb) / 0.08);
}

.rd-pagination,
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.rd-pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.45rem;
    height: 2.45rem;
    padding: 0 0.75rem;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-weight: 800;
    text-decoration: none !important;
}

.rd-pagination .current,
.nav-links .current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--rd-accent), var(--rd-accent-dark));
}

.rd-single-wrap {
    padding: clamp(2rem, 5vw, 4.2rem) 0;
}

.rd-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 860px;
    margin: 0 auto 1rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.rd-breadcrumbs a {
    color: var(--rd-accent-dark);
    text-decoration: none !important;
}

.rd-breadcrumbs a:hover {
    color: var(--rd-accent);
}

.rd-breadcrumbs span[aria-current="page"] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rd-single {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.4rem);
}

.rd-single-hero {
    margin-bottom: 1.5rem;
}

.rd-single-title {
    margin: 0.85rem 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
}

.rd-featured-image {
    overflow: hidden;
    margin: 1.5rem 0 0;
    border-radius: 1rem;
}

.rd-featured-image img {
    display: block;
    width: 100%;
}

.rd-entry-content {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.82;
}

.rd-entry-content > * + * {
    margin-top: 1rem;
}

.rd-entry-content a {
    color: var(--rd-accent-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgb(var(--rd-primary-rgb) / 0.35);
}

.rd-entry-content h1,
.rd-entry-content h2,
.rd-entry-content h3,
.rd-entry-content h4 {
    margin-top: 1.6rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.17;
}

.rd-entry-content h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.rd-entry-content h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.rd-entry-content ul,
.rd-entry-content ol {
    padding-left: 1.35rem;
}

.rd-entry-content blockquote {
    margin-left: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 3px solid rgb(var(--rd-primary-rgb) / 0.35);
    color: var(--rd-muted);
}

.rd-entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.rd-entry-content th,
.rd-entry-content td {
    padding: 0.75rem;
    border: 1px solid var(--rd-border);
    text-align: left;
}

.rd-post-taxonomy {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rd-border);
}

.rd-post-taxonomy > span {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--rd-accent-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rd-post-taxonomy div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rd-post-taxonomy a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgb(var(--rd-primary-rgb) / 0.22);
    border-radius: 999px;
    background: rgb(var(--rd-primary-rgb) / 0.08);
    color: var(--rd-accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none !important;
}

.rd-related-posts,
.rd-topic-hubs {
    max-width: 1200px;
    margin: clamp(2rem, 5vw, 3.25rem) auto 0;
}

.rd-related-posts .rd-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rd-topic-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.rd-topic-hub {
    display: block;
    min-height: 100%;
    padding: 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--rd-shadow-soft);
    text-decoration: none !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rd-topic-hub:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--rd-primary-rgb) / 0.28);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
}

.rd-topic-hub strong,
.rd-topic-hub span {
    display: block;
}

.rd-topic-hub strong {
    color: var(--rd-ink);
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.25;
}

.rd-topic-hub span {
    margin-top: 0.5rem;
    color: var(--rd-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.rd-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 860px;
    margin: 1.25rem auto 0;
}

.rd-post-nav a {
    display: block;
    padding: 1rem;
    border: 1px solid var(--rd-border);
    border-radius: 1rem;
    background: #fff;
    color: #334155;
    font-weight: 800;
    text-decoration: none !important;
}

.rd-empty {
    padding: 2rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.86);
    text-align: center;
}

.rd-footer {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(2.1rem, 4vw, 2.8rem) 0;
    background:
        radial-gradient(circle at 12% 0%, rgb(var(--rd-primary-rgb) / 0.1), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.1), transparent 28%),
        #020617;
    color: #f8fafc;
}

.rd-footer a,
.rd-footer a:where(:not(.wp-element-button)) {
    color: inherit;
    text-decoration: none !important;
}

.rd-footer-card {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 1.7rem;
    background: linear-gradient(145deg, #020617 0%, #070d1f 52%, #0b1228 100%);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.rd-footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.06fr) minmax(360px, 1.38fr) minmax(280px, 0.92fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    padding: clamp(2rem, 4vw, 3.4rem);
}

.rd-footer-logo-link {
    display: inline-flex;
    align-items: center;
}

.rd-footer-logo-link img,
.rd-footer-logo img {
    display: block;
    width: auto;
    max-width: 178px;
    max-height: 48px;
}

.rd-footer p {
    max-width: 430px;
    margin: 1.5rem 0 0;
    color: #dbeafe;
    font-size: 1rem;
    line-height: 1.7;
}

.rd-footer-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 440px;
    margin-top: 1.25rem;
}

.rd-footer-badges span {
    display: block;
    min-height: 2.6rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 0.82rem;
    background: rgba(15, 23, 42, 0.68);
    color: #dbeafe;
    font-size: 0.86rem;
    line-height: 1.25;
}

.rd-footer h3 {
    margin: 0 0 1.05rem;
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.rd-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.2rem);
}

.rd-footer-links ul {
    display: grid;
    gap: 0.72rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-footer-links li {
    margin: 0;
}

.rd-footer-links a {
    display: inline-flex;
    width: fit-content;
    color: #e2e8f0 !important;
    font-size: 0.94rem;
    line-height: 1.25;
    transition: color 160ms ease, transform 160ms ease;
}

.rd-footer-links a:hover,
.rd-footer-links a:focus {
    color: #ffffff !important;
    transform: translateX(2px);
}

.rd-contact-list {
    display: grid;
    gap: 0.65rem;
}

.rd-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.68rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 0.82rem;
    background: rgba(15, 23, 42, 0.68);
    color: #dbeafe !important;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.rd-contact-link::before {
    content: "";
    flex: 0 0 auto;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: var(--rd-accent-soft);
    box-shadow: 0 0 0 4px rgb(var(--rd-primary-rgb) / 0.12);
}

.rd-contact-link:hover,
.rd-contact-link:focus {
    color: #fff !important;
    border-color: rgb(var(--rd-primary-rgb) / 0.42);
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-1px);
}

.rd-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem clamp(2rem, 4vw, 3.4rem);
    border-top: 1px solid rgba(51, 65, 85, 0.72);
    background: rgba(2, 6, 23, 0.72);
    color: #93a4bd;
    font-size: 0.9rem;
}

.rd-footer-bottom a {
    color: #dbeafe !important;
    font-weight: 700;
}

.rd-footer-bottom a:hover {
    color: #fff !important;
}

.rd-wa-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.76rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: var(--rd-accent);
    box-shadow: 0 16px 36px rgb(var(--rd-primary-rgb) / 0.28);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.rd-comments {
    max-width: 860px;
    margin: 1.25rem auto 0;
}

.comment-respond,
.comment-list .comment-body {
    padding: 1.25rem;
    border: 1px solid var(--rd-border);
    border-radius: 1rem;
    background: #fff;
}

.comment-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

@media (max-width: 1080px) {
    .rd-public-menu,
    .rd-desktop-nav,
    .rd-header-actions {
        display: none;
    }

    .rd-mobile-panel .rd-public-menu {
        display: flex;
    }

    .rd-mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .rd-mobile-panel.is-open {
        display: block;
    }

    .rd-hero-inner,
    .rd-landing-hero-inner,
    .rd-layout,
    .rd-footer-main,
    .rd-related-posts .rd-post-grid,
    .rd-topic-hub-grid {
        grid-template-columns: 1fr;
    }

    .rd-landing-hero-inner {
        align-items: start;
        min-height: 0;
    }

    .rd-landing-visual {
        min-height: clamp(340px, 58vw, 520px);
    }

    .rd-landing-visual img {
        right: 0;
        width: min(820px, 100%);
    }

    .rd-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    body.admin-bar .rd-public-header {
        top: 46px;
    }

    .rd-public-header-shell {
        min-height: 4rem;
        border-radius: 1.2rem;
    }

    .rd-public-brand img {
        max-width: 150px;
    }

    .rd-hero-inner {
        padding: 1.4rem;
    }

    .rd-hero h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .rd-landing-hero {
        border-radius: 1.25rem;
    }

    .rd-landing-hero-inner {
        padding: 1.35rem;
    }

    .rd-landing-hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.65rem);
    }

    .rd-landing-kicker {
        max-width: 100%;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .rd-landing-visual {
        min-height: 430px;
    }

    .rd-landing-visual img {
        bottom: 0;
        width: 112%;
    }

    .rd-floating-card {
        width: min(230px, 78%);
    }

    .rd-floating-card-left {
        left: 0;
        bottom: 0.6rem;
    }

    .rd-floating-card-right {
        right: 0;
        top: 0;
    }

    .rd-hero-stats,
    .rd-post-grid,
    .rd-post-nav,
    .rd-footer-links,
    .rd-footer-badges {
        grid-template-columns: 1fr;
    }

    .rd-post-footer,
    .rd-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .rd-wa-float span {
        display: none;
    }
}
