/* Help Page Styling */
.help-page-container {
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.help-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--background-main-elements) 0%, var(--background-main) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

    .help-header h1 {
        font-size: 2.8rem;
        margin-bottom: 15px;
        color: var(--text-main);
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .help-header p {
        font-size: 1.2rem;
        color: var(--text-faded);
        max-width: 700px;
        margin: 0 auto;
        line-height: 1.6;
    }

.help-content-wrapper {
    display: flex;
    gap: 30px;
    flex-direction: row;
}

/* Tab Sidebar - Left Side */
.help-tabs-sidebar {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 5px;
}

    /* Custom scrollbar for sidebar */
    .help-tabs-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .help-tabs-sidebar::-webkit-scrollbar-track {
        background: var(--background-main);
        border-radius: 3px;
    }

    .help-tabs-sidebar::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
    }

        .help-tabs-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--text-faded);
        }

.help-tab-button {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: var(--background-main-elements);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
    width: 100%;
    text-decoration: none;
    position: relative;
}

    .help-tab-button::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        transition: height 0.25s ease;
    }

    .help-tab-button:hover {
        background: var(--background-main-elements-select-hover-primary);
        border-color: var(--button-positive);
        transform: translateX(5px);
        box-shadow: 0 3px 12px var(--shadow-color);
    }

        .help-tab-button:hover::before {
            height: 70%;
        }

    .help-tab-button.active {
        background: var(--button-positive);
        color: var(--button-positive-text);
        border-color: var(--button-positive-border);
        box-shadow: 0 4px 15px rgba(0, 200, 0, 0.25);
        font-weight: 600;
    }

        .help-tab-button.active::before {
            height: 100%;
        }

/* Tab Content Area - Right Side */
.help-tab-content-area {
    flex: 1;
    background: var(--background-main-elements);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 2px 15px var(--shadow-color);
}

.help-tab-content {
    display: none;
}

    .help-tab-content.active {
        display: block;
        animation: fadeInSlide 0.4s ease;
    }

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-tab-content h2 {
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: var(--text-main);
    border-bottom: 3px solid var(--button-positive);
    padding-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Video Section */
.help-video-section {
    margin-bottom: 45px;
    background: var(--background-main);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: border-color 0.3s ease;
}

    .help-video-section:hover {
        border-color: var(--button-positive);
    }

    .help-video-section h3 {
        font-size: 1.4rem;
        margin-bottom: 18px;
        color: var(--text-main);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .help-video-section h3::before {
            content: '▶';
            color: var(--button-positive);
            font-size: 1.2rem;
        }

.help-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .help-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Collapsible Sections */
.help-collapsible-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-collapsible {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--background-main);
    transition: all 0.3s ease;
}

    .help-collapsible:hover {
        box-shadow: 0 4px 12px var(--shadow-color);
        border-color: var(--button-positive);
    }

.help-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    background: var(--background-main-elements);
    transition: all 0.25s ease;
    user-select: none;
}

    .help-collapsible-header:hover {
        background: var(--background-main-elements-select-hover-primary);
    }

    .help-collapsible-header.active {
        background: var(--button-positive);
        color: var(--button-positive-text);
    }

.help-collapsible-title-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.help-collapsible-header-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease;
}

.help-collapsible-header:hover .help-collapsible-header-image {
    transform: scale(1.05);
}

.help-collapsible-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.help-collapsible-header.active .help-collapsible-title {
    color: var(--button-positive-text);
}

.help-collapsible-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    color: var(--text-faded);
}

.help-collapsible-header.active .help-collapsible-icon {
    transform: rotate(180deg);
    color: var(--button-positive-text);
}

.help-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

    .help-collapsible-content.active {
        max-height: 8000px;
    }

.help-collapsible-body {
    padding: 25px 30px 30px 30px;
    background: var(--background-main);
}

    .help-collapsible-body h3 {
        font-size: 1.3rem;
        margin-top: 25px;
        margin-bottom: 12px;
        color: var(--text-main);
        font-weight: 600;
    }

        .help-collapsible-body h3:first-child {
            margin-top: 0;
        }

    .help-collapsible-body h4 {
        font-size: 1.1rem;
        margin-top: 20px;
        margin-bottom: 10px;
        color: var(--text-main);
        font-weight: 600;
    }

    .help-collapsible-body p {
        font-size: 1.02rem;
        line-height: 1.7;
        color: var(--text-main);
        margin-bottom: 16px;
    }

    .help-collapsible-body ol {
        list-style: none;
        counter-reset: item;
        padding-left: 0;
        margin-bottom: 18px;
    }

        .help-collapsible-body ol li {
            padding: 10px 0 10px 40px;
            position: relative;
            line-height: 1.7;
            color: var(--text-main);
            counter-increment: item;
        }

            .help-collapsible-body ol li::before {
                content: counter(item);
                position: absolute;
                left: 0;
                top: 10px;
                background: var(--button-positive);
                color: var(--button-positive-text);
                width: 26px;
                height: 26px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
                font-size: 0.9rem;
            }

    .help-collapsible-body ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 18px;
    }

        .help-collapsible-body ul li {
            padding: 10px 0 10px 32px;
            position: relative;
            line-height: 1.7;
            color: var(--text-main);
        }

            .help-collapsible-body ul li::before {
                content: "●";
                position: absolute;
                left: 10px;
                top: 10px;
                color: var(--button-positive);
                font-weight: bold;
                font-size: 1.2rem;
            }

        /* Nested lists */
        .help-collapsible-body ul ul {
            margin-top: 8px;
            margin-bottom: 8px;
        }

            .help-collapsible-body ul ul li::before {
                content: "○";
                font-size: 1rem;
            }

    .help-collapsible-body strong {
        color: var(--text-main);
        font-weight: 600;
    }

    .help-collapsible-body em {
        font-style: italic;
        color: var(--text-faded);
    }

    .help-collapsible-body code {
        background: var(--background-main-elements);
        padding: 2px 6px;
        border-radius: 4px;
        font-family: 'Consolas', 'Monaco', monospace;
        font-size: 0.95em;
        color: var(--button-positive);
        border: 1px solid var(--border-color);
    }

.help-collapsible-image {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .help-collapsible-image:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 20px var(--shadow-color);
    }

    .help-collapsible-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Traditional help sections */
.help-section {
    margin-bottom: 40px;
}

    .help-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: var(--text-main);
        font-weight: 600;
        padding-left: 12px;
    }

    .help-section h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        margin-top: 20px;
        color: var(--text-main);
        font-weight: 600;
    }

    .help-section p {
        font-size: 1.02rem;
        line-height: 1.7;
        color: var(--text-main);
        margin-bottom: 16px;
    }

    .help-section ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 18px;
    }

        .help-section ul li {
            padding: 10px 0 10px 32px;
            position: relative;
            line-height: 1.7;
            color: var(--text-main);
        }

            .help-section ul li::before {
                content: "✓";
                position: absolute;
                left: 0;
                top: 10px;
                color: var(--button-positive);
                font-weight: bold;
                font-size: 1.3rem;
            }

            .help-section ul li strong {
                color: var(--text-main);
                font-weight: 600;
            }

/* Mobile Responsive */
@media (max-width: 992px) {
    .help-content-wrapper {
        flex-direction: column;
    }

    .help-tabs-sidebar {
        flex: 1;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        max-height: none;
        padding-right: 0;
    }

    .help-tab-button {
        flex: 0 0 auto;
        min-width: 160px;
        width: auto;
    }

        .help-tab-button:hover {
            transform: none;
        }

        .help-tab-button::before {
            display: none;
        }

    .help-tab-content-area {
        padding: 30px;
    }

    .help-header h1 {
        font-size: 2.2rem;
    }

    .help-tab-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .help-header {
        padding: 30px 20px;
    }

        .help-header h1 {
            font-size: 2rem;
        }

        .help-header p {
            font-size: 1.05rem;
        }

    .help-tab-content-area {
        padding: 25px;
    }

    .help-collapsible-body {
        padding: 20px;
    }

        .help-collapsible-body h3 {
            font-size: 1.2rem;
        }
}

@media (max-width: 576px) {
    .help-page-container {
        padding: 10px;
    }

    .help-header {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

        .help-header h1 {
            font-size: 1.7rem;
        }

        .help-header p {
            font-size: 0.98rem;
        }

    .help-tabs-sidebar {
        gap: 8px;
    }

    .help-tab-button {
        min-width: 140px;
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .help-tab-content-area {
        padding: 20px;
        border-radius: 10px;
    }

    .help-tab-content h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }

    .help-video-section {
        padding: 18px;
        margin-bottom: 30px;
    }

        .help-video-section h3 {
            font-size: 1.2rem;
        }

    .help-section h3 {
        font-size: 1.3rem;
    }

    .help-section {
        margin-bottom: 30px;
    }

    .help-collapsible-header {
        padding: 14px 18px;
    }

    .help-collapsible-title {
        font-size: 1.02rem;
    }

    .help-collapsible-body {
        padding: 18px;
    }

        .help-collapsible-body h3 {
            font-size: 1.15rem;
        }

        .help-collapsible-body h4 {
            font-size: 1.05rem;
        }

        .help-collapsible-body p,
        .help-collapsible-body ul li,
        .help-collapsible-body ol li {
            font-size: 0.98rem;
        }

    .help-collapsible-header-image {
        width: 38px;
        height: 38px;
    }

    .help-collapsible-body ol li::before {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .help-tabs-sidebar {
        display: none;
    }

    .help-tab-content-area {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .help-collapsible-header {
        page-break-inside: avoid;
    }

    .help-collapsible-content {
        max-height: none !important;
    }

    .help-video-section {
        display: none;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .help-header {
        background: linear-gradient(135deg, var(--background-main) 0%, var(--background-main-elements) 100%);
    }

    .help-collapsible-image {
        border-color: var(--border-color);
    }

    .help-video-container {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Accessibility improvements */
.help-tab-button:focus,
.help-collapsible-header:focus {
    outline: 3px solid var(--button-positive);
    outline-offset: 2px;
}

    .help-tab-button:focus:not(:focus-visible),
    .help-collapsible-header:focus:not(:focus-visible) {
        outline: none;
    }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--button-positive);
    color: var(--button-positive-text);
}

/* //////////////////////////////////// */
/* FOOTER SOCIAL MEDIA */
/* //////////////////////////////////// */

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #155dee;
        transition: all 0.3s ease;
    }

        .footer-social a:hover {
            background-color: #163cc4;
            transform: scale(120%);
        }

    .footer-social svg {
        width: 20px;
        height: 20px;
        fill: #101828;
        transition: fill 0.3s ease;
    }

    .footer-social a:hover svg {
        fill: #fff);
    }

@media (max-width: 768px) {
    .footer-social {
        gap: 15px;
    }

        .footer-social a {
            width: 35px;
            height: 35px;
        }

        .footer-social svg {
            width: 18px;
            height: 18px;
        }
}

.landing-footer {
    position: relative;
    background-color: #101828;
    color: #ffffff;
    padding: 6rem 2rem 3rem 2rem;
    font-size: 0.9rem;
}

.rm-brand-alt {
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

    .footer-links a {
        color: #d0d7e2;
        text-decoration: none;
        transition: color 0.2s ease;
        cursor: pointer;
    }

        .footer-links a:hover {
            color: #ffffff;
        }

.footer-copy {
    margin-top: 1rem;
    color: #a0aec0;
}
.rm-logo {
    height: 32px;
    fill: #155dee;
}