.help-web-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    /* Fill space but don't lock */
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    background: var(--ff-sidebar-bg);
    border-right: 1px solid var(--ff-border);
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--ff-border);
}

.sidebar-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ff-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--ff-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 28px;
}

.sidebar-nav a.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--ff-primary);
    font-weight: 700;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-text-light);
    transition: all 0.3s;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon {
    color: var(--ff-primary);
    transform: scale(1.1);
}



/* Main Content Area */
.help-content {
    flex: 1;
    padding: 20px 80px 80px 80px;
    background: transparent;
}

.help-section {
    max-width: 900px;
    padding: 80px 0;
    border-bottom: 1px solid var(--ff-border);
}

.help-section:last-of-type {
    border-bottom: none;
    padding-bottom: 120px;
}

.header-visual {
    width: 64px;
    height: 64px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--ff-text);
    line-height: 1.1;
}

.lead {
    font-size: 1.25rem;
    color: var(--ff-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.02em;
}

.sec-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ff-primary);
}

.content-block {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--ff-border);
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ff-text);
}

h1,
h2,
h3,
h4 {
    color: #ffffff !important;
}

p,
li {
    color: #94a3b8 !important;
}

.lead {
    color: #cbd5e1 !important;
}


/* Video Grid Layout */
.video-grid {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.video-card {
    flex: 1;
    min-width: 320px;
    background: white;
    border: 1px solid var(--ff-border);
    border-radius: 20px;
    padding: 16px;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--ff-primary);
}

.video-card h4 {
    margin: 16px 0 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.video-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f172a;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent);
}

.play-hint {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1;
    transition: all 0.3s;
}

.video-card:hover .play-hint {
    background: var(--ff-primary);
    border-color: var(--ff-primary);
    transform: scale(1.05);
}

/* Badges & Tags */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.premium-badge {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

/* Lists */
ul {
    margin: 16px 0 24px 20px;
    color: var(--ff-text-light);
}

li {
    margin-bottom: 8px;
}

#mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--ff-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 768px) {
    #mobile-sidebar-toggle {
        display: flex;
    }
}

/* Footer */
.main-footer {
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ff-text-light);
}

/* Mobile SideBar Logic */
.mobile-only {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

#close-sidebar-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: #020617;
    border: none;
    font-size: 1.25rem;
    color: var(--ff-text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

#close-sidebar-btn:hover {
    background: white;
    color: var(--ff-primary);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .help-content {
        padding: 40px;
    }
}

@media (max-width: 900px) {
    .mobile-only {
        display: flex;
    }

    .mobile-header {
        display: flex;
    }

    #close-sidebar-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 80px;
        /* Offset for global navbar */
        bottom: 0;
        width: 100%;
        z-index: 999;
        background: #0f172a;
        /* Solid background for visibility */
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }


    .sidebar.open {
        left: 0;
    }

    .sidebar-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar-nav ul {
        display: block;
    }

    .sidebar-nav a {
        border-left: 3px solid transparent;
        border-radius: 0;
    }

    .sidebar-nav a.active {
        border-left-color: var(--ff-primary);
    }

    .help-content {
        padding: 84px 24px 24px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .help-section {
        padding: 40px 0;
    }
}