/* ═══════════════════════════════════════════════════════════════
   QUESTO HUB — FLAGSHIP HOMEPAGE STYLES
   Design Tokens: Library Page Visual Consistency
   Font: Inter | Theme: Dark Glassmorphic
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ── Design Tokens ── */
:root {
    --lib-bg: #0b0e14;
    --lib-surface: rgba(20, 24, 36, 0.6);
    --lib-surface-hover: rgba(30, 35, 50, 0.8);
    --lib-surface-solid: #141824;
    --lib-border: rgba(255, 255, 255, 0.08);
    --lib-border-hover: rgba(255, 255, 255, 0.15);
    --lib-text: #e2e8f0;
    --lib-text-muted: #94a3b8;
    --lib-text-dim: #64748b;
    --lib-accent: #f9df7b;
    --lib-accent-hover: #e8d05f;
    --lib-accent-glow: rgba(249, 223, 123, 0.12);
    --lib-teal: #0d9488;
    --lib-teal-glow: rgba(13, 148, 136, 0.15);
    --lib-gold: #f9df7b;
    --lib-gold-glow: rgba(249, 223, 123, 0.12);
    --lib-purple: #a855f7;
    --lib-purple-glow: rgba(168, 85, 247, 0.15);
    --lib-rose: #f43f5e;
    --lib-rose-glow: rgba(244, 63, 94, 0.15);
    --lib-blue: #3b82f6;
    --lib-blue-glow: rgba(59, 130, 246, 0.15);
    --lib-success: #10b981;
    --lib-danger: #ef4444;
    --lib-radius: 16px;
    --lib-radius-sm: 10px;
    --lib-radius-xs: 6px;
    --lib-radius-lg: 20px;
    --lib-radius-xl: 24px;
    --lib-transition: 0.25s ease;
    --smooth: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after, a, button, input, textarea, select, [role="button"] {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent !important;
}

.qh-home {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #0c1a2e 45%, #0b0e14 100%) fixed !important;
    color: var(--lib-text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.qh-home a {
    text-decoration: none;
    color: inherit;
}

.qh-home section {
    padding: 120px 24px;
    position: relative;
}

/* Sleek Centered Half-Line Section Dividers (Profile Page Signature Style) */
.qh-home section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(249, 223, 123, 0.45) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.qh-home section::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f9df7b;
    box-shadow: 0 0 8px #f9df7b, 0 0 14px rgba(249, 223, 123, 0.6);
    pointer-events: none;
    z-index: 3;
}

.qh-home section:last-of-type::after,
.qh-home section:last-of-type::before {
    display: none;
}

/* ═══════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════ */

@keyframes qh-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes qh-float-alt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes qh-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes qh-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes qh-pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes qh-scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

@keyframes qh-fade-up {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes qh-slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Scroll Reveal ── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: var(--smooth);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Accent Text ── */
.accent-text {
    color: var(--lib-accent);
}

/* ═══════════════════════════════════════
   SHARED SECTION HEADER
   ═══════════════════════════════════════ */

.qh-section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.qh-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(249, 223, 123, 0.08);
    color: var(--lib-accent);
    border: 1px solid rgba(249, 223, 123, 0.12);
    margin-bottom: 20px;
}

.qh-section-badge i {
    font-size: 0.75rem;
}

.qh-section-header h2 {
    font-size: 2.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.qh-section-header > p {
    font-size: 1.125rem;
    color: var(--lib-text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   1. HERO SECTION
   ═══════════════════════════════════════ */

.qh-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 24px 80px;
    overflow: hidden;
    z-index: 1;
    background: transparent !important;
}

/* Gradient mesh orbs */
.qh-hero::before,
.qh-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

.qh-hero::before {
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(13, 148, 136, 0.07) 0%, transparent 60%);
    animation: qh-pulse-glow 10s ease-in-out infinite;
}

.qh-hero::after {
    bottom: -15%;
    right: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(249, 223, 123, 0.05) 0%, transparent 60%);
    animation: qh-pulse-glow 12s ease-in-out infinite 3s;
}

.qh-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Hero Content (Left) */
.qh-hero-content {
    flex: 1;
    max-width: 600px;
    animation: qh-fade-up 1s ease forwards;
}

.qh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(13, 148, 136, 0.1);
    color: var(--lib-teal);
    border: 1px solid rgba(13, 148, 136, 0.2);
    margin-bottom: 24px;
}

.qh-hero-badge i {
    font-size: 0.75rem;
}

.qh-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.qh-hero-subtitle {
    font-size: 1.15rem;
    color: var(--lib-text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

.qh-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons — Library-Exact Pattern */
.qh-home .qh-btn-primary,
.qh-home a.qh-btn-primary,
.qh-home button.qh-btn-primary,
.qh-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--lib-accent) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 0.88rem;
    border-radius: var(--lib-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--lib-transition);
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-decoration: none !important;
}

.qh-home .qh-btn-primary *,
.qh-home a.qh-btn-primary *,
.qh-home button.qh-btn-primary *,
.qh-btn-primary i,
.qh-btn-primary span {
    color: #000000 !important;
}

.qh-home .qh-btn-primary:hover,
.qh-home a.qh-btn-primary:hover,
.qh-btn-primary:hover {
    background: var(--lib-accent-hover) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 223, 123, 0.25);
}

.qh-btn-primary:active {
    transform: translateY(0);
}

.qh-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--lib-surface);
    color: var(--lib-text);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--lib-radius-sm);
    border: 1px solid var(--lib-border);
    cursor: pointer;
    transition: all var(--lib-transition);
    backdrop-filter: blur(8px);
    font-family: inherit;
    white-space: nowrap;
}

.qh-btn-secondary:hover {
    background: var(--lib-surface-hover);
    border-color: var(--lib-border-hover);
    transform: translateY(-2px);
}

.qh-btn-secondary:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   1.2 DEDICATED GLOBAL SEARCH SECTION
   ═══════════════════════════════════════ */

.qh-search-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.qh-search-container {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: rgba(15, 21, 34, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 36px 32px 28px;
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 50;
    transition: all 0.3s ease;
}

/* Segmented Filter Track */
.qh-search-tabs-track {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.qh-search-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow-x: auto;
    scrollbar-width: none;
}

.qh-search-tabs::-webkit-scrollbar {
    display: none;
}

.qh-search-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--lib-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none !important;
}

.qh-search-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.qh-search-tab.active {
    background: rgba(249, 223, 123, 0.15);
    border-color: rgba(249, 223, 123, 0.4);
    color: #f9df7b;
    box-shadow: none !important;
}

/* Main Command Bar Input Wrapper */
.qh-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(8, 12, 20, 0.92);
    border: 1px solid rgba(249, 223, 123, 0.25);
    border-radius: 20px;
    padding: 8px 10px 8px 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none !important;
}

.qh-search-input-wrapper:focus-within {
    border-color: rgba(249, 223, 123, 0.75);
    box-shadow: none !important;
    background: rgba(12, 17, 28, 0.98);
}

.qh-search-left-group {
    display: flex;
    align-items: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.qh-search-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(249, 223, 123, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249, 223, 123, 0.2);
}

.qh-search-icon {
    color: #f9df7b;
    font-size: 0.95rem;
}

.qh-search-input-wrapper input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 500;
    padding: 12px 0;
}

.qh-search-input-wrapper input::placeholder {
    color: var(--lib-text-dim);
    font-size: 0.9rem;
}

.qh-search-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.qh-search-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.qh-search-shortcut kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: none !important;
    color: var(--lib-text-muted);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 6px;
}

.qh-search-btn {
    padding: 0 14px 0 20px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f9df7b 0%, #d9b843 100%);
    border: none;
    color: #0b0f19;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: none !important;
}

.qh-btn-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.85);
    color: #f9df7b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.qh-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: none !important;
    background: linear-gradient(135deg, #ffe68d 0%, #e0be4e 100%);
}

.qh-search-btn:hover .qh-btn-icon-circle {
    transform: translateX(2px);
}

/* Trending Quick Search Tags */
.qh-search-trending {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lib-text-muted);
}

.trending-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lib-text-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.trending-tag:hover {
    color: #f9df7b;
    background: rgba(249, 223, 123, 0.1);
    border-color: rgba(249, 223, 123, 0.3);
}

/* Dropdown Autocomplete Results */
.qh-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(14, 19, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(24px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    max-height: 420px;
    overflow-y: auto;
    z-index: 100;
    animation: qh-fade-in 0.2s ease-out;
}

.qh-search-dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qh-search-group-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f9df7b;
    padding: 6px 10px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.qh-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.qh-search-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.qh-search-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(249, 223, 123, 0.3);
}

.qh-search-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(249, 223, 123, 0.15);
    color: #f9df7b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(249, 223, 123, 0.3);
}

.qh-search-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.15);
    color: #2dd4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.qh-search-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qh-search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qh-search-item-sub {
    font-size: 0.72rem;
    color: var(--lib-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qh-search-item-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--lib-text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qh-search-loading,
.qh-search-empty {
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--lib-text-muted);
}

/* Hero Visual (Right) — Floating Glass Cards */
.qh-hero-visual {
    flex: 0 0 380px;
    position: relative;
    height: 380px;
}

.qh-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--lib-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius);
    color: var(--lib-text);
    animation: qh-float 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.qh-float-card:nth-child(1) { top: 20px; left: 20px; }
.qh-float-card:nth-child(2) { top: 140px; left: 80px; animation-name: qh-float-alt; }
.qh-float-card:nth-child(3) { top: 260px; left: 10px; }

.qh-float-card i {
    font-size: 1.4rem;
    color: var(--lib-teal);
    flex-shrink: 0;
}

.qh-float-card div {
    display: flex;
    flex-direction: column;
}

.qh-float-card strong {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.qh-float-card span {
    font-size: 0.78rem;
    color: var(--lib-text-muted);
}

/* Stats Bar */
.qh-hero-stats {
    max-width: 1000px;
    width: 100%;
    margin: 64px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 28px 40px;
    background: var(--lib-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius-lg);
}

.qh-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.qh-hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.qh-hero-stat-label {
    font-size: 0.8rem;
    color: var(--lib-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qh-hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--lib-border);
}

/* Scroll Indicator */
.qh-scroll-indicator {
    margin-top: 40px;
    text-align: center;
    color: var(--lib-text-dim);
    font-size: 1.1rem;
    animation: qh-scroll-bounce 2s ease infinite;
}

/* ═══════════════════════════════════════
   1.5 REAL PLATFORM ANALYTICS
   ═══════════════════════════════════════ */

.qh-analytics {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.qh-analytics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.qh-analytics-card {
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.qh-analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qh-analytics-card.card-gold::before { background: linear-gradient(90deg, #f9df7b, transparent); }
.qh-analytics-card.card-teal::before { background: linear-gradient(90deg, #0d9488, transparent); }
.qh-analytics-card.card-rose::before { background: linear-gradient(90deg, #f43f5e, transparent); }
.qh-analytics-card.card-purple::before { background: linear-gradient(90deg, #a855f7, transparent); }

.qh-analytics-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 223, 123, 0.3);
    background: rgba(24, 32, 50, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.qh-analytics-card:hover::before {
    opacity: 1;
}

.analytics-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.analytics-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.qh-analytics-card.card-gold .analytics-icon { background: rgba(249, 223, 123, 0.12); color: #f9df7b; border: 1px solid rgba(249, 223, 123, 0.2); }
.qh-analytics-card.card-teal .analytics-icon { background: rgba(13, 148, 136, 0.12); color: #2dd4bf; border: 1px solid rgba(13, 148, 136, 0.2); }
.qh-analytics-card.card-rose .analytics-icon { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.2); }
.qh-analytics-card.card-purple .analytics-icon { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }

.analytics-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--lib-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.analytics-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.analytics-sub {
    font-size: 0.72rem;
    color: var(--lib-text-muted);
    line-height: 1.3;
}

/* ═══════════════════════════════════════
   2. ECOSYSTEM SECTION
   ═══════════════════════════════════════ */

.qh-ecosystem {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.qh-eco-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 44px;
    padding: 0 16px;
    max-width: 1100px;
    width: 100%;
}

.qh-eco-filters::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .qh-eco-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 20px 14px;
        margin-bottom: 28px;
    }
}

.qh-eco-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 11px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--lib-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qh-eco-filter-btn:hover {
    background: rgba(30, 40, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.qh-eco-filter-btn.active {
    background: var(--lib-accent) !important;
    color: #000000 !important;
    border-color: var(--lib-accent) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.qh-eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Ultra-Premium Glass Ecosystem Card */
.qh-eco-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: rgba(18, 24, 38, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--lib-radius);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qh-eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lib-accent), var(--lib-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qh-eco-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 223, 123, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: rgba(24, 32, 50, 0.8);
}

.qh-eco-card:hover::before {
    opacity: 1;
}

/* Themed glow on hover */
.qh-eco-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.qh-eco-card:hover .qh-eco-card-glow { opacity: 1; }

.qh-eco-card.card-teal .qh-eco-card-glow { background: radial-gradient(circle at 50% 0%, rgba(13, 148, 136, 0.15), transparent 60%); }
.qh-eco-card.card-gold .qh-eco-card-glow { background: radial-gradient(circle at 50% 0%, rgba(249, 223, 123, 0.12), transparent 60%); }
.qh-eco-card.card-purple .qh-eco-card-glow { background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 60%); }
.qh-eco-card.card-rose .qh-eco-card-glow { background: radial-gradient(circle at 50% 0%, rgba(244, 63, 94, 0.15), transparent 60%); }

.qh-eco-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.qh-eco-card-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--lib-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qh-eco-card-xp {
    font-size: 0.72rem;
    font-weight: 800 !important;
    color: #000000 !important;
    background: var(--lib-accent) !important;
    padding: 3px 10px;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(249, 223, 123, 0.3);
    letter-spacing: 0.02em;
}

.qh-eco-card-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--lib-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 100px;
    margin-top: 14px;
    transition: all 0.25s ease;
}

.qh-eco-card-feature i {
    font-size: 0.7rem;
    color: var(--lib-accent);
}

.qh-eco-card:hover .qh-eco-card-feature {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(249, 223, 123, 0.2);
    color: #ffffff;
}

/* Icon Container — Premium Pattern */
.qh-eco-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qh-eco-card.card-teal .qh-eco-card-icon {
    background: rgba(13, 148, 136, 0.12);
    color: #2dd4bf;
    border: 1px solid rgba(13, 148, 136, 0.25);
}
.qh-eco-card.card-gold .qh-eco-card-icon {
    background: rgba(249, 223, 123, 0.12);
    color: #f9df7b;
    border: 1px solid rgba(249, 223, 123, 0.25);
}
.qh-eco-card.card-purple .qh-eco-card-icon {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.qh-eco-card.card-rose .qh-eco-card-icon {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.qh-eco-card-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.qh-eco-card-body h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.qh-eco-card-body p {
    font-size: 0.88rem;
    color: var(--lib-text-muted);
    line-height: 1.6;
}

.qh-eco-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--lib-text-dim);
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.qh-eco-card-arrow i {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 0.82rem !important;
    transition: transform 0.25s ease !important;
}

.qh-eco-card:hover .qh-eco-card-arrow {
    color: var(--lib-accent);
}

.qh-eco-card:hover .qh-eco-card-arrow i {
    transform: translateX(5px);
}

/* ═══════════════════════════════════════
   3. WHY QUESTO HUB
   ═══════════════════════════════════════ */

.qh-why {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.qh-why-timeline {
    position: relative;
    padding-left: 48px;
}

.qh-why-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--lib-teal), var(--lib-accent), var(--lib-success));
    border-radius: 2px;
}

.qh-why-step {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}

.qh-why-step:last-child {
    margin-bottom: 0;
}

.qh-why-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lib-surface-solid);
    border: 2px solid var(--lib-border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--lib-accent);
    flex-shrink: 0;
    position: absolute;
    left: -48px;
    top: 0;
    z-index: 2;
}

.qh-why-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.qh-why-content p {
    font-size: 1rem;
    color: var(--lib-text-muted);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   4. INTERACTIVE EXPERIENCE
   ═══════════════════════════════════════ */

.qh-experience {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-exp-browser {
    background: var(--lib-surface-solid);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.qh-exp-browser-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(15, 18, 26, 0.9);
    border-bottom: 1px solid var(--lib-border);
}

.qh-exp-browser-dots {
    display: flex;
    gap: 7px;
}

.qh-exp-browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.qh-exp-browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--lib-radius-xs);
    border: 1px solid var(--lib-border);
    font-size: 0.78rem;
    color: var(--lib-text-dim);
}

.qh-exp-browser-url i {
    color: var(--lib-success);
    font-size: 0.7rem;
}

.qh-exp-dashboard {
    display: flex;
    min-height: 320px;
}

.qh-exp-sidebar {
    width: 200px;
    padding: 20px 0;
    border-right: 1px solid var(--lib-border);
    flex-shrink: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 0.82rem;
    color: var(--lib-text-muted);
    cursor: pointer !important;
    transition: all 0.25s ease;
    user-select: none;
    border-right: 2px solid transparent;
}

.sidebar-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-item.active {
    color: var(--lib-accent);
    background: rgba(249, 223, 123, 0.08);
    border-right: 2px solid var(--lib-accent);
    font-weight: 700;
}

.sidebar-item i { width: 16px; text-align: center; }

.qh-exp-main {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.qh-exp-main::-webkit-scrollbar {
    display: none;
}

.exp-tab-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.widget-card {
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 0;
}

.widget-card:hover {
    border-color: rgba(249, 223, 123, 0.3);
    background: rgba(24, 32, 50, 0.9);
    transform: translateY(-2px);
}

.widget-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.widget-card-header h4 {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--lib-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.widget-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.35;
    word-break: break-word;
}

.widget-sub {
    font-size: 0.73rem;
    color: var(--lib-text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

.widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    width: fit-content;
    margin-top: 6px;
    white-space: nowrap;
}

.badge-teal { background: rgba(13, 148, 136, 0.12); color: #2dd4bf; border: 1px solid rgba(13, 148, 136, 0.2); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-gold { background: rgba(249, 223, 123, 0.12); color: #f9df7b; border: 1px solid rgba(249, 223, 123, 0.2); }
.badge-success { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lib-teal), var(--lib-accent));
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* ═══════════════════════════════════════
   5. AI CAPABILITIES
   ═══════════════════════════════════════ */

.qh-ai {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.qh-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.qh-ai-card {
    background: var(--lib-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius-lg);
    padding: 36px 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.qh-ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lib-purple), var(--lib-teal), var(--lib-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qh-ai-card:hover::before { opacity: 1; }

.qh-ai-card:hover {
    transform: translateY(-4px);
    border-color: var(--lib-border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.qh-ai-card i.ai-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--lib-purple-glow);
    color: var(--lib-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 20px;
}

.qh-ai-card > i:not(.ai-icon) {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--lib-purple-glow);
    color: var(--lib-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 20px;
}

.qh-ai-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.qh-ai-card p {
    font-size: 0.92rem;
    color: var(--lib-text-muted);
    line-height: 1.65;
}

/* ═══════════════════════════════════════
   6. GLOBAL IMPACT
   ═══════════════════════════════════════ */

.qh-impact {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-impact-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qh-impact-pillar {
    text-align: center;
    padding: 40px 24px;
    background: var(--lib-surface);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.qh-impact-pillar:hover {
    transform: translateY(-4px);
    border-color: var(--lib-border-hover);
}

.qh-impact-pillar i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--lib-teal-glow);
    color: var(--lib-teal);
    border: 1px solid rgba(13, 148, 136, 0.15);
    margin: 0 auto 16px;
}

.qh-impact-pillar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.qh-impact-pillar p {
    font-size: 0.88rem;
    color: var(--lib-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   7. CORE VALUES
   ═══════════════════════════════════════ */

.qh-values {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.qh-value-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--lib-surface);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.qh-value-card:hover {
    transform: translateY(-3px);
    border-color: var(--lib-accent-glow);
}

.qh-value-card i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--lib-accent-glow);
    color: var(--lib-accent);
    border: 1px solid rgba(249, 223, 123, 0.15);
    margin: 0 auto 14px;
}

.qh-value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* ═══════════════════════════════════════
   8. CAREER CENTER
   ═══════════════════════════════════════ */

.qh-careers {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-career-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.qh-career-card {
    background: rgba(18, 24, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--lib-radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qh-career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lib-accent), var(--lib-rose));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qh-career-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 223, 123, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: rgba(24, 32, 50, 0.8);
}

.qh-career-card:hover::before {
    opacity: 1;
}

/* Icon Container — Strictly target only direct icon child */
.qh-career-card > i:first-child,
.qh-career-card .career-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(249, 223, 123, 0.12);
    color: var(--lib-accent);
    border: 1px solid rgba(249, 223, 123, 0.25);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qh-career-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.qh-career-card p {
    font-size: 0.9rem;
    color: var(--lib-text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Clean Inline Link & Arrow — Reset any button box styles */
.qh-career-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lib-accent) !important;
    transition: all 0.25s ease;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: auto;
    box-shadow: none !important;
}

.qh-career-card a i {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 0.84rem !important;
    box-shadow: none !important;
    transition: transform 0.25s ease !important;
}

.qh-career-card:hover a i {
    transform: translateX(6px);
}

/* ═══════════════════════════════════════
   9. LIBRARY PREVIEW
   ═══════════════════════════════════════ */

.qh-library {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.qh-library-card {
    background: rgba(18, 24, 38, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--lib-radius);
    padding: 28px 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qh-library-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lib-accent), var(--lib-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qh-library-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 223, 123, 0.3);
    background: rgba(24, 32, 50, 0.8);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.qh-library-card:hover::before {
    opacity: 1;
}

.qh-library-card .card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(249, 223, 123, 0.1);
    color: var(--lib-accent);
    border: 1px solid rgba(249, 223, 123, 0.2);
    margin-bottom: 16px;
}

.qh-library-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.qh-library-card p {
    font-size: 0.88rem;
    color: var(--lib-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   10. COMMUNITY
   ═══════════════════════════════════════ */

.qh-community {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.qh-community-card {
    background: var(--lib-surface);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.qh-community-card:hover {
    transform: translateY(-3px);
    border-color: var(--lib-border-hover);
}

.qh-community-card i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--lib-teal-glow);
    color: var(--lib-teal);
    border: 1px solid rgba(13, 148, 136, 0.15);
    margin-bottom: 16px;
}

.qh-community-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.qh-community-card p {
    font-size: 0.9rem;
    color: var(--lib-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   11. FAQ
   ═══════════════════════════════════════ */

.qh-faq {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.qh-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qh-faq-item {
    background: var(--lib-surface);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.qh-faq-item.active {
    border-color: var(--lib-border-hover);
    background: var(--lib-surface-hover);
}

.qh-faq-question {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    user-select: none;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
}

.qh-faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--lib-text-dim);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.qh-faq-item.active .qh-faq-question::after {
    transform: rotate(180deg);
}

.qh-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.qh-faq-answer p {
    padding: 0 24px 22px;
    color: var(--lib-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.qh-faq-item.active .qh-faq-answer {
    max-height: 400px;
}

/* ═══════════════════════════════════════
   12. TOP SCHOLARS
   ═══════════════════════════════════════ */

.qh-scholars {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-scholars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.qh-scholar-card {
    background: var(--lib-surface);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius);
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.qh-scholar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 223, 123, 0.25);
    box-shadow: 0 12px 40px var(--lib-gold-glow);
}

.qh-scholar-xp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 223, 123, 0.08);
    color: var(--lib-gold);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.qh-scholar-quote-icon {
    color: var(--lib-text-dim);
    font-size: 1rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.qh-scholar-quote {
    font-style: italic;
    color: var(--lib-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 48px;
}

.qh-scholar-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.qh-scholar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lib-gold);
}

.qh-scholar-info {
    text-align: left;
}

.qh-scholar-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.qh-scholar-info span {
    font-size: 0.78rem;
    color: var(--lib-text-dim);
}

/* ═══════════════════════════════════════
   13. COMMUNITY FEEDBACK
   ═══════════════════════════════════════ */

.qh-feedback {
    overflow: hidden;
    padding: 100px 0;
}

.qh-feedback-marquee {
    overflow: hidden;
    margin-top: 0;
}

.qh-feedback-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: qh-marquee 45s linear infinite;
}

.qh-feedback-track:hover {
    animation-play-state: paused;
}

.qh-feedback-card {
    background: var(--lib-surface);
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius);
    padding: 28px;
    width: 380px;
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.qh-feedback-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.qh-feedback-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--lib-border);
}

.qh-feedback-author h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.qh-feedback-author span {
    font-size: 0.78rem;
    color: var(--lib-text-dim);
}

.qh-feedback-content {
    font-size: 0.9rem;
    color: var(--lib-text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
    font-style: italic;
}

.qh-feedback-date {
    font-size: 0.75rem;
    color: var(--lib-text-dim);
}

.qh-feedback-cta {
    text-align: center;
    margin-top: 48px;
    padding: 0 24px;
}

/* ═══════════════════════════════════════
   14. FINAL CTA
   ═══════════════════════════════════════ */

.qh-cta {
    padding-bottom: 120px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qh-cta-card {
    background: linear-gradient(135deg, rgba(20, 24, 36, 0.85), rgba(10, 12, 18, 0.95));
    border: 1px solid var(--lib-border);
    border-radius: var(--lib-radius-xl);
    padding: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.qh-cta-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--lib-teal-glow), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.qh-cta-card h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.qh-cta-card > p {
    font-size: 1.1rem;
    color: var(--lib-text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.qh-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.qh-cta-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.qh-cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--lib-text-dim);
}

.qh-cta-trust i {
    color: var(--lib-success);
    font-size: 0.7rem;
}

/* ═══════════════════════════════════════
   TESTIMONIAL MODAL (ULTRA-CHIC GLASS)
   ═══════════════════════════════════════ */

.qh-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qh-modal-overlay.active {
    display: flex;
}

.qh-modal {
    background: rgba(18, 24, 38, 0.95);
    padding: 36px 32px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: qh-fade-up 0.3s ease forwards;
}

.qh-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lib-accent), var(--lib-teal));
}

.qh-modal h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.qh-modal h3 i {
    color: var(--lib-accent);
}

.qh-modal label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--lib-text-muted);
}

.qh-modal input,
.qh-modal textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    margin-bottom: 18px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.qh-modal input::placeholder,
.qh-modal textarea::placeholder {
    color: var(--lib-text-dim);
}

.qh-modal input:focus,
.qh-modal textarea:focus {
    outline: none;
    border-color: var(--lib-accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(249, 223, 123, 0.15);
}

.qh-modal-char {
    text-align: right;
    font-size: 0.78rem;
    color: var(--lib-text-dim);
    margin-top: -12px;
    margin-bottom: 20px;
}

.qh-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════ */

@media (max-width: 1280px) {
    .qh-hero h1 { font-size: 2.4rem; }
    .qh-section-header h2 { font-size: 1.95rem; }
    .qh-analytics-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
    .qh-hero-inner { flex-direction: column; text-align: center; gap: 40px; }
    .qh-hero-content { max-width: 100%; }
    .qh-hero-subtitle { margin-left: auto; margin-right: auto; }
    .qh-hero-actions { justify-content: center; }
    .qh-hero-visual { display: none; }

    .qh-analytics-grid { grid-template-columns: repeat(3, 1fr); }
    .qh-ai-grid { grid-template-columns: 1fr; }
    .qh-impact-pillars { grid-template-columns: repeat(2, 1fr); }
    .qh-values-grid { grid-template-columns: repeat(2, 1fr); }
    .qh-career-cards { grid-template-columns: 1fr; }
    .qh-library-grid { grid-template-columns: repeat(2, 1fr); }
    .qh-community-grid { grid-template-columns: 1fr; }

    .qh-exp-dashboard { flex-direction: column; }
    .qh-exp-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--lib-border);
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 6px;
        scrollbar-width: none;
    }
    .qh-exp-sidebar::-webkit-scrollbar { display: none; }
    .qh-exp-sidebar .sidebar-item {
        white-space: nowrap;
        border-right: none !important;
        border-bottom: 2px solid transparent;
        padding: 8px 14px;
        border-radius: 8px 8px 0 0;
    }
    .sidebar-item.active {
        border-right: none !important;
        border-bottom: 2px solid var(--lib-accent) !important;
    }
    .exp-tab-content { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 768px) {
    .qh-home section { padding: 80px 16px; }
    .qh-hero { padding: 120px 16px 60px; }
    .qh-hero h1 { font-size: 2rem; }
    .qh-hero-subtitle { font-size: 1rem; }
    .qh-hero-actions { flex-direction: column; width: 100%; }
    .qh-hero-actions a,
    .qh-hero-actions button { text-align: center; width: 100%; justify-content: center; }

    .qh-hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    .qh-hero-stat-divider {
        width: 80%;
        height: 1px;
    }

    .qh-search-container {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }
    .qh-search-tabs-track {
        margin-bottom: 16px;
    }
    .qh-search-tabs {
        width: 100%;
        justify-content: flex-start;
        padding: 4px;
    }
    .qh-search-tab {
        padding: 6px 12px;
        font-size: 0.76rem;
    }
    .qh-search-input-wrapper {
        padding: 6px 14px;
        border-radius: 16px;
    }
    .qh-search-input-wrapper input {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    .qh-search-icon-wrap {
        width: 28px;
        height: 28px;
    }
    .qh-search-icon {
        font-size: 0.85rem;
    }
    .qh-search-trending {
        margin-top: 14px;
        gap: 5px;
    }
    .trending-title {
        font-size: 0.72rem;
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }
    .trending-tag {
        font-size: 0.7rem;
        padding: 3px 9px;
        border-radius: 100px;
    }

    .qh-analytics-grid { grid-template-columns: repeat(2, 1fr); }
    .qh-eco-grid { grid-template-columns: 1fr; }
    .qh-section-header h2 { font-size: 1.75rem; }
    .qh-impact-pillars { grid-template-columns: 1fr; }
    .qh-values-grid { grid-template-columns: repeat(2, 1fr); }
    .qh-library-grid { grid-template-columns: 1fr; }
    .qh-cta-card { padding: 48px 24px; }
    .qh-cta-card h2 { font-size: 1.85rem; }
    .qh-cta-actions { flex-direction: column; width: 100%; }
    .qh-cta-actions a { text-align: center; width: 100%; justify-content: center; }
    .qh-cta-trust { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .qh-hero h1 { font-size: 1.7rem; }
    .qh-section-header h2 { font-size: 1.45rem; }
    .qh-feedback-card { width: 300px; padding: 20px; }
    .qh-values-grid { grid-template-columns: 1fr; }
    .qh-eco-filter-btn { font-size: 0.78rem; padding: 8px 16px; }
    .qh-scholar-card { padding: 24px 16px; }
    .qh-search-input-wrapper input::placeholder { font-size: 0.8rem; }
    .qh-search-trending {
        margin-top: 12px;
        gap: 4px;
    }
    .trending-title {
        font-size: 0.68rem;
    }
    .trending-tag {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
}