/* Reset & Base */
html, body {
    height: 100%;
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #FAFAFA; /* Light background for the whole page */
}

body.help-center {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.help-main-wrapper {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

.footer {
    flex-shrink: 0 !important;
}

/* Container override for help pages */
.help-home .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb-container {
    padding: 30px 0;
    font-size: 14px;
    color: #999;
}
.breadcrumb-item.active {
    color: #FF6600; /* Orange highlight */
}
/* .breadcrumb-separator {
    margin: 0 8px;
} */

/* Hero Section */
.help-hero {
    text-align: center;
    padding: 0px 0 60px;
    background-color: transparent;
}
.hero-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}
.hero-title .highlight {
    /* color: #fff; */
    color: #FF6600;
    padding: 2px;
    border-radius: 4px;
    margin: 0 4px;
}
.hero-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

/* Search Box */
.search-box-wrapper {
    display: flex;
    justify-content: center;
}
.search-box {
    width: 800px;
    height: 50px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.search-icon {
    color: #999;
    margin-left: 20px;
    font-size: 18px;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 16px;
    color: #333;
}
.search-btn {
    background-color: #3B82F6; /* Blue */
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 30px;
    height: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-btn:hover {
    background-color: #2563EB;
}

/* Category Grid */
.help-categories {
    padding-bottom: 60px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 300px;
}
/* .category-card.active {
    border-color: #FF6600;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.1);
} */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.card-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Question List */
.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.question-list li {
    margin-bottom: 15px;
}
.question-list li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.question-list li a:hover {
    color: #FF6600;
}

/* Highlighted background for first item in card 1 (as per design) */
/* .category-card.active .question-list li:first-child a {
    background-color: #FFF5EB;
    color: #FF6600;
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
} */

/* Card BG Decoration (Circle at bottom right) */
.card-bg-decoration {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,102,0,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* View More Button */
.view-more-container {
    text-align: center;
}
.view-more-btn {
    display: inline-block;
    background-color: #FFF0E5;
    color: #FF6600;
    padding: 10px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.view-more-btn:hover {
    background-color: #FFE0CC;
}

.search-highlight, mark.search-highlight {
    background-color: #FFF5A0;
    color: #FF6600;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}

.search-results-container {
    margin-top: 10px;
}
.results-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.results-count, .results-query {
    color: #FF6600;
}
.results-empty {
    background: #fff;
    border: 1px dashed #eee;
    border-radius: 8px;
    padding: 40px;
    color: #999;
    text-align: center;
}
.results-empty .empty-thumb {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    opacity: .9;
}
.results-empty .empty-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.results-empty .empty-text {
    font-size: 14px;
}
.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.result-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
}
.result-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.card-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff9f5;
    border: 1px solid #f5eae3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-icon-holder .icon-question {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(253,113,11,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FF6600;
    font-weight: 700;
}
.card-texts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.card-summary {
    font-size: 13px;
    color: #777;
}
.result-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #999;
}
.result-meta .meta-view {
    display: none;
}
.result-meta .fa-eye {
    color: #FF6600;
    margin-right: 4px;
}
.results-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.page-btn {
    height: 32px;
    min-width: 32px;
    padding: 0 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    color: #555;
}
.page-btn:hover:not(:disabled) {
    border-color: #FF6600;
    color: #FF6600;
}
.page-btn.active {
    background: #FFF0E5;
    color: #FF6600;
    border-color: #FF6600;
}
.page-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.page-ellipsis {
    min-width: 24px;
    color: #999;
    text-align: center;
}
.pagination-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    color: #666;
    font-size: 13px;
}
.pagination-jump-input {
    width: 58px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #333;
    outline: none;
}
.pagination-jump-input:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, .12);
}
.pagination-jump-btn {
    min-width: 52px;
}

/* Bottom CTA */
.bottom-cta {
    background: url('/assets/uscontact/bg_bottom.png') no-repeat center center;
    background-size: cover;
    background-color: #111; /* Fallback */
    color: #fff;
    padding: 30px 0;
    text-align: center;
    position: relative;
    margin-top: auto; /* Push to bottom if flex container */
}
.cta-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}
.cta-desc {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 30px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-contact {
    background-color: #666;
    color: #fff;
}
.btn-contact:hover {
    background-color: #555;
}
.btn-download {
    background-color: #FF4400; /* Orange Red */
    background: linear-gradient(90deg, #FF6600 0%, #FF3300 100%);
    color: #fff;
}
.btn-download:hover {
    opacity: 0.9;
}
.btn-download i {
    margin-right: 8px;
}

/* Floating Sidebar (Right) */
/* Assuming this might be handled by global JS, but adding CSS just in case */
.floating-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.floating-sidebar .fs-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}
.floating-sidebar .fs-btn:hover {
    background: #FFF0E5;
    color: #FF6600;
    border-color: #FF6600;
}
.floating-sidebar .fs-btn i {
    color: #FF6600;
}

@media (max-width: 768px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
    }

    .help-main-wrapper {
        width: 100%;
        overflow-x: hidden;
    }

    .help-home .container,
    .container {
        width: 100%;
        max-width: none;
        padding-left: 16px;
        padding-right: 16px;
    }

    .breadcrumb-container {
        padding: 16px 0;
        font-size: 12px;
    }

    .help-hero {
        padding: 12px 16px 28px;
    }

    .hero-title {
        font-size: 24px;
        line-height: 1.35;
    }

    .hero-subtitle {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .search-box {
        width: 100%;
        height: 44px;
        border-radius: 8px;
    }

    .search-icon {
        margin-left: 12px;
        font-size: 14px;
    }

    .search-box input {
        min-width: 0;
        padding: 0 10px;
        font-size: 14px;
    }

    .search-btn {
        padding: 0 16px;
        border-radius: 8px;
        font-size: 14px;
    }

    .help-categories {
        padding-bottom: 32px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .category-card {
        min-height: auto;
        padding: 18px;
        border-radius: 8px;
    }

    .card-header {
        margin-bottom: 12px;
    }

    .question-list li {
        margin-bottom: 10px;
    }

    .question-list li a {
        font-size: 14px;
    }

    .view-more-btn {
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }

    .result-card {
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .card-thumb {
        width: 72px;
        height: 72px;
    }

    .card-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .card-summary {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .result-meta {
        flex-wrap: wrap;
        gap: 6px 10px;
    }

    .results-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-jump {
        width: 100%;
        margin-left: 0;
    }

    .bottom-cta {
        display: none;
    }
}
