:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #06b6d4;
    --dark-bg: #1e1e2d;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --accent-yellow: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: #f3f4f6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Top Hero Header */
.help-hero {
    background: linear-gradient(135deg, #1e1e2d 0%, #2d2d44 100%);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.help-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.help-hero p {
    font-size: 1.1rem;
    color: #9ca3af;
    max-width: 650px;
    margin: 0 auto 25px auto;
}

.search-container {
    max-width: 550px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border-radius: 30px;
    border: 2px solid transparent;
    font-size: 15px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
}

/* Main One-Page Layout */
.help-container {
    max-width: 1250px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Desktop: side-by-side layout (sidebar left, content right) */
.help-layout {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.help-content {
    flex: 1;
    min-width: 0;
}

/* Topics Sidebar (Desktop) */
.topics-nav {
    flex: 0 0 290px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.topics-nav::-webkit-scrollbar {
    width: 6px;
}

.topics-nav::-webkit-scrollbar-track {
    background: transparent;
}

.topics-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.topics-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.topics-nav .sidebar-title {
    margin-bottom: 15px;
}

.topics-nav .nav-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topics-nav .nav-guide-list li {
    margin-bottom: 6px;
}

.topics-nav .nav-guide-list a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: var(--text-dark);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.topics-nav .nav-guide-list a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.topics-nav .nav-guide-list a:hover {
    background-color: #eef2ff;
    color: var(--primary);
}

.topics-nav .nav-guide-list a.active-link {
    background-color: #eef2ff;
    color: var(--primary);
}

/* Mobile toggle button + close button (hidden on desktop) */
.topics-toggle,
.topics-close {
    display: none;
}

/* Mobile: drawer menu */
@media (max-width: 768px) {
    .help-container {
        margin: 15px auto;
    }

    .help-layout {
        display: block;
    }

    .topics-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 18px;
        background: var(--primary);
        color: #ffffff;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    }

    .topics-toggle.hidden {
        display: none;
    }

    .topics-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        max-height: none;
        border-radius: 0 14px 14px 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 20px;
    }

    .topics-nav.open {
        transform: translateX(0);
    }

    .topics-nav .sidebar-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .topics-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: #f3f4f6;
        color: var(--text-dark);
        border: none;
        border-radius: 50%;
        font-size: 14px;
        cursor: pointer;
    }

    .topics-close:hover {
        background: #fee2e2;
        color: #dc2626;
    }

    .topics-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .topics-backdrop.show {
        display: block;
    }
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.nav-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-guide-list li {
    margin-bottom: 6px;
}

.nav-guide-list a {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    color: var(--text-dark);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-guide-list a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.nav-guide-list a:hover {
    background-color: #eef2ff;
    color: var(--primary);
    font-size: 14px !important;
    font-weight: 500 !important;
    transform: none !important;
}

.nav-guide-list a.active-link {
    background-color: #eef2ff;
    color: var(--primary);
    font-size: 14px !important;
    font-weight: 500 !important;
    transform: none !important;
}

/* Content Sections */
.guide-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.guide-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.guide-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f3f4f6;
}

.guide-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
    color: #ffffff;
}

.guide-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.guide-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.feature-box {
    background: #f9fafb;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 15px 18px;
    margin-bottom: 15px;
}

.feature-box h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.feature-box p {
    font-size: 13.5px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.badge-step {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: #eef2ff;
}

.back-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s;
    z-index: 1000;
}

.back-top-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-3px);
}

.action-bar {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-custom {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.btn-custom-primary {
    background: var(--primary);
    color: white;
}

.btn-custom-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-custom-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-custom-secondary:hover {
    background: #d1d5db;
    color: #111827;
}

/* Enhanced Line Spacing for Reading Comfort */
.guide-card ul {
    list-style-type: none;
    padding-left: 0 !important;
}

.guide-card ul li {
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 14.5px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.guide-card ul li:last-child {
    margin-bottom: 0;
}

.guide-card .p-3 {
    padding: 24px !important;
    margin-bottom: 24px !important;
    border-radius: 12px !important;
}

.guide-card h6 {
    font-size: 16px;
    margin-bottom: 16px;
}

/* Full Width Footer */
.footer-fullwidth {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 24px 15px;
    margin-top: 50px !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

