/* Guide Header */
.guide-header {
    padding: 3rem 0 2rem;
    background: #FDF3E6;
    text-align: center;
}

.guide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.guide-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Role Toggle */
.guide-toggle {
    display: inline-flex;
    background: var(--bg-white);
    border-radius: 2rem;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.guide-toggle-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 2rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-secondary);
}

.guide-toggle-btn.active {
    background: #1A439E;
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 67, 158, 0.25);
}

.guide-toggle-btn:hover:not(.active) {
    background: var(--bg-gray);
}

/* Guide Body Layout */
.guide-body {
    padding: 2rem 0 4rem;
    background: var(--bg-white);
    min-height: 60vh;
}

.guide-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Sidebar */
.guide-sidebar {
    width: 280px;
    min-width: 280px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.guide-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.guide-sidebar-item:hover {
    background: rgba(26, 201, 158, 0.04);
    color: var(--text-primary);
}

.guide-sidebar-item.active {
    border-left-color: #1AC99E;
    color: #1A439E;
    background: rgba(26, 201, 158, 0.06);
    font-weight: 600;
}

.guide-sidebar-item lord-icon {
    flex-shrink: 0;
}

/* Content Area */
.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1A439E;
    margin-bottom: 0.5rem;
}

.guide-section-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Block: Steps */
.guide-step-box {
    background: var(--bg-gray);
    padding: 1rem 1.25rem;
    margin: 0.6rem 0;
    border-radius: 0.5rem;
    border-left: 4px solid #1AC99E;
    line-height: 1.6;
}

.guide-step-box strong {
    color: var(--text-primary);
}

/* Block: Tip */
.guide-tip {
    background: rgba(26, 201, 158, 0.06);
    border-left: 4px solid #1AC99E;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.guide-tip lord-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Block: Warning */
.guide-warning {
    background: rgba(250, 157, 67, 0.08);
    border-left: 4px solid #FA9D43;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.guide-warning lord-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-warning strong {
    color: #b36b00;
}

/* Block: Paragraph */
.guide-paragraph {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Block: List */
.guide-list {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-list li {
    margin-bottom: 0.4rem;
}

/* Block: Sub-heading */
.guide-block-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Block: Pro callout */
.guide-pro-badge {
    display: inline-block;
    background: rgba(158, 67, 250, 0.1);
    color: #9E43FA;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Mobile Nav */
.guide-mobile-nav {
    display: none;
    position: sticky;
    top: 70px;
    z-index: 50;
    background: var(--bg-white);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.guide-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.guide-mobile-trigger svg {
    transition: transform 0.2s ease;
}

.guide-mobile-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.guide-mobile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 51;
}

.guide-mobile-dropdown[aria-hidden="true"] {
    display: none;
}

.guide-mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.guide-mobile-dropdown-item:hover {
    background: var(--bg-gray);
}

.guide-mobile-dropdown-item.active {
    color: #1A439E;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-sidebar {
        display: none;
    }

    .guide-mobile-nav {
        display: block;
    }

    .guide-layout {
        flex-direction: column;
        gap: 0;
    }

    .guide-title {
        font-size: 2rem;
    }

    .guide-header {
        padding: 2rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .guide-title {
        font-size: 1.75rem;
    }

    .guide-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .guide-step-box,
    .guide-tip,
    .guide-warning {
        padding: 0.75rem 1rem;
    }
}
