/* ===== Spacing utilities (Bootstrap-compatible, global) ===== */
/* 档位：0=0, 1=4px, 2=8px, 3=16px, 4=24px, 5=40px */

.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 16px !important; }
.m-4 { margin: 24px !important; }
.m-5 { margin: 40px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 40px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 40px !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-3 { margin-left: 16px !important; }
.ml-4 { margin-left: 24px !important; }
.ml-5 { margin-left: 40px !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-3 { margin-right: 16px !important; }
.mr-4 { margin-right: 24px !important; }
.mr-5 { margin-right: 40px !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.mx-3 { margin-left: 16px !important; margin-right: 16px !important; }
.mx-4 { margin-left: 24px !important; margin-right: 24px !important; }
.mx-5 { margin-left: 40px !important; margin-right: 40px !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-5 { margin-top: 40px !important; margin-bottom: 40px !important; }

.m-auto { margin: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 40px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 16px !important; }
.pt-4 { padding-top: 24px !important; }
.pt-5 { padding-top: 40px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 16px !important; }
.pb-4 { padding-bottom: 24px !important; }
.pb-5 { padding-bottom: 40px !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 4px !important; }
.pl-2 { padding-left: 8px !important; }
.pl-3 { padding-left: 16px !important; }
.pl-4 { padding-left: 24px !important; }
.pl-5 { padding-left: 40px !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 4px !important; }
.pr-2 { padding-right: 8px !important; }
.pr-3 { padding-right: 16px !important; }
.pr-4 { padding-right: 24px !important; }
.pr-5 { padding-right: 40px !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 40px !important; padding-right: 40px !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 40px !important; padding-bottom: 40px !important; }

* {
    box-sizing: border-box;
}

/* WordPress editor image alignment */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 1200px;
    background:
            linear-gradient(180deg, #f7faff 0, #ffffff 360px),
            var(--rfj-color-bg);
    color: var(--rfj-text-primary);
    font-family: var(--rfj-font-sans);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: var(--rfj-font-sans);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--rfj-transition), border-color var(--rfj-transition), background var(--rfj-transition), box-shadow var(--rfj-transition), transform var(--rfj-transition);
}

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

button,
input {
    font: inherit;
}

button {
    appearance: none;
}

.badge {
    align-items: center;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: 999px;
    color: var(--rfj-text-secondary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    max-width: 100%;
    min-width: 10px;
    overflow: hidden;
    padding: 3px 7px;
    text-align: center;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-primary {
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    color: #fff;
}

.badge-secondary,
.badge-muted {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

.badge-success {
    background: var(--rfj-color-success);
    border-color: var(--rfj-color-success);
    color: #fff;
}

.badge-info {
    background: #f2f7ff;
    border-color: #d7e8ff;
    color: #1266c3;
}

.badge-warning {
    background: var(--rfj-color-warning);
    border-color: var(--rfj-color-warning);
    color: #1f2d3d;
}

.badge-danger {
    background: var(--rfj-color-danger);
    border-color: var(--rfj-color-danger);
    color: #fff;
}

.badge-light {
    background: #fff;
    border-color: var(--rfj-color-border);
    color: var(--rfj-text-secondary);
}

.badge-dark {
    background: #343a40;
    border-color: #343a40;
    color: #fff;
}

.badge-default {
    background: #fff;
    border-color: var(--rfj-color-border-strong);
    color: var(--rfj-text-secondary);
}

a.badge:hover,
a.badge:focus {
    color: #fff;
    text-decoration: none;
}

a.badge-info:hover,
a.badge-info:focus {
    color: #1266c3;
}

a.badge-light:hover,
a.badge-light:focus,
a.badge-default:hover,
a.badge-default:focus {
    color: var(--rfj-color-primary);
}

.container,
.rfj-shell {
    width: 100%;
    max-width: var(--rfj-shell-max);
    margin-inline: auto;
    padding-inline: var(--rfj-shell-gutter);
}

/* .container remains a compatibility alias for existing light templates. */
.rfj-content-frame {
    width: 100%;
    max-width: var(--rfj-content-max);
    margin-inline: auto;
}

.rfj-reading-column {
    width: 100%;
    max-width: var(--rfj-reading-max);
    margin-inline: auto;
}

body.rfj-light-page {
    min-width: 0;
}

@media (max-width: 767px) {
    .rfj-mobile-bleed {
        margin-inline: calc(var(--rfj-shell-gutter) * -1);
    }
}

.text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hidden-sm {
        display: none !important;
    }
}

.header-simple {
    position: sticky;
    top: 0;
    z-index: var(--rfj-z-global-header, 200);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rfj-color-border);
    box-shadow: 0 2px 14px rgba(20, 32, 51, 0.05);
    backdrop-filter: saturate(140%) blur(12px);
}

.header-simple--dark {
    background:
        linear-gradient(90deg, rgba(20, 42, 76, .42), transparent 34%, rgba(67, 45, 112, .22)),
        rgba(5, 10, 22, .96);
    border-bottom-color: rgba(128, 166, 236, .16);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

.header-simple--dark .logo {
    color: #f2f7ff;
}

.header-simple--dark .logo-icon {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 0 0 1px rgba(116, 225, 255, .2), 0 7px 24px rgba(52, 231, 255, .12);
}

.header-simple--dark .header-nav a {
    color: #9caec8;
}

.header-simple--dark .header-nav a:hover,
.header-simple--dark .header-nav a.active {
    color: #5deeff;
    border-bottom-color: #5deeff;
}

.header-simple--dark .header-search-wrapper::before {
    filter: brightness(0) invert(1);
    opacity: .62;
}

.header-simple--dark .header-search-input {
    color: #edf5ff;
    border-color: rgba(137, 171, 228, .2);
    background: rgba(255, 255, 255, .055);
}

.header-simple--dark .header-search-input::placeholder {
    color: #7f91aa;
}

.header-simple--dark .header-search-input:focus {
    border-color: rgba(83, 232, 255, .62);
    background: rgba(12, 24, 44, .98);
    box-shadow: 0 0 0 3px rgba(52, 231, 255, .11), 0 10px 30px rgba(0, 0, 0, .18);
}

.header-simple--dark .header-link {
    color: #b8c8dd;
    border-color: rgba(137, 171, 228, .18);
    background: rgba(255, 255, 255, .04);
}

.header-simple--dark .header-link:hover {
    color: #5deeff;
    border-color: rgba(83, 232, 255, .42);
    background: rgba(52, 231, 255, .08);
}

.header-simple--dark .hamburger-line {
    background: #dce8f8;
}

.header-simple--dark .header-mobile-menu {
    border-top-color: rgba(137, 171, 228, .14);
    background: #081120;
}

.header-simple--dark .header-mobile-menu-item {
    color: #9caec8;
}

.header-simple--dark .header-mobile-menu-item:active {
    background: rgba(52, 231, 255, .08);
}

.header-simple--dark .header-mobile-menu-item.is-active {
    color: #5deeff;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    color: var(--rfj-text-primary);
}

.logo-icon,
.footer-logo img {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--rfj-radius-sm);
    box-shadow: 0 4px 12px var(--rfj-color-primary-shadow);
    overflow: hidden;
}

.logo-icon img,
.footer-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.header-nav-group {
    position: relative;
    flex: 0 0 auto;
}

.header-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 9px;
    border-bottom: 2px solid transparent;
    color: var(--rfj-text-secondary);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.header-nav a svg {
    display: inline-block;
    margin-right: 4px;
    vertical-align: -1px;
}

.header-nav a:hover {
    color: var(--rfj-text-primary);
}

.header-nav a.active {
    color: var(--rfj-color-primary);
    border-bottom-color: var(--rfj-brand-red, var(--rfj-red-bright));
}

.header-nav .header-nav-group-trigger {
    gap: 3px;
}

.header-nav-caret {
    font-size: 12px;
    line-height: 1;
    transform: translateY(-1px);
}

.header-nav-dropdown {
    position: absolute;
    z-index: 240;
    top: calc(100% - 4px);
    right: 0;
    display: grid;
    min-width: 132px;
    padding: 7px;
    border: 1px solid var(--rfj-color-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(20, 32, 51, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.header-nav-group:hover .header-nav-dropdown,
.header-nav-group:focus-within .header-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .header-nav-dropdown a {
    min-height: 36px;
    justify-content: flex-start;
    padding: 7px 11px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
}

.header-nav .header-nav-dropdown a:hover {
    border: 0;
    background: var(--rfj-color-bg-soft);
}

.header-simple--dark .header-nav-dropdown {
    border-color: rgba(137, 171, 228, .2);
    background: #101b2d;
}

.header-simple--dark .header-nav .header-nav-dropdown a:hover {
    background: rgba(52, 231, 255, .08);
}

.header-search-wrapper {
    position: relative;
    flex: 0 0 auto;
}

.header-search-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a1b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    pointer-events: none;
    transform: translateY(-50%);
}

.header-search-input,
.hero-search-input {
    width: 100%;
    color: var(--rfj-text-primary);
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search-input {
    width: 200px;
    height: 36px;
    padding: 0 14px 0 36px;
    border: 1px solid var(--rfj-color-border);
    border-radius: 18px;
    background: #f8fafc;
    font-size: 16px;
    transition: width var(--rfj-transition), border-color var(--rfj-transition), box-shadow var(--rfj-transition), background var(--rfj-transition);
}

.header-search-input:focus {
    width: 280px;
    border-color: var(--rfj-color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.header-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-text-secondary);
    background: #fff;
}

.header-link:hover {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: var(--rfj-color-primary-light);
}

.header-link svg {
    width: 18px;
    height: 18px;
}

.header-ai-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #e7e3f6;
    border-radius: 10px;
    background: #f6f4fc;
    color: #65588a;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.header-ai-tool svg {
    flex: 0 0 auto;
}

.rfj-nav-avatar {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    vertical-align: middle;
}

.header-mobile-menu-item {
    gap: 6px;
}

.header-ai-tool:hover,
.header-ai-tool.is-active {
    border-color: #d4c9ef;
    background: #eee9f9;
    color: #57457f;
    text-decoration: none;
}

.header-ai-tool:focus-visible {
    outline: 2px solid #8b77b9;
    outline-offset: 3px;
}

.header-simple--dark .header-ai-tool {
    border-color: rgba(137, 171, 228, .2);
    background: rgba(137, 171, 228, .08);
    color: #b8c8dd;
}

.header-simple--dark .header-ai-tool:hover,
.header-simple--dark .header-ai-tool.is-active {
    border-color: rgba(83, 232, 255, .4);
    background: rgba(52, 231, 255, .1);
    color: #5deeff;
}

.header-user-menu {
    position: relative;
}

.header-simple:has(.is-user-menu-open) {
    z-index: var(--rfj-z-dropdown, 1000);
}

.header-user-trigger {
    display: inline-flex;
    justify-content: center;
    width: auto;
    min-width: 34px;
    padding: 0 4px;
    gap: 8px;
    border: 0;
    background: transparent;
}

.header-user-trigger:hover {
    border-color: transparent;
    background: transparent;
}

.header-user-trigger:focus-visible {
    outline: 2px solid #8b77b9;
    outline-offset: 4px;
    border-radius: 8px;
}

.header-user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: var(--rfj-z-dropdown, 1000);
    min-width: 190px;
    max-width: min(280px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 100px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(16, 24, 40, .12);
    text-align: left;
}

.header-user-dropdown[hidden] { display: none; }

.header-user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #343942;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.header-user-dropdown-link:hover,
.header-user-dropdown-link:focus-visible {
    color: #20252d;
    background: #f3f4f6;
    outline: none;
    text-decoration: none;
}

.header-user-dropdown-icon-wrap { display: inline-flex; flex: 0 0 18px; }
.header-user-dropdown-icon { width: 18px; height: 18px; }
.header-user-dropdown-logout {
    margin-top: 6px;
    border-top: 1px solid #eceef1;
    border-radius: 0 0 7px 7px;
    padding-top: 12px;
    color: #686e78;
}

.header-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 50%;
    flex: 0 0 auto;
}

.header-user-icon svg {
    width: 22px;
    height: 22px;
}

.header-user-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-name {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1;
}

.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--rfj-text-primary);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.header-hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    background: #fff;
    border-top: 1px solid var(--rfj-color-border);
    transition: max-height 0.3s ease;
}

.header-mobile-menu.is-open {
    max-height: 500px;
}

.header-mobile-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 8px 0;
}

.header-mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rfj-text-secondary);
    text-decoration: none;
    border-radius: var(--rfj-radius-sm);
    transition: color var(--rfj-transition), background var(--rfj-transition);
    -webkit-tap-highlight-color: transparent;
}

.header-mobile-menu-item:active {
    background: var(--rfj-color-bg-soft);
}

.header-mobile-menu-item.is-active {
    color: var(--rfj-color-primary);
    font-weight: 600;
}

.header-mobile-menu-group {
    display: contents;
}

.header-mobile-menu-label {
    display: none;
}

.header-mobile-menu-children {
    display: contents;
}
.home-main {
    min-height: calc(100vh - 220px);
    overflow: hidden;
}

.home-banner-ad {
    padding: 10px 0 10px;
    background: transparent;
}

.home-banner-ad-inner {
    height: 110px;
    overflow: hidden;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-sm);
}

.home-banner-scroll-wrapper {
    height: 110px;
    overflow: hidden;
}

.home-banner-scroll-track {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-banner-scroll-track > .rfj-ad-position,
.home-banner-scroll-track > .rfj-ad-position > .rfj-ad-item {
	width: 100%;
	height: 110px;
}

.home-banner-scroll-track > .rfj-ad-position > .rfj-ad-item > a {
	display: block;
	width: 100%;
	height: 100%;
}

.home-banner-scroll-track > .rfj-ad-position img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.banner-scroll-item {
    height: 110px;
    flex: 0 0 110px;
    overflow: hidden;
}

.banner-scroll-item a,
.banner-scroll-item img {
    width: 100%;
    height: 100%;
}

.banner-scroll-item img,
.home-banner-image {
    object-fit: cover;
    object-position: center;
}

.home-hero {
    position: relative;
    padding: 42px 0 34px;
    background: linear-gradient(180deg, #ffffff 0, #f7faff 100%);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    opacity: 0.42;
    filter: blur(10px);
}

.hero-gradient-orb.orb-1 {
    top: 38px;
    left: calc(50% - 620px);
    width: 420px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(22, 119, 255, .10), transparent 70%);
}

.hero-gradient-orb.orb-2 {
    top: 70px;
    right: calc(50% - 560px);
    width: 380px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(22, 119, 255, 0.14), transparent 72%);
}

.hero-gradient-orb.orb-3 {
    right: calc(50% - 120px);
    bottom: 0;
    width: 300px;
    height: 120px;
    background: radial-gradient(circle at center, rgba(0, 183, 211, 0.12), transparent 72%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin: 0 0 12px;
    color: var(--rfj-text-primary);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    margin-left: 8px;
    color: var(--rfj-color-primary);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    margin: 0 0 24px;
    color: var(--rfj-text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.hero-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    max-width: 800px;
    margin: 0 auto 14px;
}

.hero-search-main {
    position: relative;
    flex: 1 1 680px;
    min-width: 0;
    max-width: 680px;
}

.hero-search-ai-entry {
    flex: 0 0 auto;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
}

.hero-search-box {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 5px;
    border: 1px solid #d8e0ea;
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 32, 51, 0.1);
}

.hero-search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: 0 12px 34px rgba(20, 32, 51, 0.1), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.hero-search-input {
    flex: 1 1 auto;
    height: 46px;
    padding: 0 18px;
    font-size: 16px;
}

.hero-search-input::placeholder,
.header-search-input::placeholder {
    color: var(--rfj-text-tertiary);
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    min-width: 110px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--rfj-radius-sm);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-search-btn:hover {
    transform: translateY(-2px);
}

.hero-search-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-search-btn svg {
    width: 18px;
    height: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #e8edf4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--rfj-text-tertiary);
    font-size: 13px;
}

.hero-tag:hover {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: var(--rfj-color-primary-light);
}

.hero-banner-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    align-items: stretch;
    gap: 16px;
    margin-top: 26px;
}

.hero-banner-wrapper > * {
    min-width: 0;
}

.hero-side-panel,
.hero-banner-slider,
.stat-card,
.home-ad-item,
.category-card,
.software-card,
.home-ranking-card,
.post-card,
.ai-tool-card,
.case-card,
.advisor-card,
.logo-wall-item {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
}

.hero-side-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.hero-side-panel-right {
    min-height: 0;
}

.hero-side-panel:hover,
.hero-banner-slider:hover,
.stat-card:hover,
.home-ad-item:hover,
.category-card:hover,
.software-card:hover,
.home-ranking-card:hover,
.post-card:hover,
.ai-tool-card:hover,
.case-card:hover,
.advisor-card:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.hero-banner-wrapper .hero-side-panel-right:hover {
    border-color: var(--rfj-color-blue-border);
}

.hero-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: linear-gradient(90deg, var(--rfj-color-primary-light), #f7f9fc);
    flex-shrink: 0;
}

.hero-panel-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: var(--rfj-text-primary);
    font-size: 15px;
    font-weight: 700;
}

.hero-panel-title svg {
    width: 18px;
    height: 18px;
    color: var(--rfj-color-primary);
}

.hero-panel-category {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    padding: 10px 10px;
    border-bottom: 1px solid var(--rfj-color-border);
}

.hero-panel-category:last-child {
    border-bottom: 0;
}

.hero-panel-links-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    flex: 1 1 0;
}

.hero-panel-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #eef2f7;
    border-radius: var(--rfj-radius-sm);
    background: #fbfcff;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: all var(--rfj-transition);
}

.hero-panel-link-item:hover {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: var(--rfj-color-primary-light);
}

.hero-panel-link-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-secondary);
    box-shadow: inset 0 0 0 1px #e8edf4;
}

.hero-panel-link-icon svg {
    width: 18px;
    height: 18px;
}

.hero-panel-link-arrow {
    display: none;
}

.hero-enquiry-scroll-wrapper {
    position: relative;
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.hero-enquiry-scroll-wrapper::before,
.hero-enquiry-scroll-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;
    height: 28px;
    pointer-events: none;
}

.hero-enquiry-scroll-wrapper::before {
    top: 0;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0));
}

.hero-enquiry-scroll-wrapper::after {
    bottom: 0;
    background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.hero-enquiry-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    animation: enquiryScrollUp 180s linear infinite;
}

.hero-enquiry-track:hover {
    animation-play-state: paused;
}

.hero-enquiry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    background: #f7f9fc;
    color: var(--rfj-text-secondary);
    font-size: 12px;
}

.hero-enquiry-item:hover {
    color: var(--rfj-color-blue);
    border-color: #d6e8ff;
    background: #f2f8ff;
}

.hero-enquiry-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rfj-color-blue);
    box-shadow: 0 0 0 4px var(--rfj-color-blue-light);
}

.hero-enquiry-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes enquiryScrollUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

.hero-banner-slider {
    position: relative;
    /* Give WebKit a definite inline size before resolving aspect-ratio.
       Without this, Safari may size the item from the side-panel row height
       and leave unused space at the right of the flexible grid track. */
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    contain: paint;
}

.hero-slider-inner,
.hero-banner-item,
.hero-banner-item img {
    width: 100%;
    height: 100%;
}

.hero-slider-inner {
    position: relative;
    overflow: hidden;
}

.hero-banner-slider > .rfj-ad-position {
    width: 100%;
    height: 100%;
}

.hero-banner-item {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 360ms ease, visibility 360ms ease;
}

.hero-banner-item.active {
    opacity: 1;
    visibility: visible;
}

.hero-banner-item img {
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 360ms ease;
}

.hero-banner-item:hover img {
    transform: scale(1.02);
}

.hero-banner-arrow,
.home-slider-control,
.carousel-btn,
.advisors-featured__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: rgba(255, 255, 255, 0.94);
    color: var(--rfj-text-secondary);
    cursor: pointer;
    box-shadow: var(--rfj-shadow-sm);
}

.hero-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    opacity: 0;
    transform: translateY(-50%);
}

.hero-banner-slider:hover .hero-banner-arrow {
    opacity: 1;
}

.hero-banner-arrow:hover,
.carousel-btn:hover,
.advisors-featured__arrow:hover {
    color: #fff;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
}

.hero-banner-arrow.prev {
    left: 14px;
}

.hero-banner-arrow.next {
    right: 14px;
}

.hero-banner-arrow svg,
.carousel-btn svg,
.advisors-featured__arrow svg {
    width: 18px;
    height: 18px;
}

.hero-banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.35);
    transform: translateX(-50%);
    backdrop-filter: blur(6px);
}

.hero-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.hero-banner-dot.active {
    width: 20px;
    background: var(--rfj-color-primary);
}

.home-stats,
.home-ads-section,
.home-section,
.advisors-featured,
.home-cta {
    position: relative;
}

.home-stats {
    padding: 30px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    overflow: hidden;
}

.stat-card a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "icon value" "icon label";
    column-gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 20px;
}

.stat-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    grid-area: value;
    color: var(--rfj-text-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.stat-label {
    grid-area: label;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
}

.home-ads-section {
    padding: 20px 0;
    background: var(--rfj-color-bg-soft);
}

.home-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-ad-item {
    overflow: hidden;
    background: #fff;
}

.home-ad-item a,
.home-ad-image {
    display: block;
    width: 100%;
}

.home-ad-item .rfj-ad-position,
.home-ad-item .rfj-ad-item {
	width: 100%;
}

.home-ad-image {
    height: auto;
}

.home-section {
    padding: 48px 0;
    background: #fff;
}

.home-section-dark {
    background:
            linear-gradient(180deg, #f7faff 0, #fff 100%);
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
}

.home-rankings-section,
.home-vendors-section {
    padding: 38px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rfj-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}
.section-count {
    padding: 0.25rem 0.75rem;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.section-title-group .section-title,
.advisors-featured__title,
.cta-title {
    margin: 0;
    color: var(--rfj-text-primary);
    font-weight: 700;
    line-height: 1.25;
}

.section-title-group .section-title {
    position: relative;
    padding-left: 12px;
    font-size: 26px;
}

.section-title-group .section-title::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--rfj-color-primary);
}

.section-title-group .section-subtitle,
.advisors-featured__subtitle,
.cta-description {
    color: var(--rfj-text-tertiary);
    font-size: 14px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rfj-text-tertiary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.section-more:hover,
.section-more:focus-visible {
    color: var(--rfj-text-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-main .section-more {
    color: var(--rfj-text-tertiary);
}

.home-main .section-more:hover {
    color: var(--rfj-text-secondary);
}

.section-more svg {
    width: 16px;
    height: 16px;
}


.categories-grid,
.home-rankings-grid,
.cases-grid,
.posts-grid,
.ai-tools-grid {
    display: grid;
    gap: 16px;
}

.categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card:hover::before {
    opacity: 1;
}


.category-icon svg {
    width: 23px;
    height: 23px;
}

.category-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-arrow {
    color: #b3bdca;
}

.category-arrow svg {
    width: 18px;
    height: 18px;
}

.category-card:hover .category-arrow {
    color: var(--rfj-color-primary);
}

.home-rankings-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-ranking-card {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 30px;
}

.home-ranking-card:hover img {
    transform: scale(1.05);
}

.home-ranking-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: var(--rfj-transition);
}

.home-ranking-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 70px;
    color: var(--rfj-text-tertiary);
    background: #f7f9fc;
}

.home-ranking-placeholder svg {
    width: 32px;
    height: 32px;
}

.rfj-ai-ranking-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid var(--rfj-color-border);
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .05);
    text-decoration: none;
    transition: border-color var(--rfj-transition), box-shadow var(--rfj-transition), transform var(--rfj-transition);
}

.rfj-ai-ranking-entry:hover,
.rfj-ai-ranking-entry:focus-visible {
    border-color: var(--rfj-color-border-strong);
    color: #1f2937;
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-1px);
}

.rfj-ai-ranking-entry__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #eaf3f2;
    color: #147d75;
}

.rfj-ai-ranking-entry__icon .rfj-icon {
    width: 23px;
    height: 23px;
}

.rfj-ai-ranking-entry strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.rfj-ai-ranking-entry__arrow {
    display: grid;
    place-items: center;
    color: var(--rfj-text-secondary);
}

.rfj-ai-ranking-entry__arrow .rfj-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.25;
}

@media (max-width: 680px) {
    .rfj-ai-ranking-entry {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 62px;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .rfj-ai-ranking-entry__icon {
        width: 40px;
        height: 40px;
        border-radius: 9px;
    }

    .rfj-ai-ranking-entry__arrow .rfj-icon {
        width: 22px;
        height: 22px;
    }
}

.software-carousel {
    position: relative;
}

.software-carousel-track {
    display: flex;
    gap: 16px;
    padding: 2px 2px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.software-carousel-track::-webkit-scrollbar {
    display: none;
}

.software-card {
    position: relative;
    flex: 0 0 278px;
    overflow: hidden;
    scroll-snap-align: start;
}

.software-vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffb000, var(--rfj-color-primary));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.software-logo {
    display: grid;
    place-items: center;
    height: 118px;
    padding: 20px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: #fbfcff;
}

.software-logo img {
    max-width: 88%;
    max-height: 72px;
    object-fit: contain;
}

.software-info {
    padding: 18px;
}

.software-title {
    margin: 0 0 8px;
    color: var(--rfj-text-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.software-excerpt {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.software-category,
.ai-tool-category,
.post-category {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--rfj-color-blue-light);
    color: var(--rfj-color-blue);
    font-size: 12px;
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
}

.home-latest-updates-section {
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
}

.home-latest-header {
    gap: 20px;
}

.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-latest-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-panel);
    box-shadow: var(--rfj-shadow-sm);
}

.home-latest-panel:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
}

.home-latest-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-latest-panel-head h3 {
    min-width: 0;
    margin: 0;
    color: var(--rfj-text-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.home-latest-panel-head a {
    flex: 0 0 auto;
    color: var(--rfj-text-tertiary);
    font-size: 13px;
    font-weight: 600;
}

.home-latest-panel-head a:hover {
    color: var(--rfj-text-secondary);
}

.home-latest-list {
    display: grid;
    gap: 10px;
}

.home-latest-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 8px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
}

.home-latest-item:hover {
    background: var(--rfj-color-primary-light);
}

.home-latest-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
}

.home-latest-logo img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
}

.home-latest-logo .rfj-icon {
    width: 24px;
    height: 24px;
    color: var(--rfj-color-primary);
}

.home-latest-item-customer_case .home-latest-logo .rfj-icon {
    color: var(--rfj-text-tertiary);
}

.home-latest-logo--avatar {
    border-radius: 50%;
}

.home-latest-logo--avatar img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.home-latest-logo span {
    color: var(--rfj-color-primary);
    font-weight: 700;
}

.home-latest-copy {
    min-width: 0;
}

.home-latest-copy strong,
.home-latest-copy em,
.home-latest-copy span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-latest-copy strong {
    color: var(--rfj-text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}

.home-latest-copy em {
    color: var(--rfj-text-secondary);
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    white-space: nowrap;
}

.home-latest-copy span {
    color: var(--rfj-text-tertiary);
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
}

.home-vendors-section {
    overflow: hidden;
    background: #fff;
}

.logo-wall-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.logo-wall-wrapper::before,
.logo-wall-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 80px;
    pointer-events: none;
}

.logo-wall-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.logo-wall-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.logo-wall-row {
    overflow: hidden;
    padding: 2px 0;
}

.logo-wall-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.logo-wall-track-left {
    animation: logoScrollLeft 80s linear infinite;
}

.logo-wall-track-right {
    animation: logoScrollRight 80s linear infinite;
}

.logo-wall-track:hover {
    animation-play-state: paused;
}

.logo-wall-item {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 124px;
    height: 56px;
    padding: 10px;
    background: #fff;
}

.logo-wall-item:hover {
    border-color: #d7e9ff;
    box-shadow: var(--rfj-shadow-md);
}

.logo-wall-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: opacity var(--rfj-transition), transform var(--rfj-transition);
}

.logo-wall-item:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.02);
}

.home-vendors-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.home-vendors-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-sm);
    background-color: #fff;
    background-image: linear-gradient(to right, var(--rfj-color-primary), var(--rfj-color-primary));
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 0 100%;
    color: var(--rfj-color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-size 340ms cubic-bezier(.22, 1, .36, 1), color 240ms ease, border-color 240ms ease;
}

.home-vendors-join-btn:hover,
.home-vendors-join-btn:focus-visible {
    background-size: 100% 100%;
    border-color: var(--rfj-color-primary);
    color: #fff;
}

.home-vendors-join-btn:focus-visible {
    outline: 2px solid var(--rfj-color-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .home-vendors-join-btn {
        transition: none;
    }
}

.home-vendors-join-btn svg {
    width: 16px;
    height: 16px;
}

.home-reseller-manufacturers-section {
    padding: 38px 0;
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
    background: linear-gradient(180deg, #f7faff 0, #fff 100%);
}

.home-reseller-manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.home-reseller-manufacturers-grid .rfzj_simple_card {
    min-width: 0;
}

@keyframes logoScrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

@keyframes logoScrollRight {
    from {
        transform: translateX(-33.333%);
    }
    to {
        transform: translateX(0);
    }
}

.cases-grid,
.posts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-card {
    overflow: hidden;
}

.case-card-link,
.post-card {
    display: block;
    height: 100%;
}

.case-card-image,
.post-image {
    position: relative;
    overflow: hidden;
    background: #eef3f9;
}

.case-card-image {
    aspect-ratio: 16 / 9;
}

.case-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.case-card:hover .case-card-thumb,
.post-card:hover .post-image img {
    transform: scale(1.04);
}

.case-card-body,
.post-content {
    padding: 16px;
}

.case-card-title,
.post-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--rfj-text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.case-card-info {
    display: grid;
    gap: 8px;
}

.case-card-info-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    color: var(--rfj-text-secondary);
    font-size: 12px;
    align-items: baseline;
}

.case-card-info-label {
    color: var(--rfj-text-tertiary);
    white-space: nowrap;
}

.case-card-info-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-card-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rfj-color-border);
}

.case-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rfj-text-tertiary);
    font-size: 12px;
}

.case-card-date svg {
    width: 14px;
    height: 14px;
}

.post-image {
    height: 170px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(24, 31, 42, .88);
    color: #fff;
}

.post-excerpt {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--rfj-text-secondary);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-meta {
    color: var(--rfj-text-tertiary);
    font-size: 12px;
}

.ai-tools-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ai-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 20px 12px;
}

.ai-tool-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: #fbfcff;
}

.ai-tool-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.ai-tool-info {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.ai-tool-name {
    margin: 0 0 8px;
    color: var(--rfj-text-primary);
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-tool-category {
    max-width: 100%;
    background: #f2f8ff;
    color: var(--rfj-color-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advisors-featured {
    padding: 46px 0;
    background: linear-gradient(180deg, #fff 0, #f7faff 100%);
}

.advisors-featured__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto 24px;
    padding: 0 1.5rem;
}

.advisors-featured__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid var(--rfj-color-primary);
    font-size: 26px;
}

.advisors-featured__title svg {
    color: var(--rfj-color-primary);
}

.advisors-featured__subtitle {
    margin: 6px 0 0 16px;
}

.advisors-featured__scroll-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.advisors-featured__viewport {
    overflow: hidden;
    padding: 2px;
}

.advisors-featured__track {
    display: flex;
    gap: 16px;
}

.advisors-featured__item {
    flex: 0 0 260px;
}

.advisors-featured__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
}

.advisors-featured__arrow--left {
    left: -18px;
}

.advisors-featured__arrow--right {
    right: -18px;
}

.advisor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 282px;
    padding: 22px 16px 18px;
    text-align: center;
}

.advisor-card__avatar {
    display: block;
    margin-bottom: 12px;
}

.advisor-card__avatar-img,
.advisor-card__avatar img {
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.12);
}

.advisor-card__content {
    width: 100%;
    min-width: 0;
}

.advisor-card__name {
    display: block;
    margin-bottom: 4px;
    color: var(--rfj-text-primary);
    font-size: 17px;
    font-weight: 700;
}

.advisor-card__name:hover,
.advisor-card__company-link:hover {
    color: var(--rfj-color-primary);
}

.advisor-card__role,
.advisor-card__company,
.advisor-card__company-link {
    color: var(--rfj-text-tertiary);
    font-size: 13px;
}

.advisor-card__company {
    min-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advisor-card__actions {
    width: 100%;
    margin-top: 14px;
}

.btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-outline-success:hover {
    color: #fff;
    border-color: var(--rfj-color-blue);
    background: var(--rfj-color-blue);
}

.home-cta {
    padding: 60px 0;
    background: var(--rfj-color-bg-soft);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 10px;
    font-size: 30px;
}

.cta-description {
    margin: 0 0 24px;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    font-size: 15px;
    font-weight: 700;
}

.cta-btn-primary {
    color: #fff;
    background: var(--rfj-color-primary);
}

.cta-btn-primary:hover {
    color: #fff;
    background: var(--rfj-color-primary-hover);
    box-shadow: var(--rfj-shadow-sm);
}

.cta-btn-secondary {
    color: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary-border);
    background: #fff;
}

.cta-btn-secondary:hover {
    color: #fff;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
}

.cta-btn svg,
.cta-icon-img {
    width: 20px;
    height: 20px;
}

.home-footer {
    padding: 42px 0 24px;
    background: #111827;
    color: #d1d5db;
}

.footer-content {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #fff;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 700;
}

.footer-tagline {
    margin: 0 0 6px;
    color: var(--rfj-text-tertiary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-group h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.footer-link-group a {
    color: #aeb7c5;
    font-size: 13px;
}

.footer-link-group a:hover {
    color: #fff;
}

.footer-qr-codes {
    display: flex;
    gap: 10px;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #aeb7c5;
    font-size: 12px;
}

.footer-qr-item img {
    width: 72px;
    height: 72px;
    padding: 4px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    object-fit: contain;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8d97a8;
    font-size: 12px;
    text-align: center;
}

.footer-bottom p {
    margin: 0 0 8px;
}

.footer-bottom a {
    color: #aeb7c5;
}

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

.footer-bottom img {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 3px;
    vertical-align: -3px;
}

