/*
 * RFJ Home Page - Alibaba Cloud inspired light theme.
 * This file is intentionally standalone for page-home.php.
 *
 * Maintenance map:
 * 1. Tokens / Base / Header / Home modules
 * 2. Shared search dropdowns, cards, carousel, footer
 * 3. Shared modal, form, phone, and software dropdown components
 * 4. Page modules: advisors, resellers, video, events, company, ranking, categories, posts, software list
 * 5. Responsive overrides stay near their related module until this file is split into buildable parts
 */

:root {
    --rfj-font-sans: -apple-system, BlinkMacSystemFont, "Alibaba PuHuiTi", "AliPuHui", "PingFang SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
    --rfj-color-primary: #d1191a;
    --rfj-color-primary-hover: #e02a2b;
    --rfj-color-primary-active: #a91415;
    --rfj-color-primary-light: #fff1f1;
    --rfj-color-primary-border: #f4c4c5;
    --rfj-color-primary-shadow: rgba(209, 25, 26, 0.16);
    --rfj-gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #d1191a 40%, #b81c1c 60%, #ff8e53 100%);
    --rfj-gradient-primary-hover: linear-gradient(135deg, #ff8e53 0%, #e02a2b 40%, #d1191a 60%, #ff6b6b 100%);
    --rfj-gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --rfj-color-blue: #1677ff;
    --rfj-color-blue-light: rgba(22, 119, 255, 0.1);
    --rfj-color-blue-border: rgba(22, 119, 255, 0.35);
    --rfj-color-cyan: #00b7d3;
    --rfj-color-success: #00a870;
    --rfj-color-success-light: rgba(0, 168, 112, 0.1);
    --rfj-color-success-border: rgba(0, 168, 112, 0.35);
    --rfj-color-warning: #ffb000;
    --rfj-color-danger: #f53f3f;
    --rfj-color-text: #181f2a;
    --rfj-color-text-secondary: #4f5b6c;
    --rfj-color-text-muted: #7c8798;
    --rfj-color-border: #e6eaf0;
    --rfj-color-border-strong: #d6dde8;
    --rfj-color-bg: #ffffff;
    --rfj-color-bg-soft: #f5f7fb;
    --rfj-color-bg-panel: #ffffff;
    --rfj-color-bg-tint: #fff1f1;
    --rfj-shadow-sm: 0 2px 8px rgba(20, 32, 51, 0.06);
    --rfj-shadow-md: 0 8px 24px rgba(20, 32, 51, 0.08);
    --rfj-shadow-lg: 0 18px 48px rgba(20, 32, 51, 0.12);
    --rfj-radius-xs: 2px;
    --rfj-radius-sm: 4px;
    --rfj-radius-md: 6px;
    --rfj-radius-lg: 8px;
    --rfj-transition: 180ms ease;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --rfj-color-bg-hover:#e02a2b;
    --status-ended: rgba(180, 180, 180, 0.15);
    --status-pending: rgba(16, 185, 129, 0.15);
    --status-active: rgba(59, 130, 246, 0.15);
    --status-other: rgba(220, 38, 38, 0.15);
}

* {
    box-sizing: border-box;
}

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-color-text);
    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 {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    appearance: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.hidden-xs,
.hidden-sm {
    display: initial;
}

.header-simple {
    position: sticky;
    top: 0;
    z-index: 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-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-color-text);
}

.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 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 9px;
    border-bottom: 2px solid transparent;
    color: var(--rfj-color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

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

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

.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-color-text);
    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: 13px;
    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-color-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-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-color-text);
    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-color-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;
}

.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;
}

.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(90deg, rgba(209, 25, 26, 0.08), rgba(22, 119, 255, 0.06) 58%, rgba(255, 255, 255, 0)),
            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(209, 25, 26, 0.16), 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: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin: 0 0 12px;
    color: #111827;
    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-color-text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

.hero-search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto 14px;
}

.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-color-text-secondary);
}

.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);
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 25px rgba(209, 25, 26, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.hero-search-btn:hover {
    background: var(--rfj-gradient-primary-hover);
    background-size: 200% 200%;
    box-shadow: 0 8px 25px rgba(209, 25, 26, 0.4), 0 0 40px rgba(209, 25, 26, 0.2);
    transform: translateY(-2px);
}

.hero-search-btn:hover::before {
    left: 100%;
}

.hero-search-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 20px rgba(209, 25, 26, 0.15);
}

.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-color-text-muted);
    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-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: #1f2937;
    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-color-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-color-blue);
    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-color-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-success);
    box-shadow: 0 0 0 4px rgba(0, 168, 112, 0.1);
}

.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;
    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-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-color-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-color-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.stat-label {
    grid-area: label;
    color: var(--rfj-color-text-muted);
    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-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-color-text);
    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-color-text);
    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-color-text-muted);
    font-size: 14px;
}

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

.section-more:hover {
    color: var(--rfj-color-primary-hover);
}

.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;
    color: var(--rfj-color-text);
    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: 20px;
}

.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-color-text-muted);
    background: #f7f9fc;
}

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

.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-color-text);
    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-color-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-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);
}

@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-color-text);
    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-color-text-secondary);
    font-size: 12px;
    align-items: baseline;
}

.case-card-info-label {
    color: var(--rfj-color-text-muted);
    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-color-text-muted);
    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(209, 25, 26, 0.94);
    color: #fff;
}

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

.post-meta {
    color: var(--rfj-color-text-muted);
    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-color-text);
    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 {
    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-color-text);
    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-color-text-muted);
    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-color-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:
            linear-gradient(90deg, rgba(209, 25, 26, 0.1), rgba(22, 119, 255, 0.08)),
            #f7faff;
    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: 0 8px 18px rgba(209, 25, 26, 0.22);
}

.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;
    border-top: 1px solid var(--rfj-color-border);
    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: #9ca3af;
}

.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;
}

/* ==========================================
   Shared Search Dropdown Component
   ========================================== */

/* -- Dropdown Shell -- */
.rfj-search-dropdown {
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-lg);
    color: var(--rfj-color-text);
    font-size: 14px;
    text-align: left;
}

/* -- Header and Hero Position Variants -- */
.header-search-wrapper .rfj-search-dropdown,
.header-search-dropdown.rfj-search-dropdown {
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
}

.hero-search-wrapper .rfj-search-dropdown,
.hero-search-dropdown.rfj-search-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
}

.rfj-sd-list,
.rfj-sd-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -- Result Sections -- */
.rfj-sd-section {
    border-bottom: 1px solid var(--rfj-color-border);
}

.rfj-sd-section:last-child {
    border-bottom: 0;
}

.rfj-sd-section-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rfj-color-border);
    background: #f7f9fc;
    color: var(--rfj-color-primary);
    font-size: 13px;
    font-weight: 700;
}

.rfj-sd-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rfj-sd-items {
    list-style: none;
}

/* -- Result Items -- */
.rfj-sd-item {
    border-bottom: 1px solid #f0f3f7;
}

.rfj-sd-item:last-child {
    border-bottom: 0;
}

.rfj-sd-item-link {
    display: block;
    padding: 10px 16px;
    overflow: hidden;
    color: var(--rfj-color-text-secondary);
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.rfj-sd-item-link:hover {
    color: var(--rfj-color-primary);
    background: #fff7f0;
}

/* -- Footer Action -- */
.rfj-sd-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--rfj-color-border);
    background: #fbfcff;
}

.rfj-sd-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border-radius: var(--rfj-radius-sm);
    color: var(--rfj-color-primary);
    font-weight: 700;
    text-decoration: none;
}

.rfj-sd-more-btn:hover {
    background: #fff0e5;
}

/* -- Empty, Loading, and Error States -- */
.rfj-sd-loading,
.rfj-sd-error,
.rfj-sd-empty {
    padding: 22px;
    color: var(--rfj-color-text-muted);
    text-align: center;
}

.rfj-sd-error {
    color: var(--rfj-color-danger);
}

.rfj-sd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rfj-sd-loading .rfj-sd-icon {
    animation: rfjSdSpin 0.8s linear infinite;
}

/* -- Component Animations -- */
@keyframes rfjSdSpin {
    to {
        transform: rotate(360deg);
    }
}
/* ==========================================
   Operator Tools Floating Panel
   ========================================== */

/* -- Floating Shell -- */
.rfj-operator-tools {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9980;
    display: none;
    max-width: min(420px, calc(100vw - 48px));
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(209, 25, 26, 0.22);
    border-radius: var(--rfj-radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(20, 32, 51, 0.18);
    backdrop-filter: blur(10px) saturate(140%);
}

.rfj-operator-tools.visible {
    display: block;
}

.rfj-operator-tools.is-dragging {
    opacity: 0.88;
}

/* -- Open and Close Buttons -- */
.rfj-operator-tools .rfj-show-tools-btn,
.rfj-operator-tools .rfj-close-tools-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--rfj-color-primary);
    border-radius: 999px;
    background: var(--rfj-color-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(209, 25, 26, 0.22);
    transition: background var(--rfj-transition), border-color var(--rfj-transition), color var(--rfj-transition), transform var(--rfj-transition);
}

.rfj-operator-tools .rfj-show-tools-btn:hover,
.rfj-operator-tools .rfj-close-tools-btn:hover {
    background: var(--rfj-color-primary-hover);
    border-color: var(--rfj-color-primary-hover);
    transform: translateY(-1px);
}

.rfj-operator-tools .rfj-show-tools-btn i,
.rfj-operator-tools .rfj-close-tools-btn i {
    color: inherit;
}

/* -- Drag Handle -- */
.rfj-operator-tools .rfj-drag-handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -10px -10px 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md) var(--rfj-radius-md) 0 0;
    background: linear-gradient(90deg, var(--rfj-color-primary-light), #f5f9ff);
    color: var(--rfj-color-text);
    cursor: move;
    font-size: 13px;
    font-weight: 700;
    user-select: none;
}

.rfj-operator-tools .rfj-drag-handle span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -- Loaded Panel Content -- */
.operator-panel-container {
    min-width: 260px;
    color: var(--rfj-color-text);
    font-size: 13px;
}

.operator-panel-container .btn,
.rfj-operator-tools .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--rfj-radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.operator-panel-container .btn + .btn {
    margin-left: 6px;
}

.operator-panel-container .rfj-close-tools-btn {
    border-color: var(--rfj-color-border);
    background: #fff;
    color: var(--rfj-color-text-secondary) !important;
    box-shadow: none;
}

.operator-panel-container .rfj-close-tools-btn:hover {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary) !important;
}
/* ==========================================
   Shared Modal, Form, Phone, and Software Dropdown Components
   ========================================== */

/* -- Modal Shell -- */
.rfj-modal *,
.rfj-modal *::before,
.rfj-modal *::after {
    box-sizing: border-box;
}

.rfj-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--rfj-color-text);
    font-family: var(--rfj-font-sans);
    outline: 0;
    animation: rfjFadeIn 180ms ease-out;
}

.rfj-modal-hidden,
.rfj-hidden {
    display: none !important;
}

.rfj-visible {
    display: block !important;
}

.rfj-flex {
    display: flex !important;
}

.rfj-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(3px);
}

.rfj-modal-dialog {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 560px;
    margin: 48px auto;
    pointer-events: none;
}

.rfj-modal-dialog-sm {
    max-width: 460px;
}

.rfj-modal-dialog-lg {
    max-width: 720px;
}

.rfj-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--rfj-radius-lg);
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 32, 51, 0.22);
    pointer-events: auto;
    animation: rfjSlideIn 220ms ease-out;
}

.rfj-modal-header,
.rfj-modal-header-simple,
.rfj-modal-header-gradient {
    position: relative;
    padding: 22px 24px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.rfj-modal-header-simple {
    padding: 18px 24px;
}

.rfj-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--rfj-radius-sm);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.rfj-modal-close:hover,
.rfj-modal-close:focus {
    background: rgba(255, 255, 255, 0.24);
    outline: 0;
}

.rfj-modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 26px;
}

.rfj-modal-logo {
    flex: 0 0 auto;
    padding: 8px;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 32, 51, 0.12);
}

.rfj-modal-logo-img {
    display: block;
    max-width: 100px;
    height: auto;
}

.rfj-modal-desc {
    flex: 1 1 auto;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    line-height: 1.75;
}

.rfj-modal-title-header {
    margin: 0;
    padding-right: 42px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.rfj-modal-body {
    padding: 24px;
    background: #fff;
}

.rfj-modal-title {
    margin: 0 0 18px;
    color: #6366f1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.rfj-modal .text-center {
    text-align: center;
}

.rfj-modal .text-primary {
    color: #6366f1;
}

/* -- Form Layout and Controls -- */
.rfj-form {
    width: 100%;
}

.rfj-form-group {
    margin-bottom: 16px;
}

.rfj-form-group-hidden {
    display: none;
}

.rfj-control-label {
    display: block;
    margin-bottom: 7px;
    color: var(--rfj-color-text);
    font-size: 14px;
    font-weight: 600;
}

.rfj-label {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    color: var(--rfj-color-text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.rfj-label:hover {
    color: var(--rfj-color-primary);
}

.rfj-checkbox-label a,
.rfj-help-text a {
    color: var(--rfj-color-primary);
}

.rfj-label input[type="radio"],
.rfj-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    accent-color: var(--rfj-color-primary);
    cursor: pointer;
}

.rfj-input,
.rfj-textarea,
.rfj-select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-color-text);
    font-size: 14px;
    line-height: 1.5;
    outline: 0;
    transition: border-color var(--rfj-transition), box-shadow var(--rfj-transition), background var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.rfj-textarea {
    height: auto;
    min-height: 78px;
    resize: vertical;
}

.rfj-input:hover,
.rfj-textarea:hover,
.rfj-select:hover {
    border-color: #c3cedc;
}

.rfj-input:focus,
.rfj-textarea:focus,
.rfj-select:focus {
    border-color: var(--rfj-color-primary);
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.rfj-input[readonly] {
    background: #f5f7fb;
    color: var(--rfj-color-text-muted);
    cursor: not-allowed;
}

.rfj-input-error {
    border-color: var(--rfj-color-danger) !important;
    background: #fff7f7 !important;
}

.rfj-input-error:focus {
    box-shadow: 0 0 0 3px rgba(245, 63, 63, 0.12) !important;
}

.rfj-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.rfj-input-group .rfj-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.rfj-input-group .rfj-btn {
    flex: 0 0 auto;
    min-width: 108px;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

.rfj-error-message {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: var(--rfj-color-danger);
    font-size: 12px;
    font-weight: 500;
}

.rfj-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    color: var(--rfj-color-text-muted);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.rfj-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

.rfj-checkbox-label a {
    text-decoration: none;
    font-weight: 500;
}

.rfj-checkbox-label a:hover,
.rfj-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

/* -- Form Buttons -- */
.rfj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--rfj-radius-sm);
    background: #fff;
    color: var(--rfj-color-text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: all var(--rfj-transition);
}

.rfj-btn:hover {
    transform: translateY(-1px);
}

.rfj-btn:focus,
.rfj-btn:active:focus {
    outline: 0;
    box-shadow: 0 0 0 3px var(--rfj-color-primary-shadow);
}

.rfj-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.rfj-btn-primary {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}

.rfj-btn-primary:hover,
.rfj-btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.rfj-btn-block {
    width: 100%;
}

.rfj-help-text {
    display: block;
    margin-top: 6px;
    color: var(--rfj-color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.rfj-help-text a {
    text-decoration: none;
}

/* -- Phone Modal Content -- */
.rfj-phone-content {
    padding: 8px 0 2px;
    text-align: center;
}

.rfj-phone-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--rfj-color-primary);
    box-shadow: 0 12px 28px rgba(209, 25, 26, 0.22);
}

.rfj-phone-icon {
    width: 38px;
    height: 38px;
    color: #fff;
}

.rfj-phone-number-wrapper {
    margin-bottom: 18px;
}

.rfj-phone-number-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border: 1px solid var(--rfj-color-primary-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.rfj-phone-number-link:hover {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary);
    color: #fff;
}

.rfj-phone-info-card {
    padding: 16px 18px;
    border: 1px solid var(--rfj-color-primary-border);
    border-left: 4px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-primary-light);
}

.rfj-phone-info-content {
    display: flex;
    gap: 10px;
    text-align: left;
}

.rfj-phone-info-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--rfj-color-primary);
}

.rfj-phone-info-text {
    flex: 1 1 auto;
    color: var(--rfj-color-text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.rfj-phone-info-title {
    margin-bottom: 8px;
    color: var(--rfj-color-text);
    font-weight: 700;
}

.rfj-phone-info-item {
    margin-bottom: 5px;
}

.rfj-phone-info-highlight {
    color: var(--rfj-color-primary);
}

.rfj-phone-info-success {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    color: var(--rfj-color-success);
    vertical-align: -2px;
}

/* -- Software Search Dropdown -- */
.rfj-software-search-container {
    position: relative;
    width: 100%;
}

.rfj-software-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 10000;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--rfj-color-border-strong);
    border-radius: var(--rfj-radius-md);
    background: #fff;
    box-shadow: var(--rfj-shadow-lg);
}

.rfj-dropdown-active {
    display: block;
    animation: rfjDropdownFadeIn 160ms ease-out;
}

.rfj-software-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.rfj-software-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f3f7;
    cursor: pointer;
}

.rfj-software-option:last-child {
    border-bottom: 0;
}

.rfj-software-option:hover,
.rfj-software-option-hover,
.rfj-software-option-selected {
    background: var(--rfj-color-primary-light);
}

.rfj-software-logo,
.rfj-software-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    background: #f7f9fc;
}

.rfj-software-logo {
    object-fit: contain;
}

.rfj-software-icon {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--rfj-color-blue);
}

.rfj-software-icon::after {
    content: "S";
    font-size: 14px;
    font-weight: 800;
}

.rfj-software-info {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
}

.rfj-software-name,
.rfj-software-maker {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rfj-software-name {
    color: var(--rfj-color-text);
    font-size: 14px;
    font-weight: 700;
}

.rfj-software-maker {
    margin-top: 2px;
    color: var(--rfj-color-text-muted);
    font-size: 12px;
}

.rfj-software-arrow {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 2px solid #b7c0ce;
    border-bottom: 2px solid #b7c0ce;
    opacity: 0;
    transform: rotate(-45deg);
}

.rfj-software-option:hover .rfj-software-arrow,
.rfj-software-option-hover .rfj-software-arrow {
    opacity: 1;
}

.rfj-software-option-selected .rfj-software-name {
    color: var(--rfj-color-primary);
}

.rfj-software-empty {
    padding: 22px 14px;
    color: var(--rfj-color-text-muted);
    font-size: 14px;
    text-align: center;
}

.rfj-software-dropdown::-webkit-scrollbar {
    width: 6px;
}

.rfj-software-dropdown::-webkit-scrollbar-track {
    background: #f5f7fb;
}

.rfj-software-dropdown::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd4e1;
}

/* -- Component Animations -- */
@keyframes rfjFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rfjSlideIn {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rfjDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1200px) {
    body {
        min-width: 0;
    }

    .header-content {
        gap: 12px;
    }

    .header-nav a {
        padding: 0 7px;
    }

    .hero-banner-wrapper {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .hero-side-panel-right {
        display: none;
    }

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

@media (max-width: 992px) {
    .header-nav {
        overflow-x: auto;
    }

    .header-search-wrapper {
        display: block;
        flex: 0 0 auto;
    }

    .header-search-input {
        width: 160px;
    }

    .header-search-input:focus {
        width: 220px;
    }

    .hero-banner-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-side-panel-left {
        min-height: auto;
    }

    .hero-side-panel-right {
        display: flex;
        min-height: 260px;
    }

    .hero-enquiry-scroll-wrapper {
        min-height: 210px;
    }

    .hero-panel-links-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 1fr;
    }

    .hero-panel-link-item {
        min-height: 66px;
    }

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

    .footer-content,
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .advisors-featured__header,
    .advisors-featured__scroll-wrapper {
        max-width: calc(100% - 28px);
    }

    .header-content {
        min-height: 58px;
        gap: 12px;
    }

    .logo-text {
        font-size: 16px;
    }

    .header-nav {
        display: none;
    }

    .header-search-wrapper {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-search-input {
        width: 100%;
    }

    .header-search-input:focus {
        width: 100%;
    }

    .header-search-wrapper .rfj-search-dropdown,
    .header-search-dropdown.rfj-search-dropdown {
        width: 100%;
        right: 0;
    }

    .header-user-link {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }

    .header-mobile-menu {
        display: block;
    }

    .home-banner-ad {
        display: none;
    }

    .home-hero {
        padding: 32px 0 26px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-search-box {
        height: 52px;
    }

    .hero-search-btn {
        min-width: 58px;
        padding: 0 14px;
    }

    .hero-search-btn span {
        display: none;
    }

    .hero-panel-links-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section-header {
        align-items: flex-end;
        flex-direction: row;
        gap: 12px;
    }

    .section-title-group {
        flex: 1;
    }

    .section-title-group .section-title {
        font-size: 22px;
    }

    .home-section {
        padding: 36px 0;
    }

    .software-card {
        flex-basis: 250px;
    }

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

    .advisors-featured__arrow {
        display: none;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .stats-grid,
    .categories-grid,
    .cases-grid,
    .posts-grid,
    .home-rankings-grid,
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }

    .stat-card a {
        min-height: 92px;
        padding: 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-panel-link-item {
        min-height: 66px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .footer-qr-codes {
        flex-wrap: wrap;
    }

    .rfj-search-dropdown {
        position: fixed;
        right: 14px !important;
        left: 14px !important;
        width: auto !important;
        max-height: 60vh;
    }

    .rfj-operator-tools {
        right: 14px;
        bottom: 80px;
        max-width: calc(100vw - 28px);
    }

    .header-mobile-menu-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rfj-modal-dialog {
        max-width: calc(100% - 28px);
        margin: 24px auto;
    }

    .rfj-modal-header,
    .rfj-modal-header-simple,
    .rfj-modal-header-gradient {
        padding: 20px 18px 18px;
    }

    .rfj-modal-header-content {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        text-align: center;
    }

    .rfj-modal-logo-img {
        max-width: 82px;
    }

    .rfj-modal-desc {
        font-size: 12px;
    }

    .rfj-modal-body {
        padding: 20px 18px;
    }

    .rfj-label {
        margin-right: 12px;
        margin-bottom: 8px;
    }

    .rfj-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .rfj-input-group .rfj-input,
    .rfj-input-group .rfj-btn {
        width: 100%;
        margin-left: 0;
        border-radius: var(--rfj-radius-sm);
    }

    .rfj-phone-number-link {
        min-height: 50px;
        padding: 0 22px;
        font-size: 22px;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid var(--rfj-color-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 9998;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rfj-color-text-muted);
    text-decoration: none;
    font-size: 10px;
    padding: 6px 0 4px;
    position: relative;
    transition: color var(--rfj-transition);
    -webkit-tap-highlight-color: transparent;
}

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

.mobile-nav-item.is-active {
    color: var(--rfj-color-primary);
}

.mobile-nav-item.is-active .mobile-nav-icon {
    transform: scale(1.08);
}

.mobile-nav-icon {
    margin-bottom: 2px;
    width: 22px;
    height: 22px;
    transition: transform var(--rfj-transition);
}

.mobile-nav-label {
    line-height: 1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .home-footer {
        display: none;
    }

    .right-nav {
        display: none !important;
    }

    body {
        padding-bottom: 56px;
    }
}

/* ===== Right Sticky Nav ===== */
.right-nav {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-card, #fff);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(20, 32, 51, 0.08));
    border-radius: var(--radius-xl, 12px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    border: 1px solid var(--border-color, #e6eaf0);
}

.right-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary, #181f2a);
    padding: 8px 6px;
    border-radius: var(--radius-lg, 8px);
    transition: all var(--transition-fast, 150ms ease);
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    cursor: pointer;
}

.right-nav-button .icon {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--primary-color, #d1191a);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md, 6px);
    transition: all var(--transition-fast, 150ms ease);
}

.right-nav-button .icon svg {
    width: 18px;
    height: 18px;
}

.right-nav-button .text {
    white-space: nowrap;
    color: var(--text-secondary, #4f5b6c);
    transition: color var(--transition-fast, 150ms ease);
}

.right-nav-button:hover {
    background-color: var(--primary-color, #d1191a);
}

.right-nav-button:hover .text, .right-nav-button:hover .icon {
    color: #fff;
}

.right-nav .ai-assistant-button .icon svg {
    width: 22px;
    height: 13px;
}

@media (max-width: 992px) {
    .right-nav {
        right: 8px;
        padding: 6px 4px;
    }

    .right-nav-button {
        padding: 6px 4px;
        font-size: 10px;
    }

    .right-nav-button .icon {
        width: 28px;
        height: 28px;
    }

    .right-nav-button .icon svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 768px) {
    .right-nav {
        right: 6px;
        bottom: 80px;
        top: auto;
        transform: none;
    }
}

/* ==========================================
   Guides Page Styles
   软件选型指南页面样式
   ========================================== */

.guides-page {
    background: linear-gradient(180deg, #f7faff 0, #ffffff 360px), var(--rfj-color-bg);
    color: var(--rfj-color-text);
    min-height: 100vh;
}

/* ==========================================
   Advisors Page Styles
   软件顾问页面样式
   ========================================== */

.advisors-wrapper {
    padding-bottom: 3rem;
    padding-top: 1rem;
}

.advisors-search-wrapper {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.advisors-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advisors-search-box {
    display: flex;
    align-items: center;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--rfj-shadow-md);
    transition: all var(--rfj-transition);
}

.advisors-search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.advisors-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--rfj-color-text);
    outline: none;
}

.advisors-search-input::placeholder {
    color: var(--rfj-color-text-muted);
}

.advisors-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rfj-gradient-primary);
    border: none;
    border-radius: var(--rfj-radius-md);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--rfj-transition), box-shadow var(--rfj-transition);
}

.advisors-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--rfj-color-primary-shadow);
}

.advisors-search-btn svg {
    width: 20px;
    height: 20px;
}

.advisors-search-row {
    display: flex;
    gap: 8px;
}

.advisors-company-search {
    position: relative;
    flex: 1;
}

.advisors-kw-search {
    flex: 1;
}

.advisors-search-icon {
    flex-shrink: 0;
    margin-left: 12px;
    color: var(--rfj-color-text-muted, #9ca3af);
}

.advisors-company-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--rfj-color-text-muted, #9ca3af);
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 150ms ease;
}

.advisors-company-clear:hover {
    color: var(--rfj-color-primary, #d1191a);
}

.advisors-company-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--rfj-color-border, #e6eaf0);
    border-radius: var(--rfj-radius-lg, 8px);
    box-shadow: 0 8px 24px rgba(20, 32, 51, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

.advisors-company-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--rfj-color-text, #181f2a);
    cursor: pointer;
    transition: background 150ms ease;
}

.advisors-company-item:hover {
    background: var(--rfj-color-bg-tint, #f5f7fb);
}

.advisors-company-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: var(--rfj-color-text-muted, #9ca3af);
    text-align: center;
}

.advisors-help-text {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--rfj-color-text-muted);
}

.advisors-help-text a {
    color: var(--rfj-color-primary);
    text-decoration: none;
    margin-left: 0.25rem;
    transition: color var(--rfj-transition);
}

.advisors-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.advisor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.advisor-grid-item {
    height: 100%;
}

.advisor-grid-item > .text-center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.advisor-grid-item .pb-4 {
    margin-top: auto;
}

.advisor-card__company-placeholder {
    color: var(--rfj-color-text-muted);
    font-size: 13px;
}

.btn-outline-success {
    color: var(--rfj-color-success);
    background: transparent;
    border-color: var(--rfj-color-success);
}

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

.btn-outline-danger {
    color: var(--rfj-color-primary);
    background: transparent;
    border-color: var(--rfj-color-primary);
}

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

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-height: 28px;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.rfj-viewPrivateNumberButton {
    cursor: pointer;
    transition: all var(--rfj-transition);
}

.rfj-viewPrivateNumberButton:hover {
    opacity: 0.85;
}

.advisors-wrapper .row-tight {
    gap: 1rem;
}

.advisors-wrapper .text-center.px-3,
.advisors-wrapper .text-center.pl-3,
.advisors-wrapper .text-center {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
    padding: 1rem;
    height: 100%;
}

.advisors-wrapper .text-center a {
    text-decoration: none;
    color: inherit;
}

.advisors-wrapper .text-center b,
.advisors-wrapper .text-lg {
    color: var(--rfj-color-text);
}

.advisors-wrapper .text-muted,
.advisors-wrapper .small,
.advisors-wrapper .text-overflow {
    color: var(--rfj-color-text-secondary);
}

.advisors-wrapper .btn,
.advisors-wrapper .btn-xs {
    border-radius: var(--rfj-radius-md);
}

.advisors-wrapper .rfj-load-more-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.advisors-wrapper .rfj-loading-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: advisors-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes advisors-spin {
    to { transform: rotate(360deg); }
}

.advisors-wrapper form.form-inline,
.advisors-wrapper #fr {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.advisors-wrapper input[type="search"] {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text);
    border-radius: var(--rfj-radius-md);
    padding: 0.6rem 0.85rem;
}

.advisors-wrapper .btn-primary,
.advisors-wrapper input[type="submit"].btn,
.advisors-wrapper input[type="submit"] {
    background: var(--rfj-gradient-primary);
    border: none;
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-md);
}

.advisors-wrapper .rfj-loading-spinner div {
    color: var(--rfj-color-text-secondary);
}

.advisors-wrapper .p2 {
    margin: 0.25rem 0;
}

.advisors-featured__viewport::before,
.advisors-featured__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 1;
    pointer-events: none;
}

.advisors-featured__viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--rfj-color-bg), transparent);
}

.advisors-featured__viewport::after {
    right: 0;
    background: linear-gradient(-90deg, var(--rfj-color-bg), transparent);
}

.rfj-guwen-div {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.single-enquiry-bread-crumbs {
    font-size: 0.875rem;
    color: var(--rfj-color-text-muted);
}

.single-enquiry-bread-crumbs a {
    color: var(--rfj-color-text-secondary);
    text-decoration: none;
}

.single-enquiry-bread-crumbs a:hover {
    color: var(--rfj-color-primary);
}

.black_title {
    color: var(--rfj-color-text);
}

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

@media (max-width: 768px) {
    .advisors-search-wrapper {
        max-width: 100%;
    }

    .advisors-search-row {
        flex-direction: column;
    }

    .advisors-search-box {
        flex-direction: column;
        padding: 0.75rem;
    }

    .advisors-search-input {
        width: 100%;
        padding: 0.75rem;
    }

    .advisors-search-btn {
        width: 100%;
        height: 42px;
        border-radius: var(--rfj-radius-md);
    }

    .advisor-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* ==========================================
   Resellers Page Styles
   代理商查询页面样式
   ========================================== */

.resellers-page {
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.resellers-page .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
    margin-bottom: 2rem;
}

.resellers-page .row > .col {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .resellers-page .row > .col {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 992px) {
    .resellers-page .row > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .resellers-page .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.page-content {
    min-height: 400px;
}

.text-center {
    text-align: center;
}

.vendor_warp {
    transition: all var(--rfj-transition);
}

.vendor_warp.hidden {
    display: none;
}

.location-filter {
    background: var(--rfj-color-bg-panel);
    padding: 1.5rem;
    border-radius: var(--rfj-radius-lg);
    border: 1px solid var(--rfj-color-border);
    margin-bottom: 2rem;
}

.location-filter-title svg {
    color: var(--rfj-color-primary);
    flex-shrink: 0;
}

.location-filter .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.location-filter .filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rfj-color-text-secondary);
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    text-decoration: none;
    user-select: none;
}

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

.location-filter .filter-tag.active {
    color: #fff;
    background: var(--rfj-gradient-primary);
    border-color: var(--rfj-color-primary);
    box-shadow: 0 2px 8px var(--rfj-color-primary-shadow);
}

.location-filter .filter-tag.active:hover {
    box-shadow: 0 4px 12px var(--rfj-color-primary-shadow);
}

.filter-tag-icon {
    margin-right: 0.375rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.filter-tag-count {
    margin-left: 0.375rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--rfj-radius-sm);
}

.filter-tag.active .filter-tag-count {
    background: rgba(255, 255, 255, 0.25);
}

.location_child {
    display: none;
}

.filter-divider {
    height: 1px;
    background: var(--rfj-color-border);
    margin: 1rem 0;
}

.filter-children {
    display: none;
    animation: filterTagIn 0.3s ease;
}

.filter-children.visible {
    display: block;
}

.badge-cat {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text-secondary);
    border: 1px solid var(--rfj-color-border);
    cursor: pointer;
    transition: all var(--rfj-transition);
    text-decoration: none;
}

.badge-cat:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

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

.help-text a {
    color: var(--rfj-color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--rfj-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.help-text svg {
    display: inline-block;
    vertical-align: -2px;
    margin-left: 2px;
    color: var(--rfj-color-text-muted);
    transition: color var(--rfj-transition);
}

.help-text a:hover svg {
    color: var(--rfj-color-primary);
}

@media (max-width: 768px) {
    .location-filter {
        padding: 1rem;
    }

    .location-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .location-filter .filter-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .location-filter .filter-tags {
        gap: 0.375rem;
    }
}

/* ==========================================
   Videos Page Styles (from videos.css)
   ========================================== */

.video-hero {
    padding: 3rem 0 2rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.video-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-color-text);
    margin-bottom: 0.75rem;
}

.video-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-color-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.video-hero-desc {
    font-size: 0.875rem;
    color: var(--rfj-color-text-muted);
    max-width: 480px;
    margin: 0.5rem auto 0;
}

.video-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.video-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.video-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-color-text-secondary);
}

.video-intro p + p {
    margin-top: 1rem;
}

.video-hero-content p {
    line-height: 1.8;
    color: var(--rfj-color-text-secondary);
}

.video-hero-content p + p {
    margin-top: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    box-shadow: var(--rfj-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-lg);
}

.video-card a {
    text-decoration: none;
    color: inherit;
}

.video-card a:hover {
    text-decoration: none;
    color: inherit;
}

.video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(209, 25, 26, 1);
}

.video-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border-top: 1px solid var(--rfj-color-border);
}

.video-category {
    margin-bottom: 0.625rem;
}

.video-category a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--rfj-transition);
}

.video-category a:hover {
    background: var(--rfj-color-primary);
    color: #fff;
    text-decoration: none;
}

.video-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    height: calc(1.05rem * 1.45 * 2);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--rfj-color-text);
    transition: color 200ms ease;
}

.video-card:hover .video-title {
    color: var(--rfj-color-primary);
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--rfj-color-text-muted);
}

.video-meta svg {
    flex-shrink: 0;
    color: var(--rfj-color-text-muted);
}

.video-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.video-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-meta-date {
    flex-shrink: 0;
    color: var(--rfj-color-text-muted);
    font-size: 0.8rem;
}

.video-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-color-text-secondary);
    font-size: 0.8rem;
    transition: all var(--rfj-transition);
}

.video-tag:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
    text-decoration: none;
}

.video-tag.active {
    background: var(--rfj-gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(209, 25, 26, 0.3);
}

/* Featured Videos Section */
.featured-videos-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.featured-video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    box-shadow: var(--rfj-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rfj-shadow-lg);
    border-color: var(--rfj-color-primary-border);
}

.featured-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-video-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.featured-video-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-video-card:hover .featured-video-image img {
    transform: scale(1.08);
}

.featured-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.featured-video-card:hover .featured-video-overlay {
    background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.95) 100%);
}

.featured-video-content {
    width: 100%;
}

.featured-video-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-video-author {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.featured-video-author svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
    .featured-videos-section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .featured-videos-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .featured-videos-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-video-overlay {
        padding: 1rem;
    }

    .featured-video-title {
        font-size: 1rem;
    }
}

.video-load-more {
    text-align: center;
    padding: 3rem 0;
}

.video-no-more {
    text-align: center;
    padding: 3rem 0;
    color: var(--rfj-color-text-muted);
    font-size: 0.9375rem;
}

.video-filter-section {
    margin-bottom: 2rem;
}

.video-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-filter-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rfj-color-text);
    margin-right: 0.5rem;
}

.video-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-filter-chip {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-color-text-secondary);
    background: var(--rfj-color-bg-panel);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--rfj-transition);
}

.video-filter-chip:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.video-filter-chip.active {
    background: var(--rfj-gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(209, 25, 26, 0.25);
}

.video-filter-reset {
    margin-left: auto;
}

.video-filter-reset a {
    color: var(--rfj-color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--rfj-transition);
}

.video-filter-reset a:hover {
    color: var(--rfj-color-primary);
}

.video-selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.video-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-color-text-secondary);
    font-size: 0.85rem;
}

.video-selected-tag .video-tag-close {
    color: inherit;
    text-decoration: none;
}

.video-selected-tag .video-tag-close:hover {
    color: var(--rfj-color-primary);
}

.video-selected-tag.muted {
    color: var(--rfj-color-text-muted);
    border-style: dashed;
}

/* ==========================================
   Events Page Styles (from events.css)
   ========================================== */

.event-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.event-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-color-text);
    margin-bottom: 0.75rem;
}

.event-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-color-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.event-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.event-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.event-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-color-text-secondary);
}

.event-intro p + p {
    margin-top: 1rem;
}

.event-hero-content {
    margin-top: 2rem;
}

.event-hero-content p {
    line-height: 1.8;
    color: var(--rfj-color-text-secondary);
}

.event-hero-content p + p {
    margin-top: 1rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-card a {
    text-decoration: none;
    color: inherit;
}

.event-card a:hover {
    text-decoration: none;
    color: inherit;
}

.event-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.event-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.event-status--ended {
    background: rgba(180, 180, 180, 0.15);
    color: var(--rfj-color-text-muted);
}

.event-status--pending {
    background: var(--status-pending, rgba(16, 185, 129, 0.15));  /* 改为绿色，与变量一致 */
    color: #34d399;
}

.event-status--other {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.event-status--active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.event-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border-top: 1px solid var(--rfj-color-border);
}

.event-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    height: calc(1.05rem * 1.45 * 2);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--rfj-color-text);
    text-decoration: none;
}

.event-title:hover {
    text-decoration: none;
    color: var(--rfj-color-primary);
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--rfj-color-text-muted);
}

.event-meta svg {
    flex-shrink: 0;
    color: var(--rfj-color-text-muted);
}

.event-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.event-meta-date {
    flex-shrink: 0;
    color: var(--rfj-color-text-secondary);
}

/* -- Filter Bar (consolidated) -- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 16px 24px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
}

.filter-group,
.filter-dropdown-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.filter-label {
    color: var(--rfj-color-text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-color-text-secondary);
    background: var(--rfj-color-bg-panel);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--rfj-transition);
}

.filter-chip:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.filter-chip.active {
    background: var(--rfj-gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(209, 25, 26, 0.25);
}

.filter-reset {
    margin-left: auto;
}

.filter-reset-link {
    color: var(--rfj-color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-reset-link:hover {
    color: var(--rfj-color-primary);
}

.filter-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* -- Responsive for Videos & Events -- */
@media (max-width: 992px) {
    .video-hero,
    .event-hero {
        padding: 2.5rem 0 2rem;
    }

    .video-hero-title,
    .event-hero-title {
        font-size: 2.25rem;
    }

    .video-grid,
    .event-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .video-hero,
    .event-hero {
        padding: 2rem 0 1.5rem;
    }

    .video-hero-title,
    .event-hero-title {
        font-size: 1.875rem;
    }

    .video-hero-subtitle,
    .event-hero-subtitle {
        font-size: 1rem;
    }

    .video-content,
    .event-content {
        padding: 2rem 0 3rem;
    }

    .video-intro,
    .event-intro {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .video-grid,
    .event-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .video-title,
    .event-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .video-meta-left {
        max-width: 60%;
    }

    .filter-reset {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .video-hero,
    .event-hero {
        padding: 1.5rem 0 1.25rem;
    }

    .video-hero-title,
    .event-hero-title {
        font-size: 1.5rem;
    }

    .video-grid,
    .event-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .event-body {
        padding: 0.85rem 0.9rem 1rem;
    }

    .video-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .video-filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .video-filter-chips {
        flex-wrap: nowrap;
    }
}

/* ==========================================
   Resellers Page Styles (from style.css)
   ========================================== */

.tool-card {
    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);
    transition: all var(--rfj-transition);
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.simple-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    min-height: 120px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-panel);
}

.simple-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}


.simple-card-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.simple-card:hover .simple-card-logo {
    transform: scale(1.05);
}

.simple-card-logo img {
    width: 100%;
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
    background-color: #fff;
    border-radius: 6px;
    padding: 5px;
}

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

.simple-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-lg);
    border-color: var(--rfj-color-primary);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary-hover);
    opacity: 0;
    transition: opacity var(--rfj-transition);
}

.simple-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.simple-card:hover .simple-card-title {
    color: var(--rfj-color-primary);
}
.simple-card:hover::before {
    opacity: 1;
}

.simple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary-hover);
    opacity: 0;
    transition: opacity var(--rfj-transition);
}

.reseller-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.reseller-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.reseller-card-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 80px;
    border-radius: var(--rfj-radius-md);
    background: var(--rfj-color-bg-soft);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: transform var(--rfj-transition);
}

.reseller-card:hover .reseller-card-logo {
    transform: scale(1.05);
}

.reseller-card-logo img {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.reseller-card-verified {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 50px;
    height: 50px;
}

.reseller-card-verified img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reseller-card-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rfj-color-text);
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--rfj-transition);
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.reseller-card:hover .reseller-card-title {
    color: var(--rfj-color-primary);
}

.reseller-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.reseller-level {
    font-size: 0.8125rem;
    color: var(--rfj-color-text-secondary);
    font-weight: 500;
}

.reseller-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--rfj-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.reseller-badge-agency {
    background: var(--rfj-color-blue-light);
    color: var(--rfj-color-blue);
}

.reseller-badge-direct {
    background: var(--rfj-color-success-light);
    color: var(--rfj-color-success);
}

.reseller-badge-manufacturer {
    background: linear-gradient(135deg, var(--rfj-color-primary-light), rgba(209, 25, 26, 0.15));
    color: var(--rfj-color-primary);
}

.reseller-card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--rfj-color-text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
    justify-content: center;
}

.reseller-card-location i {
    font-size: 0.875rem;
    color: var(--rfj-color-primary);
}

.reseller-card-status {
    font-size: 0.75rem;
    color: var(--rfj-color-text-muted);
    text-align: center;
    margin-top: 0.375rem;
}

.reseller-card-status-expired {
    color: var(--rfj-color-danger);
    font-weight: 600;
}

.reseller-card-status-pending {
    color: var(--rfj-color-warning);
    font-weight: 600;
}

.reseller-card-status-verified {
    color: var(--rfj-color-success);
    font-weight: 600;
}

.reseller-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rfj-color-border);
    justify-content: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-outline-primary {
    color: var(--rfj-color-primary);
    background: transparent;
    border-color: var(--rfj-color-primary-border);
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 25, 26, 0.35);
}

.reseller-card-active {
    border-color: var(--rfj-color-success-border);
}

.reseller-card-expired {
    border-color: var(--rfj-color-danger);
}

.reseller-card-manufacturer {
    border-color: var(--rfj-color-primary-border);
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-color-text);
    font-size: 1rem;
    font-family: var(--rfj-font-sans);
    transition: all var(--rfj-transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--rfj-color-primary);
    box-shadow: 0 0 0 4px var(--rfj-color-primary-shadow);
}

.form-input::placeholder {
    color: var(--rfj-color-text-muted);
}

.pretty-tabs {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.pretty-tabs > li {
    flex: 1;
}

.pretty-tabs > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 70px;
    font-size: 20px;
    font-weight: 400;
    border-radius: var(--rfj-radius-lg);
    color: var(--rfj-color-text);
    background: var(--rfj-color-bg-soft);
    box-shadow: var(--rfj-shadow-sm);
    transition: all var(--rfj-transition);
    text-decoration: none;
}

.pretty-tabs > li > a:hover {
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
}

.pretty-tabs > li.active > a,
.pretty-tabs > li.active > a:hover {
    color: #fff;
    background: var(--rfj-gradient-secondary);
    box-shadow: 0 6px 18px rgba(209, 25, 26, 0.3);
    font-weight: 400;
}

.pretty-tabs > li.active > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    margin-left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--rfj-color-primary);
}

.pretty-tabs i {
    font-size: 32px;
    opacity: 0.7;
}

.pretty-tabs > li.active > a i {
    opacity: 1;
}

@media (max-width: 768px) {
    .pretty-tabs > li > a {
        height: 50px;
        font-size: 14px;
        gap: 4px;
    }

    .pretty-tabs > li > a svg {
        width: 14px;
        height: 14px;
    }
}

.page-header {
    margin-bottom: 2rem;
}

.pb-4 {
    padding-bottom: 1rem !important;
}

.company-info {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.text-blue {
    color: var(--rfj-color-blue);
    text-decoration: none;
}

.text-blue:hover {
    color: var(--rfj-color-primary);
    text-decoration: underline;
}

.text-primary {
    color: var(--rfj-color-primary) ;
}

.text-muted {
    color: var(--rfj-color-text-muted);
    font-size: 0.875rem;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col {
    flex: 1;
    padding: 0 0.75rem;
}

.row-cols-4 > .col {
    flex: 0 0 25%;
    max-width: 25%;
}

.content-section {
    margin-bottom: 2.5rem;
}

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

.img-rounded {
    border-radius: var(--rfj-radius-md);
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.location-filter {
    margin-bottom: 2rem;
}

.location-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
}

.location-filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rfj-color-text);
}

.location-filter-reset {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--rfj-color-text-muted);
    cursor: pointer;
    transition: color var(--rfj-transition);
}

.location-filter-reset:hover {
    color: var(--rfj-color-primary);
}

.filter-level {
    margin-bottom: 0.75rem;
}

.filter-level.filter-children {
    display: none;
    margin-top: 0.5rem;
}

.filter-level.filter-children.active {
    display: block;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--rfj-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-info {
    background: var(--rfj-color-primary-light);
    border: 1px solid var(--rfj-color-primary-border);
    color: var(--rfj-color-text);
}


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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(209, 25, 26, 0.35);
    text-decoration: none;
    color: #fff;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
}

/* ==========================================
   Post Page Styles (from post.css)
   ========================================== */

.post-page {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text);
}

.featured-posts-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--rfj-color-bg-soft) 0%, transparent 100%);
}

.featured-posts-grid {
    display: grid;
    gap: 2rem;
}

.featured-posts-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.featured-posts-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

.featured-posts-grid-3 .featured-post-third {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

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

@media (max-width: 1200px) {
    .featured-posts-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .featured-posts-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .featured-posts-grid-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.featured-post-card {
    position: relative;
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--rfj-shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rfj-shadow-lg);
}

.featured-post-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.featured-post-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.1);
}

.featured-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: background 0.3s ease;
}

.featured-post-card:hover .featured-post-overlay {
    background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.9) 100%);
}

.featured-post-content {
    width: 100%;
}

.featured-post-category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--rfj-gradient-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(209, 25, 26, 0.4);
}

.featured-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-excerpt {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-filter-section {
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rfj-color-border);
}

.post-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.post-category-tabs::-webkit-scrollbar {
    display: none;
}

.post-tab-item {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: 999px;
    color: var(--rfj-color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--rfj-shadow-sm);
}

.post-tab-item:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
}

.post-tab-item.active {
    background: var(--rfj-gradient-primary);
    border-color: var(--rfj-color-primary);
    color: #fff;
    box-shadow: var(--rfj-shadow-md);
}

.post-main {
    min-height: 400px;
}

.post-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.post-count {
    font-size: 0.9375rem;
    color: var(--rfj-color-text-secondary);
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rfj-radius-lg);
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-lg);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card-content {
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 1px solid var(--rfj-color-border);
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rfj-color-text);
    height: calc(1.2rem * 1.45 * 2);
    margin: 0 0 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 200ms ease;
}

.post-card:hover .post-card-title {
    color: var(--rfj-color-primary);
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--rfj-color-text-muted);
}

.post-card-meta svg {
    flex-shrink: 0;
    color: var(--rfj-color-text-muted);
}

.post-card-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 60%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--rfj-color-text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

.post-card-date {
    flex-shrink: 0;
    color: var(--rfj-color-text-muted);
    font-size: 0.8rem;
}

.post-card-excerpt {
    font-size: 0.93rem;
    color: var(--rfj-color-text-secondary);
    line-height: 1.7;
    height: calc(0.93rem * 1.7 * 3);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0.8rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed var(--rfj-color-border);
}

.post-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0;
    color: var(--rfj-color-text-muted);
}

.post-load-more {
    text-align: center;
    padding: 3rem 0;
}

.post-no-more {
    text-align: center;
    padding: 3rem 0;
    color: var(--rfj-color-text-muted);
    font-size: 0.9375rem;
}

/* -- Case Cards (grid layout only, base styles at line 534/1373) -- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* -- Post Meta Info Box -- */
.post-meta-info-box {
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.meta-info-item {
    display: flex;
    align-items: baseline;
    padding: 0.5rem 0;
    line-height: 1.6;
}

.meta-info-item:not(:last-child) {
    border-bottom: 1px dashed var(--rfj-color-border);
}

.meta-info-label {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--rfj-color-text-secondary);
    margin-right: 0.5rem;
    min-width: 3.5rem;
}

.meta-info-value {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--rfj-color-text);
    word-break: break-word;
}

/* ==========================================
   Advisors Page Styles (from advisors.css)
   ========================================== */

.advisors-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.advisors-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-color-text);
    margin-bottom: 0.75rem;
}

.advisors-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-color-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.advisors-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.advisors-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.advisors-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-color-text-secondary);
}

.advisors-intro p + p {
    margin-top: 1rem;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.advisors-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.advisors-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.advisors-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.advisors-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.advisors-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.advisors-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfj-color-text);
    margin: 0;
}

.advisors-card-note {
    font-size: 0.95rem;
    color: var(--rfj-color-text-secondary);
    margin: 0;
}

.advisors-card-link {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    word-break: break-word;
    text-decoration: none;
}

.advisors-card-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Guides Page Styles (from guides.css)
   ========================================== */

.guides-hero {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.guides-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--rfj-color-text);
    margin-bottom: 0.75rem;
}

.guides-hero-subtitle {
    font-size: 1.05rem;
    color: var(--rfj-color-text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.guides-content {
    position: relative;
    z-index: 1;
    padding: 3rem 0 4rem;
}

.guides-intro {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--rfj-shadow-sm);
}

.guides-intro p {
    margin: 0;
    line-height: 1.8;
    color: var(--rfj-color-text-secondary);
}

.guides-intro p + p {
    margin-top: 1rem;
}

.guides-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.guides-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.guides-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.guides-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--rfj-color-bg-soft);
}

.guides-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.guides-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guides-card-body a {
    text-decoration: none;
    color: inherit;
}

.guides-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.guides-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfj-color-text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guides-card-note {
    font-size: 0.95rem;
    color: var(--rfj-color-text-secondary);
    margin: 0;
}

.guides-card-link {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    word-break: break-word;
    text-decoration: none;
}

.guides-card-link:hover {
    text-decoration: underline;
}

.guides-info {
    margin-top: 2.5rem;
    background: var(--rfj-color-bg-panel);
    color: var(--rfj-color-text-secondary);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 1.5rem 1.75rem;
    line-height: 1.7;
    box-shadow: var(--rfj-shadow-sm);
}

.guides-info-title {
    font-weight: 700;
    color: var(--rfj-color-primary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.guides-info p {
    margin: 0.25rem 0;
}

.header-label {
    margin-left: 0.35rem;
}

/* ==========================================
   Responsive Styles for Post/Advisors/Guides
   ========================================== */

@media (max-width: 1200px) {
    .post-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .post-hero {
        padding: 3rem 0 2rem;
    }

    .post-hero-title {
        font-size: 2.25rem;
    }

    .featured-posts-grid-2,
    .featured-posts-grid-3,
    .featured-posts-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-posts-grid-3 .featured-post-third {
        max-width: 100%;
    }

    .featured-post-card {
        aspect-ratio: 21/9;
    }

    .featured-post-title {
        font-size: 1.25rem;
    }

    .row-cols-4 > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .post-hero-title {
        font-size: 1.875rem;
    }

    .post-hero-subtitle {
        font-size: 1rem;
    }

    .featured-posts-section {
        padding: 2rem 0;
    }

    .featured-post-card {
        aspect-ratio: 16/9;
    }

    .featured-post-title {
        font-size: 1.125rem;
    }

    .featured-post-excerpt {
        display: none;
    }

    .post-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .post-card-image {
        height: 180px;
    }

    .post-card-title {
        font-size: 1.125rem;
        height: calc(1.125rem * 1.45 * 2);
    }

    .post-card-excerpt {
        -webkit-line-clamp: 2;
        height: calc(0.93rem * 1.7 * 2);
    }

    .post-card-author {
        max-width: 55%;
    }

    .post-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
    }

    .post-tab-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-card-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .post-meta-info-box {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .meta-info-item {
        padding: 0.4rem 0;
    }

    .meta-info-label {
        font-size: 1.2rem;
        min-width: 3rem;
    }

    .meta-info-value {
        font-size: 1.2rem;
    }

    .advisors-hero {
        padding: 2.5rem 0 2rem;
    }

    .advisors-hero-title {
        font-size: 2rem;
    }

    .advisors-content {
        padding: 2rem 0 3rem;
    }

    .advisors-intro {
        padding: 1.25rem;
    }

    .advisors-grid {
        gap: 1rem;
    }

    .advisors-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .guides-hero {
        padding: 2.5rem 0 2rem;
    }

    .guides-hero-title {
        font-size: 2rem;
    }

    .guides-content {
        padding: 2rem 0 3rem;
    }

    .guides-intro {
        padding: 1.25rem;
    }

    .guides-grid {
        gap: 1rem;
    }

    .guides-card-body {
        padding: 1rem 1rem 1.25rem;
    }

    .header-label {
        display: none;
    }

    .row-cols-4 > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pretty-tabs {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pretty-tabs > li > a {
        height: 44px;
        font-size: 12px;
        gap: 3px;
        padding: 0 8px;
    }

    .pretty-tabs > li > a svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .post-hero {
        padding: 2rem 0 1.25rem;
    }

    .post-hero-title {
        font-size: 1.5rem;
    }

    .post-card-image {
        height: 160px;
    }

    .post-card-content {
        padding: 0.85rem 1rem;
    }

    .post-card-title {
        font-size: 1rem;
        height: calc(1rem * 1.45 * 2);
    }

    .post-card-meta {
        gap: 0.375rem;
        font-size: 0.75rem;
    }

    .post-card-author {
        max-width: 55%;
    }

    .post-card-badge {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .post-card-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
        height: calc(0.875rem * 1.7 * 2);
    }

    .load-more-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9375rem;
    }

    .case-card-title {
        font-size: 0.95rem;
        height: calc(0.95rem * 1.45 * 2);
    }

    .case-card-info-row {
        min-height: 1.3rem;
    }

    .case-card-info-label,
    .case-card-info-value {
        font-size: 0.65rem;
    }

    .case-card-info-value {
        padding: 0.05rem 0.35rem;
    }

    .case-card-meta {
        font-size: 0.75rem;
    }

    .case-card-date {
        font-size: 0.75rem;
    }
}

/* ==========================================
   Company Page Styles
   ========================================== */

/* -- Vendor Activity Notice -- */
.vendor-activity-notice {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.vendor-activity-notice__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rfj-color-primary);
    white-space: nowrap;
}

.vendor-activity-notice__viewport {
    flex: 1;
    overflow: hidden;
    height: 1.375rem;
    position: relative;
}

.vendor-activity-notice__track {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vendor-activity-notice__loading {
    font-size: 0.8rem;
    color: var(--rfj-color-text-muted);
}

.vendor-activity-notice__item {
    height: 1.375rem;
    line-height: 1.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--rfj-color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-activity-notice__item a {
    color: var(--rfj-color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.vendor-activity-notice__item a:hover {
    color: var(--rfj-color-primary);
    text-decoration: underline;
}

.vendor-activity-notice__item .notice-time {
    color: var(--rfj-color-text-muted);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.vendor-activity-notice__item .notice-sep {
    color: var(--rfj-color-text-muted);
    opacity: 0.4;
    flex-shrink: 0;
}

/* -- Company Hero -- */
.company-hero {
    padding: 48px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

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

.company-hero-title .gradient-text {
    background: var(--rfj-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-hero-subtitle {
    font-size: 18px;
    color: var(--rfj-color-text-secondary);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Company Filter Section -- */
.company-filter-section {
    margin-bottom: 1.5rem;
}

.company-filter-section .filter-bar {
    padding: 12px 16px;
    gap: 0.75rem;
}

/* -- Filter Dropdown Button (company specific) -- */
.filter-dropdown-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform var(--rfj-transition);
}

.filter-dropdown.open .filter-dropdown-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.filter-dropdown-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.375rem;
    background: var(--rfj-color-primary);
    border-radius: 9px;
    font-size: 0.6875rem;
    color: white;
    margin-left: 0.25rem;
}

.filter-dropdown-btn.active .filter-count {
    background: white;
    color: var(--rfj-color-primary);
}

/* -- Filter Search Bar (company specific) -- */
.filter-search-bar i {
    color: var(--rfj-color-text-muted);
    font-size: 0.875rem;
}

.filter-search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    font-size: 0.875rem;
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text);
    outline: none;
    transition: all var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.filter-search-input:focus {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-bg-panel);
}

.filter-search-input::placeholder {
    color: var(--rfj-color-text-muted);
}

/* -- Location Three Level -- */
.filter-panel-content.location-three-level {
    flex-wrap: nowrap;
}

.filter-panel-content.location-three-level .filter-level-one,
.filter-panel-content.location-three-level .filter-level-two,
.filter-panel-content.location-three-level .filter-level-three {
    flex: 1;
    min-width: 0;
}

.filter-level-three {
    border-left: 1px solid var(--rfj-color-border);
    padding-left: 1rem;
}

/* -- Level One/Zero Items -- */
.function-level-one-item,
.location-level-zero-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-size: 0.875rem;
    color: var(--rfj-color-text-secondary);
    background: var(--rfj-color-bg-soft);
    border: 1px solid transparent;
}

.function-level-one-item:hover,
.location-level-zero-item:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-text);
}

.function-level-one-item:has(input:checked),
.location-level-zero-item:has(input:checked) {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.function-level-one-item input,
.location-level-zero-item input {
    accent-color: var(--rfj-color-primary);
}

/* -- Search Highlight -- */
.search-highlight {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary) !important;
}

.search-child-match {
    border-left: 3px solid var(--rfj-color-primary);
}

.search-mark {
    background: linear-gradient(120deg, rgba(209, 25, 26, 0.3) 0%, rgba(209, 25, 26, 0.3) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
    color: inherit;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

/* -- Filter Dropdown Panel Animation -- */
.filter-dropdown.open .filter-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* -- Single Level List -- */
.filter-level-list.single {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* -- Filter Level Item -- */
.filter-level-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-size: 0.875rem;
    color: var(--rfj-color-text-secondary);
}

.filter-level-item:hover {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text);
}

.filter-level-item.active {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
}

.filter-level-item .fa-chevron-right {
    font-size: 0.625rem;
    opacity: 0.5;
    transition: opacity var(--rfj-transition);
}

.filter-level-item:hover .fa-chevron-right {
    opacity: 1;
}

/* -- Filter Checkbox Item (company specific) -- */
.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-size: 0.875rem;
    color: var(--rfj-color-text-secondary);
    background: var(--rfj-color-bg-soft);
    border: 1px solid transparent;
}

.filter-checkbox-item:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-text);
}

.filter-checkbox-item input {
    accent-color: var(--rfj-color-primary);
}

.filter-checkbox-item:has(input:checked) {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

/* -- Filter Selected Preview -- */
.filter-selected-preview:empty::before {
    content: '暂未选择';
    color: var(--rfj-color-text-muted);
    font-size: 0.75rem;
}

.filter-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--rfj-color-primary-light);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.75rem;
    color: var(--rfj-color-primary);
}

.filter-preview-tag .fa-times,
.filter-preview-tag .filter-preview-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--rfj-transition);
}

.filter-preview-tag .fa-times:hover,
.filter-preview-tag .filter-preview-remove:hover {
    opacity: 1;
}

/* -- Filter Action Buttons (company specific) -- */
.filter-action-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--rfj-radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    border: none;
    font-family: var(--rfj-font-sans);
}

.filter-action-btn.reset {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text-secondary);
}

.filter-action-btn.reset:hover {
    background: var(--rfj-color-bg-hover);
    color: var(--rfj-color-text);
}

.filter-action-btn.confirm {
    background: var(--rfj-gradient-primary);
    color: white;
}

.filter-action-btn.confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(209, 25, 26, 0.3);
}

/* -- Filter Tags (company specific) -- */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--rfj-color-primary-light);
    border-radius: var(--rfj-radius-lg);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-primary);
    border-radius: var(--rfj-radius-md);
    font-size: 0.8125rem;
    color: var(--rfj-color-primary);
    cursor: default;
}

.filter-tag .fa-times,
.filter-tag .filter-tag-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--rfj-transition);
}

.filter-tag .fa-times:hover,
.filter-tag .filter-tag-remove:hover {
    opacity: 1;
}

.filter-tag[data-filter-type="search"] {
    background: rgba(22, 119, 255, 0.1);
    color: var(--rfj-color-blue);
    border-color: rgba(22, 119, 255, 0.2);
}

/* -- Company Main -- */
.company-main {
    padding-bottom: 4rem;
}

.company-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.company-count {
    font-size: 1rem;
    color: var(--rfj-color-text-secondary);
}

/* -- Company Grid -- */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* -- Company Card -- */
.company-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.company-card-link {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.company-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.company-card-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--rfj-radius-md);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--rfj-color-border);
}

.company-card-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.company-card-info {
    flex: 1;
    min-width: 0;
}

.company-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rfj-color-text);
    margin-bottom: 0.375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.6875rem;
    color: var(--rfj-color-text-muted);
    white-space: nowrap;
}

.company-badge.official {
    background: var(--rfj-color-blue);
    color: white;
}

.company-badge.certified {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.company-badge.certified i {
    font-size: 0.625rem;
}

.company-badge.views {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-text-muted);
    margin-left: auto;
}

.company-badge.views i {
    font-size: 0.625rem;
}

.company-card-desc {
    font-size: 0.8125rem;
    color: var(--rfj-color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4375rem;
}

.company-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    min-height: 1.625rem;
    max-height: 3.5rem;
    overflow: hidden;
    align-content: flex-start;
}

.company-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--rfj-color-primary-light);
    border: 1px solid rgba(209, 25, 26, 0.15);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.6875rem;
    color: var(--rfj-color-primary);
    transition: all var(--rfj-transition);
    white-space: nowrap;
    line-height: 1.2;
}

.company-tag:hover {
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    color: white;
    text-decoration: none;
}

.company-tag.more {
    background: var(--rfj-color-bg-soft);
    border-color: var(--rfj-color-border);
    color: var(--rfj-color-text-muted);
}

.company-tag.more:hover {
    background: var(--rfj-color-bg-hover);
    border-color: var(--rfj-color-border);
    color: var(--rfj-color-text);
}

.company-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--rfj-color-border);
    background: var(--rfj-color-bg-soft);
    margin-top: auto;
}

.company-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--rfj-radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    font-family: var(--rfj-font-sans);
}

.company-action-btn i {
    font-size: 0.75rem;
}

.company-action-btn.primary {
    background: var(--rfj-gradient-primary);
    border: none;
    color: white;
}

.company-action-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 25px rgba(209, 25, 26, 0.1);
    text-decoration: none;
    color: white;
}

.company-action-btn.secondary {
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    color: var(--rfj-color-text);
}

.company-action-btn.secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    text-decoration: none;
}

/* -- Company Loading -- */
.company-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--rfj-color-text-muted);
}

.company-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0.5rem;
}

/* -- Company Load More -- */
.company-load-more {
    text-align: center;
    padding: 2rem 0;
}

.company-no-more {
    text-align: center;
    padding: 2rem 0;
    color: var(--rfj-color-text-muted);
    font-size: 0.875rem;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .filter-bar {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .filter-dropdown-panel {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: auto;
        min-width: auto;
        width: calc(100% - 2rem);
        max-height: 80vh;
        overflow-y: auto;
    }

    .filter-panel-content {
        flex-direction: column;
    }

    .filter-panel-content.location-three-level {
        flex-wrap: wrap;
    }

    .filter-panel-content.location-three-level .filter-level-one,
    .filter-panel-content.location-three-level .filter-level-two,
    .filter-panel-content.location-three-level .filter-level-three {
        flex: 1 1 100%;
    }

    .filter-level-three {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--rfj-color-border);
        padding-top: 1rem;
    }

    .company-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .company-hero {
        padding: 32px 0 24px;
    }

    .company-hero-title {
        font-size: 28px;
    }

    .company-hero-subtitle {
        font-size: 16px;
    }

    .vendor-activity-notice {
        margin-top: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .vendor-activity-notice__label {
        font-size: 0.75rem;
    }

    .vendor-activity-notice__viewport {
        height: 1.25rem;
    }

    .vendor-activity-notice__item {
        height: 1.25rem;
        line-height: 1.25rem;
        font-size: 0.75rem;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 12px;
    }

    .filter-dropdown-group {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .filter-dropdown {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .filter-dropdown-btn {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        justify-content: center;
    }

    @keyframes mobileFilterSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .filter-panel-content {
        flex-direction: column;
        max-height: 50vh;
    }

    .filter-panel-content.location-three-level {
        flex-wrap: wrap;
    }

    .filter-panel-content.location-three-level .filter-level-one,
    .filter-panel-content.location-three-level .filter-level-two,
    .filter-panel-content.location-three-level .filter-level-three {
        flex: 1 1 100%;
    }

    .filter-level-three {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--rfj-color-border);
        padding-top: 1rem;
    }

    .filter-reset-all {
        flex-shrink: 0;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .company-card-link {
        padding: 1rem;
    }

    .company-card-header {
        gap: 0.75rem;
    }

    .company-card-logo {
        width: 48px;
        height: 48px;
    }

    .company-card-title {
        font-size: 0.9375rem;
    }

    .company-card-actions {
        padding: 0.75rem 1rem;
        gap: 0.375rem;
    }

    .company-action-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .company-hero {
        padding: 24px 0 16px;
    }

    .company-hero-title {
        font-size: 24px;
    }

    .company-card-actions {
        flex-wrap: wrap;
    }

    .company-action-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
    }

    .company-action-btn.primary {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* ==========================================
   Ranking Page Styles
   ========================================== */

/* -- Hero Section -- */
.hero {
    padding: 48px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

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

.hero-title .gradient-text {
    background: var(--rfj-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--rfj-color-text-secondary);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* -- Hero Banner -- */
.hero-banner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    box-shadow: var(--rfj-shadow-lg);
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* -- Categories Navigation -- */
.categories-nav {
    position: sticky;
    top: 50px;
    z-index: 50;
    padding: 1rem 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--rfj-radius-md);
    box-shadow: var(--rfj-shadow-sm);
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.categories-list {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    color: var(--rfj-color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    white-space: nowrap;
    font-family: var(--rfj-font-sans);
}

.category-btn:hover {
    background: var(--rfj-gradient-secondary);
    color: white;
}

.category-btn.active {
    background: var(--rfj-gradient-secondary);
    border-color: transparent;
    color: white;
    box-shadow: var(--rfj-shadow-md);
}

.category-btn .icon {
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
    flex-shrink: 0;
    object-fit: contain;
}

.category-btn .count {
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--rfj-radius-sm);
    font-size: 0.75rem;
}

.category-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* -- Main Content -- */
.main-content {
    padding-bottom: 4rem;
}

/* -- Loading -- */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 16px;
    color: var(--rfj-color-text-muted);
    font-size: 14px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -- Ranking Grid & Cards -- */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
}

.ranking-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
    cursor: pointer;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary);
    opacity: 0;
    transition: opacity var(--rfj-transition);
    z-index: 1;
}

.ranking-card:hover {
    transform: translateY(-4px);
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 25px var(--rfj-color-primary-shadow);
}

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

.ranking-card-image {
    width: 130px;
    min-height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    margin: 12px;
    border-radius: var(--rfj-radius-md);
}

.ranking-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--rfj-transition);
    border-radius: var(--rfj-radius-md);
}

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

.ranking-card-content {
    flex: 1;
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ranking-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rfj-color-text);
    margin-bottom: 0.4rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ranking-card-date {
    font-size: 0.7rem;
    color: var(--rfj-color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ranking-card-date svg {
    width: 12px;
    height: 12px;
}

.ranking-card-desc {
    font-size: 0.75rem;
    color: var(--rfj-color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .ranking-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 0 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        flex-direction: column;
    }

    .ranking-card-image {
        width: 100%;
        margin: 12px 12px 0;
        min-height: 160px;
    }

    .ranking-card-content {
        padding: 12px;
    }

    .categories-nav {
        top: auto;
        position: relative;
    }

    .categories-list {
        gap: 0.25rem;
    }

    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 0 16px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-banner {
        border-radius: var(--rfj-radius-sm);
    }
}

/* Categories Page Styles */
.categories-hero {
    padding: 48px 0 36px;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

.categories-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rfj-color-text);
    text-align: center;
    margin: 0 0 12px;
}

.categories-hero-subtitle {
    text-align: center;
    color: var(--rfj-color-text-secondary);
    font-size: 18px;
    margin: 0 0 32px;
}

.categories-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.categories-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 8px;
    transition: all var(--rfj-transition);
    box-shadow: var(--rfj-shadow-md);
}

.categories-search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.categories-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--rfj-color-text);
    outline: none;
    font-family: var(--rfj-font-sans);
}

.categories-search-input::placeholder {
    color: var(--rfj-color-text-muted);
}

.categories-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--rfj-radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--rfj-transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.categories-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.categories-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 25px rgba(209, 25, 26, 0.1);
}

.categories-search-btn:hover::before {
    left: 100%;
}

.categories-search-btn svg {
    width: 20px;
    height: 20px;
}

.categories-help-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--rfj-color-text-muted);
    text-align: center;
}

.categories-help-text a {
    color: var(--rfj-color-primary);
    text-decoration: none;
    transition: color var(--rfj-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.categories-help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.categories-main-wrapper {
    display: flex;
    gap: 32px;
    padding: 32px 0 64px;
}

.categories-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.categories-nav-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 24px;
    box-shadow: var(--rfj-shadow-sm);
}

.categories-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rfj-color-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rfj-color-border);
}

.categories-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-nav-item {
    margin-bottom: 8px;
}

.categories-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--rfj-color-text-secondary);
    text-decoration: none;
    border-radius: var(--rfj-radius-md);
    transition: all var(--rfj-transition);
    font-size: 14px;
}

.categories-nav-link:hover {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text);
}

.categories-nav-item.active .categories-nav-link {
    background: var(--rfj-gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(209, 25, 26, 0.3);
}

.categories-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.categories-nav-icon img {
    width: 100%;
    height: auto;
    border-radius: var(--rfj-radius-sm);
}

.categories-content {
    flex: 1;
    min-width: 0;
}

.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.category-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--rfj-color-text);
    transition: all var(--rfj-transition);
}

.category-title-link:hover {
    color: var(--rfj-color-primary);
}

.category-title-link:hover .category-title-arrow {
    transform: translateX(4px);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-md);
    flex-shrink: 0;
}

.category-icon img {
    width: 28px;
    height: auto;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.category-title-arrow {
    color: var(--rfj-color-text-muted);
    transition: transform var(--rfj-transition);
}

.category-count {
    padding: 4px 12px;
    background: var(--rfj-color-bg-soft);
    border-radius: var(--rfj-radius-lg);
    font-size: 12px;
    color: var(--rfj-color-text-muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    position: relative;
    overflow: hidden;
    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);
    transition: all var(--rfj-transition);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rfj-gradient-primary);
    opacity: 0;
    transition: opacity var(--rfj-transition);
}

.category-card:hover {
    border-color: var(--rfj-color-primary-border);
    box-shadow: var(--rfj-shadow-md);
    transform: translateY(-2px);
}

.category-card-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.category-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rfj-color-text);
    transition: color var(--rfj-transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

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

.category-section.hidden,
.category-card.hidden {
    display: none;
}



/* ==========================================
   Featured Category Cards (Home Page)
   ========================================== */

.featured-category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    overflow: hidden;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

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

.featured-category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cat-color, var(--rfj-gradient-primary));
    opacity: 0;
    transition: opacity var(--transition-normal);
    right:auto;
    height: auto;
}

.featured-category-card .category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--rfj-radius-md);
    background: rgba(99, 102, 241, 0.1);
    color: var(--cat-color, var(--rfj-color-primary));
    transition: all 0.3s ease;
}

.featured-category-card:hover .category-icon {
    transform: scale(1.05) rotate(-3deg);
}

.featured-category-card .category-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.featured-category-card:hover .category-icon svg {
    transform: scale(1.1);
}

.featured-category-card .category-info {
    flex: 1;
    min-width: 0;
}

.featured-category-card .category-name {
    margin: 0;
    color: var(--rfj-color-text);
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

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

.featured-category-card .category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text-muted);
    transition: all 0.3s ease;
}

.featured-category-card .category-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.featured-category-card:hover .category-arrow {
    background: var(--rfj-color-bg-tint);
    color: var(--rfj-color-primary);
    transform: translateX(2px);
}

.featured-category-card:hover .category-arrow svg {
    transform: translateX(2px);
}

.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 25px rgba(209, 25, 26, 0.1);
    transition: all var(--rfj-transition);
}

.mobile-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(209, 25, 26, 0.4), 0 0 40px rgba(209, 25, 26, 0.2);
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--rfj-transition);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--rfj-color-bg);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform var(--rfj-transition);
    overflow-y: auto;
    padding: 24px;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rfj-color-border);
}

.mobile-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rfj-color-text);
}

.mobile-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: 50%;
    color: var(--rfj-color-text-secondary);
    cursor: pointer;
    transition: all var(--rfj-transition);
}

.mobile-sidebar-close:hover {
    background: var(--rfj-color-bg-soft);
    color: var(--rfj-color-text);
}

.admin-bar .categories-sidebar {
    top: 112px;
    max-height: calc(100vh - 152px);
}

@media (max-width: 1024px) {
    .categories-sidebar {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-sidebar-overlay {
        display: block;
    }

    .mobile-sidebar {
        display: block;
    }
}

@media (max-width: 768px) {
    .categories-hero {
        padding: 32px 0 24px;
    }

    .categories-hero-title {
        font-size: 28px;
    }

    .categories-hero-subtitle {
        font-size: 16px;
    }

    .categories-search-box {
        padding: 6px;
    }

    .categories-search-input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .categories-search-btn {
        width: 44px;
        height: 44px;
    }

    .categories-main-wrapper {
        gap: 0;
        padding: 24px 0 48px;
    }

    .category-section {
        margin-bottom: 32px;
    }

    .category-header {
        margin-bottom: 16px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
    }

    .category-icon img {
        width: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card-link {
        padding: 16px;
    }

    .category-card-title {
        font-size: 14px;
    }

    .mobile-nav-toggle {
        bottom: 80px;
        right: auto;
        left: 24px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .categories-hero {
        padding: 24px 0 16px;
    }

    .categories-hero-title {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card-link {
        padding: 14px;
    }
}

@media (max-width: 782px) {
    .admin-bar .categories-sidebar {
        top: 92px;
        max-height: calc(100vh - 132px);
    }
}

/* ==========================================
   Software List Page Styles
   ========================================== */

/* -- Hero Section -- */
.post-hero {
    padding: 48px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #f7faff 0, #fff 300px);
}

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

.post-hero-subtitle {
    font-size: 18px;
    color: var(--rfj-color-text-secondary);
    margin: 0 0 32px;
}

/* -- Search Box -- */
.search-wrapper {
    max-width: 600px;
    margin: 24px auto 0;
}

.search-wrapper .search-box {
    display: flex;
    align-items: center;
    background: var(--rfj-color-bg-panel);
    border: 2px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    padding: 6px;
    transition: all var(--rfj-transition);
    box-shadow: var(--rfj-shadow-md);
}

.search-wrapper .search-box:focus-within {
    border-color: var(--rfj-color-primary);
    box-shadow: var(--rfj-shadow-lg), 0 0 0 4px var(--rfj-color-primary-shadow);
}

.search-wrapper .search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--rfj-color-text);
    outline: none;
    font-family: var(--rfj-font-sans);
}

.search-wrapper .search-input::placeholder {
    color: var(--rfj-color-text-muted);
}

.search-wrapper .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--rfj-radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--rfj-transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.search-wrapper .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.search-wrapper .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 25px rgba(209, 25, 26, 0.1);
}

.search-wrapper .search-btn:hover::before {
    left: 100%;
}

.search-wrapper .search-btn svg {
    width: 20px;
    height: 20px;
}

.search-wrapper .help-text {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--rfj-color-text-muted);
}

.search-wrapper .help-text a {
    color: var(--rfj-color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--rfj-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.search-wrapper .help-text a:hover {
    color: var(--rfj-color-primary-hover);
    text-decoration: underline;
}

.search-tip {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--rfj-color-text-muted);
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: searchTipFadeIn 0.3s ease;
}

@keyframes searchTipFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-wrapper .search-box.shake {
    animation: searchShake 0.4s ease;
    border-color: var(--rfj-color-danger) !important;
}

@keyframes searchShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* -- Filter Section -- */
.software-filter-section {
    margin-bottom: 32px;
}

/* -- Filter Dropdown Trigger -- */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--rfj-color-bg-soft);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--rfj-transition);
    white-space: nowrap;
    font-family: var(--rfj-font-sans);
}

.filter-dropdown-btn:hover {
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
}

.filter-dropdown-btn.active {
    background: var(--rfj-color-primary-light);
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--rfj-color-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* -- Filter Panel -- */
.filter-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 480px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.filter-dropdown.open .filter-dropdown-panel {
    display: block;
    animation: filterPanelIn 0.2s ease;
}

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

.filter-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rfj-color-border);
}

.filter-search-bar svg {
    color: var(--rfj-color-text-muted);
    flex-shrink: 0;
}

.filter-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 14px;
    color: var(--rfj-color-text);
    outline: none;
    font-family: var(--rfj-font-sans);
}

.filter-panel-content {
    display: flex;
    max-height: 320px;
    overflow-y: auto;
}

.filter-panel-content.single-level {
    padding: 12px 16px;
    flex-direction: column;
}

.filter-level-one,
.filter-level-two {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
}

.filter-level-one {
    border-right: 1px solid var(--rfj-color-border);
}

.filter-level-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--rfj-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--rfj-radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--rfj-color-text);
    transition: background 0.15s ease;
}

.filter-checkbox-item:hover {
    background: var(--rfj-color-bg-soft);
}

.filter-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--rfj-color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox-item.search-highlight span mark {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    border-radius: 2px;
    padding: 0 2px;
}

.filter-empty-tip {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--rfj-color-text-muted);
}

/* -- Filter Panel Footer -- */
.filter-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--rfj-color-border);
    background: var(--rfj-color-bg-soft);
}

.filter-selected-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-height: 24px;
    overflow: hidden;
}

.filter-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--rfj-color-primary-light);
    border-radius: 999px;
    font-size: 12px;
    color: var(--rfj-color-primary);
}

.filter-panel-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.filter-action-btn {
    padding: 6px 16px;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.filter-action-btn.reset {
    background: transparent;
    color: var(--rfj-color-text-secondary);
}

.filter-action-btn.reset:hover {
    background: var(--rfj-color-bg-panel);
    border-color: var(--rfj-color-border-strong);
}

.filter-action-btn.confirm {
    background: var(--rfj-color-primary);
    border-color: var(--rfj-color-primary);
    color: #fff;
}

.filter-action-btn.confirm:hover {
    background: var(--rfj-color-primary-hover);
    border-color: var(--rfj-color-primary-hover);
}

/* -- Clear All Button -- */
.filter-reset-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-color-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--rfj-transition);
    white-space: nowrap;
    font-family: var(--rfj-font-sans);
}

.filter-reset-all:hover {
    color: var(--rfj-color-danger);
    border-color: var(--rfj-color-danger);
}

/* -- Custom Select -- */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 1rem;
    background: var(--rfj-color-bg);
    border: 2px solid var(--rfj-color-blue);
    border-radius: var(--rfj-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select-selection:hover {
    border-color: var(--rfj-color-bg-hover);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.custom-select-rendered {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-rendered:empty::before {
    content: attr(data-placeholder);
    color: var(--rfj-color-text-muted);
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--rfj-color-primary);
    transition: transform var(--transition-fast);
}

.custom-select-arrow.open {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--rfj-color-bg-soft);
    border: 2px solid var(--rfj-color-blue);
    border-radius: var(--rfj-radius-lg);
    box-shadow: var(--rfj-shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow: hidden;
    flex-direction: column;
}

.custom-select-dropdown.open {
    display: flex;
}

.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rfj-color-border);
}

.custom-select-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--rfj-color-bg);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-color-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.custom-select-search-input:focus {
    outline: none;
    border-color: var(--rfj-color-primary);
    background: var(--rfj-color-bg);
}

.custom-select-search-input::placeholder {
    color: var(--rfj-color-primary);
}

.custom-select-results {
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    color: var(--rfj-color-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-select-option:hover {
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
}

.custom-select-option img {
    max-width: 60px;
    max-height: 20px;
    object-fit: contain;
    background-color: var(--rfj-color-bg);
}

.custom-select-message {
    padding: 1rem;
    text-align: center;
    color: var(--rfj-color-text-muted);
    font-size: 0.9rem;
}

.custom-select-error {
    color: #ef4444;
}

.custom-select-loading {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--rfj-color-text-muted);
    font-size: 0.9rem;
}

.custom-select-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--rfj-color-border);
    border-top-color: var(--rfj-color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.help-text {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--rfj-color-text-muted);
}

@keyframes filterTagIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.filter-tag svg,
.filter-tag .filter-tag-close,
.filter-tag .filter-tag-remove,
.filter-tag .fa-times {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--rfj-transition);
    text-decoration: none;
    color: inherit;
}

.filter-tag svg:hover,
.filter-tag .filter-tag-close:hover,
.filter-tag .filter-tag-remove:hover,
.filter-tag .fa-times:hover {
    opacity: 1;
}

.filter-tag[data-filter-type="search"] {
    background: rgba(22, 119, 255, 0.1);
    color: var(--rfj-color-blue);
}

.filter-tag.muted {
    color: var(--rfj-color-text-muted);
    border-style: dashed;
    background: var(--rfj-color-bg-panel);
}

/* -- Software Grid -- */
.software-main {
    min-height: 300px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* -- Software Card -- */
.software-card {
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-lg);
    overflow: hidden;
    transition: all var(--rfj-transition);
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rfj-shadow-md);
    border-color: var(--rfj-color-primary-border);
}

.software-card-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    flex: 1;
}

.software-card-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--rfj-radius-md);
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--rfj-color-border);
}

.software-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.software-card-info {
    flex: 1;
    min-width: 0;
}

.software-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rfj-color-text);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.software-card-status {
    display: inline-block;
    padding: 1px 6px;
    background: var(--rfj-color-primary-light);
    color: var(--rfj-color-primary);
    font-size: 10px;
    font-weight: 500;
    border-radius: var(--rfj-radius-xs);
    flex-shrink: 0;
    line-height: 1.5;
}

.software-card-vendor {
    font-size: 13px;
    color: var(--rfj-color-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.software-card-function-text {
    font-size: 12px;
    color: var(--rfj-color-text-muted);
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Software Brief -- */
.software-card-brief {
    padding: 0 20px;
    flex: 1;
}

.software-card-brief p {
    font-size: 13px;
    color: var(--rfj-color-text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Card Footer -- */
.software-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid var(--rfj-color-border);
    background: var(--rfj-color-bg-soft);
}

.software-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.software-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--rfj-color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.software-card-views svg {
    width: 12px;
    height: 12px;
}

/* -- Enquiry Button -- */
.software-card-enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--rfj-gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--rfj-radius-sm);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--rfj-transition);
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.software-card-enquiry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(209, 25, 26, 0.3), 0 0 25px rgba(209, 25, 26, 0.1);
    text-decoration: none;
    color: #fff;
}

/* -- No Results -- */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 16px;
}

.no-results-icon {
    color: var(--rfj-color-text-muted);
    opacity: 0.4;
    margin-bottom: 16px;
}

.no-results-text {
    font-size: 16px;
    color: var(--rfj-color-text-muted);
}

/* -- Loading Spinner -- */
.software-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    color: var(--rfj-color-text-muted);
    font-size: 14px;
}

/* -- Load More -- */
.software-load-more {
    text-align: center;
    padding: 24px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 32px;
    background: var(--rfj-color-bg-panel);
    border: 1px solid var(--rfj-color-border);
    border-radius: var(--rfj-radius-md);
    color: var(--rfj-color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--rfj-transition);
    font-family: var(--rfj-font-sans);
}

.load-more-btn:hover {
    border-color: var(--rfj-color-primary);
    color: var(--rfj-color-primary);
    background: var(--rfj-color-primary-light);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* -- No More -- */
.software-no-more {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--rfj-color-text-muted);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .post-hero {
        padding: 32px 0 24px;
    }

    .post-hero-title {
        font-size: 28px;
    }

    .post-hero-subtitle {
        font-size: 16px;
    }

    .search-wrapper {
        margin: 16px auto 0;
    }

    .search-wrapper .search-input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .search-wrapper .search-btn {
        width: 44px;
        height: 44px;
    }

    .filter-bar {
        padding: 12px 16px;
        gap: 12px;
    }

    .filter-dropdown-panel {
        min-width: 300px;
        left: -16px;
    }


    .filter-level-one {
        border-right: none;
        border-bottom: 1px solid var(--rfj-color-border);
    }

    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .software-card-link {
        padding: 16px;
        gap: 12px;
    }

    .software-card-logo {
        width: 48px;
        height: 48px;
    }

    .software-card-brief {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .post-hero {
        padding: 24px 0 16px;
    }

    .post-hero-title {
        font-size: 24px;
    }

    .filter-bar {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-dropdown-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }
}
