/* Help Center Styles */
:root {
    /* Cryptoatics Brand Colors */
    --chc-primary: #00ff9d;  /* Cryptoatics Green */
    --chc-primary-dark: #00cc7d;  /* Darker Green */
    --chc-primary-light: #40ffb3;  /* Lighter Green */
    --chc-secondary: #ff00d4;  /* Cryptoatics Magenta */
    --chc-secondary-dark: #cc00a9;  /* Darker Magenta */
    --chc-secondary-light: #ff40df;  /* Lighter Magenta */
    --chc-accent: #ff7700;  /* Cryptoatics Orange */
    --chc-accent-dark: #cc5f00;  /* Darker Orange */
    --chc-accent-light: #ff8f33;  /* Lighter Orange */
    
    /* Neutral Colors */
    --chc-text-primary: #ffffff;
    --chc-text-secondary: rgba(255, 255, 255, 0.9);
    --chc-text-tertiary: rgba(255, 255, 255, 0.7);
    --chc-border: rgba(255, 255, 255, 0.2);
    --chc-background: transparent;
    --chc-background-alt: #2d2d2d;
    --chc-background-hover: rgba(255, 255, 255, 0.1);
    
    /* Status Colors */
    --chc-success: #00ff9d;
    --chc-error: #ff3d00;
    --chc-warning: #ffd600;
    --chc-info: #00ff9d;
    
    /* Spacing */
    --chc-spacing-xs: 0.25rem;
    --chc-spacing-sm: 0.5rem;
    --chc-spacing-md: 1rem;
    --chc-spacing-lg: 1.5rem;
    --chc-spacing-xl: 2rem;
    
    /* Border Radius */
    --chc-radius-sm: 4px;
    --chc-radius-md: 8px;
    --chc-radius-lg: 12px;
    
    /* Shadows */
    --chc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --chc-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --chc-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --chc-shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --chc-transition-fast: 150ms ease;
    --chc-transition-normal: 250ms ease;
    --chc-transition-slow: 350ms ease;
}

/* Fix for site content padding that might be causing the gap */
body .site-content-wrap {
    padding-top: 0 !important;
}

.help-center {
    margin-top: 0 !important;
}

.help-center-layout {
    margin: 0;
    padding: 60px 20px 40px; /* Updated to match other pages */
    min-height: 100vh;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Help Center Header */
.help-center-header {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0; /* Remove bottom margin to be consistent */
}

/* Reset and Base Styles */
.chc-help-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--chc-text-primary);
    line-height: 1.6;
    background: transparent;
}

.chc-help-center * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.chc-help-center-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;  /* Prevent horizontal scrolling */
}

.chc-help-center-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--chc-spacing-lg);
    position: relative;
}

.chc-help-center-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.chc-help-center-nav .chc-help-center-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--chc-spacing-lg);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.chc-help-center h1, .chc-help-center h2, .chc-help-center h3 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.chc-help-center a {
    color: #00ff9d;
    text-decoration: none;
    transition: var(--chc-transition-normal);
}

.chc-help-center a:hover {
    color: #00cc7d;
}

/* Hero Section */
.chc-hero-section {
    position: relative;
    padding: 48px 20px;
    text-align: center;
    border-radius: 24px;
    margin: 60px auto 48px; /* Increased top margin to provide more space between nav and hero */
    max-width: 1200px;
    width: calc(100% - 48px);
    margin-bottom: 0 !important;
}

.chc-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 212, 0.1), rgba(0, 255, 157, 0.1));
    border-radius: 24px;
    z-index: 0;
}

.chc-hero-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.chc-hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Search Container */
.chc-search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 100;
}

.chc-search-wrapper {
    display: flex !important;
    gap: 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 0.5rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

.chc-search-container input[type="text"] {
    flex: 1 !important;
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    width: 100% !important;
}

.chc-search-container input[type="text"]:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.3);
}

.chc-search-container input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chc-search-container button,
#chc-search-form button,
.chc-search-wrapper button,
.chc-search-form button {
    background-color: var(--chc-primary) !important;
    color: #000 !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
}

.chc-hero-section .chc-search-container button:hover,
.chc-hero-section #chc-search-form button:hover,
.chc-hero-section .chc-search-wrapper button:hover,
.chc-search-form button:hover {
    background-color: var(--chc-primary-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Categories Grid */
.chc-categories {
    padding: 4rem 0;
    width: 100%;
    position: relative;
}

.chc-categories .chc-help-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.chc-categories h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.chc-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.chc-category-card {
    background: rgba(45, 45, 45, 0.2);
    position: relative;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transform-origin: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chc-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 0, 212, 0.05), rgba(0, 255, 157, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    display: block;
}

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

.chc-category-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 12px;
    color: #00ff9d;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.chc-category-content {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.chc-category-header h3 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.chc-article-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #ffffff;
    background: rgba(255, 0, 212, 0.3);
    min-width: 24px;
    height: 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0 8px;
}

.chc-category-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chc-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

.chc-category-card:hover .chc-category-icon {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(1.1);
    color: #ffffff;
}

.chc-category-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .chc-hero-section {
        width: calc(100% - 40px);
        padding: 40px 20px;
    }
    
    .chc-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: calc(100% - 40px);
        margin: 0 auto;
    }
    
    .chc-article-card {
        flex: 0 0 300px;
    }
    
    .chc-hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .chc-hero-section {
        margin-top: 40px;
        padding: 32px 16px;
    }
    
    .chc-hero-title {
        font-size: 2rem;
    }
    
    .chc-hero-description {
        font-size: 1rem;
    }
    
    .chc-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .chc-articles-carousel {
        padding: 16px 60px;
    }
    
    .chc-carousel-gradient-right,
    .chc-carousel-gradient-left {
        width: 60px;
        display: block;
    }
}

@media (max-width: 768px) {
    .chc-hero-section {
        margin-top: 30px;
        padding: 24px 16px;
    }
    
    .chc-hero-title {
        font-size: 1.7rem;
    }
    
    .chc-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .chc-category-card,
    .chc-category-card-custom {
        padding: 16px !important;
        gap: 12px !important;
    }
    
    .chc-category-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .chc-category-icon i {
        font-size: 16px !important;
    }
    
    .chc-category-header h3 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .chc-article-count {
        font-size: 0.7rem !important;
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 6px !important;
    }
    
    .chc-category-content p {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 1 !important;
    }
    
    .chc-article-card {
        flex: 0 0 250px;
        min-height: 180px;
        padding: 16px;
        background: rgba(45, 45, 45, 0.7);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .chc-article-card header h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .chc-article-excerpt p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .chc-article-meta {
        padding-top: 12px;
    }
    
    .chc-article-category,
    .chc-article-views {
        font-size: 12px;
    }
    
    .chc-search-container input[type="text"] {
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Article and category pages responsive layout */
    .chc-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .chc-article-content img {
        width: 100%;
        height: auto;
    }
    
    .chc-breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .chc-articles-carousel {
        padding: 16px 50px;
    }
    
    .chc-carousel-gradient-right,
    .chc-carousel-gradient-left {
        width: 50px;
        display: block;
    }
    
    .chc-carousel-prev {
        left: 10px;
    }
    
    .chc-carousel-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .chc-articles-carousel {
        padding: 12px 40px;
    }
    
    .chc-carousel-gradient-right,
    .chc-carousel-gradient-left {
        width: 40px;
        display: block;
    }
    
    .chc-carousel-prev {
        left: 5px;
    }
    
    .chc-carousel-next {
        right: 5px;
    }
    
    .chc-article-card {
        flex: 0 0 220px;
        min-height: 160px;
        padding: 12px;
    }
}

@media (max-width: 375px) {
    .chc-articles-carousel {
        padding: 10px 30px;
    }
    
    .chc-carousel-gradient-right,
    .chc-carousel-gradient-left {
        width: 30px;
        display: block;
        opacity: 1;
    }
    
    .chc-article-card {
        flex: 0 0 200px;
        min-height: 150px;
        padding: 10px;
    }
}

/* Contact Support */
.chc-contact-support {
    padding: 4rem var(--chc-spacing-lg);
    text-align: center;
    background: transparent;
}

.chc-contact-support h2 {
    font-size: 2.5rem;
    margin-bottom: var(--chc-spacing-md);
    color: #ffffff;
}

.chc-contact-support p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--chc-spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chc-contact-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--chc-secondary) 0%, var(--chc-secondary-light) 100%);
    color: #000;
    padding: var(--chc-spacing-md) var(--chc-spacing-xl);
    border-radius: var(--chc-radius-md);
    font-weight: 500;
    transition: var(--chc-transition-normal);
}

.chc-contact-button:hover {
    background: linear-gradient(135deg, var(--chc-secondary-dark) 0%, var(--chc-secondary) 100%);
    transform: translateY(-2px);
}

/* Search Results */
.chc-search-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.chc-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    visibility: hidden;
}

.chc-search-results.chc-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.chc-search-results-list {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #222222;
}

.chc-search-results-list .chc-search-result {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chc-search-results.chc-visible .chc-search-result {
    opacity: 1;
    transform: translateY(0);
}

/* Add transition delays for each result to create a staggered effect */
.chc-search-results.chc-visible .chc-search-result:nth-child(1) { transition-delay: 0.05s; }
.chc-search-results.chc-visible .chc-search-result:nth-child(2) { transition-delay: 0.1s; }
.chc-search-results.chc-visible .chc-search-result:nth-child(3) { transition-delay: 0.15s; }
.chc-search-results.chc-visible .chc-search-result:nth-child(4) { transition-delay: 0.2s; }
.chc-search-results.chc-visible .chc-search-result:nth-child(5) { transition-delay: 0.25s; }

.chc-search-results-list .chc-search-result {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.chc-search-results-list .chc-search-result:last-child {
    border-bottom: none;
}

.chc-search-results-list .chc-search-result:hover {
    background-color: #2d2d2d;
}

.chc-search-results-list .chc-search-result a {
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.chc-search-results-list .chc-result-title {
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.chc-search-results-list .chc-result-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #888888;
    margin-bottom: 12px;
}

.chc-search-results-list .chc-views {
    margin-right: 12px;
}

.chc-search-results-list .chc-category {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 4px;
    color: #00ff9d;
}

.chc-search-results-list .chc-result-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.chc-search-results-header {
    text-align: center;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.chc-search-results-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.chc-search-results-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Remove grid styles since we're not using them anymore */
.chc-search-results-grid {
    display: none;
}

.chc-loading,
.chc-no-results,
.chc-error {
    padding: 16px;
    text-align: left;
    color: #ffffff;
    background: #222222;
}

/* Full search results styles */
.chc-search-results-header {
    text-align: center;
    margin-bottom: 32px;
}

.chc-search-results-header h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.chc-search-results-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.chc-search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.chc-search-results-grid .chc-search-result {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chc-search-results-grid .chc-search-result:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 157, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chc-search-results-grid .chc-search-result h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.chc-search-results-grid .chc-search-result h3 a {
    color: #ffffff;
    text-decoration: none;
}

.chc-search-results-grid .chc-search-result h3 a:hover {
    color: #00ff9d;
}

.chc-search-results-grid .chc-result-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.chc-search-results-grid .chc-views {
    margin-right: 12px;
}

.chc-search-results-grid .chc-category {
    padding: 2px 8px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 4px;
    color: #00ff9d;
}

.chc-search-results-grid .chc-result-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.chc-no-results {
    text-align: center;
    padding: 48px 24px;
    background: #2d2d2d;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.chc-no-results p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.chc-clear-search {
    background: #00ff9d;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chc-clear-search:hover {
    background: #00cc7d;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .chc-search-results-grid {
        grid-template-columns: 1fr;
    }

    .chc-search-results-header h2 {
        font-size: 2rem;
    }
}

/* Article Page */
.chc-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--chc-spacing-xl) 0;
}

.chc-article-header {
    margin-bottom: var(--chc-spacing-xl);
}

.chc-article-header h1 {
    color: var(--chc-text-primary);
    font-size: 2rem;
    margin-bottom: var(--chc-spacing-md);
}

.chc-article-meta {
    color: var(--chc-text-tertiary);
    font-size: 0.9rem;
}

.chc-article-content {
    color: var(--chc-text-primary);
    line-height: 1.6;
}

.chc-article-content h2 {
    color: var(--chc-text-primary);
    font-size: 1.5rem;
    margin: var(--chc-spacing-xl) 0 var(--chc-spacing-md);
}

.chc-article-content h3 {
    color: var(--chc-text-primary);
    font-size: 1.25rem;
    margin: var(--chc-spacing-lg) 0 var(--chc-spacing-md);
}

.chc-article-content p {
    margin-bottom: var(--chc-spacing-md);
}

.chc-article-content code {
    background: var(--chc-background-alt);
    padding: 0.2em 0.4em;
    border-radius: var(--chc-radius-sm);
    font-family: monospace;
}

.chc-article-content pre {
    background: var(--chc-background-alt);
    padding: var(--chc-spacing-md);
    border-radius: var(--chc-radius-md);
    overflow-x: auto;
    margin: var(--chc-spacing-md) 0;
}

.chc-article-content pre code {
    background: none;
    padding: 0;
}

.chc-article-content ul,
.chc-article-content ol {
    margin: var(--chc-spacing-md) 0;
    padding-left: var(--chc-spacing-xl);
}

.chc-article-content li {
    margin-bottom: var(--chc-spacing-sm);
}

.chc-article-content blockquote {
    border-left: 4px solid var(--chc-secondary);
    padding-left: var(--chc-spacing-md);
    margin: var(--chc-spacing-md) 0;
    color: var(--chc-text-secondary);
}

.chc-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--chc-radius-md);
    margin: var(--chc-spacing-md) 0;
}

.chc-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--chc-spacing-md) 0;
}

.chc-article-content th,
.chc-article-content td {
    padding: var(--chc-spacing-sm);
    border: 1px solid var(--chc-border);
    text-align: left;
}

.chc-article-content th {
    background: var(--chc-background-alt);
    font-weight: 600;
}

.chc-article-content tr:nth-child(even) {
    background: var(--chc-background-alt);
}

.chc-article-content a {
    color: var(--chc-secondary);
    text-decoration: none;
    transition: var(--chc-transition-fast);
}

.chc-article-content a:hover {
    color: var(--chc-secondary-dark);
    text-decoration: underline;
}

/* Feedback Section */
.chc-feedback-section {
    margin: var(--chc-spacing-xl) 0;
    padding: var(--chc-spacing-lg);
    background: var(--chc-background-alt);
    border-radius: var(--chc-radius-lg);
}

.chc-feedback-section h2 {
    color: var(--chc-text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--chc-spacing-md);
}

.chc-feedback-buttons {
    display: flex;
    gap: var(--chc-spacing-md);
}

.chc-feedback-button {
    padding: var(--chc-spacing-sm) var(--chc-spacing-lg);
    border: none;
    border-radius: var(--chc-radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--chc-transition-normal);
}

.chc-feedback-button.helpful {
    background: var(--chc-success);
    color: white;
}

.chc-feedback-button.not-helpful {
    background: var(--chc-error);
    color: white;
}

.chc-feedback-button:hover {
    opacity: 0.9;
}

/* Related Articles */
.chc-related-articles {
    margin: var(--chc-spacing-xl) 0;
}

.chc-related-articles h2 {
    color: var(--chc-text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--chc-spacing-lg);
}

/* Loading States */
.chc-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--chc-spacing-xl);
}

.chc-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--chc-border);
    border-top-color: var(--chc-secondary);
    border-radius: 50%;
    animation: chc-spin 1s linear infinite;
}

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

/* Error States */
.chc-error {
    text-align: center;
    padding: var(--chc-spacing-xl);
    color: var(--chc-error);
}

.chc-error p {
    margin-bottom: var(--chc-spacing-md);
}

.chc-error-button {
    display: inline-block;
    padding: var(--chc-spacing-sm) var(--chc-spacing-lg);
    background: var(--chc-secondary);
    color: white;
    border-radius: var(--chc-radius-md);
    text-decoration: none;
    transition: var(--chc-transition-normal);
}

.chc-error-button:hover {
    background: var(--chc-secondary-dark);
}

/* Print Styles */
@media print {
    .chc-help-center {
        padding: 0;
    }

    .chc-hero-section,
    .chc-search-container,
    .chc-contact-support {
        display: none;
    }

    .chc-category-card,
    .chc-article-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}

/* Add hover effect to the entire card */
.chc-article-card::after {
    display: none;
}

.chc-article-card:hover::after {
    display: none;
}

.help-center-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.help-center-sidebar {
    flex: 0 0 300px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-center-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-center-categories h3,
.help-center-recent h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #343a40;
}

.help-center-categories ul,
.help-center-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-center-categories li,
.help-center-recent li {
    margin-bottom: 10px;
}

.help-center-categories a,
.help-center-recent a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}

.help-center-categories a:hover,
.help-center-recent a:hover {
    color: #007bff;
}

.help-center-article h1 {
    margin: 0 0 20px;
    color: #343a40;
}

.article-content {
    line-height: 1.6;
    color: #495057;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    margin: 1.5em 0 0.5em;
    color: #343a40;
}

.article-content h3 {
    margin: 1.2em 0 0.4em;
    color: #343a40;
}

.article-content ul,
.article-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content code {
    background: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.article-content pre {
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.help-center-category h1 {
    margin: 0 0 20px;
    color: #343a40;
}

.category-description {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 1.1em;
}

.article-preview {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-preview h2 {
    margin: 0 0 10px;
}

.article-preview h2 a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.2s;
}

.article-preview h2 a:hover {
    color: #007bff;
}

.article-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.help-center-error {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.help-center-error h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

.help-center-error p {
    color: #6c757d;
    margin: 0;
}

@media (max-width: 768px) {
    .help-center-container {
        flex-direction: column;
    }
    
    .help-center-sidebar {
        flex: none;
    }
    
    .help-center-content {
        padding: 20px;
    }

    .chc-popular-articles::before,
    .chc-popular-articles::after {
        display: none;
    }

    .chc-articles-grid {
        padding: 16px var(--chc-spacing-md);
    }

    .chc-article-card {
        flex: 0 0 300px;
        min-height: 280px;
    }

    .chc-search-results {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
        border-radius: 12px 12px 0 0;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .chc-popular-articles h2 {
        font-size: 1.75rem;
        padding: 0 1rem;
    }

    .chc-articles-grid {
        padding: 16px var(--chc-spacing-sm);
    }

    .chc-article-card {
        flex: 0 0 280px;
        min-height: 260px;
    }
}

.chc-category-icon {
    margin-bottom: var(--chc-spacing-md);
    color: #00ff9d;
}

.chc-category-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.chc-category-card:hover .chc-category-icon {
    color: #00cc7d;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.chc-search-form button {
    background-color: var(--chc-primary) !important;
    color: #000 !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chc-search-form button:hover {
    background-color: var(--chc-primary-dark) !important;
}

/* Add this section at the end of the file */
/* Fix for Browse by Topic section alignment */
.chc-categories {
    padding: 4rem 0;
    width: 100%;
    position: relative;
}

.chc-categories .chc-help-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.chc-categories h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 992px) {
    .chc-categories {
        padding: 3rem 0;
    }
    
    .chc-categories h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .chc-categories {
        padding: 2rem 0;
    }
    
    .chc-categories h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .chc-categories .chc-help-center-container {
        padding: 0 15px;
    }
}

/* Fix for crypto ticker at the bottom */
.footer-ticker {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix for chat widget */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 370px;
    width: 100%;
}

/* Additional layout fixes */
.help-center-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    padding-top: 30px !important;
}

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

.help-center-content-area {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Remove any conflicting carousel styles */
.chc-carousel-prev,
.chc-carousel-next {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 1;
}

/* Add this after the existing .chc-popular-articles styles */
.chc-articles-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Fix for button placement */
.chc-search-container button,
#chc-search-form button,
.chc-search-wrapper button,
.chc-search-form button {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
}

/* Fix for hero section */
.chc-hero-section {
    margin-bottom: 0 !important;
}

.chc-help-center-container h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2.2rem;
    color: #ffffff;
}

/* Articles Carousel */
.chc-articles-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 80px; /* Equal padding on both sides */
    margin: 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}

.chc-articles-carousel::-webkit-scrollbar {
    display: none;
}

.chc-articles-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}

.chc-carousel-gradient-right,
.chc-carousel-gradient-left {
    position: absolute;
    height: 100%;
    width: 120px;
    top: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 1; /* Default to visible */
    transition: opacity 0.3s ease;
}

/* Make gradients more visible */
.chc-carousel-gradient-right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 100%);
}

.chc-carousel-gradient-left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 100%);
}

.chc-carousel-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    opacity: 0.9 !important;
    visibility: visible !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease !important;
}

.chc-carousel-prev {
    left: 15px;
}

.chc-carousel-next {
    right: 15px;
}

.chc-carousel-nav:hover {
    background: rgba(0, 255, 157, 0.2) !important;
    border-color: rgba(0, 255, 157, 0.5) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.chc-search-button {
    background-color: var(--chc-primary) !important;
    color: #000 !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chc-search-button:hover {
    background-color: var(--chc-primary-dark) !important;
}

.chc-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

.chc-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

.chc-category-card:hover .chc-category-icon {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(1.1);
    color: #ffffff;
}

.chc-category-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Custom Category Card Styles */
.chc-category-card-custom {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chc-category-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

.chc-category-icon {
    background: rgba(0, 255, 157, 0.1);
    transform: scale(1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.chc-category-card-custom:hover .chc-category-icon {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(1.1);
    color: #ffffff;
}

/* Ensure carousel navigation buttons are visible on desktop */
@media (min-width: 768px) {
    .chc-carousel-prev,
    .chc-carousel-next {
        display: flex !important;
        opacity: 0.8;
    }
    
    .chc-carousel-prev:hover,
    .chc-carousel-next:hover {
        opacity: 1;
    }
}

.chc-carousel-nav i {
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Popular Articles Section */
.chc-popular-articles {
    width: 100%;
    position: relative;
    overflow: visible;
    padding: 3rem 0;
}

.chc-popular-articles .chc-help-center-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 30px;
}

.chc-popular-articles .chc-help-center-container h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

/* Articles container - Make it full width */
.chc-articles-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Track for the scrollable content */
.chc-articles-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding-left: 24px !important; /* Add left padding to prevent initial peek */
    padding-right: 40px;
    padding-top: 10px;
    padding-bottom: 20px;
    cursor: grab;
    user-select: none;
}

.chc-articles-track:active {
    cursor: grabbing;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chc-articles-track::-webkit-scrollbar {
    display: none;
}

/* Article Card Styles */
.chc-article-card {
    flex: 0 0 340px;
    margin: 0 15px;
    background: rgba(45, 45, 45, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: 300px; /* Fixed height for all cards */
}

/* Adjust responsive heights */
@media (max-width: 576px) {
    .chc-article-card {
        height: 280px;
    }
}

.chc-article-card-link {
    display: flex;
    flex-direction: column;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.chc-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, rgba(255, 0, 212, 0.6), rgba(0, 255, 157, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.chc-article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 0, 212, 0.03) 0%,
        rgba(0, 255, 157, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.chc-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 157, 0.15);
    background: rgba(55, 55, 55, 0.3);
}

.chc-article-card:hover::before {
    opacity: 1;
}

.chc-article-card:hover::after {
    opacity: 1;
}

.chc-article-card header {
    margin-bottom: 24px;
    position: relative;
}

.chc-article-card header::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--chc-primary);
    bottom: -12px;
    left: 0;
    opacity: 0.7;
    transition: width 0.3s ease;
}

.chc-article-card:hover header::after {
    width: 60px;
}

.chc-article-card header h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.chc-article-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.chc-article-excerpt p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.chc-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.chc-article-category {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.chc-article-card:hover .chc-article-category {
    color: var(--chc-primary);
}

.chc-article-category i {
    color: var(--chc-primary);
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.chc-article-views {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.chc-article-views::before {
    content: '\f06e'; /* Eye icon */
    font-family: 'Font Awesome 5 Free';
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.7;
}

/* CSS Replacements for JavaScript Inline Styles */
.help-center-navigation {
    /* Base positioning */
    position: relative;
    z-index: 100;
    transition: transform 0.3s ease, top 0.3s ease;
}

/* Admin bar and header combinations for sticky nav */
.help-center-navigation.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    /* Dynamic positioning handled through combinatorial classes */
}

/* Basic sticky positioning */
.help-center-navigation.is-sticky {
    top: 0;
}

/* Admin bar adjustments - no site header */
body.admin-bar .help-center-navigation.is-sticky:not(.with-site-header) {
    top: var(--admin-bar-height, 32px);
}

/* Site header adjustments - no admin bar */
body:not(.admin-bar) .help-center-navigation.is-sticky.with-site-header {
    top: var(--site-header-height, 77px);
}

/* Both admin bar and site header */
body.admin-bar .help-center-navigation.is-sticky.with-site-header {
    top: calc(var(--admin-bar-height, 32px) + var(--site-header-height, 77px));
}

/* Ensure space below fixed navigation */
body.has-sticky-nav .help-center-content {
    padding-top: var(--nav-height, 60px);
}

/* Search form focus states */
#chc-search-form.focused .chc-search-icon,
.nav-search.focused .chc-search-icon,
.chc-search-form.focused .chc-search-icon {
    color: var(--chc-primary, #00ff9d) !important;
}

.chc-search-input:focus + .chc-search-icon,
#chc-search-input:focus + .chc-search-icon {
    color: var(--chc-primary, #00ff9d) !important;
}

/* Default search icon state */
.chc-search-icon,
#chc-search-icon {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

/* Search icon with input */
.chc-search-input:not(:placeholder-shown) + .chc-search-icon,
#chc-search-input:not(:placeholder-shown) + .chc-search-icon {
    color: var(--chc-primary, #00ff9d) !important;
}

/* Media queries for responsive adjustments */
@media screen and (max-width: 782px) {
    body.admin-bar:not(.has-custom-admin-bar) .help-center-navigation.is-sticky {
        top: 46px; /* Smaller admin bar on mobile */
    }
    
    body.admin-bar:not(.has-custom-admin-bar) .site-header + .help-center .help-center-navigation.is-sticky {
        top: calc(46px + 77px);
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar:not(.has-custom-admin-bar) .help-center-navigation.is-sticky {
        top: 0; /* Admin bar disappears on scroll on mobile */
    }
    
    body.admin-bar:not(.has-custom-admin-bar) .site-header + .help-center .help-center-navigation.is-sticky {
        top: 77px;
    }
}

/* Additional CSS to replace remaining inline styles */

/* Default nav heights */
.help-center {
    --nav-height-xs: 40px;
    --nav-height-sm: 50px;
    --nav-height-md: 60px;
    --nav-height-lg: 70px;
    --nav-height-xl: 80px;
}

/* Classes for different nav heights */
.help-center.nav-height-xs {
    --nav-height: var(--nav-height-xs);
}

.help-center.nav-height-sm {
    --nav-height: var(--nav-height-sm);
}

.help-center.nav-height-md {
    --nav-height: var(--nav-height-md);
}

.help-center.nav-height-lg {
    --nav-height: var(--nav-height-lg);
}

.help-center.nav-height-xl {
    --nav-height: var(--nav-height-xl);
}

/* Admin bar heights */
body.admin-bar {
    --admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar {
        --admin-bar-height: 0;
    }
}

/* Carousel controls visibility */
.chc-carousel-controls {
    display: flex;
    gap: 8px;
}

.chc-articles-grid-layout .chc-carousel-controls {
    display: none;
}

/* Default nav spacing */
.help-center-navigation.is-sticky + .help-center-content,
body.has-sticky-nav .help-center-content {
    padding-top: var(--nav-height, 60px);
}

/* Article Feedback Styles */
.feedback-message,
.chc-feedback-message {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: var(--chc-radius-md);
    background-color: rgba(0, 255, 157, 0.1);
    transition: all 0.3s ease;
}

.feedback-message.visible,
.chc-feedback-message.visible {
    display: block;
}

.feedback-buttons.hidden,
.chc-feedback-buttons.hidden {
    display: none;
}

.feedback-message .success-message,
.chc-feedback-message .success-message {
    color: var(--chc-success);
}

.feedback-message .error-message,
.chc-feedback-message .error-message {
    color: var(--chc-error);
}

/* Chat Widget Positioning */
.chc-chat-widget {
    z-index: 999999 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.chc-chat-overlay {
    z-index: 999990 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none;
}

.chc-chat-overlay.visible {
    display: block;
    opacity: 1;
}

.chc-chat-button {
    z-index: 999998 !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    pointer-events: all !important;
    background: var(--chc-primary) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
    font-size: 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.chc-chat-container {
    z-index: 999999;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    width: 360px !important;
    height: 480px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    background: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: none;
}

.chc-chat-container.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.chc-full-width-wrapper {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Article Card Hover Effects */
.chc-article-card {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.chc-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 157, 0.3);
}

.chc-article-icon {
    background: rgba(0, 255, 157, 0.1);
    transform: scale(1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.chc-article-card:hover .chc-article-icon {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(1.1);
    color: #ffffff;
}

/* Admin Chat View */
.chc-chat-view {
    display: none;
}

.chc-chat-view.visible {
    display: block;
}

/* Admin Form Inline Display */
.chc-inline-form {
    display: inline;
}

/* Debug Panel */
.chc-debug-panel {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    z-index: 2147483647;
    max-width: 300px;
    max-height: 400px;
    overflow: auto;
    font-size: 12px;
}

.chc-debug-panel h3 {
    margin: 0 0 10px 0;
    text-align: center;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.chc-debug-button {
    border: none;
    padding: 5px;
    margin-top: 5px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    color: white;
    font-weight: bold;
}

.chc-debug-button.green {
    background: #8BC34A;
}

.chc-debug-button.pink {
    background: #E91E63;
}

.chc-debug-button.success {
    background: #4CAF50;
}

.chc-debug-button.danger {
    background: #F44336;
}

.chc-debug-button.warning {
    background: #FF9800;
}

.chc-debug-button.info {
    background: #2196F3;
}

.chc-debug-button.purple {
    background: #9C27B0;
}

/* Chat Registration Form */
.chc-chat-registration-form h3 {
    margin-bottom: 20px;
}

.chc-chat-registration-form p {
    margin-bottom: 20px;
}

/* Stronger gradient fades on both sides */
.carousel-gradient {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.carousel-gradient.left, 
.carousel-gradient.right {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.carousel-gradient.visible,
.carousel-gradient.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Carousel Navigation - hidden by default, shown on hover */
.carousel-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Let clicks pass through to the carousel */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.chc-articles-container:hover .carousel-navigation {
    opacity: 1;
}

.carousel-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto; /* Make buttons clickable */
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-button:hover {
    background: rgba(0, 255, 157, 0.2);
    border-color: rgba(0, 255, 157, 0.5);
    transform: scale(1.05);
}

.carousel-button.carousel-prev {
    margin-left: 20px;
}

.carousel-button.carousel-next {
    margin-right: 20px;
}

.carousel-button.visible {
    opacity: 0.9;
    visibility: visible;
}

.carousel-button.hidden {
    opacity: 0;
    visibility: hidden;
}

/* No carousel navigation when there's no overflow */
.no-carousel-navigation .carousel-button {
    display: none;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .chc-articles-track {
        padding-left: 16px !important;
    }
    
    .carousel-button.carousel-prev {
        margin-left: 10px;
    }
    
    .carousel-button.carousel-next {
        margin-right: 10px;
    }
}

@media (max-width: 576px) {
    .chc-articles-track {
        padding-left: 40px;
    }
    
    .chc-article-card {
        flex: 0 0 280px;
        padding: 20px;
    }
}

.chc-article-card:active {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chc-article-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 16px;
    overflow: hidden; /* Prevent content overflow */
}

.chc-article-excerpt {
    margin-bottom: 0;
    overflow: hidden; /* Prevent excerpt from overflowing */
    position: relative;
    max-height: 4.5em; /* 3 lines of text at 1.5 line height */
}

.chc-article-excerpt p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
  