/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
   :root {
    --primary-green: #1f7a4f;
    --primary-green-hover: #145c3a;
    --primary-blue: #3498db;
    --primary-blue-hover: #2980b9;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

/* =========================================
   TOP NAVIGATION BAR
   ========================================= */
.top_nav_bar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Back to App Button */
.nav_back_to_app {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-green);
    background: #f2fbf7;
    border: 1px solid #d6efe4;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav_back_to_app img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.nav_back_to_app span::before {
    content: "← ";
    font-weight: 500;
}

.nav_back_to_app:hover {
    background: #e6f6ef;
    color: var(--primary-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 122, 79, 0.1);
}

/* Language Switcher Button */
.lang_switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang_switch img {
    width: 20px;
    height: auto;
    border-radius: 3px;
}

.lang_switch:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* =========================================
   HERO SECTION
   ========================================= */
.help-hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.help-hero h1 {
    color: #0f172a;
    font-size: 28px;
    margin: 0;
    display: inline-block;
}

/* =========================================
   MAIN LAYOUT (2-COLUMN DOC STYLE)
   ========================================= */
.help-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Left Column: Sidebar */
.help-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px; /* Stays 90px from top of screen */
    height: max-content; /* Prevents it from stretching to bottom */
}

.sticky-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.sticky-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.sticky-nav a:hover {
    color: var(--primary-blue);
    background: #eff6ff;
}

/* Right Column: Main Content */
.help-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0; /* Prevents overflow */
}

/* Content Cards */
.help-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    scroll-margin-top: 100px; /* Prevents sticky nav from hiding title on click */
}

.help-card h2 {
    color: var(--primary-blue-hover);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.help-card .description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
}

/* Modern Video Containers */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Modern aspect ratio feature */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.mt-15 {
    margin-top: 15px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 850px) {
    .help-layout {
        flex-direction: column;
    }

    .help-sidebar {
        width: 100%;
    }

    /* Transform sidebar to horizontal scrollable tabs on mobile */
    .sticky-nav {
        position: relative;
        top: 0;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .sticky-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .help-card {
        padding: 20px;
    }
}