/* --- Global Styles --- */
:root {
    --primary-color: #6366f1;       /* Name Memorize Indigo */
    --primary-light: #eef2ff;
    --primary-hover: #4f46e5;
    --text-color: #1f2937;
    --text-light: #4b5563;
    --border-color: #e5e7eb;
    --bg-color: #f9fafb;
    --bg-white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

* { box-sizing: border-box; }

a { color: var(--primary-color); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

h1, h2, h3, h4 { font-family: 'Lora', serif; font-weight: 700; color: #111827; }
h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { margin-bottom: 1.25rem; color: var(--text-light); }

.subtitle { color: var(--text-light); margin-top: -1rem; margin-bottom: 2.5rem; font-weight: 300; }

/* --- Layout --- */
.help-container { display: flex; max-width: 1200px; margin: 0 auto; background: var(--bg-white); min-height: 100vh; box-shadow: 0 0 40px rgba(0,0,0,0.03); }
.help-sidebar { width: 280px; flex-shrink: 0; padding: 2rem; border-right: 1px solid var(--border-color); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.help-content { flex-grow: 1; padding: 3rem 4rem; max-width: calc(100% - 280px); }

/* --- Sidebar --- */
.brand-link { display: flex; align-items: center; font-weight: 600; font-size: 1.1rem; color: var(--text-color); margin-bottom: 1rem; }
.brand-icon { width: 28px; height: 28px; border-radius: 6px; margin-right: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.help-sidebar h3 { font-size: 0.75rem; text-transform: uppercase; color: #9ca3af; margin-top: 2rem; letter-spacing: 0.05em; }
.help-sidebar ul { list-style: none; padding: 0; margin: 0; }
.help-sidebar li a { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; color: var(--text-light); font-size: 0.95rem; font-weight: 500; }
.help-sidebar li a:hover { background-color: var(--bg-color); color: var(--text-color); }
.help-sidebar li.active a { background-color: var(--primary-light); color: var(--primary-color); font-weight: 600; }

/* --- Category Grid --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.category-card { display: block; background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; transition: 0.2s; }
.category-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.category-card h4 { margin: 0 0 0.5rem 0; color: var(--primary-color); font-family: 'Inter', sans-serif; font-size: 1.1rem; }
.category-card p { margin: 0; font-size: 0.95rem; color: var(--text-light); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .help-container { flex-direction: column; }
    .help-sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); padding: 1rem 1.5rem; }
    .help-sidebar ul { display: flex; overflow-x: auto; gap: 0.5rem; }
    .help-sidebar li a { white-space: nowrap; background: var(--bg-color); }
    .help-content { width: 100%; max-width: 100%; padding: 2rem 1.5rem; }
}